Installationsprobleme

82 views
Skip to first unread message

Hans Normann

unread,
May 12, 2016, 5:21:38 AM5/12/16
to tryton-de
Versuche gerade Tryton zum installieren, mit mäßigem Erfolg. Aktuell hänge ich bein Starten des trytond Deamons. Hier das Startprotokoll

Mai 12 11:02:37 localhost.localdomain trytond[4576]: [Thu May 12 11:02:37 2016] INFO:server:using /etc/trytond.conf as configuration file
Mai 12 11:02:37 localhost.localdomain trytond[4576]: [Thu May 12 11:02:37 2016] INFO:server:initialising distributed objects services
Mai 12 11:02:37 localhost.localdomain trytond[4576]: Traceback (most recent call last):
Mai 12 11:02:37 localhost.localdomain trytond[4576]: File "/usr/bin/trytond", line 109, in <module>
Mai 12 11:02:37 localhost.localdomain trytond[4576]: trytond.server.TrytonServer(options).run()
Mai 12 11:02:37 localhost.localdomain trytond[4576]: File "/usr/lib/python2.7/site-packages/trytond/server.py", line 102, in run
Mai 12 11:02:37 localhost.localdomain trytond[4576]: self.start_servers()
Mai 12 11:02:37 localhost.localdomain trytond[4576]: File "/usr/lib/python2.7/site-packages/trytond/server.py", line 224, in start_servers
Mai 12 11:02:37 localhost.localdomain trytond[4576]: CONFIG['ssl_jsonrpc']))
Mai 12 11:02:37 localhost.localdomain trytond[4576]: File "/usr/lib/python2.7/site-packages/trytond/protocols/jsonrpc.py", line 359, in __init__
Mai 12 11:02:37 localhost.localdomain trytond[4576]: daemon.__init__(self, interface, port, secure, name='JSONRPCDaemon')
Mai 12 11:02:37 localhost.localdomain trytond[4576]: File "/usr/lib/python2.7/site-packages/trytond/protocols/common.py", line 32, in __init__
Mai 12 11:02:37 localhost.localdomain trytond[4576]: socket.AF_UNSPEC, socket.SOCK_STREAM):
Mai 12 11:02:37 localhost.localdomain trytond[4576]: socket.gaierror: [Errno -5] No address associated with hostname

Wo in aller Welt habe ich den Fehler zu suchen?

Hans Normann

unread,
May 12, 2016, 5:23:58 AM5/12/16
to tryton-de
Sorry, fast vergessen. Ich beutze Fedora 23 64Bit. Alle Pakete wurden per dnf (yumex) installiert

Hans Normann

unread,
May 12, 2016, 6:20:42 AM5/12/16
to tryton-de

OK, habe ich ja schneller gefunden als ich dachte. Der Wert für jsonrpc war falsch.

Und schon kommt das nächste Problem. Ich rufe den Client auf, will ein neues Profile erstellen und werde aufgefordert eine neue Datenbank zu erstellen. Ich kann mich auf den Kopf stellen, aber das Serverpasswort (sollte doch das gleiche sein wie das in der /etc/trytond.conf hinterlegte, oder?) wird nicht akzeptiert. Ich werde aufgefordert ein neues Passwort einzugeben, aber das Fenster "Datenbank erstellen" verweigert jeden Dienst. Ich kann weder irgendeinen Knopf bedienen noch ein neues Passwort eingeben. Da hilft nur noch ein kill -9 .....

Mathias Behrle

unread,
May 12, 2016, 6:30:45 AM5/12/16
to tryt...@googlegroups.com
* Hans Normann: " [tryton-de] Installationsprobleme" (Thu, 12 May 2016 02:21:37
-0700 (PDT)):
In der Konfiguration (/etc/trytond.conf) vermutlich.

Du verwendest anscheinend eine Version < 3.4.

Für diese Version sollte etwas in der Art

[options]
# Activate the json-rpc protocol
jsonrpc = localhost:8000
#ssl_jsonrpc = False

eingetragen sein.

Viele Grüße,
Mathias

--

Mathias Behrle
MBSolutions
Gilgenmatten 10 A
D-79114 Freiburg

Tel: +49(761)471023
Fax: +49(761)4770816
http://www.m9s.biz
UStIdNr: DE 142009020
PGP/GnuPG key availabable from any keyserver, ID: 0x8405BBF6

Mathias Behrle

unread,
May 12, 2016, 6:58:04 AM5/12/16
to tryt...@googlegroups.com
* Hans Normann: " [tryton-de] Re: Installationsprobleme" (Thu, 12 May 2016
03:20:41 -0700 (PDT)):
Du musst vermutlich die Servereinstellungen für die Datenbank konfigurieren.
Ohne Kenntnis deines Systems, deiner Einstellungen und der Fehlermeldungen lässt
sich hierzu leider nur vermuten... Poste doch einige zusätzliche Infos.

Hans Normann

