Welcome! Log In Create A New Profile

Advanced

cache file is too small

Posted by omkar_jadhav_20 
omkar_jadhav_20
cache file is too small
December 28, 2016 11:30AM
Hi,

I am using nginx 1.10.2. We are getting continuous error as 'cache file is
too small':
2016/12/28 15:49:38 [crit] 55253#55253: cache file
"/cache/12003/2/c3/4ab93b7d3126d7f7f79487c6dc9dbc32.0579642579" is too
small

Below is the config line set for 12003 :
proxy_cache_path /cache/12003 keys_zone=a12003:200m levels=1:2
max_size=700g inactive=10d;

Kindly let me know how can we eliminate this error.
We are using nginx as web service to handle media traffic.

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,271756,271756#msg-271756

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Maxim Dounin
Re: cache file is too small
December 28, 2016 02:10PM
Hello!

On Wed, Dec 28, 2016 at 05:25:49AM -0500, omkar_jadhav_20 wrote:

> Hi,
>
> I am using nginx 1.10.2. We are getting continuous error as 'cache file is
> too small':
> 2016/12/28 15:49:38 [crit] 55253#55253: cache file
> "/cache/12003/2/c3/4ab93b7d3126d7f7f79487c6dc9dbc32.0579642579" is too
> small
>
> Below is the config line set for 12003 :
> proxy_cache_path /cache/12003 keys_zone=a12003:200m levels=1:2
> max_size=700g inactive=10d;
>
> Kindly let me know how can we eliminate this error.
> We are using nginx as web service to handle media traffic.

The message suggests that you are trying to use cache directory
from nginx 1.11.6+ with use_temp_path=off. There are temporary
files left in the cache directories, and the older version doesn't
recognize them and complains.

--
Maxim Dounin
http://nginx.org/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
omkar_jadhav_20
Re: cache file is too small
December 29, 2016 07:00AM
Hi ,

I am using nginx running with version 1.10.2
Also could you please suggest what is the permanent solution for this also
what does exactly use_temp_path does?
Should we keep it explicitly on , we have not set this directive in our
nginx.conf.

Below is sample nginx.conf for your reference , kindly suggest wherever
modification is required :

worker_processes auto;
events {
worker_connections 4096;
use epoll;
multi_accept on;
}
worker_rlimit_nofile 100001;
http {
include mime.types;
default_type video/mp4;
proxy_buffering on;
proxy_buffer_size 4096k;
proxy_buffers 5 4096k;
sendfile on;
keepalive_timeout 30;
tcp_nodelay on;
tcp_nopush on;
reset_timedout_connection on;
gzip off;
server_tokens off;

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,271756,271762#msg-271762

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Maxim Dounin
Re: cache file is too small
December 29, 2016 03:10PM
Hello!

On Thu, Dec 29, 2016 at 12:50:36AM -0500, omkar_jadhav_20 wrote:

> I am using nginx running with version 1.10.2
> Also could you please suggest what is the permanent solution for this also

The message suggests the cache directory was used with nginx
1.11.6+. If this is not something you did intentionally in the
past - you may want to investigate how this happened.

Easiest solution is to remove all the cache contents and let nginx
to re-populate the cache correctly. Also make sure no other nginx
instances are using the same cache directory.

> what does exactly use_temp_path does?
> Should we keep it explicitly on , we have not set this directive in our
> nginx.conf.

The "use_temp_path" parameter is to control how temporary files
are stored. You don't need to touch it unless you understand it
is beneficial in your particular setup.

--
Maxim Dounin
http://nginx.org/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Sorry, only registered users may post in this forum.

Click here to login