On Thu, 22 Apr 2021 17:42:35 +0200 Axel Braun <axel.br...@gmx.de> wrote:
> Hi Luis > > Am Sonntag, 18. April 2021, 18:17:15 CEST schrieb Luis Falcon: > > > On Sun, 18 Apr 2021 17:44:24 +0200 > > > > Axel Braun <axel.br...@gmx.de> wrote: > > > However, result remains the same - server is still looking for a > > > sqlite database with that name. > > > > That is a "catch-all" error message that appears when the trytond > > configuration file can't be found. > > OK..... > > > Setting the TRYTOND_CONFIG evironment variable should do the trick. > > > > https://en.wikibooks.org/wiki/GNU_Health/FHIR_REST_server mentions > still TRYTON_CONFIG, but both options dont work. > > > For instance, if your $HOME is /home/gnuhealth and you did the > > standard / vanilla installation, you should see this entry when > > typing the "export" BASH command. > > > > TRYTOND_CONFIG="/home/gnuhealth/gnuhealth/tryton/server/config/trytond.conf" > > > > This is the interesting thing: If I export the above line to the > shell and start the FHIR server afterwards, it works. Exactly. That's what the the $HOME/.gnuhealthrc profile does # Add Tryton server configuration file export TRYTOND_CONFIG=${GNUHEALTH_DIR}/tryton/server/config/trytond.conf >Just with the > variable in /usr/lib/python3.6/site-packages/server/config.py, it > does not. The config.py is a different beast and does not export the environment variable as we do in the .gnuhealthrc bash profile Best Luis