[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Health-dev] Update database failed
From: |
Luis Falcon |
Subject: |
Re: [Health-dev] Update database failed |
Date: |
Thu, 5 Feb 2015 11:01:47 +0000 |
Hi Bounmy !
On Thu, 5 Feb 2015 16:43:59 +0700
Bounmy Sihaphom <address@hidden> wrote:
> On Thu, Feb 5, 2015 at 3:19 PM, Cédric Krier <address@hidden>
> wrote:
>
> > On 05 Feb 15:12, Bounmy Sihaphom wrote:
> > > Hi Luis and all!!
> > >
> > > I am having problems with updating our existing database with
> > > gnuhealth
> > 2.8
> > > when running:
> > > ./trytond --database=cmr28 --u=all
> >
> > You must explicitly give the configuration file with the option "-c"
> > Yes, it seems to work but after running :
> >
> ./trytond -c $TRYTOND_CONFIG
> It ask the tryton server password when create the new database, is it
> the same one we use serverpass.py to create ?
>
I just answered a mail related to this. We have the $TRYTOND_CONFIG
already in .gnuhealthrc file. You just need to source it after the
installation of the new kernel and before the update.
https://en.wikibooks.org/wiki/GNU_Health/Installation#Running_the_GNU_Health_Installer
Also, remember that Tryton 3.4 does not use --update=all anymore . Just
type
./trytond --all --database=your_db_name
for the update process.
Best,
Luis
>
> > > 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
> > >
> > > [database]
> > > jsonrpc = *:8000
> > > uri = postgresql://gnuhealth:address@hidden:5432/
> > > data_path = /home/gnuhealth/attach
> > >
> > > [session]
> > > super_pwd = tESfNNnB6gcaQ
> > > timezone = Asia/vientiane
> > --
> > Cédric Krier - B2CK SPRL
> > Email/Jabber: address@hidden
> > Tel: +32 472 54 46 59
> > Website: http://www.b2ck.com/
> >