bugGNU Health - Bugs: bug #44182, 2.8 installer fails with...


You are not allowed to post comments on this tracker with your current authentication level.

bug #44182: 2.8 installer fails with "TRYTOND_CONFIG variable not set"

Submitted by:  Carlos Escutia Chávez <carlosescutia>
Submitted on:  Tue 03 Feb 2015 09:27:15 PM UTC  
Category:  Installation Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Release:  2.8.0
Module:  Installer

( Jump to the original submission)

Sun 08 Feb 2015 07:32:10 PM UTC, comment #6: 

Fixed in changeset 1837:689a171ee5af

Luis Falcon <meanmicio>
Project Administrator
Sun 08 Feb 2015 07:28:51 PM UTC, comment #5: 

Hi Carlos !

Thanks for the feedback, although this question / issue is not related to the original problem ("TRYTOND_CONFIG variable not set")

Please send a mail to -email is unavailable- and we'll work from there.


Luis Falcon <meanmicio>
Project Administrator
Thu 05 Feb 2015 09:59:16 PM UTC, comment #4: 

Hi Luis,

I can create DBs with the gnuhealth user:

admon@health28:~$ su - gnuhealth
gnuhealth@health28:~ $ createdb prueba --encoding=unicode
gnuhealth@health28:~ $ psql -d template1
psql (9.3.5)
Type "help" for help.

template1=> \l
                                  List of databases
   Name    |   Owner   | Encoding |   Collate   |    Ctype    |   Access privileges  
 postgres  | postgres  | UTF8     | es_MX.UTF-8 | es_MX.UTF-8 |
 prueba    | gnuhealth | UTF8     | es_MX.UTF-8 | es_MX.UTF-8 |
 template0 | postgres  | UTF8     | es_MX.UTF-8 | es_MX.UTF-8 | =c/postgres          +
           |           |          |             |             | postgres=CTc/postgres
 template1 | postgres  | UTF8     | es_MX.UTF-8 | es_MX.UTF-8 | =c/postgres          +
           |           |          |             |             | postgres=CTc/postgres
(4 rows)

template1=> \q
gnuhealth@health28:~ $ ----------------------------------------------------------------

But I'm still unable to create databases from the tryton client, which fails with the same message: "Could not connect to the server", while the server logs "INFO:database:connect to template1"

Is there a way to get more verbose log output from the server?


Carlos Escutia Chávez <carlosescutia>
Thu 05 Feb 2015 09:31:40 PM UTC, comment #3: 

Hi, Carlos !

Yes, that's the last step on the new installation. You're fine.

The password you generate with serverpass is the "Tryton Super User" password. That password is requested when creating, deleting or backing up databases from the client.

The error that you're getting now is not related to that password. It looks like is related to the permissions the gnuhealth user (at operating system level) has at postgreSQL level.

Are you able to create a DB from gnuhealth from the OS (eg, createdb foo --encoding=unicode)

Check that you were able to create the DB user

Let us know if you are able to create the DB now.


Luis Falcon <meanmicio>
Project Administrator
Thu 05 Feb 2015 03:43:42 PM UTC, comment #2: 

Hi Luis, and thanks for your quick response

when running the serverpass utility, it asks for a password, something the installer didn't do on previous versions. A password is provided, and it finishes with no errors:

[09:20:17][INFO] Setting up your GNU Health Tryton master server password
Using Tryton configuration file  /home/gnuhealth/gnuhealth/tryton/server/config/trytond.conf
Es demasiado corta.
Configuration file updated with new password !

[09:25:52][INFO] Cleaning Up...
[09:25:52][INFO] OK.

[09:25:52][INFO] Installed successfully in /home/gnuhealth/gnuhealth.

but when I try to create a new database from the client, it fails with "Could not connect to the server", and the server just logs "INFO:database:connect to "template1" (screenshot attached). I suppose its a problem of mismatching passwords.


Carlos Escutia Chávez <carlosescutia>
Tue 03 Feb 2015 10:21:12 PM UTC, comment #1: 

Hi Carlos

Thanks for reporting !

The error is coming from the serverpass utility, only when is the first installation.

You need to source the GNU Health RC file

$ source $HOME/.gnuhealthrc

Then run the serverpass utility

cd gnuhealth/tryton/server/util
python ./serverpass.py

Then follow the next steps in the installation guide.

I will update the guide accordingly .

Let us know if it works for you.


Luis Falcon <meanmicio>
Project Administrator
Tue 03 Feb 2015 09:27:15 PM UTC, original submission:  

OS: Ubuntu Linux 14.04 x86_64
gnuhealth version: 2.8

When installing version 2.8, following the official guide from http://en.wikibooks.org/wiki/GNU_Health/Installation, it fails with the following message:

"TRYTOND_CONFIG variable not set and No configuration file specified"

Carlos Escutia Chávez <carlosescutia>


Attached Files


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by meanmicio (Posted a comment)
  • -email is unavailable- added by carlosescutia (Submitted the item)
  • -email is unavailable- added by carlosescutia

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-02-08 meanmicio Open/ClosedOpen => Closed
        Discussion LockUnlocked => Locked
    2015-02-08 meanmicio StatusReady For Test => Fixed
        ReleaseNone => 2.8.0
    2015-02-05 carlosescutia Attached File- => Added gnuhealth_no_db.png, #33002
    2015-02-03 meanmicio StatusNone => Ready For Test
    2015-02-03 carlosescutia Carbon-Copy- => Added carlosescutia

    Back to the top

    Powered by Savane 3.7