[Top][All Lists]

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

[Health-dev] Update database failed

From: Bounmy Sihaphom
Subject: [Health-dev] Update database failed
Date: Thu, 5 Feb 2015 15:12:43 +0700

Hi Luis and all!!

I am having problems with updating our existing database with gnuhealth 2.8 when running:
./trytond --database=cmr28 --u=all

Here is the error message:
 File "./trytond", line 80, in <module>
  File "/home/gnuhealth/gnuhealth/tryton/server/trytond-3.4.1/trytond/", line 75, in run
    with Transaction().start(db_name, 0) as transaction:
  File "/home/gnuhealth/gnuhealth/tryton/server/trytond-3.4.1/trytond/", line 84, in start
    database = Database(database_name).connect()
  File "/home/gnuhealth/gnuhealth/tryton/server/trytond-3.4.1/trytond/backend/postgresql/", line 67, in connect
    self._connpool = ThreadedConnectionPool(minconn, maxconn, dsn)
  File "/home/gnuhealth/.local/lib/python2.7/site-packages/psycopg2/", line 156, in __init__
    self, minconn, maxconn, *args, **kwargs)
  File "/home/gnuhealth/.local/lib/python2.7/site-packages/psycopg2/", line 58, in __init__
  File "/home/gnuhealth/.local/lib/python2.7/site-packages/psycopg2/", line 62, in _connect
    conn = psycopg2.connect(*self._args, **self._kwargs)
  File "/home/gnuhealth/.local/lib/python2.7/site-packages/psycopg2/", line 164, in connect
    conn = _connect(dsn, connection_factory=connection_factory, async=async)
psycopg2.OperationalError: FATAL:  password authentication failed for user "gnuhealth"
FATAL:  password authentication failed for user "gnuhealth"

Here is my trytond.conf

jsonrpc = *:8000
uri = postgresql://gnuhealth:address@hidden:5432/
data_path = /home/gnuhealth/attach

super_pwd = tESfNNnB6gcaQ
timezone = Asia/vientiane

I am not sure which password we are using here, I have run the and got the password.

Best Regards;

Bounmy Sihaphom

On Wed, Feb 4, 2015 at 5:21 AM, Luis Falcon <address@hidden> wrote:
Update of bug #44182 (project health):

                  Status:                    None => Ready For Test


Follow-up Comment #1:

Hi Carlos

Thanks for reporting !

The error is coming from the serverpass utility, _only_ when is the first

You need to source the GNU Health RC file

$ source $HOME/.gnuhealthrc

Then run the serverpass utility

cd gnuhealth/tryton/server/util
python ./

Then follow the next steps in the installation guide.

I will update the guide accordingly .

Let us know if it works for you.



Reply to this item at:


  Message sent via/by Savannah

reply via email to

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