[Top][All Lists]

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

[Health-dev] Setup gnuhealth and fhir server with supervisord+ansible

From: Andreas Lenhardt
Subject: [Health-dev] Setup gnuhealth and fhir server with supervisord+ansible
Date: Sat, 17 Apr 2021 13:06:27 +0200


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/ 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/ 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/", line 55, in create_app
  File "/home/gnuhealth/.local/lib/python3.6/site-packages/", line 68, in init_app
  File "/home/gnuhealth/.local/lib/python3.6/site-packages/trytond/", line 160, in init
    lang=lang, activatedeps=activatedeps)
  File "/home/gnuhealth/.local/lib/python3.6/site-packages/trytond/modules/", line 423, in load_modules
  File "/home/gnuhealth/.local/lib/python3.6/site-packages/trytond/modules/", line 382, in _load_modules
    graph = create_graph(module_list)
  File "/home/gnuhealth/.local/lib/python3.6/site-packages/trytond/modules/", line 149, in create_graph
    info = get_module_info(module)
  File "/home/gnuhealth/.local/lib/python3.6/site-packages/trytond/modules/", 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/", 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

reply via email to

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