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

BUG: Cannot Login - Unless I Reload the Browser or App #3761

Closed
Syirrus opened this issue Jul 13, 2016 · 17 comments · Fixed by #4009 or #4541
Closed

BUG: Cannot Login - Unless I Reload the Browser or App #3761

Syirrus opened this issue Jul 13, 2016 · 17 comments · Fixed by #4009 or #4541
Assignees

Comments

@Syirrus
Copy link

Syirrus commented Jul 13, 2016

Your Rocket.Chat version: (make sure you are running the latest)

I don't know if anyone is experiencing this issue, but for some reason when I try to login to Rocket.Chat, my browser or phone gets stuck on the login loading screen.

When I refresh the browser or reload (force close and run) the app I can log into my account account again.

I have tried different accounts which doesn't seem to make a difference.

cannot_login

Syirrus

@Syirrus
Copy link
Author

Syirrus commented Jul 13, 2016

I have narrowed down to the problem and I even recreated it on https://rocket.chat

Basically if you login and log out right away and log back in again all works fine.
If you login click on a channel or anything other than /home and then log out and then log back in the screen hangs on the loading screen. I've tried this in Chrome, Chrome Incognito mode (no browser extensions loaded) and on the mobile cordova app with the same results.

I've tried logging in with a FB account and just a plain email with the same results.

This is very problematic if people receive a push notification and go to log in on their mobiles and cannot.

screen shot 2016-07-13 at 8 26 26 am

@Syirrus Syirrus changed the title Cannot Login - Unless I Reload the Browser or App BUG: Cannot Login - Unless I Reload the Browser or App Jul 13, 2016
@waley1975
Copy link

Yes,I have the same problem.

@Syirrus
Copy link
Author

Syirrus commented Aug 9, 2016

I'm surprised this has flown under the radar for so long :(.

@geekgonecrazy
Copy link
Contributor

As per comments in #4009 re-opening this issue. It still happening at least for some people.. We need to figure out why.

@geekgonecrazy geekgonecrazy reopened this Aug 18, 2016
@bhbarbosa
Copy link

Can confirm, it happens also on both Firefox and IE, normal and incognito modes.

@ryannealmes
Copy link

Happens for us on Chrome :/

@CONFORM-IT
Copy link

Same thing here.

@rodrigok
Copy link
Member

Is this happening in our demo server or in your installations?

@stealthybox
Copy link

+1
We see this bug only after logging out and trying to log back in.
It occurs for both local users and LDAP users.

Refreshing the app is a temporary workaround.

( Running the official 0.39.0 docker image from the hub )

@LostInAzure
Copy link

+1 (0.39.0)
Syirrus wrote a fix in another issue but how do I patch that fix into an existing deployment without having to rebuild the entire application?

@stealthybox
Copy link

@LostInAzure is this patch in a branch somewhere?
Could you link the issue? Thanks 🍔

@flaviogrossi
Copy link
Contributor

flaviogrossi commented Oct 4, 2016

The problem seems to be that while rendering the main template the subsReady helper here is false and for some reason the rendering doesn't update when it becomes true.

Trying to understand why...

Edit: using template-level subscriptions for "userData" and "activeUsers" it seems to work fine. Can anyone confirm?

@rodrigok
Copy link
Member

rodrigok commented Oct 5, 2016

@flaviogrossi Please see the PR #4541

@flaviogrossi
Copy link
Contributor

@rodrigok thanks, i can confirm this fixes the issue for me

@Syirrus
Copy link
Author

Syirrus commented Oct 5, 2016

This doesn't fix the issue for me. You can duplicate it on https://demo.rocket.chat I logged in as a FB user and clicked on a channel and then logged out. When you try to log immediately back in, your stuck on the load screen.

@rodrigok
Copy link
Member

rodrigok commented Oct 5, 2016

@Syirrus There was a PR for the fix, it wasn't merged and deployed to demo.

@Syirrus
Copy link
Author

Syirrus commented Oct 5, 2016

@rodrigok I see, my mistake. I did try the PR change and it does address the problem. Thank you very much. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet