Some days ago, I did a clean install of ubuntu on a new SSD. Alongside came a new docker install with tryton 5.6 onboard. I tried to find a simple enough way to just move the dockerfile, but all instructions I found were awfully complicated. In the end, I tried to update my old (5.4) database to 5.6, export a sqldump and import that to the new docker. Now when I log into the docker webif, I get this error (no matter which password I type):
Traceback (most recent call last):
File "/usr/local/lib/python37/dist-packages/trytond/wsgipy", line 109, in dispatch_request
return endpoint(request, **requestview_args)
File "/usr/local/lib/python37/dist-packages/trytond/protocols/dispatcherpy", line 48, in rpc
request, database_name, *requestrpc_params)
File "/usr/local/lib/python37/dist-packages/trytond/protocols/dispatcherpy", line 63, in login
database_name, user, parameters, context=context)
File "/usr/local/lib/python37/dist-packages/trytond/securitypy", line 33, in login
user_id = Userget_login(loginname, parameters)
File "/usr/local/lib/python37/dist-packages/trytond/res/userpy", line 639, in get_login
LoginAttemptadd(login)
File "/usr/local/lib/python37/dist-packages/trytond/res/userpy", line 761, in wrapper
return func(cls, login[:clsloginsize], *args, **kwargs)
File "/usr/local/lib/python37/dist-packages/trytond/res/userpy", line 775, in add
'ip_network': str(ip_network),
File "/usr/local/lib/python37/dist-packages/trytond/model/modelsqlpy", line 159, in wrapper
return func(cls, *args, **kwargs)
File "/usr/local/lib/python37/dist-packages/trytond/model/modelsqlpy", line 676, in create
clstrigger_create(records)
File "/usr/local/lib/python37/dist-packages/trytond/model/modelstoragepy", line 76, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python37/dist-packages/trytond/model/modelstoragepy", line 166, in trigger_create
triggers = Triggerget_triggers(cls__name__, 'create')
File "/usr/local/lib/python37/dist-packages/trytond/ir/triggerpy", line 178, in get_triggers
('on_%s' % mode, '=', True),
File "/usr/local/lib/python37/dist-packages/trytond/model/modelsqlpy", line 1317, in search
cursorexecute(*select)
File "/usr/local/lib/python37/dist-packages/trytond/backend/postgresql/databasepy", line 69, in execute
cursorexecute(self, sql, args)
psycopg2ProgrammingError: column aaction does not exist
LINE 1: SELECT "a""id" AS "id", "a""action" AS "action", "a""acti
^
HINT: Perhaps you meant to reference the column "aactive"
My questions are:
- Can the above error be resolved easily ?
- What is the recommended strategy to move and existing tryton docker to another machine?
- Or should I install tryton 5.4 at the new docker to avoid the update trouble (for the moment)?
Sorry to cause so much problems again…
Wolf
PS: At the first glance, the docker solution looked promising. But after some time of dealing with it I get the impression that you really should have some experience with docker if you want to use it with tryton. Tryton is not so easy - but docker adds another thick layer of complexity… ):