About proxy_store, is this a bug?

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?

Thanks !


Best Regards, sigma

–EOF–

On Thu, Jul 24, 2008 at 04:32:57PM +0800, sigma wrote:

        proxy_temp_path /tmp;

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs