flathub / ch.protonmail.protonmail-bridge

https://flathub.org/apps/details/ch.protonmail.protonmail-bridge
11 stars 7 forks source link

Fedora 32 Beta unable to add account #27

Closed cwmke closed 4 years ago

cwmke commented 4 years ago

When attempting to remove an existing account or add a new account, the below message is displayed. Adding account was unsuccessful: failed to load user credentials: no credentials found for given userID.

Attempted Fixes

INFO[0000] Run app                                       appLong="Protonmail Bridge" appShort=bridge args="[/app/extra/lib/protonmail/bridge/protonmail-bridge -l debug]" build="2020-03-30T23:55:07+0200" pkg=main revision=fd4f0235fb runtime=linux version=1.2.6
DEBU[Apr 10 17:41:13.099] Initializing bridge...                        pkg=main
DEBU[Apr 10 17:41:13.099] creating pass                                 pkg=bridgeUtils/keychain
DEBU[Apr 10 17:41:13.099] creating secretservice                        pkg=bridgeUtils/keychain
DEBU[Apr 10 17:41:13.109] Determined frontend mode to use               mode=qt pkg=main
INFO[Apr 10 17:41:13.109] Autostart /app/extra/lib/protonmail/bridge/protonmail-bridge  pkg=frontend-qt
INFO[Apr 10 17:41:13.110] IMAP server listening at 127.0.0.1:1143       pkg=imap
INFO[Apr 10 17:41:13.110] SMTP server is starting                       address="127.0.0.1:1025" pkg=smtp useSSL=false
INFO[Apr 10 17:41:13.110] API listening at 127.0.0.1:1042               pkg=api
DEBU[Apr 10 17:41:13.111] Starting frontend...                          pkg=main
WARN[Apr 10 17:41:13.836] GraphicsInfo of WindowTitleBar_QMLTYPE_19(0x2be5b10) api 2 majorVersion 2 minorVersion 0 profile 0 renderableType 0 shaderCompilationType 1 shaderSourceType 3 shaderType 1  pkg=frontend-qml
INFO[Apr 10 17:41:13.838] No active accounts                            pkg=frontend-qt
INFO[Apr 10 17:41:15.181] No active accounts                            pkg=frontend-qt
DEBU[Apr 10 17:50:06.859] Requesting  POST /auth/info                   pkg=pmapi userID=login
DEBU[Apr 10 17:50:07.680] Requesting  POST /auth                        pkg=pmapi userID=login
INFO[Apr 10 17:50:07.877] Set token from auth 0000000000000000000000000000000000000000:0000000000000000000000000000000REPLACED0  pkg=pmapi userID=login
DEBU[Apr 10 17:50:17.057] Requesting  POST /auth/2fa                    pkg=pmapi userID=login
DEBU[Apr 10 17:50:17.245] Requesting  GET /users                        pkg=pmapi userID=login
INFO[Apr 10 17:50:17.418] update user: rrrrrrrrrrrrrrrr--rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr=  pkg=pmapi userID=login
DEBU[Apr 10 17:50:17.418] Requesting  GET /addresses                    pkg=pmapi userID=login
DEBU[Apr 10 17:50:18.142] Requesting  GET /keys/salts                   pkg=pmapi userID=login
INFO[Apr 10 17:50:18.425] Currently have no access token, setting given one  pkg=pmapi token="0000000000000000000000000000000000000000:0000000000000000000000000000000REPLACED0" userID="rrrrrrrrrrrrrrrr--rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr="
DEBU[Apr 10 17:50:18.425] Requesting  POST /auth/refresh                pkg=pmapi userID="rrrrrrrrrrrrrrrr--rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr="
INFO[Apr 10 17:50:19.050] Set token from auth refresh 0000000000000000000000000000000000000000:0000000000000000000000000000000REPLACED0  pkg=pmapi userID="rrrrrrrrrrrrrrrr--rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr="
DEBU[Apr 10 17:50:19.050] Requesting  GET /users                        pkg=pmapi userID="rrrrrrrrrrrrrrrr--rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr="
INFO[Apr 10 17:50:19.232] update user: rrrrrrrrrrrrrrrr--rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr=  pkg=pmapi userID="rrrrrrrrrrrrrrrr--rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr="
DEBU[Apr 10 17:50:19.232] Requesting  GET /addresses                    pkg=pmapi userID="rrrrrrrrrrrrrrrr--rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr=="
INFO[Apr 10 17:50:19.928] Generating credentials for new user           pkg=bridge
DEBU[Apr 10 17:50:20.046] Creating or loading user                      pkg=bridge user="rrrrrrrrrrrrrrrr--rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr="
ERRO[Apr 10 17:50:20.048] Could not create user                         error="failed to load user credentials: no credentials found for given userID" pkg=bridge user="rrrrrrrrrrrrrrrr--rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr="
ERRO[Apr 10 17:50:20.048] Login was unsuccessful                        error="failed to load user credentials: no credentials found for given userID" pkg=frontend-qt
A6GibKm commented 4 years ago

I've had a similar issue, I think it has to do with libsecret. Note that this only affects f32 as it only stopped working after updating to f32.

alexhaydock commented 4 years ago

I'm having the same issue on Ubuntu 20.04 and haven't tracked down the source of the problem yet

gzmorell commented 4 years ago

Same issue on a Clear Linux new installation. Trying to add an account gives: Failed to load user credentials. No credentials found for given userID. Web log works perfectly.

I have checked on the website (log historial) that the login attempt was correct.

easthighNerd commented 4 years ago

I have experienced the same issue on a fresh install of Fedora 32.

Trying to add my account says that no credentials were found. I have confirmed that the .rpm works just fine with my account credentials.

exponentactivity commented 4 years ago

Same issue on Fedora Silverblue 32.

A6GibKm commented 4 years ago

I have zero clue on what is causing this. For #28 to be fixed, we need https://github.com/ProtonMail/proton-bridge/issues/47 upstream.

cwmke commented 4 years ago

Seems to be working again with the latest update. Same for everyone else? (Thumbs Up reaction if it's working.)

sergeyklay commented 4 years ago

It worked by somehow, but now when I try to log in using Mail client on Fedora I get:

{
    "error":"store is not initialised",
    "level":"warning",
    "msg":"Cannot get user",
    "pkg":"imap",
    "time":"2020-05-23T01:17:34+03:00"
}

Everything is ok with the same version and user on Debian Buster

easthighNerd commented 4 years ago

Account addition seems to be fine now (from what I can tell,) however now my mail client (Thunderbird (Flatpak)) is unable to accept the password and thus sync the mailbox.

Installed the RPM again and that works fine.

If there's any particular command I can run to get a proper log/output let me know and I will c/p my findings.

sergeyklay commented 4 years ago

@easthighNerd Something like this should work for you

$ tail -f ~/.var/app/ch.protonmail.protonmail-bridge/cache/protonmail/bridge/logs/*.log
A6GibKm commented 4 years ago

This is probably an issue with the secret portal.

G5uL9Iv commented 4 years ago

Same issue on a Clear Linux new installation. Trying to add an account gives: Failed to load user credentials. No credentials found for given userID. Web log works perfectly.

I have checked on the website (log historial) that the login attempt was correct.

Were you able to resolve your issue? Been struggling to get this to work