Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nginx: "Resource temporarily unavailable" using a Samba share

Tags:

nginx

samba

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?

like image 200
Laurent Avatar asked Apr 18 '12 03:04

Laurent


1 Answers

These two settings solved the same problem for me:

oplocks = no
level2 oplocks = no
like image 135
Karol Kasprzak Avatar answered Sep 27 '22 22:09

Karol Kasprzak