Wire-desktop: [Windows] login loop

Created on 21 Aug 2019  ·  31Comments  ·  Source: wireapp/wire-desktop

Wire version: 3.10.3138
Wire for web version: 2019.08.21.1333
Operating system: Windows 10
Which antivirus software do you have installed: Defender

What steps will reproduce the problem?

  1. Update from previous Wire version
  2. Restart Wire

What is the expected result?

Wire should be logged in with both existing accounts

What is the actual result?

One account is logged in, the other not.
If I try to log in the progress bar shows fetching something, fetching events and I am back at the log in screen...

Please provide any additional information below. Attach a screenshot if possible.

console.log

login Linux 🐧 Windows 🖼️ bug / fix 🐞

Most helpful comment

Thanks, that was helpful :slightly_smiling_face:

All 31 comments

2968 is the same problem...

I got the same problem now without clicking the update button but simply restarting Wire.
This one is a major bummer

@miicha what do you mean by "Update from previous Wire version"? Did you click the "update now" button in Wire or did you install the latest version?

I'm running into a similar problem on Windows after using the "Update Now" button inside of Wire, but I'm redirected to the login screen at the "Checking for new messages" step.

Let me know if I can provide any debug info.

@ffflorian on one PC I actually clicked the update button inside Wire, on another PC I just restarted Wire without clicking anything.

What I tried so far

  • On the first PC (Wire with two accounts and one still working) I installed the previous version of Wire (from github releases) and got the same problem...
  • installed 3.7.2917, same problem
  • installed newest version, same problem
  • renamed %appdata%\Wire, login possible, but as new device without any chat history
  • restored the original %appdata%\Wire folder same problem as before
  • installed 3.9.2928 and copy %appdata%\Wire folder from a PC with still running and working Wire (3.9.2928) and again the same problem (progress bar and back to login screen)

@ffflorian what is the minimal data in %appdata%\Wire to log in as existing device and get the chat history back?

@miicha thanks for the details.

@miicha @pfitzseb Can you please zip the %APPDATA%\Wire\logs\ dir and post it here?

Logs are empty for me: logs.zip

An additional data point: If I rename %APPDATA%\Wire\ and restart Wire, I end up in the same login loop. Logs are still empty afterwards.

@miicha Thanks for writing us. We have the guess that a bug slipped through in our latest webapp release. To verify that we need to get webapp log files from people that are affected. You can enable debugging for our webapp by starting the Wire desktop application with --devtools --enable-logging:

image

If you do that, a "Developer Tools" panel will show up from which you can click "Save as..." to save logs written to that window:

image

Do you have the problem on both of your computers?

@bennyn Now I got the problem on all 3 Computers but only with one account...
The console log doesnt seem to be very helpful
console log just after starting Wire
-1566463184659.log
and after failed login:
-1566463365641.log

Neither the terminal nor the devtools output seems terribly helpful:
wire_logs.zip

I have the same problem on wire-desktop Linux. Tried the Debian, Ubuntu PPA, flatpak and appimage versions. All have the same problem.
The only versions working for my account are the browser web app and the Android app.
App version is 3.10.2904
-1566466244415.log

Thank you all for taking the time helping us with the login loop issue. We are very thankful for your reports and it helps us to narrow down the problem. At the moment we think that some local client data might be invalid.

To debug further we need information about the JSON payload of your local clients. If you don't mind then please send us a screenshot of your "local_client" from the "clients" table of your IndexedDB.

It should look like this:

vlcsnap-2019-08-22-11h46m12s347

You can get this information the following way:

  1. Open Windows Explorer
  2. Navigate to %LOCALAPPDATA%
  3. Navigate to wire\app-[latest-version]
  4. Create a shortcut for Wire.exe
  5. Open properties of the shortcut
  6. Append --devtools --enable-debugging to the shortcut's target
  7. Start the shortcut ("Chrome Developer Tools" plus "Wire" will open)
  8. Open the "Elements" tab within the Developer Tools
  9. Select the <webview> HTML tag of your account (you may have multiple)
  10. Open the "Console" tab within the Developer Tools
  11. Enable "Preserve log" to keep console log statements
  12. Run $0.openDevTools() from the "Console" ("Chrome Developer Tools" for our webapp will open)
  13. Open the "Application" tab
  14. Select "IndexedDB"
  15. Select the database name of your active account (wire@production@...)
  16. Select "clients" table
  17. Search for key "local_identity"

We know that getting this information requires some steps. That's why we just recorded a video tutorial:
Enable Debugging in Wire Desktop Application.zip

grafik

The webview devtools also spit out a couple errors that might be relevant:

grafik

Schermata a 2019-08-22 12-14-27

local_identity

Thanks for sending in your identities. We now have enough sample data for the identities.

Next thing we will focus on is the readAsDataUrl error. To the ones who have it, can you please click on the at Promise (/min/app.js?...) link to see if you can get a more detailed stracktrace? And is the affected account part of a team in Wire?

Full stacktrace:
grafik

And no, my account is not part of any team (as far as I'm aware).

My account is not a team account. I get a different error. See the attached stacktrace.
app.wire.com-1566469753758.log

Breaking on uncaught exception produces something more useful:
grafik
grafik

Couldn't figure out how to access those local variables, but ¯\_(ツ)_/¯

after cleaning console and another login attempt I get the following:
grafik

@miicha @tonirug @pfitzseb
Thank you very much for your debugging help!

We just deployed a hotfix, can you please restart Wire for Desktop and check if you can log in now?

Login OK on both Windows and Linux!
Thanks a lot

great work
login fixed on all 3 Windows machines

Whoop! Whoop! Thanks everyone for your significant help. @miicha @tonirug @pfitzseb we would like to name your handles in our release notes to credit you. Are you okay with that?

ok for me

We just deployed a hotfix, can you please restart Wire for Desktop and check if you can log in now?

Works. Thanks for the quick fix!

Are you okay with that?

Sure.

yes sure

@miicha @tonirug @pfitzseb

Now it would be great to get your logs one more time, since we are now catching and logging the error which prevented you from logging in.

Here the log from the Linux box:
immagine

which ones do you mean? %appdata%\wire\logs contains nothing new...
and I got these:
wire hotfix (1)
wire hotfix (2)

and while sending messages I get everytime a 412 (Precondition Failed) and a 404 (Not Found)

grafik
grafik

Thanks, that was helpful :slightly_smiling_face:

Was this page helpful?
0 / 5 - 0 ratings