On Friday, September 22, 2017 at 3:37:38 PM UTC, Axel Braun wrote:
> Am 22. September 2017 16:32:14 OESZ schrieb "Cédric Krier"
> <[email protected]>:
> >On 2017-09-22 03:55, Maah Moussa wrote:
> >> Hello Tryton Community,
> >> The *.dump from the Tryton 3.8 client platform copied to the new
> >server converted to *.sql through command: pg_restore -f *.dump *.sql
> >>
> >> psql -c "CREATE USER gnuhealth WITH CREATEDB;"
> >> createdb gnuhealth0 –owner=gnuhealth
> >> psql gnuhealth0 < /directory/*.sql
> >>
> >> psql -c "ALTER DATABASE gnuhealth0 OWNER to tryton;"
> >> psql -c "GRANT gnuhealth to tryton;"
> >>
> >> psql -c "CREATE USER tryton WITH CREATEDB;"
> >>
> >> The DB gnuhealth0 shows in the tryton 4.2 client but trying to
> >connect the message comes up:
> >> Traceback (most recent call last):
> >> File "/trytond/wsgi.py", line 47, in dispatch_request
> >> return endpoint(request, **request.view_args)
> >> File "/trytond/protocols/dispatcher.py", line 41, in rpc
> >> request, database_name, *request.rpc_params)
> >> File "/trytond/protocols/dispatcher.py", line 53, in login
> >> database_name, user, parameters, language=language)
> >> File "/trytond/security.py", line 24, in login
> >> User = pool.get('res.user')
> >> File "/trytond/pool.py", line 170, in get
> >> return self._pool[self.database_name][type][name]
> >> KeyError: 'res.user'
> >> Sometimes Missing dependencies: ['purchase_request']
>
> Is the module purchase_request installed?
>
> >
> >You have to follow the migration path from 3.8 to 4.2:
> >https://discuss.tryton.org/c/migration
> >And perform an update of the database:
> >http://doc.tryton.org/4.4/trytond/doc/topics/setup_database.html#topics-setup-database
>
> Please see the README. SUSE as well for upgrade hints
>
> Cheers
> Axel
It seems to be installed.
I have been using the README.SUSE. I also get this message when trying to
upgrade the database in the current situation:
Traceback (most recent call last):
File "/usr/bin/trytond-admin", line 21, in <module>
admin.run(options)
File "/usr/lib/python3.4/site-packages/trytond/admin.py", line 24, in run
with Transaction().start(db_name, 0):
File "/usr/lib/python3.4/site-packages/trytond/transaction.py", line 87, in
start
database = Database(database_name).connect()
File
"/usr/lib/python3.4/site-packages/trytond/backend/postgresql/database.py", line
94, in connect
minconn, maxconn, self.dsn(self.name))
File "/usr/lib64/python3.4/site-packages/psycopg2/pool.py", line 156, in
__init__
self, minconn, maxconn, *args, **kwargs)
File "/usr/lib64/python3.4/site-packages/psycopg2/pool.py", line 58, in
__init__
self._connect()
File "/usr/lib64/python3.4/site-packages/psycopg2/pool.py", line 62, in
_connect
conn = psycopg2.connect(*self._args, **self._kwargs)
File "/usr/lib64/python3.4/site-packages/psycopg2/__init__.py", line 164, in
connect
conn = _connect(dsn, connection_factory=connection_factory, async=async)
psycopg2.OperationalError: FATAL: role "root" does not exist
Thanks
Maah Moussa
--
You received this message because you are subscribed to the Google Groups
"tryton" group.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tryton/5f312804-11c2-443d-9f9b-6d134fb2c7db%40googlegroups.com.