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
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
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*
Please help me in configuring, why am getting this error?