I have a really weird problem with my Raspberry Pi.
It runs correctly when I reboot it via the command reboot
.
After this it starts up and doesn't answer any network request. I have tried ssh
, httpd
, samba
and ping
. If I kill it by removing the power plug and restarting it it works as expected.
The other side is if I'm rebooting it via reboot -f
it starts the services as it should and I can connect to the ssh
server as normal.
Any ideas why this is happening and how I can fix it?
Solution: The error is based on dhcpcd
which is not shutting down correctly. Adding the line DHClient = 'yes'
in the /etc/network.d/ethernet-eth0
-file and installing the package dhclient
fixed it. systemctl disable dcpcd@eth0
should be executed for not getting the error again.