Search code examples
nginxsamba

Nginx: "Resource temporarily unavailable" using a Samba share


I am developing on a Nginx web server with a Samba share.

Whenever I edit a CSS or JS file, I got this error when I reload my website (F5).

2012/04/18 11:15:38 [crit] 29607#0: *47708 open() "/var/www/[...].js" failed (11: Resource temporarily unavailable), client: 192.168.[...], server: [...], request: "GET [...].js HTTP/1.1", host: "[...]", referrer: "http://[...]"

I need to refresh another time and the errors disappear.

I found here that somebody has the same problem had me which can be caused by F_SETLEASE, but I couldn't find how to finally solve this problem.

Any clue?


Solution

  • These two settings solved the same problem for me:

    oplocks = no
    level2 oplocks = no