taiga-back icon indicating copy to clipboard operation
taiga-back copied to clipboard

Superuser creation skipped due to not running in a TTY

Open zippo-lighter opened this issue 3 years ago • 2 comments

Cannot create superuser when installing from Docker Got following error: Superuser creation skipped due to not running in a TTY. You can run `manage.py createsuperuser` in your project to create one manually.

To Reproduce Docker version 20.10.5 Docker-compose version 1.28.5 Followed steps listed at 30min Setup

Taiga environment docker

Screenshots image

  • OS: Windows 10
  • Docker Linux Containers

zippo-lighter avatar Apr 06 '21 14:04 zippo-lighter

Hi @zippo-lighter ,

I have tried to reproduce your bug with no luck. I've been able to create the super user, both in linux and Windows 10 (using Docker Desktop).

Have you tried to do what is suggested in your screenshot?. Instead of executing taiga-manage.sh from the machine that hosts the docker containers, try to start and run the python script by connecting to the taiga-backrunning container:

PS H:\TEMP\taiga-docker-stable> docker exec -it taiga-docker-stable_taiga-back_1 bash
root@921f7f92d4e9:/taiga-back# python manage.py createsuperuser
Username: taiga
Email address: [email protected]
Password: 
Password (again): 
Superuser created successfully.

If that doesn't either fix the problem, I would need further information, like:

  • What are the logs you get executing python manage.py directly?
  • Do you see something in the docker-compose logs?
  • Can you share your docker-compose.yml?

Thanks in advance

daniel-herrero avatar Jun 14 '21 11:06 daniel-herrero

Hi, I have the same problem in windows 10. I tried @daniel-herrero script. It works with some changes: First check your container id that have "back" in the name. In my env I found this: "taiga-docker-taiga-back-1". Second add 'winpty' before command:

 MINGW64 ~/taiga/taiga-docker (stable)
$ winpty docker exec -it taiga-docker-taiga-back-1 bash
root@2110a95a4f0c:/taiga-back# python manage.py createsuperuser
Username: admin
Email address: [email protected]
Password:
Password (again):
Superuser created successfully.
root@2110a95a4f0c:/taiga-back#

Abdipour avatar Oct 23 '21 12:10 Abdipour