Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't log out of Riot whilst HS is down #2289

Open
lukebarnard1 opened this issue Sep 19, 2016 · 12 comments
Open

Can't log out of Riot whilst HS is down #2289

lukebarnard1 opened this issue Sep 19, 2016 · 12 comments
Labels
O-Occasional Affects or can be seen by some users regularly or most users rarely S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect

Comments

@lukebarnard1
Copy link
Contributor

lukebarnard1 commented Sep 19, 2016

Trying to log out of my locally-built vector which is logged into a locally-running synapse, but can't open the user settings page in order to do that. Probably because the settings page loads forever trying to get something from matrix.org.

(And I want to logout so that I can log my local vector onto my own HS)

Seems to be coming from matrix-js-sdk UserSettings.js _renderCryptoInfo.

UserSettings.js:335 Error: End-to-end encryption disabled
    at MatrixClient.getStoredDevicesForUser (http://localhost:8083/bundle.js:43252:16)
    at Constructor._renderCryptoInfo (http://localhost:8083/bundle.js:80429:36)
    at Constructor.render (http://localhost:8083/bundle.js:80808:23)
@ara4n ara4n changed the title Can't log out of local vector build whilst matrix.org is down Can't log out of vector whilst HS is down Oct 10, 2016
@richvdh
Copy link
Member

richvdh commented Feb 16, 2017

I'm surprised this is a thing. If you're logged into a local synapse, why is it trying to reach matrix.org? @lukebarnard1: is it still a thing?

@lukebarnard1
Copy link
Contributor Author

I haven't been in a position where it would happen. I'm not sure why my local, non-federated synapse would be blocked on matrix.org.

@lukebarnard1 lukebarnard1 changed the title Can't log out of vector whilst HS is down Can't log out of Riot whilst HS is down May 14, 2018
@lukebarnard1
Copy link
Contributor Author

lukebarnard1 commented May 14, 2018

From @dbkr:

Unfortunately, you can't open the settings page because that requires a connection to your HS, so there's no way to log out.

No consensus on whether the settings page is loading from matrix.org or just the local HS

@gnorbsl
Copy link

gnorbsl commented Jun 23, 2018

I encountered the same issue. It's impossible to logout or open the settings when my synapse server is down.

@xlith
Copy link

xlith commented Jul 4, 2018

same issue

1 similar comment
@e-dt
Copy link

e-dt commented Nov 21, 2018

same issue

@richvdh
Copy link
Member

richvdh commented Nov 21, 2018

rereading this, I think the stuff about matrix.org is a complete red herring. The report should say "the settings page loads forever trying to get something from the current homeserver"

@smokku
Copy link

smokku commented Dec 9, 2018

@richvdh is right. The issue is that Settings page is trying to access current HS.

This makes it impossible to logout and login to some other alive server.

P.S. To work around the issue, you need to clear Local Storage for the web client domain (either through browser privacy settings or DevTools).

@doug1
Copy link

doug1 commented Dec 11, 2018

I just got bit by this one last week. I had a synapse homeserver instance in a Linux VM for testing, and deleted it when I was done. My Windows Riot client would just sit there spinning looking for the now non-existent server, and the "logout" button/link was missing from the spinner screen. After waiting (minutes?) for it to time out, I was still not able to use the setting ("gear") icon, since it requires the homeserver to be up to show the settings window. How to clear Local Storage was not immediately obvious in the Windows desktop client. I then searched the filesystem for a plaintext configuration file where I could change the server name, but only found SQLite and LevelDB files, so no luck there. In the end, my Riot client install was not easily recoverable, and I was frustrated, so I just deleted it. Is there any why to recover from a down homeserver at all? If not, please increase this to P1 since it renders the client unusable.

@smokku
Copy link

smokku commented Dec 11, 2018

I believe this is fixed in https://riot.im/experimental as there is a "Logout" option accessible directly from user menu.

@aaronraimist
Copy link
Collaborator

aaronraimist commented Dec 29, 2018

The logging out may be fixed (I haven’t tested that button when the server is down) but @tango_bravo14:matrix.org also brought up that you also can’t export your keys if the server is down.

The settings page should probably be available or at least a limited part of it when the server is down (or the domain has been changed or whatever).

@varh1i
Copy link

varh1i commented Apr 25, 2019

I did:

  • kill the riot process
  • move your ~/.config/Riot folder to some different location (just to save it as backup)

@kittykat kittykat added A-Developer-Experience O-Occasional Affects or can be seen by some users regularly or most users rarely S-Minor Impairs non-critical functionality or suitable workarounds exist and removed P2 A-Registration labels Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-Occasional Affects or can be seen by some users regularly or most users rarely S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect
Projects
None yet
Development

No branches or pull requests