unread,
May 12, 2016, 7:15:38 AM5/12/16
to tryton-de
Fedora scheint ja nicht gerade auf dem Laufenden zu sein

[root@localhost etc]# dnf info tryton
Letzte Prüfung auf abgelaufene Metadaten: vor 0:28:31 am Thu May 12 12:23:32 2016.
Installierte Pakete
Name        : tryton
Arch        : noarch
Epoch       : 0
Version     : 2.6.1
Release     : 6.fc23
Größe       : 4.0 M
Paketquelle : @System
Aus Paketqu : fedora


[root@localhost etc]# dnf info trytond
Letzte Prüfung auf abgelaufene Metadaten: vor 0:38:22 am Thu May 12 12:23:32 2016.
Installierte Pakete
Name        : trytond
Arch        : noarch
Epoch       : 0
Version     : 2.6.2
Release     : 5.fc23
Größe       : 4.6 M
Paketquelle : @System
Aus Paketqu : fedora
Zusammenfas : Server for the Tryton application framework
URL         : http://www.tryton.org


Bin zumindest jetzt soweit gekommen, dass die Datenbank angelegt wurde (ir* und res* Tabellen und Sequenzen sind installiert). Jetzt kämpfe ich weiter mit dem Login.  Das System akzeptiert weder admin noch tryton als Login.

Und hier noch die /etc/trytond.conf

#This file is part of Tryton.  The COPYRIGHT file at the top level of
#this repository contains the full copyright notices and license terms.

[options]

# Activate the json-rpc protocol
jsonrpc = [::]:8000
#ssl_jsonrpc = False

# This is the hostname used when generating tryton URI
#hostname_jsonrpc =

# Configure the path of json-rpc data
#jsondata_path = /var/www/localhost/tryton

# Activate the xml-rpc protocol
#xmlrpc = *:8069
#ssl_xmlrpc = False

# Activate the webdav protocol
#webdav = *:8080
#ssl_webdav = False

# This is the hostname used when generating WebDAV URI
#hostname_webdav =

# Configure the database type
# allowed values are postgresql, sqlite, mysql
db_type = postgresql

# Configure the database connection
## Note: Only databases owned by db_user will be displayed in the connection dialog
## of the Tryton client. db_user must have create permission for new databases
## to be able to use automatic database creation with the Tryton client.
db_host = localhost
db_port = 8000
#db_user = False
db_user = tryton
db_password = XXXXXXXXXX
#db_password = False
#db_minconn = 1
#db_maxconn = 64

# Configure the postgresql path for the executable
#pg_path = None

# Configure the Tryton server password
#admin_passwd = admin

# Configure the path of the files for the pid and the logs
#pidfile = False
#logfile = False

#privatekey = server.pem
#certificate = server.pem

# Configure the SMTP connection
#smtp_server = localhost
#smtp_port = 25
#smtp_ssl = False
#smtp_tls = False
#smtp_password = False
#smtp_user = False

# Configure the path to store attachments and sqlite database
#data_path = /var/lib/trytond

# Allow to run more than one instance of trytond
#multi_server = False

# Configure the session timeout (inactivity of the client in sec)
#session_timeout = 600

# Enable auto-reload of modules if changed
#auto_reload = True

# Prevent database listing
#prevent_dblist = False

# Enable cron
# cron = True

# unoconv connection
#unoconv = pipe,name=trytond;urp;StarOffice.ComponentContext

# Number of retries on database operational error
# retry = 5

# Default database language code
# language = en_US

# Timezone of the server
# timezone = False



Mathias Behrle

unread,
May 12, 2016, 7:42:35 AM5/12/16
to tryt...@googlegroups.com
* Hans Normann: " Re: [tryton-de] Re: Installationsprobleme" (Thu, 12 May 2016
04:15:38 -0700 (PDT)):

> Fedora scheint ja nicht gerade auf dem Laufenden zu sein

Die 2.6 ist in der Tat einigermaßen betagt und mittlerweile aus den
unterstützten Serien herausgefallen. Gibt es vielleicht irgendwelche Backports?
Du solltest dich mit admin und dem bei Erstellung der Datenbank vergebenen
Passwort anmelden können.

Evtl. musst du den Client beenden, die known_hosts unter ~/.config/tryton/2.6
löschen, den Client neu starten, wenn sich die Verbindungseinstellungen bzgl.
SSL geändert haben.

Udo Spallek

unread,
May 12, 2016, 8:23:12 AM5/12/16
to tryt...@googlegroups.com
Hi,

Thu, 12 May 2016 04:15:38 -0700 (PDT)
Hans Normann <hans.g....@gmail.com>:
...
># Configure the database type
># allowed values are postgresql, sqlite, mysql
>db_type = postgresql
>
># Configure the database connection
>## Note: Only databases owned by db_user will be displayed in the
>connection dialog
>## of the Tryton client. db_user must have create permission for new
>databases
>## to be able to use automatic database creation with the Tryton
>client. db_host = localhost
>db_port = 8000

