On 2017-09-22 10:20, Maah Moussa wrote:
> > Is the module purchase_request installed?
> >
> It seems to be installed.
But it must be activated on the database so the update must be:
--all -u purchase_request
This is a new module on which new version of activated module depends.
> 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
The configuration of the database connection seems to be wrong.
On 2017-09-22 10:15, Maah Moussa wrote:
> On Friday, September 22, 2017 at 1:35:07 PM UTC, Cédric Krier wrote:
> Is the migration path a must to be used in any way the dump is taken, gnuhealth-control or client dump when moving between series?
I do not know about gnuhealth-control.
But migration must always be done when changing the version.
> Do I need to follow from 3.8 to 4.0 then 4.0 to 4.2?
Yes, all the migration operation must be done.
You can just made the database update on the last one normally.
> Does it matter before or after restoring the database?
You can not do the migration before restoring the database because you
do not have a database to update.
> How to apply this SQL queries into SQL plain text on OpenSUSE? A hint
> on how to apply [SQL] or [PY] changes would be much appreciated. the
> command is not available.
Run the sql query using the psql command:
https://www.postgresql.org/docs/9.2/static/app-psql.html