Hawker1986 1 Posted September 16, 2020 Author Share Posted September 16, 2020 12 minutes ago, cayars said: Nope, that should be fine as long as you don't restrict your privs. This is actually good for testing as well when not running as a service since it will be the same username. Ok perfect, I only have the one local user account and it has administrator privileges. Setting the recording didn’t throw the error with it running not as a service. I’ve tried it again with it logged into the account as a service and the log still doesn’t have an error. I will brave skipping running it out of a service and see if it works. If not I’ll go back to it not as a service. Thanks very much for the help so far, I’m hopeful :). Will report back 1 Link to comment Share on other sites More sharing options...
Luke 36886 Posted September 16, 2020 Share Posted September 16, 2020 6 hours ago, cayars said: There was an error when trying to schedule the recording. 2020-09-14 22:51:54.136 Info LiveTV: Creating recording timer for 3fedd709303240f49e785d38dab80ba1, Cheers. Timer will fire in 527.0977318416667 minutes 2020-09-14 22:51:54.137 Error LiveTV: Error scheduling wake timer *** Error Report *** Version: 4.4.3.0 Command line: C:\Users\Admin\AppData\Roaming\Emby-Server\system\EmbyServer.dll -service Operating system: Microsoft Windows NT 6.2.9200.0 64-Bit OS: True 64-Bit Process: True User Interactive: True Runtime: file:///C:/Users/Admin/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll System.Environment.Version: 3.1.4 Processor count: 4 Program data path: C:\Users\Admin\AppData\Roaming\Emby-Server\programdata Application directory: C:\Users\Admin\AppData\Roaming\Emby-Server\system System.Runtime.InteropServices.COMException: System.Runtime.InteropServices.COMException (0x80070534): (42,4):UserId: at EmbyServer.Windows.TaskScheduler.ITaskFolder.RegisterTaskDefinition(String path, ITaskDefinition pDefinition, Int32 flags, Object userId, Object password, TaskLogonType logonType, Object sddl) at EmbyServer.Windows.WindowsPowerManagement.ScheduleWake(DateTimeOffset wakeTimeUtc, String displayName) at Emby.LiveTV.TimerManager.ScheduleSystemWakeTimer(DateTimeOffset startDate, String displayName) Source: TargetSite: EmbyServer.Windows.TaskScheduler.IRegisteredTask RegisterTaskDefinition(System.String, EmbyServer.Windows.TaskScheduler.ITaskDefinition, Int32, System.Object, System.Object, EmbyServer.Windows.TaskScheduler.TaskLogonType, System.Object) It appears something is interfering with the windows scheduling. Are you running Emby as a service or does it load during startup? Have you ran any security software that tightens up security on your machine? How about spyware/malware software on the server? No, this is not an error of scheduling the recording. This is an error of scheduling the system wake, which I already mentioned earlier is not supported when running as a service. This just means you'll have to make sure the system is awake at the time of the recording, and then it will record. Link to comment Share on other sites More sharing options...
Carlo 4328 Posted September 16, 2020 Share Posted September 16, 2020 OK Thanks Luke, that makes sense since it does say that! Back to the drawing board. @Hawker1986 what type of material are you setting to record? Are these movies or Shows? Any chance you already have them in your library? Link to comment Share on other sites More sharing options...
Hawker1986 1 Posted September 17, 2020 Author Share Posted September 17, 2020 8 hours ago, Luke said: No, this is not an error of scheduling the recording. This is an error of scheduling the system wake, which I already mentioned earlier is not supported when running as a service. This just means you'll have to make sure the system is awake at the time of the recording, and then it will record. Thanks Luke - FYI these are all scheduled when the server should be awake but they are not working. 8 hours ago, cayars said: OK Thanks Luke, that makes sense since it does say that! Back to the drawing board. @Hawker1986 what type of material are you setting to record? Are these movies or Shows? Any chance you already have them in your library? It’s just TV shows - definitely don’t have them in my library. FYI unfortunately the changes didn’t work - recordings failed this morning Link to comment Share on other sites More sharing options...
Luke 36886 Posted September 17, 2020 Share Posted September 17, 2020 Can you please provide a complete server log example? The ones you have provided so far have been from the time you scheduled the recording, but what we really need to see is the log from the time the recording should have happened. Link to comment Share on other sites More sharing options...
Hawker1986 1 Posted September 17, 2020 Author Share Posted September 17, 2020 10 minutes ago, Luke said: Can you please provide a complete server log example? The ones you have provided so far have been from the time you scheduled the recording, but what we really need to see is the log from the time the recording should have happened. Hi Luke, The last log contains both the time the recording was scheduled and the time it was due to record. There is just nothing in the log from the recording time - no error or failure just nothing....I think that’s the problem Link to comment Share on other sites More sharing options...
Luke 36886 Posted September 17, 2020 Share Posted September 17, 2020 But what you scheduled is really far out, so of course it's not going to record right away: 2020-09-14 22:51:54.136 Info LiveTV: Creating recording timer for 3fedd709303240f49e785d38dab80ba1, Cheers. Timer will fire in 527.0977318416667 minutes See this huge gap of activity in the server log: 2020-09-14 22:51:54.162 Info HttpServer: HTTP Response 200 to <Deleted>12. Time: 1ms. http://<Deleted>199:8096/emby/LiveTv/Programs/661788?userId=ea7b235ec9fc47349dda627d070dd60c&X-Emby-Client=Emby for iOS&X-Emby-Device-Name=Edward’s iPhone&X-Emby-Device-Id=30AC1F4D-F6D5-44B1-B8A8-913030A13702&X-Emby-Client-Version=1.9.8 2020-09-15 08:22:56.800 Info HttpServer: HTTP GET http://<Deleted>199:8096/emby/system/info/public%3Fformat=json. UserAgent: Emby/4 CFNetwork/1128.0.1 Darwin/19.6.0 This suggests the server machine was not awake during all of those hours, even though you thought it was. Link to comment Share on other sites More sharing options...
Hawker1986 1 Posted September 17, 2020 Author Share Posted September 17, 2020 (edited) 1 minute ago, Luke said: But what you scheduled is really far out, so of course it's not going to record right away: 2020-09-14 22:51:54.136 Info LiveTV: Creating recording timer for 3fedd709303240f49e785d38dab80ba1, Cheers. Timer will fire in 527.0977318416667 minutes See this huge gap of activity in the server log: 2020-09-14 22:51:54.162 Info HttpServer: HTTP Response 200 to <Deleted>12. Time: 1ms. http://<Deleted>199:8096/emby/LiveTv/Programs/661788?userId=ea7b235ec9fc47349dda627d070dd60c&X-Emby-Client=Emby for iOS&X-Emby-Device-Name=Edward’s iPhone&X-Emby-Device-Id=30AC1F4D-F6D5-44B1-B8A8-913030A13702&X-Emby-Client-Version=1.9.8 2020-09-15 08:22:56.800 Info HttpServer: HTTP GET http://<Deleted>199:8096/emby/system/info/public%3Fformat=json. UserAgent: Emby/4 CFNetwork/1128.0.1 Darwin/19.6.0 This suggests the server machine was not awake during all of those hours, even though you thought it was. The server was hibernating overnight but awake again at the time the recording was due to happen, server wakes at 0645 Edited September 17, 2020 by Hawker1986 Link to comment Share on other sites More sharing options...
Luke 36886 Posted September 17, 2020 Share Posted September 17, 2020 I would try turning off the hibernating for a night and see how that compares. Link to comment Share on other sites More sharing options...
Hawker1986 1 Posted September 17, 2020 Author Share Posted September 17, 2020 Okey dokey I will give that a go tonight Luke - thank you Link to comment Share on other sites More sharing options...
Carlo 4328 Posted September 17, 2020 Share Posted September 17, 2020 3 minutes ago, Hawker1986 said: The server was hibernating overnight but awake again at the time the recording was due to happen, server wakes at 0645 I'd also suggest using sleep mode vs hibernation after doing the test Luke mentioned. Link to comment Share on other sites More sharing options...
Hawker1986 1 Posted September 18, 2020 Author Share Posted September 18, 2020 On 17/09/2020 at 07:28, Luke said: I would try turning off the hibernating for a night and see how that compares. On 17/09/2020 at 07:31, cayars said: I'd also suggest using sleep mode vs hibernation after doing the test Luke mentioned. Turning off hibernate has meant the recordings were successful this morning. Ive changed the overnight state to suspend rather than hibernate for tonight and will report back if that works. Link to comment Share on other sites More sharing options...
Carlo 4328 Posted September 18, 2020 Share Posted September 18, 2020 Sounds good, let us know. Link to comment Share on other sites More sharing options...
Hawker1986 1 Posted September 19, 2020 Author Share Posted September 19, 2020 19 hours ago, cayars said: Sounds good, let us know. FYI Suspend caused the recordings to fail. Any ideas on if I can get it recording and sleeping overnight or am I just going to have to live with it? Link to comment Share on other sites More sharing options...
Carlo 4328 Posted September 19, 2020 Share Posted September 19, 2020 It was worth testing and now we know it makes no difference. Link to comment Share on other sites More sharing options...
Hawker1986 1 Posted September 19, 2020 Author Share Posted September 19, 2020 7 hours ago, cayars said: It was worth testing and now we know it makes no difference. Definitely it was worth a go Link to comment Share on other sites More sharing options...
mark-in-dallas 86 Posted September 19, 2020 Share Posted September 19, 2020 (edited) I'm not familiar with the Smart Power app and don't know whether it relies on or considers the suspend state settings in BIOS, but you might try changing the suspend state in BIOS from S1 to S3, or vice versa. Edited September 19, 2020 by mark-in-dallas Link to comment Share on other sites More sharing options...
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