XML files truncated
glen at lumanau.web.id
glen at lumanau.web.id
Mon May 31 18:08:31 MSD 2010
Do check your php daemon user/groups. Type
ps aux | grep php
Best Regards,
Glen Lumanau
-----Original Message-----
From: Axel <junk at devignon.fr>
Date: Mon, 31 May 2010 15:58:42
To: <nginx at nginx.org>
Reply-To: nginx at nginx.org
Subject: Re: XML files truncated
Hi,
Actually I have these errors quite often, not only for big XML files, not only in the fastcgi_temp folder. I have a general permission issue:
2010/05/31 15:48:07 [crit] 5253#0: *47 open() "/usr/local/nginx/client_body_temp/0000000006" failed (13: Permission denied), client: 93.17.75.131, server: cacti.xxx.com, request: "POST /templates_import.php HTTP/1.1", host: "cacti.xxx.com", referrer: "http://cacti.xxx.com/templates_import.php"
2010/05/31 15:48:16 [crit] 5257#0: *67 open() "/usr/local/nginx/fastcgi_temp/7/00/0000000007" failed (13: Permission denied) while reading upstream, client: 67.195.111.28, server: www.xxx.com, request: "GET /restaurants-suivant-1-tri-ville-en-liste-tag=0-a-20-e HTTP/1.0", upstream: "fastcgi://127.0.0.1:9000", host: "www.xxx.com"
2010/05/31 15:48:26 [error] 5257#0: *76 open() "/var/www/xxx/prod/public/medias/galerie/restaurant-boulogne-billancourt-mon-bistrot-237_1.jpg" failed (2: No such file or directory), client: 66.220.153.246, server: www.xxx.com, request: "GET /medias/galerie/restaurant-boulogne-billancourt-mon-bistrot-237_1.jpg HTTP/1.1", host: "www.xxx.com"
2010/05/31 15:48:57 [error] 5257#0: *102 open() "/var/www/xxx/prod/public/videos/flvplayer.swf" failed (2: No such file or directory), client: 80.17.242.10, server: www.xxx.com, request: "GET /videos/flvplayer.swf HTTP/1.1", host: "www.xxx.com", referrer: "http://www.bigarrade.fr/"
2010/05/31 15:49:03 [crit] 5257#0: *110 open() "/usr/local/nginx/client_body_temp/0000000008" failed (13: Permission denied), client: 93.17.75.131, server: cacti.xxx.com, request: "POST /templates_import.php HTTP/1.1", host: "cacti.xxx.com", referrer: "http://cacti.xxx.com/templates_import.php"
2010/05/31 15:49:09 [crit] 5257#0: *113 open() "/usr/local/nginx/client_body_temp/0000000009" failed (13: Permission denied), client: 93.17.75.131, server: cacti.xxx.com, request: "POST /templates_import.php HTTP/1.1", host: "cacti.xxx.com", referrer: "http://cacti.xxx.com/templates_import.php"
I'm checking the permissions again. Here's what I have:
Nginx is running under www-data:
root at xxx:/usr/local/nginx# ps aux | grep "nginx: worker process"
www-data 5253 0.0 0.0 37288 3012 ? S 15:47 0:00 nginx: worker process
www-data 5254 0.0 0.0 37180 2812 ? S 15:47 0:00 nginx: worker process
www-data 5255 0.0 0.0 37248 2928 ? S 15:47 0:00 nginx: worker process
www-data 5256 0.0 0.0 36948 2700 ? S 15:47 0:00 nginx: worker process
www-data 5257 0.0 0.0 37288 2976 ? S 15:47 0:00 nginx: worker process
Client_body_temp, fastcgi_temp and proxy_temp are readable writable by www-data
root at xxx:/usr/local/nginx# ls -l
total 36
drwxrwxr-- 2 www-data root 4096 2010-05-31 13:43 client_body_temp
drwxrwxr-- 2 root root 4096 2010-05-11 16:05 conf
drwxrwxr-- 12 www-data www-data 4096 2010-05-11 10:50 fastcgi_temp
drwxrwxr-- 2 root root 4096 2010-05-10 20:20 html
drwxrwxr-- 2 root root 4096 2010-05-31 15:47 logs
drwxrwxr-- 2 www-data www-data 4096 2010-05-10 18:22 proxy_temp
drwxrwxr-- 2 root root 4096 2010-05-12 00:00 sbin
drwxrwxr-- 2 root root 4096 2010-05-31 15:22 sites-available
drwxrwxr-- 2 root root 4096 2010-05-31 15:39 sites-enabled
I do not find any solution on google :-((
Should I stop using custom users and go back to nobody?
Thks
Axel
Le 31 mai 2010 à 13:43, Maxim Dounin a écrit :
> Hello!
>
> On Mon, May 31, 2010 at 01:20:06PM +0200, Axel wrote:
>
>> nginx is running under www-data:www-data (it is maybe a bad idea
>> isn't it?). I doublechecked filesystem permission and issued a
>> chown -R www-data: fastcgi_temp && chmod -R 664 fastcgi_temp.
>> This didn't solve the issue. Here is some debug information
>> below.
>
> [...]
>
>> ## DEBUG LOG:
>> 2010/05/31 12:36:52 [crit] 22005#0: *5 open()
>> "/usr/local/nginx/fastcgi_temp/1/00/0000000001" failed (13:
>> Permission denied) while reading upstream, client: 93.17.75.xxx,
>
> Check if www-data has at least execute access on "/usr",
> "/usr/local", "/usr/local/nginx".
>
> Maxim Dounin
>
>_______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx at nginx.org
http://nginx.org/mailman/listinfo/nginx
More information about the nginx
mailing list