Hi, im quite new to uwsgi and try to set up multiple pyramid apps behind nginx and uwsgi.
I've created the following ini file for the first app [uwsgi] chdir = /data/vvenv paste = config:/data/vvenv/production.ini http-socket = 0.0.0.0:8080 socket = /data/vvenv/var/uwsgi.sock virtualenv = /data/vvenv logto = /data/vvenv/logs/uwsgi.log buffer-size = 32768 env = PYTHON_EGG_CACHE=/data/vvenv/var/egg_cache gid = 80 uid = 80 When I start uwsig with --ini <pathtoconfig> the application is served. --- Log -- *** Starting uWSGI 2.0.14 (64bit) on [Wed Feb 8 08:52:31 2017] *** compiled with version: 4.2.1 Compatible FreeBSD Clang 3.4.1 (tags/RELEASE_34/dot1-final 208032) on 08 February 2017 07:31:21 os: FreeBSD-10.3-RELEASE-p11 FreeBSD 10.3-RELEASE-p11 #0: Mon Oct 24 18:49:24 UTC 2016 [email protected]:/usr/obj/usr/src/sys/GENERIC nodename: freebsd101-64bit.zap-hosting.com machine: amd64 clock source: unix detected number of CPU cores: 2 current working directory: /usr/local/etc/uwsgi/vassals detected binary path: /usr/local/bin/uwsgi !!! no internal routing support, rebuild with pcre support !!! uWSGI running as root, you can use --uid/--gid/--chroot options setgid() to 80 setuid() to 80 chdir() to /data/vvenv *** WARNING: you are running uWSGI without its master process manager *** your processes number limit is 8470 your memory page size is 4096 bytes detected max file descriptor number: 115875 lock engine: POSIX semaphores thunder lock: disabled (you can enable it with --thunder-lock) uwsgi socket 0 bound to TCP address 0.0.0.0:8080 fd 3 uwsgi socket 1 bound to UNIX address /data/vvenv/var/uwsgi.sock fd 4 Python version: 2.7.13 (default, Jan 30 2017, 09:14:34) [GCC 4.2.1 Compatible FreeBSD Clang 3.4.1 (tags/RELEASE_34/dot1-final 208032)] Set PythonHome to /data/vvenv *** Python threads support is disabled. You can enable it with --enable-threads *** Python main interpreter initialized at 0x802c870c0 your server socket listen backlog is limited to 100 connections your mercy for graceful operations on workers is 60 seconds mapped 101432 bytes (99 KB) for 1 cores *** Operational MODE: single process *** Loading paste environment: config:/data/vvenv/production.ini WSGI app 0 (mountpoint='') ready in 5 seconds on interpreter 0x802c870c0 pid: 20988 (default app) *** uWSGI is running in multiple interpreter mode *** spawned uWSGI worker 1 (and the only) (pid: 20988, cores: 1) ---- endlog --- when i try to start it with --emperor <pathtoconfig> everything seams OK but no request is served (timeout) --- log --- *** Starting uWSGI 2.0.14 (64bit) on [Wed Feb 8 08:55:44 2017] *** compiled with version: 4.2.1 Compatible FreeBSD Clang 3.4.1 (tags/RELEASE_34/dot1-final 208032) on 08 February 2017 07:31:21 os: FreeBSD-10.3-RELEASE-p11 FreeBSD 10.3-RELEASE-p11 #0: Mon Oct 24 18:49:24 UTC 2016 [email protected]:/usr/obj/usr/src/sys/GENERIC nodename: freebsd101-64bit.zap-hosting.com machine: amd64 clock source: unix detected number of CPU cores: 2 current working directory: /usr/local/etc/uwsgi/vassals detected binary path: /usr/local/bin/uwsgi !!! no internal routing support, rebuild with pcre support !!! uWSGI running as root, you can use --uid/--gid/--chroot options setgid() to 80 setuid() to 80 chdir() to /data/vvenv your processes number limit is 8470 your memory page size is 4096 bytes detected max file descriptor number: 115875 lock engine: POSIX semaphores thunder lock: disabled (you can enable it with --thunder-lock) uwsgi socket 0 bound to TCP address 0.0.0.0:8080 fd 3 uwsgi socket 1 bound to UNIX address /data/vvenv/var/uwsgi.sock fd 4 Python version: 2.7.13 (default, Jan 30 2017, 09:14:34) [GCC 4.2.1 Compatible FreeBSD Clang 3.4.1 (tags/RELEASE_34/dot1-final 208032)] Set PythonHome to /data/vvenv *** Python threads support is disabled. You can enable it with --enable-threads *** Python main interpreter initialized at 0x802c830c0 your server socket listen backlog is limited to 100 connections your mercy for graceful operations on workers is 60 seconds mapped 202864 bytes (198 KB) for 1 cores *** Operational MODE: single process *** Loading paste environment: config:/data/vvenv/production.ini WSGI app 0 (mountpoint='') ready in 5 seconds on interpreter 0x802c830c0 pid: 21220 (default app) *** uWSGI is running in multiple interpreter mode *** spawned uWSGI master process (pid: 21220) spawned uWSGI worker 1 (pid: 21318, cores: 1) --- endlog --- what am I missing here. Regards Estartu _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
