El 26/10/17 a les 02:16, Cédric Krier ha escrit:
(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 [Wed Oct 25 16:13:07 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
detected number of CPU cores: 4
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:29116 (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 main interpreter initialized at 0x1eeb9f0
python threads support enabled
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 166144 bytes (162 KB) for 2 cores
*** Operational MODE: threaded ***
/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)
So here it does not find the object to call.
It should be app. I guess you must configure: mountpoint='app' but I can
not confirm because I can not understand the uwsgi documentation.

You should use trytond.mapplication:app as uwsgi module to load. Here is a minimal configuration that works for us:

[uwsgi] http-socket=0.0.0.0:8000
module=trytond.application:app

Hope it helps.


--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

--
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/28055461-031d-bef0-2a16-21051bf3d6b3%40koolpi.com.

Reply via email to