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 create Admin user #647

Closed
BenediktBertsch opened this issue Oct 13, 2019 · 8 comments · Fixed by #648
Closed

Can't create Admin user #647

BenediktBertsch opened this issue Oct 13, 2019 · 8 comments · Fixed by #648
Assignees
Labels

Comments

@BenediktBertsch
Copy link

Problem

Went to http://overleaf/launchpad fill the whole data and get the successfully registered message. Goto login get the message "Your email or password is incorrect. Please try again". Request a new password for the registered email, get the message that that mail is not registered.
So launchpad doesnt work, as in the documentation described i try to make an account by terminal and get this:
image

So basically i get a token to create a password for my account, but its always expired because the docker is running in a different timezone.

Install type

Running in docker.

Version

The latest version on hub.docker.com sharelatex/sharelatex.

Logs and errors

Didnt find any errors in logs in mongodb, redis and overleaf.

Any idea how to get an admin user?

Kind regards.

@mserranom mserranom self-assigned this Oct 14, 2019
@mserranom
Copy link
Contributor

Thanks for reporting @BenediktBertsch ,

The timezone looks correct, provided you're in Germany/Austria (guessed from your keyboard config). What you see in the docker container is UTC time, which is a 2 hour difference.

I'm not able to reproduce the issue. Maybe you can share the log message from your sharelatex container? (/var/log/sharelatex/web.log)

@schneefux
Copy link

I had this issue as well, my browser and my database are in +02:00 and the container is in UTC.
When I submitted the password form, the POST would always return 404 not found (/user/set/password I think).

I worked around the problem by installing v1, creating the user and upgrading to v2.

@BenediktBertsch
Copy link
Author

Hey @mserranom,

thank you for the fast answer!
I checked the log and found some redis error in the realtime log, no other things...
The Docker container seems to not take the hostname of my redis i gave him by environment variables?
I will append the log. Maybe you find more information, thank you.
real-time.log
web.log

@mserranom
Copy link
Contributor

@BenediktBertsch you might be missing environment variables, check https://github.com/overleaf/overleaf/wiki/Release-Notes-2.0

@BenediktBertsch
Copy link
Author

@mserranom okay i added the redis_host variable and now is the real-time log without errors, but it still doesnt fix my problem... New Logs attached.
web.log
real-time.log

@mserranom
Copy link
Contributor

@BenediktBertsch I'm afraid I can't reproduce the problem.

basically i get a token to create a password for my account, but its always expired

The logs don't show any expiration problem, can you describe how do you get the expiration feedback?

@mserranom mserranom added the bug label Oct 15, 2019
@BenediktBertsch
Copy link
Author

Hey @mserranom, I tried by going to overleaf/launchpad but also tried by running the $ docker exec sharelatex /bin/bash -c "cd /var/www/sharelatex; grunt user:create-admin --email joe@example.com" command, but like in the first pointed out it didnt help to create an Adminaccount because the token was always already expired because of the timezone difference i think.

Could overleaf create an environment variable for timezone, probably this would fix it? Are there no more logs which could point to any configuration problems?

@mserranom
Copy link
Contributor

Managed to reproduce, will be fixed in the next release.

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

Successfully merging a pull request may close this issue.

3 participants