Welcome! Log In Create A New Profile

Advanced

Re: Solving a 500 error

Maxim Dounin
October 02, 2013 06:56AM
Hello!

On Tue, Oct 01, 2013 at 05:52:32PM +0100, Ian Hobson wrote:

> Hi All,
>
> I have an nginx install with the configuration below.
>
> The server is a linux VM running under Virtual Box on my windows
> machine. The website / directory is made available as a sharename
> using Samba, which I connect to from Windows, so I can edit the
> files. I edit in windows, using familiar tools and then test using a
> browser, usually without restarting nginx or init-fastcgi.
>
> This works fine for php files. When I edit one of two javascript
> files, the next request for a javascript file fails with a 500 error
> - even if the request is not for the changed file.
>
> The version of nginx I am running is 1.2.6 compiled with the long
> polling module included.
>
> Does anyone know what is happening?

Key points is "Samba" and "Linux". When you edit files via Samba
share, it tries to lock files with fcntl(F_GETLEASE) if running on
Linux. This in turn results in errors while opening such "locked"
files. For more information see Samba docs here:

http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/locking.html#id2616903

It's not clear why the problem happens with files you didn't
changed, but I would suppose they are at least open via Samba.

Anyway, disabling appropriate locking in Samba configuration will
likely help. See the link above for details.

--
Maxim Dounin
http://nginx.org/en/donation.html

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Solving a 500 error

Ian Hobson October 01, 2013 12:54PM

Re: Solving a 500 error

Jonathan Matthews October 01, 2013 03:38PM

Re: Solving a 500 error

Ian Hobson October 01, 2013 05:58PM

Re: Solving a 500 error

GreenGecko October 01, 2013 06:04PM

Re: Solving a 500 error

Jonathan Matthews October 01, 2013 06:06PM

Re: Solving a 500 error

Maxim Dounin October 02, 2013 06:56AM

Re: Solving a 500 error

itpp2012 October 02, 2013 09:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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