Samba performs a lock to the file you're editing and I don't know exactly how nginx open the files it's serving, but the problem is that Samba locks the file nginx is trying to read.
So, a bit of searching through the locking options with Samba and I found out an option to put in smb.conf that solves the problem:
oplocks = no
This option enables or disables support for oplocks on the client. The option is enabled by default so we're turning it off.
Restart Samba and you should not get more open() errors.
Carlos
3 comments:
Worked perfectly, thanks for the tip!
Thanks, instant solution to my problem!
You are a legend, this was confusing the hell outta me! Thanks
Post a Comment