about proxy_store, is this a bug?
Igor Sysoev
is at rambler-co.ru
Thu Jul 24 12:43:09 MSD 2008
On Thu, Jul 24, 2008 at 04:32:57PM +0800, sigma wrote:
> my config:
> location / {
> root /data/www;
> error_page 404 = /fetch$uri;
> }
> location /fetch {
> internal;
> proxy_pass http://backend;
> proxy_store on;
> proxy_store_access user:rw group:r all:r;
> proxy_temp_path /tmp;
> alias /data/www;
> }
>
> the /tmp is in /dev/sda1 and the /data/www is in /dev/mapper/data(LVM)
>
> then proxy_store invalid
>
> the error_log:
> 2008/07/24 04:15:12 [crit] 28123#0: *2555263 rename() "/tmp/0000370403" to
> "/data/www/dm/g/gsmmx21/Vol_289/017.jpg" failed (18: Invalid cross-device
> link) while reading upstream, ....
>
> is it a bug?
No, this is a feature. nginx does not copy temporary file to a persistent one.
It rename()s file. This means that proxy_temp_path and root must be on
the same filesystem.
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list