Page 1 of 1

RPI only reboots after unplugging the network cable

Posted: Monday 12 November 2018 23:39
by jake
Sorry for bringing this generic question up, but I hope to have some credit for help on this one:

Desrcibed symptoms occurred both with a RPI 1B as with a RPI 3

When I want to reboot (sudo reboot now), the SSH service is killed, http service with Domoticz killed, but then the device hangs. I can still ping it from another device, but I can't access it anymore. Only when I unplug the network cable, the RPI will reboot and come up correctly afterwards, although sometimes I have to unplug the cable once more during boot to make it accessible through the network again..

I have no clue where to look for causes. I connected a monitor once and than I saw services shutting down followed by just sitting on a shutting down process. The next time I tried it, it was a different service name, so that wasn't easy to find out.

What can I do to prevent this from happening? I can't reboot from remote, which can be quite a pity.

With a fresh install it works fine, but at some point after adding more stuff to it, this behaviour starts, but I can't see what addition triggers this.

Re: RPI only reboots after unplugging the network cable

Posted: Tuesday 13 November 2018 0:23
by waaren
jake wrote: Monday 12 November 2018 23:39 Described symptoms occurred both with a RPI 1B as with a RPI 3

When I want to reboot (sudo reboot now), the SSH service is killed, http service with Domoticz killed, but then the device hangs. I can still ping it from another device, but I can't access it anymore. Only when I unplug the network cable, the RPI will reboot and come up correctly afterwards, although sometimes I have to unplug the cable once more during boot to make it accessible through the network again..
What OS do you use ?
What additional packages and drivers ?
Which hardware is connected ?
Do you experience the same when using sudo reboot -f ?

So many questions and so few answers... :D

Re: RPI only reboots after unplugging the network cable

Posted: Tuesday 13 November 2018 22:31
by jake

waaren wrote:
jake wrote: Monday 12 November 2018 23:39 Described symptoms occurred both with a RPI 1B as with a RPI 3
...
What OS do you use ?
What additional packages and drivers ?
Which hardware is connected ?
Do you experience the same when using sudo reboot -f ?

So many questions and so few answers... :D
Sorry, sorry, sorry you're absolutely right!

I've had the descrbed issue with different clean installs:
OS Jessie on a RPI 1b and on a RPI 3
OS Stretch only on the RPI 3 (distribution upgrade from Jessie)

During installation of the described packages, all goes well with inbetween reboots, so all looks OK. All of a sudden, the RPI hangs again during reboot and then I don't have a clear idea which package or setting did the trick

Defined static IP-address in /etc/dhcpcd.conf

Additional packages:
Python
Pi-Hole
Fail2ban
Mosquitto MQTT (only on the RPI 3, I had the issue before that as well)
PHP script that receives information from my solar panel gateway (enecsys) and sends it to pvoutput.org
Samba
OTGW, OT-monitor
Supervisor
Nodejs, running 1 script that makes it possible to run OTGW both with OT-monitor and Domoticz in parallel

I have been looking for log files during shutdown to see where the RPI stops, but I can't find any.


Re: RPI only reboots after unplugging the network cable

Posted: Wednesday 14 November 2018 0:10
by waaren
jake wrote: Tuesday 13 November 2018 22:31 I have been looking for log files during shutdown to see where the RPI stops, but I can't find any.
I am by no means a Linux expert but these files could be of interest here:

/var/log/syslog
/var/log/messages
/var/log/apcupsd.events