health-dev
[Top][All Lists]
Advanced

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

[Health-dev] gnuhealth fhir server 0.9b3 does not find database


From: Axel Braun
Subject: [Health-dev] gnuhealth fhir server 0.9b3 does not find database
Date: Wed, 14 Apr 2021 20:40:46 +0200

Hi,

I'm trying to get the new FHIR server running.
Changes to /usr/lib/python3.6/site-packages/server/config.py were made for the
targeted database (ghdemo36)

(NB: I feel this kind of config should go somehwere into /etc )

However, the FHIR server does not find the running Postgres-Database and is
looking for a sqlite-database:

localhost:/home/test # python3 /usr/lib/python3.6/site-packages/server/
fhir_server.py
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/server/fhir_server.py", line 130, in
<module>
    create_app().run(debug=True)
  File "/usr/lib/python3.6/site-packages/server/fhir_server.py", line 55, in
create_app
    tryton.init_app(app)
  File "/usr/lib/python3.6/site-packages/flask_tryton.py", line 67, in
init_app
    with Transaction().start(database, user, readonly=True):
  File "/usr/lib/python3.6/site-packages/trytond/transaction.py", line 93, in
start
    database = Database(database_name).connect()
  File "/usr/lib/python3.6/site-packages/trytond/backend/sqlite/database.py",
line 265, in connect
    raise IOError('Database "%s" doesn\'t exist!' % db_filename)
OSError: Database "ghdemo36.sqlite" doesn't exist!

I feel a link to the server config could be beneficial to find the right
database. Or is there some hidden config?

Thanks
Axel





reply via email to

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