tags 729581 + confirmed 
thanks

Hi Alen,

Thanks for reporting this bug.

El 14/11/13 a las 16:12, Alen Komic escribió:
> 
> Uwsgi package version 1.9.17.1-5 init scripts failing to start uwsgi apps 
> with following error:
>  bind(): Permission denied [core/socket.c line 185]
> 
> uwsgi is using debian specific startup scripts and two ini configuration 
> files.
> First file is /usr/share/uwsgi/conf/default.ini with default settings and its 
> parsed on startup with
> package supplied script /usr/share/uwsgi/init/snippets which is extracting 
> uid/gid and setting ownership
> on directory holding pid and socket files before the uwsgi-core is started.
> Line for extraction used is
> grep --max-count=1 "^\s*${KIND}\s*=" "$CONFFILE" \
>         | sed -e "s/^\s*${KIND}\s*=\s*\(.*\)\s*/\1/g"
> 
> The following test showing that grep BRE is not matching regexp properly 
> anymore and returning empty string (wheezy version is).

I suppose you meant wheezy version is OK.

> $ echo 'uid = www-data' > /tmp/test.conf
> $ grep "^\s*uid\s*=" /tmp/test.conf
> Explicit BRE also not working
> $ grep -G "^\s*uid\s*=" /tmp/test.conf
> $
> 
> Temporary fix change the regex grep lines in /usr/share/uwsgi/init/snippets 
> from "grep" to "grep -E"
> 

grep 2.14-4 matches when using LANG=C:

$ LANG=C grep "^\s*uid\s*=" /tmp/test.conf
uid = www-data

Actually, a patch fixing a similar issue [1] introduced this bug. I
suppose it is present in grep 2.15, but I need to confirm.

[1] http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15440

I'm lacking some free time right now, so any help is welcome! 

Cheers,

Santiago


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to