der Postgres Port ist standardmäßig 5432,

>#db_user = False
>db_user = tryton

es könnte vielleicht auch sein, dass der Datenbankuser tryton keine
neuen Datenbanken anlegen darf.

Best Udo Spallek

--
_____________________________
virtual things
Preisler & Spallek GbR
München - Aachen

Windeckstr. 77
81375 München
Tel: +49 (89) 710 481 55
Fax: +49 (89) 710 481 56

in...@virtual-things.biz
http://www.virtual-things.biz

Hans Normann

unread,
May 12, 2016, 9:06:08 AM5/12/16
to tryton-de
Und wie der das darf ;)

tryton-# \du
                                Liste der Rollen
 Rollenname |                      Attribute                      | Mitglied von
------------+-----------------------------------------------------+--------------
 nor        | Superuser, Rolle erzeugen, DB erzeugen              | {}
 postgres   | Superuser, Rolle erzeugen, DB erzeugen, Replikation | {}
 tryton     | Superuser, Rolle erzeugen, DB erzeugen              | {}

tryton-#

Also mit Port 8000 lief ja zumindest  schon mal die Initialisierung der Datenbank (ir* und res* Objekte) aber  einloggen geht nicht, auch nicht, nachdem ich den Port auf 5432 geändert und trytond neu gestartet habe.

Was ist da für ein Durcheinander mit den Ports? Wo für ist 8000 und 5432? Ich dachte 8000 ist für die Verbindung Client / Trytond Server zuständig, während 5432 den Traffic zwischen Postgres und Trytond abhandelt.

ich habe einmal den Client im Verbose-Modus gestartet.
[nor@localhost ~]$ tryton
/usr/lib/python2.7/site-packages/tryton/gui/window/dblogin.py:604: GtkWarning: Theme directory base/ of theme oxygen has no size field

  self.dialog.show_all()
[nor@localhost ~]$ tryton --verbose
/usr/lib/python2.7/site-packages/tryton/gui/window/dblogin.py:604: 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(nor, xxxxxxxxxx)
INFO:tryton.rpc:model.res.user.get_preferences(None, '', True, {})
INFO:tryton.rpc:common.server.version(None, None)
INFO:tryton.rpc:common.db.login(admin, xxxxxxxxxx)
ERROR:tryton.common.common:Traceback (most recent call last):
  File "/trytond/protocols/jsonrpc.py", line 123, in _marshaled_dispatch
    response['result'] = dispatch_method(method, params)
  File "/trytond/protocols/jsonrpc.py", line 156, in _dispatch
    res = dispatch(*args)
  File "/trytond/protocols/dispatcher.py", line 37, in dispatch
    res = security.login(database_name, user, session)
  File "/trytond/security.py", line 21, in login
    user_id = User.get_login(loginname, password)
  File "/trytond/res/user.py", line 475, in get_login
    'WHERE login = %s', (login,))
  File "/trytond/backend/postgresql/database.py", line 307, in execute
    res = self.cursor.execute(sql, params)
TransactionRollbackError: FEHLER:  kann Zugriff nicht serialisieren wegen gleichzeitiger Aktualisierung


FEHLER:  kann Zugriff nicht serialisieren wegen gleichzeitiger Aktualisierung

INFO:tryton.rpc:common.db.logout(None, )

Welcher Lümmel fummelt da an meinen Daten herum? Ich bin doch einzelkämpfer ;)

Axel Braun

unread,
May 13, 2016, 7:27:09 AM5/13/16
to tryton-de
Moin,


Am Donnerstag, 12. Mai 2016 13:42:35 UTC+2 schrieb Mathias Behrle:
* Hans Normann: " Re: [tryton-de] Re: Installationsprobleme" (Thu, 12 May 2016
  04:15:38 -0700 (PDT)):

> Fedora scheint ja nicht gerade auf dem Laufenden zu sein

Die 2.6 ist in der Tat einigermaßen betagt und mittlerweile aus den
unterstützten Serien herausgefallen. Gibt es vielleicht irgendwelche Backports?

3.0 is doch die älteste unterstüzte Version zur Zeit, oder?

Man kann einfach mal die SUSE Pakete nehmen und es versuchen....oder Fedora als Build Target im OBS hinterlegen...mal sehen, wenn ich Zeit habe...

Hans Normann

unread,
May 13, 2016, 8:13:23 AM5/13/16
to tryton-de

...oder Fedora als Build Target im OBS hinterlegen...mal sehen, wenn ich Zeit habe...

(Noch) böhmische Dörfer für mich. 2.6 vs 4.0, das ist ein ziemlicher Versionssprung. Das hätte mich in der Vergangenheit einige Nächte gekostet, das ERP System auf den neusten Stand zu bringen. Hatte deshalb einen neuen Thread gestartet (Neuinstallation / Update). Werde wohl erst einmal 4.0.1 installieren bevor ich euch weiter löchere ;)
Reply all
Reply to author
Forward
0 new messages