Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

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

Open Syirrus opened this issue 10 years ago • 17 comments

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 avatar Jul 13 '16 06:07 Syirrus

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 avatar Jul 13 '16 06:07 Syirrus

Yes,I have the same problem.

waley1975 avatar Aug 09 '16 04:08 waley1975

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

Syirrus avatar Aug 09 '16 07:08 Syirrus

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

geekgonecrazy avatar Aug 18 '16 16:08 geekgonecrazy

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

bhbarbosa avatar Aug 31 '16 15:08 bhbarbosa

Happens for us on Chrome :/

ryannealmes avatar Sep 02 '16 07:09 ryannealmes

Same thing here.

CONFORM-IT avatar Sep 12 '16 05:09 CONFORM-IT

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

rodrigok avatar Sep 12 '16 12:09 rodrigok

+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 )

stealthybox avatar Sep 13 '16 06:09 stealthybox

+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?

LostInAzure avatar Sep 20 '16 06:09 LostInAzure

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

stealthybox avatar Sep 27 '16 00:09 stealthybox

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?

flaviogrossi avatar Oct 04 '16 07:10 flaviogrossi

@flaviogrossi Please see the PR #4541

rodrigok avatar Oct 05 '16 00:10 rodrigok

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

flaviogrossi avatar Oct 05 '16 07:10 flaviogrossi

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.

Syirrus avatar Oct 05 '16 11:10 Syirrus

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

rodrigok avatar Oct 05 '16 12:10 rodrigok

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

Syirrus avatar Oct 05 '16 12:10 Syirrus