it executes without errors, but it does not ask me to enter the admin email or password (the usual initialization step). As a result, the database name new_database does not appear in the Tryton interface (SAO). Why is this happening, and what am I missing?
in trytond.conf , here is how I put the database section
[database]
uri = postgresql:///
Ps: I have already tried to create another virtualenv and install modules one by one and install sao same as in the server and then restore data before initialization but same thing happen i can not see the database in the trytond when I go to browser, the thing happen always when I restore data before initalization (trytond-admin -c trytond.conf -vv -d new_database --all -vv) as I say it doesnât even ask me to enter password or email , itâs running silently
126077 140165519484608 [2026-04-19 15:45:39,150] INFO trytond.pool setup mixin for ânew_databaseâ
126077 140165519484608 [2026-04-19 15:45:39,150] INFO trytond.modules all modules loaded
126077 140166021963840 [2026-04-19 15:45:39,268] INFO werkzeug * Running on http://0.0.0.0:8000/ (Press CTRL+C to quit) and I go to http://0.0.0.0:8000/ and I canât see the database
[database]
uri = postgresql://admin:secretpassword@localhost/
â>so then when I typed again trytond-admin -c trytond.conf -vv -d new_database --all
trytond.backend.postgresql.database connection to ânew_databaseâ succeeded 135347 139933203255360 [2026-04-19 17:52:32,309] INFO trytond.admin init db Traceback (most recent call last): File â/home/dev/.virtualenvs/trytond6/bin/trytond-adminâ, line 23, in admin.run(options) File â/home/dev/.virtualenvs/trytond6/lib/python3.11/site-packages/trytond/admin.pyâ, line 31, in run database.init() File â/home/dev/.virtualenvs/trytond6/lib/python3.11/site-packages/trytond/backend/postgresql/database.pyâ, line 364, in init cursor.execute(line) File â/home/dev/.virtualenvs/trytond6/lib/python3.11/site-packages/trytond/backend/postgresql/database.pyâ, line 72, in execute cursor.execute(self, sql, args) psycopg2.errors.DuplicateTable: relation âir_configuration_id_seqâ already exists
----->I fixed this error via sql queries
ALTER DATABASE ânew_databaseâ OWNER TO admin; ALTER SCHEMA public OWNER TO admin; DO $$ DECLARE r RECORD; BEGIN FOR r IN SELECT tablename FROM pg_tables WHERE schemaname = âpublicâ LOOP EXECUTE âALTER TABLE public.â || quote_ident(r.tablename) || â OWNER TO adminâ; END LOOP; FOR r IN SELECT sequencename FROM pg_sequences WHERE schemaname = âpublicâ LOOP EXECUTE âALTER SEQUENCE public.â || quote_ident(r.sequencename) || â OWNER TO adminâ; END LOOP; END; $$;
but then when I typed again trytond-admin -c trytond.conf -vv -d new_database --all( it doesnât even ask me to enter email admin or password and confirm it again , the command running silently) and after go again to browser
In my localhost I did the restore via psql -U developer -d new_database -W < /home/developer/database_tryton.sql
Name | Owner | Access privileges
new_database | developer |
in trytond.conf
[database]
uri = postgresql://developer:xxxxx@localhost:5432/
list = True
After trytond-admin -c trytond.conf -vv -d new_database --all
â>there is no database list in the trytond Interface
Ps: even when I tried to again create database and linked to owner postgres like in the server via CREATE DATABASE ânew_databaseâ OWNER postgres ENCODING âUTF8â LC_COLLATE âen_US.UTF-8â LC_CTYPE âen_US.UTF-8â TEMPLATE template0;
>the same thing happen no database shown on the dropdown list login and when i run trytond-admin -c trytond.conf -vv -d new_database --all
>it doesnt show me the option to enter manually email for the admin or type the password and when I go to browser i can not see this database
If you have setup an hostname in the ir.configuration, the database will only be visible for request to that same hostname.
If you do not want this filter anymore, you can just clear the value from the table.