After updating from raspbian wheezy to raspbian jessie networking isn't working properly anymore.
Folllowing lines seem to describe the error:
ifplugd(eth0)[184]: Using interface eth0/B8:27:EB:0E:CD:AA with driver <smsc95xx> (version: 22-Aug-2005)
ifplugd(eth0)[184]: Using detection mode: SIOCETHTOOL
ifplugd(eth0)[184]: Initialization complete, link beat not detected.
ifplugd(lo)[203]: ifplugd 0.28 initializing.
ifplugd(lo)[203]: Using interface lo/00:00:00:00:00:00
ifplugd(lo)[203]: Using detection mode: SIOCETHTOOL
ifplugd(lo)[203]: Initialization complete, link beat detected.
ifplugd(lo)[203]: Executing '/etc/ifplugd/ifplugd.action lo up'.
ifplugd(lo)[203]: client: /sbin/ifup: failed to open lockfile /run/network/.ifstate.lock: No such file or directory
ifplugd(lo)[203]: client: run-parts: /etc/ifplugd/action.d//ifupdown exited with return code 1
But whats wrong, or what's the solution?
Note
This does not happen every time.
Could it be that sometimes our beloved systemd gets wrong its execution order? ...and then tries to start networking before /run/network/ is fully mounted or such a thing?!
ifplugd
service for Raspbian systemd screwed it up (ifplugd is not used by default on Debian or other regular distros). If you don't want to bother investigating that, you could just uninstall ifplugd; its only purpose is to autoconfigure ethernet when you plug a cable into a headless system, and I suspect it is more a cause of grief than anything else (you don't need it to if you are booting a headless system with the cable already in).