Greetings; I have successfully started the standalone trytond, and now I am trying to run trytond behind uWSGI. My environment: Postgres 9.6 Python 3.6 trytond 4.4.1 sao 4.4.1 uwsgi (installed via pip3) 2.0.15
Here is the iwsgi .ini file (tryton.ini): [uwsgi] uid = user gid = user master = True # start in master mode http = :8000 # bind to port 8000 workers = 1 # run 4 worker processes virtualenv = /opt/Tryton file = /opt/Tryton/trytond-4.4.4/trytond/application.py env = TRYTOND_CONFIG = /opt/Tryton/etc/trytond.conf chdir = /opt/Tryton/trytond-4.4.4/trytond Here is trytond.conf: # /etc/tryton/trytond.conf - Configuration file for Tryton Server # (trytond, trytond-admin, trytond-cron) [web] # Settings for the web interface # The IP/host and port number of the interface listen = localhost:8000 # The hostname for this interface #hostname = # The root path to retrieve data for GET requests root = /opt/Tryton/sao-4.4.4 [database] # Database related settings # The URI to connect to the SQL database (following RFC-3986) uri = PostgreSQL://username:'password'@localhost:5432 # The path to the directory where the Tryton Server stores files. # The server must have write permissions to this directory. # (Internal default: /var/lib/trytond) path = /opt/Tryton/var/lib/files [session] # Session settings # The time (in seconds) until an inactive session expires timeout = 300 When I start uwsgi, I get the following errors: (Tryton) root@host [/opt/Tryton]# /opt/python36/bin/uwsgi /opt/Tryton/etc/tryton.ini [uWSGI] getting INI configuration from /opt/Tryton/etc/tryton.ini *** Starting uWSGI 2.0.15 (64bit) on [Tue Oct 24 15:53:37 2017] *** compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-16) on 05 October 2017 22:04:37 os: Linux-3.10.0-714.10.2.lve1.4.63.el7.x86_64 #1 SMP Sun Aug 20 17:46:23 EDT 2017 nodename: host.mysite.com machine: x86_64 clock source: unix pcre jit disabled current working directory: /opt/Tryton detected binary path: /opt/python36/bin/uwsgi setgid() to group setuid() to user chdir() to /opt/Tryton/trytond-4.4.4/trytond your processes number limit is 14335 your memory page size is 4096 bytes detected max file descriptor number: 4096 lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) uWSGI http bound on :8000 fd 4 uwsgi socket 0 bound to TCP address 127.0.0.1:23274 (port auto-assigned) fd 3 Python version: 3.6.2 (default, Aug 5 2017, 01:12:58) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] PEP 405 virtualenv detected: /opt/Tryton Set PythonHome to /opt/Tryton *** Python threads support is disabled. You can enable it with --enable-threads *** Python main interpreter initialized at 0x14f9980 your server socket listen backlog is limited to 100 connections your mercy for graceful operations on workers is 60 seconds mapped 145536 bytes (142 KB) for 1 cores *** Operational MODE: single process *** /opt/Tryton/lib/python3.6/site-packages/trytond-4.4.4-py3.6.egg/trytond/modules/__init__.py:143: DeprecationWarning: This method will be removed in future versions. Use 'parser.read_file()' instead. module_config.readfp(fp) unable to find "application" callable in file /opt/Tryton/trytond-4.4.4/trytond/application.py unable to load app 0 (mountpoint='') (callable not found or import error) *** no app loaded. going in full dynamic mode *** *** uWSGI is running in multiple interpreter mode *** spawned uWSGI master process (pid: 1210) spawned uWSGI worker 1 (pid: 1212, cores: 1) spawned uWSGI http 1 (pid: 1213) ^CSIGINT/SIGQUIT received...killing workers... gateway "uWSGI http 1" has been buried (pid: 1213) worker 1 buried after 1 seconds goodbye to uWSGI. (Tryton) root@host [/opt/Tryton]# -- You received this message because you are subscribed to the Google Groups "tryton" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/6b6b6a1f-b813-4386-bb0d-01741d010b56%40googlegroups.com.