Error undefinied with wsgi script
Paul Boddie
paul.boddie at biotek.uio.no
Tue Oct 30 10:48:04 UTC 2012
On 30/10/12 09:55, Gaunet Sylvain (ASTEK) wrote:
> Apache was restarted, we have always the problem except now, we've got no log to show ... like everything's fine although I have always the error (see error.PNG).
Regardless of whether you can find a traceback anywhere...
[...]
> The hook tag sets good permissions for apache. That works fine since 4 years. We change the machine and activate SELinux and this is the mess.
>
> The web interface works fine with SELinux if no rollback.
...what does "ls -Z" say for the repository, particularly the contents
of the .hg directory, before and after the rollback?
I tried to reproduce the problem with Mercurial 2.3, but it just
wouldn't occur. Generally, all the files are readable for the Web server
user, and the SELinux permissions are
"unconfined_u:object_r:httpd_sys_content_t:s0". The only thing I didn't
do was to actually execute "hg rollback" within the Web server - I just
did it as my own user from the command line.
The one thing I did notice from a previous message of yours was this:
ls -lZ /var/www/bases/projet/ZED
drwxrwsr-x. gaunets_adm sgc
unconfined_u:object_r:httpd_sys_content_t:s0 ZED
You seem to have setgid enabled on the repository directory, and this
does make me wonder about whether it could cause problems or just
interact badly with the existing permissions and SELinux.
Paul
More information about the Mercurial
mailing list