[database]
uri = postgresql://tryton:XXXXXXXX@localhost:5432/
path = /var/lib/trytond
[options]
jsonrpc = [::]:8000
db_type = postgresql
db_host = localhost
db_port = 5432
db_user = tryton
db_password = XXXXXXXXX
[database]
uri = postgresql://tryton:XXXXXXXX@localhost:5432/
path = /var/lib/trytond
OK, allePakete per dnf entfernt und per pip neu installiert. Ergebnis: Nichts geht
Die Datei /etc/trytond.conf wurde nicht angelegt. OK, habe einach die alte Datei kopiert.
IOError: Database "postgres://tryton.sqlite" doesn't exist!
Wer sagt, dass ich eine sqlite-Datenbank verwenden will? Da scheint das System die alte /etc/trytond.conf auch nicht mehr zu verstehen.
#This file is part of Tryton. The COPYRIGHT file at the top level of
#this repository contains the full copyright notices and license terms.
[database]
#xxxxxxx = password im Klartext(?)
uri = postgresql://tryton:XXXXXXXX@localhost:5432/
path = /var/lib/trytond
[web]
listen = [::]:8000
hostname = localhost
[session]
super_pwd = YYYYYYYY
Mal wieder einen
kleinen Schritt weitergekommen. Ich behaupte einmal, dass die Verbindung zur Posgresql Datenbank steht. Fragt sich jetzt, warum ich sofort wieder raus geschmissen werde?
[nor@localhost ~]$ tryton --verbose
/usr/lib/python2.7/site-packages/tryton/gui/window/dblogin.py:573: GtkWarning: Theme directory base/ of theme oxygen has no size field
self.dialog.show_all()
INFO:tryton.rpc:common.server.version(None, None)
INFO:tryton.rpc:common.db.login(tryton, xxxxxxxxxx)
INFO:tryton.rpc:common.db.logout()
LOG: Verbindung empfangen: Host=localhost Port=44934
LOG: Verbindung authorisiert: Benutzer=tryton Datenbank=tryton
LOG: Verbindungsende: Sitzungszeit: 0:05:37.723 Benutzer=tryton Datenbank=tryton Host=localhost port=44924
[root@localhost trytond]# systemctl status trytond -l
● trytond.service - Tryton server
Loaded: loaded (/usr/lib/systemd/system/trytond.service; enabled; vendor preset: disabled)
Active: active (running) since Mo 2016-05-16 17:29:10 CEST; 2min 3s ago
Main PID: 29908 (trytond)
CGroup: /system.slice/trytond.service
└─29908 /usr/bin/python /usr/bin/trytond --config /etc/trytond.conf --pidfile=/var/lib/trytond/trytond.pid --logconf=/etc/trytondlog.conf
Mai 16 17:30:49 localhost.localdomain trytond[29908]: tryton
Mai 16 17:30:49 localhost.localdomain trytond[29908]: Mon May 16 15:30:49 2016] INFO:trytond.backend.postgresql.database:postgresql connect
Mai 16 17:30:49 localhost.localdomain trytond[29908]: Mon May 16 15:30:49 2016] INFO:trytond.backend.postgresql.database:postgresql connection
Mai 16 17:30:49 localhost.localdomain trytond[29908]: DEBUG: CommitTransaction
Mai 16 17:30:49 localhost.localdomain trytond[29908]: DEBUG: name: unnamed; blockState: STARTED; state: INPROGR, xid/subid/cid: 0/1/0, nestlvl: 1, children:
Mai 16 17:30:49 localhost.localdomain trytond[29908]: tryton
Mai 16 17:30:49 localhost.localdomain trytond[29908]: Mon May 16 15:30:49 2016] INFO:trytond.backend.postgresql.database:postgresql connect
Mai 16 17:30:49 localhost.localdomain trytond[29908]: Mon May 16 15:30:49 2016] INFO:trytond.backend.postgresql.database:postgresql connection
Mai 16 17:30:49 localhost.localdomain trytond[29908]: Mon May 16 15:30:49 2016] INFO:werkzeug:::1 - - [16/May/2016 15:30:49] "POST /tryton/ HTTP/1.1" 200 -
Mai 16 17:30:59 localhost.localdomain trytond[29908]: Mon May 16 15:30:59 2016] INFO:werkzeug:::1 - - [16/May/2016 15:30:59] "POST /tryton/ HTTP/1.1" 200 -
[root@localhost trytond]#
.... Das admin user password wird nur während des Anlegens ....