Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

UTM fails to power off after shutdown or gets stuck

We have a small SG 115 UTM device at the office. We also have a UPS at the office which keeps the few servers we have running long enough for them to perform a graceful shutdown. In theory, I want the UTM to perform a graceful shutdown as well, but I'm having some issues with this.

A simple command is sent to the UTM via PUTTY: shutdown now

The command is clearly received by the UTM as the process is initiated. However, the UTM never really powers down. Well, if I connect a screen to the UTM, I get the following (terribly sorry for the poor quality): https://imgur.com/HTOT4Me

The last lines seem to read as follows:

Stopping Logging | done
Master Resource Control: runlevel 1 has been
Skipping services in runlevel 1: | utm-??? (I honestly can't make it out from the photo; yes, I know it's bad)

Additionally, looking into the system log, this is all I could find that seemed to be related to the actual shutdown:

2019:06:04-16:10:59 firewall postgres[3875]: [3-1] LOG:  received fast shutdown request<134>Jun  4 16:10:59 postgres[3875]: [4-1] LOG:  aborting any active transactions
2019:06:04-16:10:59 firewall postgres[22476]: [3-1] FATAL:  terminating connection due to administrator command
2019:06:04-16:10:59 firewall postgres[22899]: [3-1] FATAL:  terminating connection due to administrator command
2019:06:04-16:10:59 firewall postgres[22297]: [3-1] FATAL:  terminating connection due to administrator command
2019:06:04-16:10:59 firewall postgres[22478]: [3-1] FATAL:  terminating connection due to administrator command
2019:06:04-16:10:59 firewall postgres[22263]: [3-1] FATAL:  terminating connection due to administrator command
2019:06:04-16:10:59 firewall postgres[22329]: [3-1] FATAL:  terminating connection due to administrator command
2019:06:04-16:10:59 firewall postgres[22254]: [3-1] FATAL:  terminating connection due to administrator command
2019:06:04-16:10:59 firewall postgres[22260]: [3-1] FATAL:  terminating connection due to administrator command
2019:06:04-16:10:59 firewall postgres[3880]: [3-1] LOG:  autovacuum launcher shutting down
2019:06:04-16:10:59 firewall postgres[22252]: [3-1] FATAL:  terminating connection due to administrator command
2019:06:04-16:10:59 firewall postgres[5392]: [3-1] FATAL:  terminating connection due to administrator command
2019:06:04-16:10:59 firewall postgres[4704]: [3-1] FATAL:  terminating connection due to administrator command
2019:06:04-16:10:59 firewall postgres[3877]: [2-1] LOG:  shutting down<134>Jun  4 16:10:59 postgres[3877]: [3-1] LOG:  database system is shut down
2019:06:04-16:11:01 firewall syslog-ng[4902]: syslog-ng shutting down; version='3.4.7'

What could be going on? I don't know if the UTM is safe to power off at this state or not - I'd prefer it to power off completely automatically. I haven't tried a manual reboot yet (will do so tomorrow, when I'm at the office), but I do know that the UTM has no trouble rebooting when installing updates.



This thread was automatically locked due to age.
Parents
  • Found the reason, by testing the UTM on a VM (so that I could play around with the commands as much as I please without impacting the office).

    It seems the shutdown command doesn't, in fact, turn the system off at the end. Event with the -P parameter the end result is just as I described above. Instead it seems better to just use the halt command. This one works "as advertised". If someone wants to use shutdown to power off, then the additional -h flag is required (for some reason -P does nothing).

Reply
  • Found the reason, by testing the UTM on a VM (so that I could play around with the commands as much as I please without impacting the office).

    It seems the shutdown command doesn't, in fact, turn the system off at the end. Event with the -P parameter the end result is just as I described above. Instead it seems better to just use the halt command. This one works "as advertised". If someone wants to use shutdown to power off, then the additional -h flag is required (for some reason -P does nothing).

Children