Hi tryton team ; I was about doing the same steps i did on my localhost to install tryton version 6 on a Linux server(debian) but i did’nt succeed, i do no why, the port i have tried with is 8080 because 8000 is already in use with another version of tryton. i have typed the command :
netstat -nat | grep 8080.
to see if it listenning, —> the result was: tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN
and those are the most important informations that i put in my trytond.conf
Thank you M.edbo for response , i just saw your response now ,
1/the hostname of the server is : hostname.com
tryton.hostname.com : it’s the hostname of the tryton version 5.0
and in trytond.conf of the version 6.0 i just put the same hostname of the version tryton 5.0.
//Am i wrong here?//
-About the command ping: ping tryton.hostname.com give me something like that 64 bytes from ping tryton.hostname.com: icmp_seq=21 ttl=64 time=0.423 ms
→ it works normally
**2/**now am working with 8081 in a linux server(debian) and i have opened it using router but still give me same error
Does your Linux server has a firewall active? If so, is port 8081 open in that firewall? I don’t know your network configuration, but when you haven’t done something for tryton 5.0 it is also not needed for tryton 6.0
But can you connect to tryton version 6 with the ‘normal’ client instead of sao?
the port is opened using the router, should i active the firewall to open it ?
About that i have update the database by :trytond-admin -vv -c trytond.conf -d data_tryton6 --all
then nohup bin/trytond -c trytond.conf --dev &
and finally when i type tryton in the terminal it gives me :
Unable to init server: Could not connect: Connection refused
Unable to init server: Connection failed : Connection refused
(tryton:43563): Gtk-ERROR **: 15:43:44.553: Can't create a GtkStyleContext without a display connection
I’m confused
What if you stop your trytond server 5 and change the port of the trytond.conf from your 6 version to 8000. So basically copy the trytond.conf from your version 5 to your version 6 environment. Change the paths and then run trytond. Can you connect now?
Also don’t use the & at the end when you start trytond. I use trytond -c trytond.conf -d <database> --dev. Make sure you have your virtual environment activated before you execute that command.
Unfortunately i change the port 8081 to 8000 in version and i had killed the id of the processus server of 5.0 to don’t be run on same time but always tell me on the browser
Firefox can’t establish a connection to the server at tryton.hostname.com:8000.
Indeed, the problem lay somewhere else. Maybe start from scratch again with a new virtual environment, installing trytond etc.
If needed, take a look at this script (sorry it’s german, but the commands should be familiar and @herrdeh did a great job in providing this script) https://nextcloud.rollentausch.eu/index.php/s/8sFxWsjg5qdTEyQ which walks you through the different steps. This script is for Ubuntu but it will also work on Debian. In short:
python3 -m venv --system-site-packages <env_name> and cd into it
yeah but the client ,when i type ""tryton" on terminal give me this error:
Unable to init server: Could not connect: Connection refused
Unable to init server: Connection failed : Connection refused
(tryton:43563): Gtk-ERROR **: 15:43:44.553: Can't create a GtkStyleContext without a display connection
Ok, that’s weird. What I normally do is downloading the most recent version of the client from https://downloads-cdn.tryton.org/6.0/ unpack is somewhere and run it. No installation, no virtual environment.
For example download a version and unpack it in /home/<you>/trytondev/ you will get a new folder inside it called tryton-<version>. To start the client: