Plex stops every night at midnight

Server Version#:18.04
Player Version#: 1.14.1.5488
My PMS shuts down every night just after midnight. I thought that this might be a scheduled job, and I am not extreamly farmiliar with Ubuntu, so it could be. However, I did look at the crontab file to see if there was a scheduled job set up to shut down the application, and there is not.

I saw another topic that appeared to be similiar, it was solved by a optimizing the database or clean up, and I have done both.

The fact that this happens the same time each day makes me believe that there must be a scheduled job somewhere out there doing this, but I just do not know where.

Any help would be appreciatedPlex Media Server Logs_2019-01-15_21-26-28.zip (4.1 MB)

I have uploaded my log files. I hope that someone can find what is doing this.

I have restarted my server, just in case that would do some help. I have even tried to set up a cronjob to start the servers are 1:10 every morning. However my attempt last night did not work. Used this in in my crontab file:

10 1 * * * plex service plexmediaserver start

Nothing was started this morning.

I have changed the command to

10 1 * * * plex systemctl restart plexmediaserver

Thinking that may work better. Not sure. Just trying to do something to keep the server available without having to log into the server every morning before I leave for work.

Can you post your logs?

https://support.plex.tv/articles/200250417-plex-media-server-log-files/

I just posted them.

I edited the original post and posted them.

this is from your Plex Media Server.1.log

signal 15 is probably a result of your crontab entries

Take out your crontab entries and let it fail again and collect logs next time and repost so we can see what is causing the actual failure.

I have pounded out the following in the crontab file
#17 * * * * root cd / && run-parts --report /etc/cron.hourly
#25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
#47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
#52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )

#10 1 * * * plex systemctl restart plexmediaserver

unless you feel I should keep the cron.hourly, daily, weekly and monthly ones in place

Yeah you can just # out the Plex one the others are just system Cron jobs that should have no impact.

Well, things did not shut down last night. I am not sure what the difference was. I pounded out that line in the crontab file, however, I had put that in just the night before, so that should not have made a difference as it was not in the crontab but that one night. This problem has been going on since before Christmas. I will keep an eye on things. I really wish I knew what had caused the issue.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.