Server reboots insted of shutdown


rjbaat

Recommended Posts

Hi All,

I have a problem with my server running unraid 6.2.4.

It is sometimes not shutting down on the Cron tab rules i have setup. Or it is shutting down but directly starting again.

I checked this also with a Domoticz ping script.

 

What i did is i made a couple of cron tab rules to make sure it really shutsdown at night.

And i put the script in the /boot/config/plugins/dynamix folder. Like below. I added multiple rules. so if its not shutting down the next rule does it:

 

# Shutdown at 00:30 every day
30 0 * * * /usr/local/sbin/powerdown >/dev/null 2>&1

# Shutdown at 00:40 every day
40 0 * * * /usr/local/sbin/powerdown > /mnt/disks/ST9250827AS_5RG41C3X/cron-logs/cron.log

# Shutdown at 00:50 every day
50 0 * * * /usr/local/sbin/powerdown > /mnt/disks/ST9250827AS_5RG41C3X/cron-logs/cron.log

# Shutdown at 01:00 every day
0 1 * * * /usr/local/sbin/powerdown > /mnt/disks/ST9250827AS_5RG41C3X/cron-logs/cron.log

 

This is working. But when i check the log in domoticz i see this:

 

2017-01-14 00:40:44	Off
2017-01-13 01:04:05	On
2017-01-13 01:02:05	Off
2017-01-13 00:54:03	On
2017-01-13 00:52:03	Off
2017-01-13 00:44:02	On
2017-01-13 00:42:02	Off
2017-01-13 00:34:00	On
2017-01-13 00:32:00	Off
2017-01-12 15:33:47	On
2017-01-12 00:32:00	Off
2017-01-11 15:33:46	On
2017-01-11 00:42:06	Off
2017-01-11 00:34:05	On
2017-01-11 00:32:05	Off
2017-01-10 00:43:29	On
2017-01-10 00:41:29	Off
2017-01-10 00:33:28	On
2017-01-10 00:31:28	Off
2017-01-09 15:33:14	On
2017-01-09 00:31:27	Off
2017-01-08 11:43:08	On
2017-01-08 00:31:21	Off
2017-01-07 11:59:02	On

 

So it seams the server is stopping and then restarting or it is never completely shutdown. I tried to check the syslog to see if i can find out what happens, but thats not saved in unraid. And if iam right its empty after a reboot.

Thats why i try to add this in a cron.log: > /mnt/disks/ST9250827AS_5RG41C3X/cron-logs/cron.log but that is also empty.

 

Has anyone an idea if i setup something wrong? Before i used the powerdown package and as far as i know that didnt give me this strange behavior.

Btw the server starts each day based on the bios startup time i have setup (15:30)

 

Link to comment

Hi All,

I have a problem with my server running unraid 6.2.4.

 

<<< snip >>>>

 

Has anyone an idea if i setup something wrong? Before i used the powerdown package and as far as i know that didnt give me this strange behavior.

Btw the server starts each day based on the bios startup time i have setup (15:30)

 

The Powerdown package is no longer required with the latest versions of unRAID.  See here:

 

    http://lime-technology.com/forum/index.php?topic=31735.0

 

I don't know if this is causing your issue but it is something of which you should be aware.  If this is  not the issue, I would next suggest that you post a complete description of ALL of the hardware used in your server, the Plugins, Dockers and VM's.  You should also post a diagnostic file.  There is a plugin which will write a diagnostics ( or syslog) file every time your server is shutdown but at this moment, I can't remember which one....

Link to comment

Oke thanks for the replies. Indeed I dont use the powerdown plugin anymore. Insted I call the powerdown of unraid (see cron script)

I will do the following things and will see what happens:

 

1. write the logs to the boot/logs folder. So i can hopefully see what is happening when the shutdown is initiated.

2. Make my crashplan docker incoming backups stop accepting connections till 00:15. Maybe that docker is keeping the server busy.

3. If the server is indeed actually shutdown and starting again. It can be the PSU indeed. I hope not. But i will keep an eye on what is happening. Its not that old  crosair modulair psu.

 

 

 

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.