* Shaifali Agrawal: " [tryton] [Errno -2] Name or service not known" (Tue, 25
  Feb 2014 03:30:55 -0800 (PST)):

> Hello
> 
> I am trying to install Tryton client and server on Ubuntu; but not 
> succeeding; don't know why error 2 is coming wheneer I try to connect/run 
> Tryton. Here is all what I done up till now to install and configure Tryton:
> 
> sudo apt-get install tryton-client
> sudo apt-get install tryton-server tryton-modules-all
> 
> opened  /usr/share/doc/tryton-server/README.Debian dile and followed its 
> instructions as follow:
> 
> 0. sudo /etc/init.d/postgresql* restart            #Worked
> 1. sudo su - postgres -c "createuser --createdb --no-createrole 
> --no-superuser \
>        --pwprompt tryton"                           #Worked
> 
> 2. Adjust /etc/trytond.conf to reflect the setup of your system and use the
>      database user and password from step 1 for db_user and db_password.  
> So here I opened /etc/trytond.conf file and replace
>  #db_user = False
> #db_password = False
> to
> #db_user = tryton
> #db_password = tryton

Please remove the # at the beginning of the lines, so that the settings take
effect (restart the server once more after the change).

> 3./etc/init.d/tryton-server restart # Here getting* error*, but start works 
> for me instead restart
> 
>  following 4 and 5 are optional,  I tried to execute them too
> 
> 4. sudo su - postgres -c "createdb --encoding=UNICODE --owner=tryton 
> tryton"   #Worked
> 5. sudo /usr/bin/trytond -i all -d tryton    *#
> Error:*psycopg2.OperationalError: FATAL:  role "root" does not exist
> 
> 
> Also provided read permissions to tryton configuration file: 
> sudo chmod 777 /etc/trytond.conf 

Not necessary and too open. The passwords in the trytond.conf shouldn't be
world readable. chmod 660 should be sufficient in any way (ownership to the
tryton user assumed).
 
> In order to run Tryton I only type tryton in terminal--> tryton appliction 
> start(I think its client one) then It ask for login where username and 
> password does not work.
> I have tried many combines of username and password: demo, demo; admin, 
> admin; tryton, tryton;
> 
> Each time I get *[Errno -2] Name or service not known*

First get the server running (see above). Then the most simple way to create a
database is with the client. To log into the database you have to use the
credentials you used while creating it.



-- 

    Mathias Behrle
    MBSolutions
    Gilgenmatten 10 A
    D-79114 Freiburg

    Tel: +49(761)471023
    Fax: +49(761)4770816
    http://m9s.biz
    UStIdNr: DE 142009020
    PGP/GnuPG key availabable from any keyserver, ID: 0x8405BBF6

Attachment: signature.asc
Description: PGP signature

Reply via email to