unbit / uwsgi

uWSGI application server container
http://projects.unbit.it/uwsgi
Other
3.46k stars 691 forks source link

Unable to use env var UWSGI_VASSAL_SOCKET with Emperor #1612

Open dafvid opened 7 years ago

dafvid commented 7 years ago

uwsgi 2.0.15 on FreeBSD 10.3 python 3.5.4

env UWSGI_SOCKET="/tmp/uwsgi-test.sock" uwsgi test.ini Works and the socket is created

env UWSGI_VASSAL_SOCKET="/tmp/uwsgi-test.sock" uwsgi --emperor . Doesn't work and logs error:

starting uWSGI Emperor putenv(): Invalid argument [core/emperor.c line 1247]

Need assistance in further debugging

funkybob commented 7 years ago

From the FreeBSD man page for putenv:

     [EINVAL]       The function getenv(), setenv() or unsetenv() failed
            because the name is a NULL pointer, points to an empty
            string, or points to a string containing an ``=''
            character.

            The function putenv() failed because string is a NULL
            pointer, string is without an ``='' character or ``=''
            is the first character in string.  This does not fol-
            low the POSIX specification.

Could you possibly try reproducing this with a debug version of uwsgi?

Just install uwsgi as: UWSGI_DEBUG=Y pip install uwsgi