health
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Health] Patch


From: Luis Falcon
Subject: Re: [Health] Patch
Date: Mon, 9 Oct 2017 17:49:35 +0100

Hi Ulf !


On Mon, 9 Oct 2017 18:17:17 +0200
Ulf Eriksson <address@hidden> wrote:

> HI
> 
> I havent succeded with the upgrade.
> My problem appears when i try to run the command:
> ./trytond-admin --update=health_services --database=mydb -v
> The database is a postgresql type.
> 
> [image: Infogad bild 1]
> 

> linux:/usr/bin # ./trytond-admin --update=health_services
> --database=mydb -v Traceback (most recent call last):
>   File "./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/sqlite/database.py",
> line 242, raise IOError('Database "%s" doesn\'t exist!' % db_filename)
> OSError: Database "mydb.sqlite" doesn't exist!
> linux:/usr/bin #

You are running the update process with the user "root". That it not a
good idea... on the standard installation, it should be run with the
user "gnuhealth"

It looks like is not taking the configuration file.... (you might need
to pass it explicitly with the --config argument and the location of
the trytond.conf ).

Let me put it on the mailing list so we can all shed some light, since
it looks like you're using a distro-based installation.

Bests
Luis



reply via email to

[Prev in Thread] Current Thread [Next in Thread]