Welcome! Log In Create A New Profile

Advanced

"No space left on device" for temp cache - v1.7.4

September 11, 2014 10:15AM
Hi, recently we noticed that the version 1.7.3 added a feature important to our infrastructure: "cache revalidation now uses If-None-Match header if possible.".
So we changed part of our cache to the 1.7.4 version, but something strange started to happen, at certain point of disk usage nginx started to return 500 to all requests with this kind of message in the error log:

[crit] 12908#0: *7209656 open() "/cache/nginx_tmp/0002938835" failed (28: No space left on device) while reading upstream, client: xxx.xxx.xxx.xxx, server: , request: "GET http://xxxxxxxx.net/ HTTP/1.1", upstream: "http://xxx.xx.xxx.xxx:80/", host: "xxxxxxxx.net"

It looked like that there wasn't enough space in the temporary cache directory. But running df -h (and after sync && df -h) the result was:

[user@nginx ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 7.8G 2.3G 5.4G 30% /
devtmpfs 3.7G 20K 3.7G 1% /dev
tmpfs 3.7G 0 3.7G 0% /dev/shm
/dev/xvdb 40G 12G 27G 31% 24% /cache ---------------------------------------- used for cache

I think that is important to know that a very similar configuration is running well in a 1.7.2 server with the same specs and without the cache revalidation directives.

This is my cache path configuration:

proxy_cache_path /cache/nginx levels=1:2 keys_zone=cache:1500m max_size=27G inactive=1200m;


Can you help?

Gabriel Arrais.
Subject Author Posted

"No space left on device" for temp cache - v1.7.4

arraisgabriel September 11, 2014 10:15AM

Re: "No space left on device" for temp cache - v1.7.4

Maxim Dounin September 11, 2014 10:40AM

Re: "No space left on device" for temp cache - v1.7.4

arraisgabriel September 11, 2014 11:14AM

Re: "No space left on device" for temp cache - v1.7.4

NitrouZ September 11, 2014 09:28PM

Re: "No space left on device" for temp cache - v1.7.4

elico September 13, 2014 04:44PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 199
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready