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

Windows 10, Riot desktop application doesn't log in. #9553

Closed
createchange opened this issue Apr 24, 2019 · 7 comments
Closed

Windows 10, Riot desktop application doesn't log in. #9553

createchange opened this issue Apr 24, 2019 · 7 comments
Labels
T-Other Questions, user support, anything else

Comments

@createchange
Copy link

Description

I was recently having issues with certs. I set up a matrix-synapse homeserver as one of the first real projects when I was teaching myself IT. There is a lot I would change, but I was able to get things operational again.

When trying to figure out the cert stuff, I was getting 502 errors, I attempted connecting through various devices during that time, including: browser, iOS app, Windows desktop app. Once I was able to get the certs sorted out, connectivity was regained through the browser and iOS application, but not the desktop app.

If I enter incorrect credentials, I get rejected for bad auth attempts. But if I enter correct credentials, the window turns white with a loading circle and a logout button, but never progresses past that. It would seem that I have authenticated fine (I could cross-reference the matrix-synapse logs if it would help), but I just cannot drop back into a session.

I have uninstalled and reinstalled Riot, as well as rebooted. This does not resolve the issue. I checked for remnant files after uninstalling, but didn't see anything.

Steps to reproduce

  • Log in with correct credentials
  • Sit in white loading screen
  • Log out
  • Rinse
  • Repeat

Without logging in, there does not seem to be a way to access the settings menu.

Version information

  • Platform: web (in-browser) or desktop? Desktop

  • OS: Windows

  • Version: 1.0.8

@createchange
Copy link
Author

createchange commented Apr 24, 2019

I enabled developer tools in the app, and saw this error after having successfully authenticated:

Failed to load https://example.com/_matrix/client/versions: Redirect from 'https://example.com/_matrix/client/versions' to 'https://example.com/_matrix/client/versions' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'vector://vector' is therefore not allowed access.

More information: I have the homeserver set up behind an Nginx proxy - they reside on different VMs. I am happy to provide configs if that will help (they are a mess). I am expecting to get redirected to the Matrix team, but I will mention again that I am able to use the Web and both iOS and Android clients to access this homeserver without issue.

On the reverse proxy and homeserver, I have added the following "add_header" directive:

# Reverse proxy nginx config
location / {
                  proxy_set_header X-Real-IP  $remote_addr;
                  proxy_set_header X-Forwarded-For $remote_addr;
                  proxy_set_header Host $host;
                  proxy_pass https://192.168.1.42;
                  add_header 'Access-Control-Allow-Origin' '*';
 }
# Homeserver nginx config
location /_matrix {
        proxy_pass http://localhost:8008;
        add_header 'Access-Control-Allow-Origin' '*';
    }

which results in the opposite error:

Access to XMLHttpRequest at 'https://example.com/_matrix/client/r0/joined_groups' from origin 'https://riot.im' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed.

And immediately knocks the server offline.

I am not sure what the issue is, and I've reached the limit of what I can run down and still enjoy my night, so help would be appreciated.

Thanks!
Jonathan

Edit: In the configs I tried without the single quotes, but had the same outcome - server immediately offline.

@turt2live
Copy link
Member

Usually CORS hides the underlying error, and the add_header isn't strictly required. From the network pane of the developer tools, what is the status code for the failed request? It might just be an innocent timeout caught in the fray.

@lampholder lampholder added the T-Other Questions, user support, anything else label Apr 24, 2019
@createchange
Copy link
Author

createchange commented Apr 25, 2019

Thanks for the response. Quick point that I need to add on - I tested on my work laptop, and it connects just fine.

It would appear that the issue is just relegated to this specific install. However, as mentioned earlier, rebooting/reinstalling has unfortunately not been successful.

Here is a screenshot of the response codes:
responses

@createchange
Copy link
Author

I would like to have a functional chat client and not have to resort to the web browser. Curious if I can get some more help on this? Has it been determined that is, in fact, not a bug? It would appear to me that this has not been determined, especially since all other Desktop application using users are having no issues - it's only with this uninstall.

Where are files placed when the desktop client is installed? I would like to at least have that info so I can remove everything and do a completely fresh install.

@jryans
Copy link
Collaborator

jryans commented May 13, 2019

I would like to have a functional chat client and not have to resort to the web browser. Curious if I can get some more help on this? Has it been determined that is, in fact, not a bug? It would appear to me that this has not been determined, especially since all other Desktop application using users are having no issues - it's only with this uninstall.

So far, I don't think we know what the issue is here. GitHub issues aren't the best format for support questions, so you may have better luck asking for help in #riot:matrix.org.

Where are files placed when the desktop client is installed? I would like to at least have that info so I can remove everything and do a completely fresh install.

On Windows:

  • App files are installed in C:\Users\<User>\AppData\Local\riot-web
  • User data is kept in C:\Users\<User>\AppData\Roaming\Riot

