Demo Docker Image not running

Hi all,

I’m new to Tryton and try to set up the downloaded docker image. I tried several times, Tryton is running under port 8080 (the only thing I changed) but I cannot login.

I did all steps described here: https://hub.docker.com/r/tryton/tryton/

But no success. Here the log:

server-1 | 12 140384589885504 [2025-03-14 16:59:03,122] INFO trytond.modules all modules loaded
server-1 | Traceback (most recent call last):
server-1 | File “/usr/local/bin/trytond-admin”, line 33, in
server-1 | admin.run(options)
server-1 | File “/usr/local/lib/python3.11/dist-packages/trytond/admin.py”, line 84, in run
server-1 | email = input(
server-1 | ^^^^^^
server-1 | EOFError: EOF when reading a line
server-1 | [2025-03-14 16:59:05 +0000] [13] [INFO] Starting gunicorn 20.1.0
server-1 | [2025-03-14 16:59:05 +0000] [13] [INFO] Listening at: http://0.0.0.0:8000 (13)
server-1 | [2025-03-14 16:59:05 +0000] [13] [INFO] Using worker: sync
server-1 | [2025-03-14 16:59:05 +0000] [14] [INFO] Booting worker with pid: 14
server-1 | 14 140379141107776 [2025-03-14 17:00:10,297] ERROR trytond.security login failed for ‘admin’ from ‘172.18.0.1’ on database ‘tryton’
server-1 | 14 140379141107776 [2025-03-14 17:00:13,787] ERROR trytond.security login failed for ‘admin’ from ‘172.18.0.1’ on database ‘tryton’
server-1 | 14 140379141107776 [2025-03-14 17:03:48,288] ERROR trytond.security login failed for ‘admin’ from ‘172.18.0.1’ on database ‘tryton’
postgres-1 | 2025-03-14 17:03:49.350 UTC [62] LOG: checkpoint starting: time
postgres-1 | 2025-03-14 17:05:02.581 UTC [62] LOG: checkpoint complete: wrote 730 buffers (4.5%); 1 WAL file(s) added, 0 removed, 0 recycled; write=73.019 s, sync=0.132 s,
total=73.232 s; sync files=653, longest=0.005 s, average=0.001 s; distance=5729 kB, estimate=5729 kB; lsn=0/1EA1120, redo lsn=0/1EA1090

Any hints?

Thanks.

I think you forgot the -ti when setup the database.

This shows that the input was closed when the script tried to read the email input.
So I guess the command was run on docker without an interactive terminal.

You must relaunch trytond-admin with the option --password to set the admin password.

Many thanks for the answer. As a copy+paste pro, I didn’t forget the -ti of course. Anyway, I finally got Tryton to work. Don’t ask me what I did wrong the first few times I tried.

I did it with this deploy.sh script:

#!/bin/sh

# Remove existing containers if they exist
docker rm -f tryton-postgres tryton tryton-cron tryton-postgres-1 2>/dev/null
docker ps -a --filter "ancestor=tryton/tryton" --format "{{.ID}}" | xargs docker rm -f

# Start PostgreSQL
docker run --name tryton-postgres -e POSTGRES_PASSWORD=test1234 -e POSTGRES_DB=tryton -d postgres

# Wait for PostgreSQL to be ready
echo "Waiting for PostgreSQL to be ready..."
until docker exec tryton-postgres pg_isready -U postgres; do
    sleep 2
done

# Initialize Tryton Database
docker run --link tryton-postgres:postgres -e DB_PASSWORD=test1234 -it tryton/tryton trytond-admin -d tryton --all

# Start Tryton Server
docker run --name tryton -p 9090:8000 --link tryton-postgres:postgres -e DB_PASSWORD=test1234 -d tryton/tryton

# Start Tryton Cron
docker run --name tryton-cron --link tryton-postgres:postgres -e DB_PASSWORD=test1234 -d tryton/tryton trytond-cron -d tryton


This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.