Hello,
I am working on an automated setup for GnuHealth for use at our university.
Unfortunately I have problems starting the FHIR server remotely.
I installed gnuhealth-fhir-server via pip3 and then started the server_tornado application. This works so far, but only if I start it directly on the server (or via ssh).
However, if I want to start the FHIR server via ansible or supervisor, the program aborts because it can't find the config files.
Which is not quite understandable for me, since it had no problems to locate them otherwise.
This is the error message:
/home/gnuhealth/.local/lib/python3.6/site-packages/trytond/wsgi.py:19: DeprecationWarning: The import 'werkzeug.wsgi.SharedDataMiddleware' is deprecated and will be removed in Werkzeug 1.0. Use 'from werk$
from werkzeug.wsgi import SharedDataMiddleware
/usr/lib/python3/dist-packages/apport/report.py:13: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import fnmatch, glob, traceback, errno, sys, atexit, locale, imp, stat
Traceback (most recent call last):
File "/home/gnuhealth/.local/lib/python3.6/site-packages/server/server_tornado", line 13, in <module>
app = create_app() #DebugConfig
File "/home/gnuhealth/.local/lib/python3.6/site-packages/server/fhir_server.py", line 55, in create_app
tryton.init_app(app)
File "/home/gnuhealth/.local/lib/python3.6/site-packages/flask_tryton.py", line 68, in init_app
self.pool.init()
File "/home/gnuhealth/.local/lib/python3.6/site-packages/trytond/pool.py", line 160, in init
lang=lang, activatedeps=activatedeps)
File "/home/gnuhealth/.local/lib/python3.6/site-packages/trytond/modules/__init__.py", line 423, in load_modules
_load_modules(update)
File "/home/gnuhealth/.local/lib/python3.6/site-packages/trytond/modules/__init__.py", line 382, in _load_modules
graph = create_graph(module_list)
File "/home/gnuhealth/.local/lib/python3.6/site-packages/trytond/modules/__init__.py", line 149, in create_graph
info = get_module_info(module)
File "/home/gnuhealth/.local/lib/python3.6/site-packages/trytond/modules/__init__.py", line 87, in get_module_info
with tools.file_open(os.path.join(name, 'tryton.cfg')) as fp:
File "/home/gnuhealth/.local/lib/python3.6/site-packages/trytond/tools/misc.py", line 74, in file_open
raise IOError('File not found : %s ' % name)
OSError: File not found : /home/gnuhealth/.local/lib/python3.6/site-packages/trytond/modules/health_lab/tryton.cfg
It should be noted that it does not always miss the health_lab, but sometimes also another config file.
Can someone tell me about his experiences with the supervisor and gnuhealth/fhir or give a hint where the problem could be?
Thanks and kind regards
--
Mit besten Grüßen
Andreas Lenhardt