Skip to content

Signup verification email not received #663

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

Closed
bheuju opened this issue Apr 2, 2020 · 4 comments · Fixed by #841
Closed

Signup verification email not received #663

bheuju opened this issue Apr 2, 2020 · 4 comments · Fixed by #841
Labels
good first issue Good for newcomers question Further information is requested

Comments

@bheuju
Copy link

bheuju commented Apr 2, 2020

How to reproduce the behaviour

I setup the project using AWS one-click deployment button. Everything works fine, but when a new user sign ups, email verification is not received. I believe I have to set up a email host configurations in settings.py. How do I set it up as the project has already been deployed? Is it in the /env.list file, or the AWS one-click automatically does this?

# necessary for email verification of new accounts
EMAIL_USE_TLS = env.bool('EMAIL_USE_TLS', False)
EMAIL_HOST = env('EMAIL_HOST', None)
EMAIL_HOST_USER = env('EMAIL_HOST_USER', None)
EMAIL_HOST_PASSWORD = env('EMAIL_HOST_PASSWORD', None)
EMAIL_PORT = env.int('EMAIL_PORT', 587)

Your Environment

  • Operating System: AWS ubuntu
  • Python Version Used: 3.6
  • When you install doccano: Mar 30, 2020
  • How did you install doccano (Heroku button etc): AWS one-click deployment

Also, when I deployed the project using docker-compose by pulling the github project, the project looks older and not as in demo http://doccano.herokuapp.com/. Why is that? Am I missing something here?

@icoxfog417 icoxfog417 added good first issue Good for newcomers question Further information is requested labels Apr 2, 2020
@srbek-cmd
Copy link

I am having the same issue when deploying doccano using the one-click button for Heroku.

Any advice would be greatly helpful.

@bheuju
Copy link
Author

bheuju commented Apr 22, 2020

@srbek-cmd I have figured out how to make email verification work. You have to add the Email host configurations in the /env.list file and rerun the doccano.

Note: It will erase all the previous doccano containers and create a new one, so all your old data from doccano will be erased.

Eg:

/env.list

ADMIN=admin
EMAIL=admin@email.com
PASSWORD=password
DEBUG=False
SECRET_KEY=your_secret_key

EMAIL_USE_TLS=True
EMAIL_HOST=smtp.gmail.com
EMAIL_HOST_USER=email_host@gmail.com
EMAIL_HOST_PASSWORD=email_host_password
EMAIL_PORT=587

Then remove the docker containers and rebuild them using the new /env.list file.

sudo docker stop doccano
sudo docker rm doccano
sudo docker run -d --name doccano --env-file /env.list -p 80:8000 chakkiworks/doccano:latest
sudo docker exec doccano tools/create-admin.sh ${ADMIN} ${EMAIL} ${PASSWORD}

@pranavrajt
Copy link

@bheuju I am facing the same issue as you are. Did you make the changes locally and then re-deploy using one click AWS deployment?
Or did you launch your own project using docker-compose? The latter doesnt make sense, because as you rightly mentioned, the UI does seem to be outdated.

@bheuju
Copy link
Author

bheuju commented Jun 2, 2020

@pranavrajt No not in the local. The file exists in the server at /env.list . I did not use docker-compose, but the docker image that the AWS one-click deployment uses by default. And yes, the docker-compose version of the UI does seem outdated but it is said to be the recent one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants