bryan_remote 7 Posted October 1, 2025 Posted October 1, 2025 Please forgive me here... the other I sat down to resume a show and it stopped playing midstream. I immediately restart emby and it plays with no issues. I have my server log attached. Does anyone see issues for a place for me to start troubleshooting? Restarting also seems to help my IPTV as well. I am not a newbie but not an expert either... I try to restart my Emby every morning as this seems to help with issues. My router also does the same thing but it lets me schedule at 4am automatically. I see there was once a plug in to schedule restart but now its gone. so I am requesting someone to review my log file for any blatant issues/errors on the playback issue and can someone let me know if there is any way I can schedule Emby server to restart every day? embyserver-63892993018-webver.txt
brothom 177 Posted October 1, 2025 Posted October 1, 2025 1 hour ago, bryan_remote said: Please forgive me here... the other I sat down to resume a show and it stopped playing midstream. I immediately restart emby and it plays with no issues. I have my server log attached. Does anyone see issues for a place for me to start troubleshooting? Restarting also seems to help my IPTV as well. I am not a newbie but not an expert either... I try to restart my Emby every morning as this seems to help with issues. My router also does the same thing but it lets me schedule at 4am automatically. I see there was once a plug in to schedule restart but now its gone. so I am requesting someone to review my log file for any blatant issues/errors on the playback issue and can someone let me know if there is any way I can schedule Emby server to restart every day? embyserver-63892993018-webver.txt 850.4 kB · 0 downloads For all intents and purposes, a program shouldn't determine if an operating system should restart, the operating system itself should be responsible for this. If you're on a Windows device you can use "Task Scheduler" to add a restart schedule. That's what I've done. If you need help setting this up, I can provide my own schedule to help you out. If you're on a Linux server, you should use something like crontab or systemd. 1
bryan_remote 7 Posted October 1, 2025 Author Posted October 1, 2025 Thank you... so I dont recreate the wheel,,, what ever you can share would be helpful
pwhodges 2012 Posted October 1, 2025 Posted October 1, 2025 (edited) He wants to restart Emby server automatically, I think. I run Emby as a Windows Service, using nssm for setup and control. When I had a need to restart the server, I wrote the following trivial batch file and scheduled it in the Windows scheduler.: c: cd \Users\administrator\AppData\Roaming\Emby-Server nssm restart emby exit Paul Edited October 1, 2025 by pwhodges 1
bryan_remote 7 Posted October 1, 2025 Author Posted October 1, 2025 yes, I specifically want to restart the Emby server. your suggestion seems to be what I need. I will review and set up. thank you pw
brothom 177 Posted October 1, 2025 Posted October 1, 2025 (edited) 51 minutes ago, pwhodges said: He wants to restart Emby server automatically, I think. I run Emby as a Windows Service, using nssm for setup and control. When I had a need to restart the server, I wrote the following trivial batch file and scheduled it in the Windows scheduler.: c: cd \Users\administrator\AppData\Roaming\Emby-Server nssm restart emby exit Paul One thing that has to be noted is that if OP isn't using nssm yet, he'll need to install that as well. To do that he'll need to follow this guide: https://emby.media/support/articles/Run-as-Windows-Service.html. Edited October 1, 2025 by brothom
bryan_remote 7 Posted October 1, 2025 Author Posted October 1, 2025 thank you both... I am working with NSSM and can get the service installed but its not starting the emby server. I point nssm to embyserver.exe in the folder where .exe is , but the services starts, but Embyserver doesnt start. any ideas?
brothom 177 Posted October 1, 2025 Posted October 1, 2025 (edited) @bryan_remoteI actually changed my server setup to use nssm as well and also thought it wasn't running because there was no tray icon. You'll need to do two things after adding the server: 1. In your command prompt run "nssm start embyserver" 2. There is no tray icon, but it SHOULD run, you can check that by going to localhost or just visiting your server You only need to run "nssm start embyserver" once after you just installed it as a server. It should automatically start on next reboot. Edited October 1, 2025 by brothom
bryan_remote 7 Posted October 1, 2025 Author Posted October 1, 2025 ok, so far so good... it does start server (not icon as you mentioned) I started the service and rebooted... it works! now I will work on scheduling the task.. but it will be a little later today... thank you so much... this will be very helpful.. i will post back if I need more help... Thanks BRO
Solution brothom 177 Posted October 1, 2025 Solution Posted October 1, 2025 24 minutes ago, bryan_remote said: ok, so far so good... it does start server (not icon as you mentioned) I started the service and rebooted... it works! now I will work on scheduling the task.. but it will be a little later today... thank you so much... this will be very helpful.. i will post back if I need more help... Thanks BRO Let us know if you managed to create the `.bat` file to restart your server. Personally I prefer to restart the entire server every night at the impossible time of 04:00 in the morning, mostly because Windows 10 gets a little wacky after running for a couple of days. 1
Happy2Play 9780 Posted October 1, 2025 Posted October 1, 2025 Use the plugin or the api but really depends on how you run Emby. 1
bryan_remote 7 Posted October 2, 2025 Author Posted October 2, 2025 17 hours ago, Happy2Play said: Use the plugin or the api but really depends on how you run Emby. I saw this post earlier, but it must have been over my head...I have Emby running as service now and utilizing the scheduled bat file. it seems to be working. thank you much
bryan_remote 7 Posted October 2, 2025 Author Posted October 2, 2025 20 hours ago, brothom said: Let us know if you managed to create the `.bat` file to restart your server. Personally I prefer to restart the entire server every night at the impossible time of 04:00 in the morning, mostly because Windows 10 gets a little wacky after running for a couple of days. I think I have it now... Thank you so much for your assistance! I am hoping this resolves a bit of issues I am experiencing watching iptv. The channels buffer sometimes but seems to be much better after reboot. I have been manually rebooting emby first thing in the am. I have my router auto booting at 4am so I set Emby to restart at 4:10am daily. Thank you again! Dont be surprised if I reach back out lol 2
bryan_remote 7 Posted October 8, 2025 Author Posted October 8, 2025 welp, try as I may.. my .bat file works but I cannot get task scheduler to start it...In Task Scheduler, do I need any arguments or a "start in" folder? those both say optional so I am thinking not. I have the path to the .bat to start, its in an Administrators group and the .bat works when I manually run it. Any ideas?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now