Hi,
If I run flaskj local it works. But the use of uWSGI is not working.
I am rather dumbfounded by the below where I get this error
unable to find "application" callable in file /var/zenapi/wsgi.py
but...the file and app there! Why can it be found? I even added the below
to the path per the below. Is this an
uwsgi:
pidfile: /var/run/api.pid
loop: gevent
gevent: 20
carbon: 127.0.0.1:2003
socket: 127.0.0.1:8030
processes: 2
b: 32768
master: true
enable-threads: true
listen: 100
logto2: /tmp/api.log
touch-reload: /var/zenapi/wsgi.py
master-fifo: /tmp/uwsgi_api_master_fifo
wsgi-file: /var/zenapi/wsgi.py
pp: [/var/zenapi/,/var/zenapi/app/]
your processes number limit is 31538
your memory page size is 4096 bytes
detected max file descriptor number: 1024
- async cores set to 20 - fd table size: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to TCP address 127.0.0.1:8030 fd 3
Python version: 2.7.6 (default, Jun 22 2015, 18:01:27) [GCC 4.8.2]
Python main interpreter initialized at 0xaac2c0
[carbon] added server 127.0.0.1:2003
[carbon] carbon plugin started, 60s frequency, 3s timeout, max retries 0,
retry delay 7s
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 805152 bytes (786 KB) for 40 cores
*** Operational MODE: preforking+async ***
added [/var/zenapi/,/var/zenapi/app/] to pythonpath.
file /var/zenapi/wsgi.py
unable to load app 0 (mountpoint='') (callable not found or import error)
try:
import uwsgi
except:
pass
import os
running_in_pydev = 'PYDEV_CONSOLE_ENCODING' in os.environ
from app import app
if __name__ == '__main__':
if running_in_pydev:
app.run(debug = True, host='0.0.0.0')
else:
app.run(debug = False, host='0.0.0.0')
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi