[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Health-dev] Error setting up demo database
From: |
Axel Braun |
Subject: |
[Health-dev] Error setting up demo database |
Date: |
Sat, 01 Feb 2014 13:05:01 +0100 |
User-agent: |
KMail/4.11.4 (Linux/3.11.6-4-desktop; KDE/4.11.4; x86_64; ; ) |
Hi Gents,
I'm currently setting up a demo database on a local test system, and run into
the following dump:
------
opensuse:/home/tryton # python
/usr/share/doc/packages/gnuhealth/demo/health_demo_server.py
No handlers could be found for logger "party"
Traceback (most recent call last):
File "/usr/share/doc/packages/gnuhealth/demo/health_demo_server.py", line
228, in <module>
options.demo_password)
File "/usr/share/doc/packages/gnuhealth/demo/health_demo_server.py", line
195, in main
config = set_config(database, password)
File "/usr/share/doc/packages/gnuhealth/demo/health_demo_server.py", line
26, in set_config
return pconfig.set_trytond(database, password=password)
File "/usr/lib/python2.7/site-packages/proteus/config.py", line 260, in
set_trytond
language=language, password=password, config_file=config_file)
File "/usr/lib/python2.7/site-packages/proteus/config.py", line 201, in
__init__
with Transaction().start(None, 0) as transaction:
File "/usr/lib/python2.7/site-packages/trytond/transaction.py", line 77, in
start
database = Database().connect()
File "/usr/lib/python2.7/site-
packages/trytond/backend/postgresql/database.py", line 68, in connect
self._connpool = ThreadedConnectionPool(minconn, maxconn, dsn)
File "/usr/lib64/python2.7/site-packages/psycopg2/pool.py", line 156, in
__init__
self, minconn, maxconn, *args, **kwargs)
File "/usr/lib64/python2.7/site-packages/psycopg2/pool.py", line 58, in
__init__
self._connect()
File "/usr/lib64/python2.7/site-packages/psycopg2/pool.py", line 62, in
_connect
conn = psycopg2.connect(*self._args, **self._kwargs)
File "/usr/lib64/python2.7/site-packages/psycopg2/__init__.py", line 164, in
connect
conn = _connect(dsn, connection_factory=connection_factory, async=async)
psycopg2.OperationalError: FATAL: Peer authentication failed for user
"tryton"
----
I'm not sure that what the problem behind it is, but it looks that if the
script expects a different user to run it under.
Having a look at the code:
if __name__ == '__main__':
parser = OptionParser(usage="Usage: %prog [options]")
parser.add_option('-d', '--database', dest='database',
default='gnuhealth_demo', help='database name [default: %default]')
parser.add_option('-p', '--password', dest='password',
default='admin', help='admin password [default: %default]')
parser.add_option('-m', '--module', dest='modules', action='append',
help='module to install', default=[
'health',
'health_socioeconomics',
'health_lifestyle',
'health_genetics',
'health_icd10',
'health_gyneco',
'health_pediatrics',
'health_surgery',
'health_lab',
'health_inpatient',
'health_who_essential_medicines',
])
parser.add_option('--demo_password', dest='demo_password',
default='demo', help='demo password [default: %default]')
options, args = parser.parse_args()
if len(args) > 0:
parser.error('Too much args!')
sys.argv = [] # clean argv for trytond
main(options.database, options.modules, options.password,
options.demo_password)
--
it seems to me that the user cant be set.
What do you propose?
Thx
Axel
signature.asc
Description: This is a digitally signed message part.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Health-dev] Error setting up demo database,
Axel Braun <=