The Wayback Machine - https://web.archive.org/web/20200520095202/https://github.com/doccano/doccano/issues/663
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

Signup verification email not received #663

Open
bheuju opened this issue Apr 2, 2020 · 2 comments
Open

Signup verification email not received #663

bheuju opened this issue Apr 2, 2020 · 2 comments

Comments

@bheuju
Copy link

@bheuju 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?

@srbek-cmd
Copy link

@srbek-cmd srbek-cmd commented Apr 21, 2020

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 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}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants
You can’t perform that action at this time.