GNU Health Tryton start error

Hello. Am trying to learn GNU Health, beginning with the installation instructions:

Tried to initialise the database with the following (GNU/Linux) command terminal:

python3 [/full/path/to…]/trytond-admin --all --database=health

Terminal error report:
Traceback (most recent call last):
File “trytond-admin”, line 21, in
File “/home/gnuhealth/gnuhealth/tryton/server/trytond-5.0.20/trytond/”, line 25, in run
with Transaction().start(db_name, 0, _nocache=True):
File “/home/gnuhealth/gnuhealth/tryton/server/trytond-5.0.20/trytond/”, line 93, in start
database = Database(database_name).connect()
File “/home/gnuhealth/gnuhealth/tryton/server/trytond-5.0.20/trytond/backend/sqlite/”, line 265, in connect
raise IOError(‘Database “%s” doesn’t exist!’ % db_filename)
OSError: Database “healthtrial.sqlite” doesn’t exist!

Any advice please to investigate?

You must create a trytond.cfg which defines the database connection. See Configuration file for Tryton — trytond 5.5 documentation
I do not recommend using SQLite. It is only for developer testing.

Sqlite has never been installed manually; is this installed during the installation of the GNU Health modules including Tryton?


You do not need to install anything to use sqlite. Furthermore, sqlite is the default database driver for Tryton (and GNU Health).

So if you want to use PostgreSQL (wich is recomended) you should install the database driver and create a configuration file where you specify the postgresql database uri.

My configuration file looks like this:

uri = postgresql://
path = /root
language = es
listen = *:8000

When you configure PostgreSQL you need to be sure that PostgreSQL access rules are correct on pg_hba.conf and postgresql.conf , otherwise you will have permissions problems.