health
[Top][All Lists]
Advanced

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

Re: [Health] installation problem on unix


From: Dirk Willems
Subject: Re: [Health] installation problem on unix
Date: Mon, 4 Sep 2017 16:09:48 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

Hello Luis,


Installed the gtar and now is working fine, server is listen on *:8000 :)


address@hidden:~$ ./trytond --verbose

24348 1 [2017-09-03 22:22:43,611] INFO trytond.modules purchase_request:registering classes
24348 1 [2017-09-03 22:22:43,614] INFO trytond.modules stock_supply:registering classes
24348 1 [2017-09-03 22:22:43,659] INFO werkzeug  * Running on http://192.168.1.42:8000/ (Press CTRL+C to quit)


address@hidden:/export/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.6/bin $ nohup ./trytond &
[1] 25690

address@hidden:/export/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.6/bin $ netstat -an | grep 8000

192.168.1.42.8000          *.*                0      0 128000      0 LISTEN


Tried to create the database

address@hidden:/export/home/gnuhealth $ createdb vic --encoding=unicode --local=C --template=template0


postgres-# \l
                                  List of databases
   Name    |   Owner   | Encoding |   Collate   |    Ctype    |   Access privileges  
-----------+-----------+----------+-------------+-------------+-----------------------
 postgres  | postgres  | UTF8     | en_US.UTF-8 | en_US.UTF-8 |
 template0 | postgres  | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +
           |           |          |             |             | postgres=CTc/postgres
 template1 | postgres  | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +
           |           |          |             |             | postgres=CTc/postgres
 vic       | gnuhealth | UTF8     | C           | C           |
(4 rows)



Database is created but when running the trytond-admin it goes wrong ...

address@hidden:/export/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.6/bin $ ./trytond-admin --all --database=vic
Traceback (most recent call last):
  File "./trytond-admin", line 21, in <module>
    admin.run(options)
  File "/export/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.6/trytond/admin.py", line 24, in run
    with Transaction().start(db_name, 0):
  File "/export/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.6/trytond/transaction.py", line 87, in start
    database = Database(database_name).connect()
  File "/export/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.6/trytond/backend/postgresql/database.py", line 94, in connect
    minconn, maxconn, self.dsn(self.name))
  File "/export/home/gnuhealth/.local/lib/python3.6/site-packages/psycopg2/pool.py", line 161, in __init__
    self, minconn, maxconn, *args, **kwargs)
  File "/export/home/gnuhealth/.local/lib/python3.6/site-packages/psycopg2/pool.py", line 58, in __init__
    self._connect()
  File "/export/home/gnuhealth/.local/lib/python3.6/site-packages/psycopg2/pool.py", line 62, in _connect
    conn = psycopg2.connect(*self._args, **self._kwargs)
  File "/export/home/gnuhealth/.local/lib/python3.6/site-packages/psycopg2/__init__.py", line 130, in connect
    conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: fe_sendauth: no password supplied


drop the database and tried with

address@hidden:/export/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.6/bin $ ./trytond-admin -c
 /export/home/gnuhealth/gnuhealth/tryton/server/config/trytond.conf -d vic --all -v -p
25809 1 [2017-09-04 13:23:39,491] INFO trytond.backend.postgresql.database connect to "vic"
Traceback (most recent call last):
  File "./trytond-admin", line 21, in <module>
    admin.run(options)
  File "/export/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.6/trytond/admin.py", line 24, in run
    with Transaction().start(db_name, 0):
  File "/export/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.6/trytond/transaction.py", line 87, in start
    database = Database(database_name).connect()
  File "/export/home/gnuhealth/gnuhealth/tryton/server/trytond-4.2.6/trytond/backend/postgresql/database.py", line 94, in connect
    minconn, maxconn, self.dsn(self.name))
  File "/export/home/gnuhealth/.local/lib/python3.6/site-packages/psycopg2/pool.py", line 161, in __init__
    self, minconn, maxconn, *args, **kwargs)
  File "/export/home/gnuhealth/.local/lib/python3.6/site-packages/psycopg2/pool.py", line 58, in __init__
    self._connect()
  File "/export/home/gnuhealth/.local/lib/python3.6/site-packages/psycopg2/pool.py", line 62, in _connect
    conn = psycopg2.connect(*self._args, **self._kwargs)
  File "/export/home/gnuhealth/.local/lib/python3.6/site-packages/psycopg2/__init__.py", line 130, in connect
    conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: fe_sendauth: no password supplied


Any suggestions what I miss or can I created the database completely manually ?

Thanks in advance.

Kind Regards,

Dirk



On 22-08-17 14:03, Luis Falcon wrote:
Hi Dirk !

On Mon, 21 Aug 2017 19:19:58 +0200
Dirk Willems <address@hidden> wrote:

Hello Luis,

The filesystem is openzfs http://www.open-zfs.org/wiki/Main_Page
I have used ZFS with FreeBSD and not had any issues.

Try to uncompress
ftp://ftp.gnu.org/gnu/health/gnuhealth-latest.tar.gz with bsdtar and
check if you don't get the files truncated.

Bests


--
Dirk Willems
System Engineer


+32 (0)3 443 12 38
address@hidden

Quality. Passion. Personality

www.exitas.be | Veldkant 31 | 2550 Kontich

Illumos OmniOS Installation and Configuration Implementation Specialist.
Oracle Solaris 11 Installation and Configuration Certified Implementation Specialist.

reply via email to

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