health-dev
[Top][All Lists]
Advanced

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

Re: [Health-dev] Connecting to local database


From: Ramakrishna, K (RK)
Subject: Re: [Health-dev] Connecting to local database
Date: Thu, 6 Feb 2014 21:28:33 +0530

Dear Alex,
Thank you for your attention.
Is your database running?
>> Yes, I believe, from ps -eaf output:: postgres 28129     1  0 20:27 ?        00:00:00 /usr/lib/postgresql/9.1/bin/postgres -D /var/lib/postgresql/9.1/main -c config_file=/etc/postgresql/9.1/main/postgresql.conf

Is tryton server running?
>> Yes, I believe, from the command line
/trytond
/home/gnuhealth/gnuhealth/tryton/server/trytond-3.0.2/trytond/modules/__init__.py:37: UserWarning: Module trytond was already imported from /home/gnuhealth/gnuhealth/tryton/server/trytond-3.0.2/trytond/__init__.pyc, but /usr/lib/python2.7/dist-packages is being added to sys.path import pkg_resources
[Thu Feb 06 15:31:27 2014] INFO:server:using /etc/trytond.conf as configuration file
[Thu Feb 06 15:31:27 2014] INFO:server:initialising distributed objects services
[Thu Feb 06 15:31:27 2014] INFO:server:starting JSON-RPC protocol on localhost:8000

Are you connecting from localhost?
>>Yes.
how does your trytond.conf look?
It is default /etc/trytond.conf

I am attaching the conf file, the error I am getting when trying to connect and when I try to create a DB.

Also, I tried using the conf file in trytond directory.. but it didn't help either,


./trytond -c /home/gnuhealth/gnuhealth/tryton/server/trytond-3.0.2/etc/trytond.conf
/home/gnuhealth/gnuhealth/tryton/server/trytond-3.0.2/trytond/modules/__init__.py:37: UserWarning: Module trytond was already imported from /home/gnuhealth/gnuhealth/tryton/server/trytond-3.0.2/trytond/__init__.pyc, but /usr/lib/python2.7/dist-packages is being added to sys.path
  import pkg_resources
[Thu Feb 06 15:53:09 2014] INFO:server:using /home/gnuhealth/gnuhealth/tryton/server/trytond-3.0.2/etc/trytond.conf as configuration file
[Thu Feb 06 15:53:09 2014] INFO:server:initialising distributed objects services
[Thu Feb 06 15:53:09 2014] INFO:server:starting JSON-RPC protocol on *:8000



Tryton and Postgres are installed newly as a pre-requisite for gnuhealth.


Thanks and Regards,
RK


On Wed, Feb 5, 2014 at 11:51 PM, Axel Braun <address@hidden> wrote:
Am Mittwoch, 5. Februar 2014, 12:40:39 schrieb Ramakrishna, K:
> Hello All,
>
> In the process of GNU health installation, When I am trying to create a new
> profile , from tryton client, after enter a profile name and localhost, I
> am getting error "Could not connect to Database".
> Can you please advise how to troubleshoot and fix this error.

Is your database running?
Is tryton server running?
Are you connecting from localhost?
how does your trytond.conf look?

Cheers/Axel

Attachment: error_whiletrying_tocreateDB.png
Description: PNG image

Attachment: client_error.png
Description: PNG image

Attachment: trytond.conf
Description: Binary data


reply via email to

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