I had this error before I reinstalled ubuntu 22, tryton, trytond and postgres.
pip install trytond==6.4.16
pip install tryton==6.4.12
After fresh install still getting the error:
Could not connect to the server
Thanks
I had this error before I reinstalled ubuntu 22, tryton, trytond and postgres.
pip install trytond==6.4.16
pip install tryton==6.4.12
After fresh install still getting the error:
Could not connect to the server
Thanks
I think you need to provide more details in order to receive help.
I think it is better to tell what you have rather than what you had?
Trytond is a daemon (server) that needs to be running in order for tryton (client) to be able to connect to it.
How is trytond started?
If you provide logs from trytond, either a log file, or copy stdout if you are running trytond on the commandline.
Frankly, when testing I find it most useful to run trytond on the commandline so that I can see easily what trytond is doing.
trytond -c trytond.conf
(.my_env8) awes7@viion:~/projects/training8$ tryton
ERROR:tryton.rpc:502
ERROR:tryton.rpc:500
trytond.conf
[database]
uri = postgresql://postgres:postgres@localhost:5432/training8
# uri = postgresql://postgres:postgres@localhost:5442/training8
cors = 'http://localhost:8000'
[web]
listen = *:8000
allow_origin = http://localhost:8000
@awes7 Austin,
try this basic trytond.conf instead:
[database]
uri = postgresql://postgres:postgres@localhost/
Hi thanks, but still get an error:
(.my_env8) awes7@viion:~/projects/training8$ tryton
ERROR:tryton.rpc:502
ERROR:tryton.rpc:500
When connect tryton make sure that you connect to localhost:
tryton -s localhost
and trytond using the config file:
trytond -c trytond.conf
(.my_env8) awes7@viion:~/projects/training8$ tryton -s localhost
ERROR:tryton.rpc:502
ERROR:tryton.rpc:500
Maybe you have got some trytond-something modules missing on your my_env8
try:
trytond-console -c trytond.conf -d training8
If your get an error about FileNotFoundError: …site-packages/trytond/modules/something/tryton.cfg then, installed using pip and try again the trytond-console
(.my_env8) awes7@viion:~/projects/training8$ trytond-console -c trytond.conf -d training8
Tryton 6.4.16, Python 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] on linux
You always show the output of tryton, but never the output of trytond.
Does trytond indicate a successful start from the logs/stdout?
Make sure localhost points to localhost address(127.0.0.1). A decade ago I spent almost a day troubleshooting a connection issue, and localhost was redefined to some other address. Or try to connect to 127.0.0.1 instead.
When you get ERROR:tryton.rpc:502
, do you also get the corresponding output line from trytond?
I think you get that error on the client when you click on Manage… as it tries to connect to demo6.4.tryton.org
try the 6.6 branch:
pip uninstall trytond tryton -y
pip install tryton==6.6.11 trytond==6.6.13
(.my_env8) awes7@viion:~/projects/training8$ trytond -c trytond.conf
15178 140033757749248 [2023-10-24 22:21:30,005] INFO werkzeug WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
thank you very much that worked. Unfortunately, I wanted to use version 6.4 because I was using this us chart of accounts. GitHub - pentandra/account_us: tryton account_us module
I was able to get the us chart to work with 6.6, thanks.
This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.