Unable to log tryton using uWSGI

I am not able to generate the logs using uWSGi. Please let me know what I am doing wrong here -

  1. tryton.ini
master = True # start in master mode
#http = :8020 # bind to port 8000
processes = 20 # run 4 worker processes
virtualenv = /opt/tryton
file = /opt/tryton/src/tryton/wsgi.py
env = TRYTOND_CONFIG=/etc/trytond/trytond.conf
env = TRYTOND_LOGGING_CONFIG=/etc/trytond/logconf.conf
socket = tryton.sock
vaccuum = true
die-on-terms = true
chmod-socket = 660
  1. logconf.conf



format=%(asctime)s] %(levelname)s:%(name)s:%(message)s
datefmt=%a %b %d %H:%M:%S %Y

args=('/var/log/tryton/tryton.log', 'D', 1, 30)

  1. prak@system:/var/log⟫ ls -l | grep tryton
    drwxrwxrwx 2 tryton www-data 4096 Jul 19 15:34 tryton

You should have a tryton.log inside this folder with the logging messages.

Make sure that your server is running with the tryton user so it’s able to write on this folder.

Opening an old topic. This still seems not to be working. Any ideas ??

I do not know what is the content of this wsgi.py but you must run trytond.application.app to have full environment features.

Thanks @ced. This worked.

For the other members of community, the contents of the wsgi.py file are given below. This will show what I was doing wrong:

#from trytond.wsgi import app

from trytond.application import app
application = app

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.