Note: Deleting your user data directory would cause you to lose E2E message keys, unless you had already enabled the Key Backup feature.

@createchange
Copy link
Author

@jryans

Starting by letting you know that blowing away all installation files on Windows did the trick - thank you for that information. :)

I guess we have a different understanding of what would constitute support vs. a bug, or where they overlap. I would consider not being able to log into the app to be a bug that support is an aside on to figure out the underlying issue, but I'm probably missing some nuance as I'm admittedly not a developer.

Thank you again for your help, and for your work. I appreciate the freedom that your products provide. Keep up the good work!

@jryans
Copy link
Collaborator

jryans commented May 13, 2019

I guess we have a different understanding of what would constitute support vs. a bug, or where they overlap. I would consider not being able to log into the app to be a bug that support is an aside on to figure out the underlying issue, but I'm probably missing some nuance as I'm admittedly not a developer.

Admittedly, it's a bit fuzzy and can depend on the precise nature of what you are seeing. Please free to communicate your feedback in whatever medium (issue, chat, etc.), but just be aware we may recommend moving to a different forum for certain types of reports. 😁

For issues that appear to only affect one person where the root cause is unknown, asking via chat tends to be a faster path towards a solution, since we may need to debug the issue interactively.

Anyway, I am glad to see the issue is fixed

su-ex added a commit to SchildiChat/element-web that referenced this issue Nov 25, 2022
* Make clear notifications work with threads ([\element-hq#9575](matrix-org/matrix-react-sdk#9575)). Fixes element-hq#23751.
* Change "None" to "Off" in notification options ([\element-hq#9539](matrix-org/matrix-react-sdk#9539)). Contributed by @Arnei.
* Advanced audio processing settings ([\element-hq#8759](matrix-org/matrix-react-sdk#8759)). Fixes element-hq#6278. Contributed by @MrAnno.
* Add way to create a user notice via config.json ([\element-hq#9559](matrix-org/matrix-react-sdk#9559)).
* Improve design of the rich text editor ([\element-hq#9533](matrix-org/matrix-react-sdk#9533)). Contributed by @florianduros.
* Enable user to zoom beyond image size ([\element-hq#5949](matrix-org/matrix-react-sdk#5949)). Contributed by @jaiwanth-v.
* Fix: Move "Leave Space" option to the bottom of space context menu ([\element-hq#9535](matrix-org/matrix-react-sdk#9535)). Contributed by @hanadi92.
* Make build scripts work on NixOS ([\element-hq#23740](element-hq#23740)).
* Fix integration manager `get_open_id_token` action and add E2E tests ([\element-hq#9520](matrix-org/matrix-react-sdk#9520)).
* Fix links being mangled by markdown processing ([\element-hq#9570](matrix-org/matrix-react-sdk#9570)). Fixes element-hq#23743.
* Fix: inline links selecting radio button ([\element-hq#9543](matrix-org/matrix-react-sdk#9543)). Contributed by @hanadi92.
* Fix wrong error message in registration when phone number threepid is in use. ([\element-hq#9571](matrix-org/matrix-react-sdk#9571)). Contributed by @bagvand.
* Fix missing avatar for show current profiles ([\element-hq#9563](matrix-org/matrix-react-sdk#9563)). Fixes element-hq#23733.
* Fix read receipts trickling down correctly ([\element-hq#9567](matrix-org/matrix-react-sdk#9567)). Fixes element-hq#23746.
* Resilience fix for homeserver without thread notification support ([\element-hq#9565](matrix-org/matrix-react-sdk#9565)).
* Don't switch to the home page needlessly after leaving a room ([\element-hq#9477](matrix-org/matrix-react-sdk#9477)).
* Differentiate download and decryption errors when showing images ([\element-hq#9562](matrix-org/matrix-react-sdk#9562)). Fixes element-hq#3892.
* Close context menu when a modal is opened to prevent user getting stuck ([\element-hq#9560](matrix-org/matrix-react-sdk#9560)). Fixes element-hq#15610 and element-hq#10781.
* Fix TimelineReset handling when no room associated ([\element-hq#9553](matrix-org/matrix-react-sdk#9553)).
* Always use current profile on thread events ([\#9524](matrix-org/matrix-react-sdk#9524)). Fixes element-hq#23648.
* Fix `ThreadView` tests not using thread flag ([\element-hq#9547](matrix-org/matrix-react-sdk#9547)). Contributed by @MadLittleMods.
* Handle deletion of `m.call` events ([\element-hq#9540](matrix-org/matrix-react-sdk#9540)). Fixes element-hq#23663.
* Fix incorrect notification count after leaving a room with notifications ([\element-hq#9518](matrix-org/matrix-react-sdk#9518)). Contributed by @Arnei.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Other Questions, user support, anything else
Projects
None yet
Development

No branches or pull requests

4 participants