> Hello.
> It is seems specifying both daemonize2 with parameter and
> logto causes something bad on freebsd (althrough it is obviously
> configuration error)
>
> Tue Mar 27 18:45:07 2012 - writing pidfile to /var/run/hnova.pid
>
> ;uWSGI instance configuration
> [uwsgi]
> xml = /usr/local/etc/hnova_uwsgi.xml
> socket = /var/run/uwsgi_hypernova.sock
> socket = 127.0.0.1:8080
> listen = 10240
> chmod-socket = 777
> chown-socket = nobody:nobody
> master-as-root = 1
> workers = 12
> ftok = /spool/logs/hnova/uwsgi.log
> pythonpath = /usr/local/lib/python2.7/site-packages
> module = hypernova.app
> pyargv = --modules-path=/usr/local/modules --mode=debug
> --static-path=/spool/static
> Tue Mar 27 18:45:07 2012 - spawned uWSGI master process (pid: 71235)
> optimize = 2
> logdate = 1
> touch-logrotate = /var/run/hnova.pid
> log-backupname = /spool/logs/hnova/uwsgi.log.last
> need-app = 1
> uid = nobody
> gid = nobody
> harakiri = 12
> harakiri-verbose = 1
> die-on-term = 1
> ignore-sigpipe = 1
> single-interpreter = 1
> master = 1
> vacuum = 1
> show-config = 1
> logto = /spool/logs/hnova/uwsgi.log
> daemonize2 = /spool/logs/hnova/uwsgi.log
> pidfile = /var/run/hnova.pid
> ;end of configuration
>
> Tue Mar 27 18:45:06 2012 - *** Starting uWSGI 1.1.1 (64bit) on [Tue
> Mar 27 18:45:06 2012] ***
> Tue Mar 27 18:45:06 2012 - compiled with version: 4.2.1 20070719
> [FreeBSD] on 27 March 2012 17:48:28
> Tue Mar 27 18:45:06 2012 - current working directory: /usr/local/etc/rc.d
> Tue Mar 27 18:45:06 2012 - writing pidfile to /var/run/hnova.pid
> Tue Mar 27 18:45:06 2012 - detected binary path: /usr/local/bin/uwsgi
> Tue Mar 27 18:45:06 2012 - your memory page size is 4096 bytes
> Tue Mar 27 18:45:06 2012 -  *** WARNING: you have enabled harakiri
> without post buffering. Slow upload could be rejected on
> post-unbuffered webservers ***
> Tue Mar 27 18:45:06 2012 - detected max file descriptor number: 230400
> Tue Mar 27 18:45:06 2012 - lock engine: ipcsem
> Tue Mar 27 18:45:06 2012 - uwsgi socket 0 bound to UNIX address
> /var/run/uwsgi_hypernova.sock fd 6
> Tue Mar 27 18:45:06 2012 - uwsgi socket 1 bound to TCP address
> 127.0.0.1:8080 fd 8
> Tue Mar 27 18:45:06 2012 - Python version: 2.7.2 (default, Dec 20
> 2011, 14:52:09)  [GCC 4.2.1 20070719  [FreeBSD]]
> Tue Mar 27 18:45:07 2012 - spawned uWSGI worker 1 (pid: 71236, cores: 1)
> Tue Mar 27 18:45:07 2012 - semctl(): Invalid argument [utils.c line 589]
> Tue Mar 27 18:45:07 2012 - spawned uWSGI worker 2 (pid: 71238, cores: 1)
> Tue Mar 27 18:45:07 2012 - semctl(): Invalid argument [utils.c line 589]
> Tue Mar 27 18:45:07 2012 - spawned uWSGI worker 3 (pid: 71239, cores: 1)
> Tue Mar 27 18:45:07 2012 - semctl(): Invalid argument [utils.c line 589]
> Tue Mar 27 18:45:07 2012 - spawned uWSGI worker 4 (pid: 71240, cores: 1)
> Tue Mar 27 18:45:07 2012 - semctl(): Invalid argument [utils.c line 589]
> Tue Mar 27 18:45:07 2012 - spawned uWSGI worker 5 (pid: 71241, cores: 1)
> Tue Mar 27 18:45:07 2012 - semctl(): Invalid argument [utils.c line 589]
> Tue Mar 27 18:45:07 2012 - spawned uWSGI worker 6 (pid: 71242, cores: 1)
> Tue Mar 27 18:45:07 2012 - semctl(): Invalid argument [utils.c line 589]
> Tue Mar 27 18:45:07 2012 - spawned uWSGI worker 7 (pid: 71243, cores: 1)
> Tue Mar 27 18:45:07 2012 - semctl(): Invalid argument [utils.c line 589]
> Tue Mar 27 18:45:07 2012 - spawned uWSGI worker 8 (pid: 71244, cores: 1)
> Tue Mar 27 18:45:07 2012 - semctl(): Invalid argument [utils.c line 589]
> Tue Mar 27 18:45:07 2012 - spawned uWSGI worker 9 (pid: 71245, cores: 1)
> Tue Mar 27 18:45:07 2012 - semctl(): Invalid argument [utils.c line 589]
> Tue Mar 27 18:45:07 2012 - spawned uWSGI worker 10 (pid: 71246, cores: 1)
> Tue Mar 27 18:45:07 2012 - semctl(): Invalid argument [utils.c line 589]
> Tue Mar 27 18:45:07 2012 - spawned uWSGI worker 11 (pid: 71247, cores: 1)
> Tue Mar 27 18:45:07 2012 - semctl(): Invalid argument [utils.c line 589]
> Tue Mar 27 18:45:07 2012 - spawned uWSGI worker 12 (pid: 71248, cores: 1)
> Tue Mar 27 18:45:07 2012 - semop(): Invalid argument [lock.c line 354]
> Tue Mar 27 18:45:07 2012 - semop(): Invalid argument [lock.c line 369]
> Tue Mar 27 18:45:07 2012 - semctl(): Invalid argument [lock.c line 407]
> Tue Mar 27 18:45:07 2012 - semop(): Invalid argument [lock.c line 354]
> Tue Mar 27 18:45:07 2012 - semop(): Invalid argument [lock.c line 369]
> ...
>
>
> While specifying logto and <daemonize2/> causes this
> ==> /spool/logs/hnova/uwsgi.log <==
>
> ;uWSGI instance configuration
> [uwsgi]
> xml = /usr/local/etc/hnova_uwsgi.xml
> socket = /var/run/uwsgi_hypernova.sock
> socket = 127.0.0.1:8080
> listen = 10240
> chmod-socket = 777
> chown-socket = nobody:nobody
> master-as-root = 1
> workers = 12
> ftok = /spool/logs/hnova/uwsgi.log
> pythonpath = /usr/local/lib/python2.7/site-packages
> module = hypernova.app
> pyargv = --modules-path=/usr/local/modules --mode=debug
> --static-path=/spool/static
> optimize = 2
> logdate = 1
> touch-logrotate = /var/run/hnova.pid
> log-backupname = /spool/logs/hnova/uwsgi.log.last
> need-app = 1
> uid = nobody
> gid = nobody
> harakiri = 12
> harakiri-verbose = 1
> die-on-term = 1
> ignore-sigpipe = 1
> single-interpreter = 1
> master = 1
> vacuum = 1
> show-config = 1
> logto = /spool/logs/hnova/uwsgi.log
> daemonize2 = 1
> pidfile = /var/run/hnova.pid
> ;end of configuration
>
> Tue Mar 27 18:47:17 2012 - *** Starting uWSGI 1.1.1 (64bit) on [Tue
> Mar 27 18:47:17 2012] ***
> Tue Mar 27 18:47:17 2012 - compiled with version: 4.2.1 20070719
> [FreeBSD] on 27 March 2012 17:48:28
> Tue Mar 27 18:47:17 2012 - current working directory: /usr/local/etc/rc.d
> Tue Mar 27 18:47:17 2012 - writing pidfile to /var/run/hnova.pid
> Tue Mar 27 18:47:17 2012 - detected binary path: /usr/local/bin/uwsgi
> Tue Mar 27 18:47:17 2012 - your memory page size is 4096 bytes
> Tue Mar 27 18:47:17 2012 -  *** WARNING: you have enabled harakiri
> without post buffering. Slow upload could be rejected on
> post-unbuffered webservers ***
> Tue Mar 27 18:47:17 2012 - detected max file descriptor number: 230400
> Tue Mar 27 18:47:17 2012 - lock engine: ipcsem
> Tue Mar 27 18:47:17 2012 - uwsgi socket 0 bound to UNIX address
> /var/run/uwsgi_hypernova.sock fd 6
> Tue Mar 27 18:47:17 2012 - uwsgi socket 1 bound to TCP address
> 127.0.0.1:8080 fd 8
> Tue Mar 27 18:47:17 2012 - Python version: 2.7.2 (default, Dec 20
> 2011, 14:52:09)  [GCC 4.2.1 20070719  [FreeBSD]]
> Tue Mar 27 18:47:18 2012 - semctl(): Invalid argument [lock.c line 407]
> Tue Mar 27 18:47:18 2012 - semctl(): Invalid argument [lock.c line 407]
> Tue Mar 27 18:47:18 2012 - semctl(): Invalid argument [lock.c line 407]
> Tue Mar 27 18:47:18 2012 - semctl(): Invalid argument [lock.c line 407]
> Tue Mar 27 18:47:18 2012 - semctl(): Invalid argument [lock.c line 407]
> Tue Mar 27 18:47:18 2012 - semctl(): Invalid argument [lock.c line 407]
> Tue Mar 27 18:47:18 2012 - semctl(): Invalid argument [lock.c line 407]
> Tue Mar 27 18:47:18 2012 - semctl(): Invalid argument [lock.c line 407]
>
>


Should be fixed in latest tip

Can you confirm that ?

-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to