[Python] Deploy con nginx e proxy_pass

Luca luca800 a gmail.com
Ven 3 Gen 2014 14:36:24 CET


nono, ho controllato

(wall)root a wadev:/dati/wall# python -c"import greenlet;print
greenlet.__version__"
0.4.1



2014/1/3 Roberto De Ioris <roberto a unbit.it>

>
> > Ok, come diceva Alessandro in realtà non siamo nemmeno riusciti a fare
> > dei test con uWSGI e il plugin perchè da errori di Segmentation Fault
> > usando --tornado 100 e --greenlet. Ma usando solo --tornado 100 da
> > questo errore:
> > *** DANGER *** tornado mode without coroutine/greenthread engine loaded
> > !!!
> >
> > Installato e abilitato con:
> >
> > UWSGI_EMBED_PLUGINS=tornado,greenlet pip install greenlet uwsgi
> >
> > Dopo aver installato i pacchetti python-greenlet e python-greenlet-dev
> > visto che senza diceva di non trovare greenlet/greenlet.h
> >
> > Qui sotto mette le informazioni che penso siano utili.
> >
> > ########################################
> > # uname -a
> > ########################################
> > Linux wadev 3.2.0-57-generic #87-Ubuntu SMP Tue Nov 12 21:35:10 UTC 2013
> > x86_64 x86_64 x86_64 GNU/Linux
> > -----------------
> >
> > ########################################
> > # uwsgi.ini
> > ########################################
> > [uwsgi]
> > socket = 127.0.0.1:9090
> > uid = service
> > gid = service
> > pythonpath = /usr/local/python/Lib
> > virtualenv = /dati/wall
> > chdir = /dati/wall/src/test
> > wsgi-file = uwsgi_test.py
> > processes = 4
> > threads = 2
> > stats = 127.0.0.1:9191
> > tornado = 100
> > greenlet =
> >
> > ## Da risposta trovata in rete a proposito di Segmentation Fault.
> > ;master = true
> > ;enable-threads = true
> > ;singe-interpreter = true
> >
> > ########################################
> > # backtrace
> > ########################################
> > [uWSGI] getting INI configuration from uwsgi.ini
> > *** Starting uWSGI 2.0 (64bit) on [Fri Jan  3 13:07:47 2014] ***
> > compiled with version: 4.6.3 on 03 January 2014 09:42:28
> > os: Linux-3.2.0-57-generic #87-Ubuntu SMP Tue Nov 12 21:35:10 UTC 2013
> > nodename: wadev
> > machine: x86_64
> > clock source: unix
> > pcre jit disabled
> > detected number of CPU cores: 2
> > current working directory: /usr/wall/wall
> > detected binary path: /usr/wall/wall/bin/uwsgi
> > setgid() to 1005
> > set additional group 27 (sudo)
> > setuid() to 1005
> > your processes number limit is 15866
> > your memory page size is 4096 bytes
> > detected max file descriptor number: 1024
> > - async cores set to 100 - 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:9090 fd 3
> > Python version: 2.7.3 (default, Sep 26 2013, 20:13:52)  [GCC 4.6.3]
> > Set PythonHome to /dati/wall
> > Python main interpreter initialized at 0xa28aa0
> > 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 415280 bytes (405 KB) for 8 cores
> > *** Operational MODE: preforking+threaded ***
> > added /usr/local/python/Lib/ to pythonpath.
> > WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0xa28aa0
> pid:
> > 27566 (default app)
> > !!! uWSGI process 27566 got Segmentation Fault !!!
> > *** backtrace of 27566 ***
> > uwsgi(uwsgi_backtrace+0x29) [0x467b69]
> > uwsgi(uwsgi_segfault+0x21) [0x467cf1]
> > /lib/x86_64-linux-gnu/libc.so.6(+0x364a0) [0x7fa4c9f8b4a0]
> > uwsgi() [0x4a6494]
> > uwsgi(uwsgi_init_all_apps+0xcf) [0x46897f]
> > uwsgi(uwsgi_start+0xe6a) [0x4699fa]
> > uwsgi(uwsgi_setup+0x1885) [0x46b955]
> > uwsgi(main+0x9) [0x41e459]
> > /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7fa4c9f7676d]
> > uwsgi() [0x41e489]
> > *** end of backtrace ***
> >
>
> direi che non hai il modulo greenlet nel venv
>
> --
> Roberto De Ioris
> http://unbit.it
> _______________________________________________
> Python mailing list
> Python a lists.python.it
> http://lists.python.it/mailman/listinfo/python
>
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://lists.python.it/pipermail/python/attachments/20140103/c0f01757/attachment.html>


Maggiori informazioni sulla lista Python