Welcome! Log In Create A New Profile

Advanced

Re: shared memory zone "media" conflicts with already declared size 0

Maxim Dounin
September 29, 2009 06:36AM
Hello!

On Tue, Sep 29, 2009 at 11:41:15AM +0200, Tomasz Pajor wrote:

>
> >>>>what seems to be the problem?
> >>>>
> >>>>[emerg]: the size 52428800 of shared memory zone "media"
> >>>>conflicts with already declared size 0 in
> >>>>/etc/nginx/conf.d/cache.conf:5
> >>>>configuration file /etc/nginx/nginx.conf test failed
> >>>This may be caused if "proxy_cache media" is included before proxy_cache_path.
> >>this is true,
> >>in /etc/nginx/conf.d i have two files, cache.conf and ssl.conf,
> >>and what it seems the ssl.conf is loaded first, shouldn't the
> >>files be loaded in alphabetical order?
> >
> >Currently, files are unsorted.
> >Probably, it should be changed to alphabetical order, but I'm not sure
> I don't know, never the less the desired order can be achieved by
> adding digits in front of the file name, 001-cache.conf,
> 002-ssl.conf fixed my issue.

No, desired order can't be achieved by adding digits. While using
globbed includes nginx loads them without any sorting, i.e. in
order how filesystem returns them.

You happened to get correct order after your renames, but things
may again go wild at any moment (most likely when you'll touch
something in this directory).

Currently the only solution is to include dependent files
explicitly. Globs can be used *only* for completely independent
files (e.g. containing definitions of different server{} blocks).

Maxim Dounin
Subject Author Posted

shared memory zone "media" conflicts with already declared size 0

Tomasz Pajor September 28, 2009 12:20PM

Re: shared memory zone "media" conflicts with already declared size 0

Igor Sysoev September 28, 2009 03:06PM

Re: shared memory zone "media" conflicts with already declared size 0

Tomasz Pajor September 29, 2009 05:06AM

Re: shared memory zone "media" conflicts with already declared size 0

Igor Sysoev September 29, 2009 05:16AM

Re: shared memory zone "media" conflicts with already declared size 0

Tomasz Pajor September 29, 2009 05:48AM

Re: shared memory zone "media" conflicts with already declared size 0

Igor Sysoev September 29, 2009 05:56AM

Re: shared memory zone "media" conflicts with already declared size 0

Maxim Dounin September 29, 2009 06:36AM

Re: shared memory zone "media" conflicts with already declared size 0

Tomasz Pajor September 29, 2009 06:52AM

Re: shared memory zone "media" conflicts with already declared size 0

Gena Makhomed September 29, 2009 09:12AM

Re: shared memory zone "media" conflicts with already declared size 0

Maxim Dounin September 29, 2009 09:52AM

Re: shared memory zone "media" conflicts with already declared size 0

longnt February 06, 2013 01:57AM

Re: shared memory zone "media" conflicts with already declared size 0

Maxim Dounin September 29, 2009 07:22AM

Re: shared memory zone "media" conflicts with already declared size 0

Igor Sysoev September 29, 2009 09:18AM

Re: shared memory zone "media" conflicts with already declared size 0

atipico February 08, 2013 10:01AM

Re: shared memory zone "media" conflicts with already declared size 0

Ruslan Ermilov February 08, 2013 01:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 299
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