Created
November 23, 2012 03:44
-
-
Save GrahamDumpleton/4133917 to your computer and use it in GitHub Desktop.
uWSGI error on shutting down with master, multiple processes and reload mercy.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ uwsgi --ini uwsgi.ini -M -p 2 --reload-mercy 3 | |
[uWSGI] getting INI configuration from uwsgi.ini | |
*** Starting uWSGI 1.4.1 (64bit) on [Fri Nov 23 14:43:05 2012] *** | |
compiled with version: 4.2.1 (Apple Inc. build 5666) (dot 3) on 22 November 2012 16:19:23 | |
os: Darwin-10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 | |
nodename: Grumpys-MacBook-Pro-15.local | |
machine: i386 | |
clock source: unix | |
detected number of CPU cores: 4 | |
current working directory: /Library/WebServer/Sites/hello-1/htdocs | |
detected binary path: /Users/graham/Python/uwsgi-testing/bin/uwsgi | |
your processes number limit is 266 | |
your memory page size is 4096 bytes | |
detected max file descriptor number: 256 | |
lock engine: OSX spinlocks | |
uwsgi socket 0 bound to UNIX address /tmp/uwsgi.sock fd 3 | |
Python version: 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) [GCC 4.2.1 (Apple Inc. build 5646)] | |
Set PythonHome to /Users/graham/Python/uwsgi-testing | |
Python main interpreter initialized at 0x1003096a0 | |
python threads support enabled | |
your server socket listen backlog is limited to 100 connections | |
mapped 217152 bytes (212 KB) for 2 cores | |
*** Operational MODE: preforking *** | |
PID 2642 | |
SYS.PREFIX /Users/graham/Python/uwsgi-testing | |
SYS.PATH ['.', '', '/Users/graham/Python/uwsgi-testing/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg', '/Users/graham/Python/uwsgi-testing/lib/python2.6/site-packages/pip-1.1-py2.6.egg', '/Users/graham/Python/uwsgi-testing/lib/python26.zip', '/Users/graham/Python/uwsgi-testing/lib/python2.6', '/Users/graham/Python/uwsgi-testing/lib/python2.6/plat-darwin', '/Users/graham/Python/uwsgi-testing/lib/python2.6/plat-mac', '/Users/graham/Python/uwsgi-testing/lib/python2.6/plat-mac/lib-scriptpackages', '/Users/graham/Python/uwsgi-testing/Extras/lib/python', '/Users/graham/Python/uwsgi-testing/lib/python2.6/lib-tk', '/Users/graham/Python/uwsgi-testing/lib/python2.6/lib-old', '/Users/graham/Python/uwsgi-testing/lib/python2.6/lib-dynload', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages', '/Users/graham/Python/uwsgi-testing/lib/python2.6/site-packages', '/Users/graham/Python/uwsgi-testing/lib/python2.6/site-packages/newrelic-1.8.0.13'] | |
WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x1003096a0 pid: 2642 (default app) | |
spawned uWSGI master process (pid: 2642) | |
spawned uWSGI worker 1 (pid: 2643, cores: 1) | |
spawned uWSGI worker 2 (pid: 2645, cores: 1) | |
subprocess 2644 exited with code 0 | |
[pid: 2643|app: 0|req: 1/1] 127.0.0.1 () {40 vars in 1380 bytes} [Fri Nov 23 14:43:17 2012] GET / => generated 11053 bytes in 4 msecs (HTTP/1.1 200) 1 headers in 45 bytes (1 switches on core 0) | |
[pid: 2645|app: 0|req: 1/2] 127.0.0.1 () {40 vars in 1380 bytes} [Fri Nov 23 14:43:17 2012] GET / => generated 11053 bytes in 3 msecs (HTTP/1.1 200) 1 headers in 45 bytes (1 switches on core 0) | |
[pid: 2645|app: 0|req: 2/3] 127.0.0.1 () {40 vars in 1380 bytes} [Fri Nov 23 14:43:18 2012] GET / => generated 11053 bytes in 0 msecs (HTTP/1.1 200) 1 headers in 45 bytes (1 switches on core 0) | |
[pid: 2645|app: 0|req: 3/4] 127.0.0.1 () {40 vars in 1380 bytes} [Fri Nov 23 14:43:18 2012] GET / => generated 11053 bytes in 0 msecs (HTTP/1.1 200) 1 headers in 45 bytes (1 switches on core 0) | |
[pid: 2645|app: 0|req: 4/5] 127.0.0.1 () {40 vars in 1380 bytes} [Fri Nov 23 14:43:18 2012] GET / => generated 11053 bytes in 1 msecs (HTTP/1.1 200) 1 headers in 45 bytes (1 switches on core 0) | |
^CSIGINT/SIGQUIT received...killing workers... | |
Exception in thread NR-Activate-Session/Python Application: | |
Traceback (most recent call last): | |
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 522, in __bootstrap_inner | |
self.run() | |
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 477, in run | |
self.__target(*self.__args, **self.__kwargs) | |
File "/Users/graham/Python/uwsgi-testing/lib/python2.6/site-packages/newrelic-1.8.0.13/newrelic/core/application.py", line 260, in connect_to_data_collector | |
self.linked_applications, environment_settings(), | |
File "/Users/graham/Python/uwsgi-testing/lib/python2.6/site-packages/newrelic-1.8.0.13/newrelic/core/environment.py", line 25, in environment_settings | |
env.append(('Arch', platform.machine())) | |
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/platform.py", line 1264, in machine | |
return uname()[4] | |
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/platform.py", line 1194, in uname | |
processor = _syscmd_uname('-p','') | |
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/platform.py", line 951, in _syscmd_uname | |
rc = f.close() | |
IOError: [Errno 10] No child processes | |
goodbye to uWSGI. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment