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 not login anymore #1055

Closed
real-artswan opened this issue Feb 28, 2018 · 16 comments
Closed

Can not login anymore #1055

real-artswan opened this issue Feb 28, 2018 · 16 comments

Comments

@real-artswan
Copy link

Yesterday at some moment (possibly after OS updates) I faced the issue with some older strider version (don't remember exact version now).
I put my email, password, press login and it just reloads the login page.
Logs even with DEBUG="strider*" says nothing interesting: each click on button login just logs line like
2018-02-28T14:00:50.605Z - info: username: [email protected]
I tried to add new users using strider-cli and tried to overwrite existing user with new password, it didn't help.
Also I tried to update strider to the latest version.
Then I installed everything on a fresh system and it worked at first and I was able to deploy my project once but at some moment after that it stopped to login users again.

Any help would be appreciated!
`$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.4 LTS
Release: 16.04
Codename: xenial

$ node -v
v8.9.4

$ mongo --version
MongoDB shell version v3.6.3
git version: 9586e557d54ef70f9ca4b43c26892cd55257e1a5
OpenSSL version: OpenSSL 1.0.2g 1 Mar 2016
allocator: tcmalloc
modules: none
build environment:
distmod: ubuntu1604
distarch: x86_64
target_arch: x86_64
`

@knownasilya
Copy link
Member

Have you tried deleting the project and users from mongo first?

@real-artswan
Copy link
Author

I've tried right now.

  1. Removed projects
    2 Tried to login
    3 Nothing
    4 Removed users
    5 Tried to login
    6 It showed message about wrong user and log "no user" line
    7 Added user via strider-cli
    8 Tried to login
    9 Nothing

@knownasilya
Copy link
Member

Are you running it via localhost or a tld?

@real-artswan
Copy link
Author

real-artswan commented Mar 2, 2018

It is on AWS t2-micro. If you're asking about domain name - I don't have it and use IP:3000 as url.

@knownasilya
Copy link
Member

I wonder if it's an https issue..

@real-artswan
Copy link
Author

No, it is a plain http.

@knownasilya
Copy link
Member

Yeah, that's what I mean. Like the browser blocking the request since it's not https. I would try and reinstall everything from scratch.

@real-artswan
Copy link
Author

real-artswan commented Mar 3, 2018

Do you mean that https should work without problems? I'll try on Monday.

@knownasilya
Copy link
Member

I'm not really sure since there are no error or anything obvious that I can tell. A fresh install is probably the best bet at this point.

Are there any logs in the browser console?

@xgalen
Copy link
Member

xgalen commented Mar 5, 2018

We have working Strider with http so I'm not sure if that could be the problem.

@real-artswan
Copy link
Author

In fact the problems is on the fresh system as I mentioned in the first post. I created special fresh AWS instance, installed fresh nodejs, and mongo, and pulled strider from git, added user and were able to login and setup project and deploy it one time, after that I couldn't login anymore.

You know, today I got back to my first working server where problems has started initially and where I removed projects after that, and I were able to login there!
I successfully created project, pressed "Deploy" button and it pushed me to login screen and I couldn't login anymore.
So I think it somehow relates to project config, but removing project from DB doesn't solve the problem immediately. I even tried to drop "strider-foss" DB and restart app.
Could you tell me if it stores any information somewhere outside DB?

@real-artswan
Copy link
Author

Unfortunately, browser's console says nothing interesting too.

@xgalen
Copy link
Member

xgalen commented Mar 5, 2018

All the user's information is stored into the DB.
Is it possible that the tests or the deploy are removing info from MongoDB? I mean if you have checked that the user you have created to login into Strider is still there when you can't login.

@knownasilya
Copy link
Member

It could be a bug, but yeah check the db before first login and after first login, and then after failed login and see if the user data changes at all.

@real-artswan
Copy link
Author

Definitely user is still there, I see it in the DB and I see it by strider behavior: if I use wrong user name or password I see correct error message in browser and in logs as well. If I use valid credentials it just reloads login page without any errors.

May be it creates some temporary files or cache somewhere? I would know why the behavior changes in time as it is pretty weird. May be some of plugins affects it?

@knownasilya
Copy link
Member

I'll give it a try tomorrow with a fresh install.

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

No branches or pull requests

3 participants