Page 1 of 1

ifup: "lock /var/run/network/mountnfs exist, not mounting"

Posted: Tue Jul 11, 2017 2:45 pm
by ^rooker
[PROBLEM]
On Debian 6 (Squeeze) I've created a regular network interface alias "eth0:1". It usually "just works" - and it works great.
But today I got the following error when trying to "ifup" that alias interface:
if-up.d/mountnfs[eth0:1]: lock /var/run/network/mountnfs exist, not mounting ... failed!
The network alias interfaces are brought up properly though.
But the error message is weird, because I don't have any NFS shares configured - nor mounted.
But it indicates that somethings is not quite clean, I guess :oops:


[SOLUTION]
Seems that the folder "/var/run/network/mountnfs" can be left over if the machine did not boot (or shutdown?) properly before. It is created whenever the script "/etc/network/if-up.d/mountnfs" is executed.
Therefore, I've deleted the empty folder and tried again.

Should be fine now :D