admin command doesn't work with abra 0.10? #6

Closed
opened 2025-01-13 13:56:37 +00:00 by fauno · 3 comments
Owner
abra-0.10 app cmd -o -C musica.sutty.abyaya.la api admin

Shows a lot of Django hints but fails with:

Superuser creation skipped due to not running in a TTY. You can run `manage.py createsuperuser` in your project to create one manually. 
```bash abra-0.10 app cmd -o -C musica.sutty.abyaya.la api admin ``` Shows a lot of Django hints but fails with: ``` Superuser creation skipped due to not running in a TTY. You can run `manage.py createsuperuser` in your project to create one manually. ```
Author
Owner

Manually fixed by running a shell to the api container and copy-pasting the admin function from abra.sh

abra-0.10 app run -o musica.sutty.abyaya.la api bash
export DJANGO_SECRET_KEY=$(cat /run/secrets/django_secret_key)

DATABASE_PASSWORD=$(cat /run/secrets/db_password)
export DATABASE_URL="postgres://funkwhale:$DATABASE_PASSWORD@db:5432/funkwhale"

python manage.py createsuperuser

Related #2

Manually fixed by running a shell to the api container and copy-pasting the admin function from abra.sh ```bash abra-0.10 app run -o musica.sutty.abyaya.la api bash export DJANGO_SECRET_KEY=$(cat /run/secrets/django_secret_key) DATABASE_PASSWORD=$(cat /run/secrets/db_password) export DATABASE_URL="postgres://funkwhale:$DATABASE_PASSWORD@db:5432/funkwhale" python manage.py createsuperuser ``` Related #2
Owner

@fauno

Superuser creation skipped due to not running in a TTY.

Does abra app cmd ... --tty work to fix this?

@fauno > Superuser creation skipped due to not running in a TTY. Does `abra app cmd ... --tty` work to fix this?
fauno self-assigned this 2025-01-14 12:25:01 +00:00
Author
Owner

Does abra app cmd ... --tty work to fix this?

Yes! Added it to the README at #7

> Does abra app cmd ... --tty work to fix this? Yes! Added it to the README at #7
fauno closed this issue 2025-02-06 20:57:49 +00:00
Sign in to join this conversation.
No description provided.