NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Windows v
« Previous 1 … 88 89 90 91 92 … 101 Next »
Can't Retrieve Logs Running in Docker on Windows

 
  • 0 Vote(s) - 0 Average
Can't Retrieve Logs Running in Docker on Windows
pkscout
Offline

Senior Member

USA
Posts: 464
Threads: 50
Joined: May 2014
#1
2020-03-23, 06:33 PM
OK, I acknowledge that I am probably the only person running NPVR in a Docker container on a Windows 10 host, but for some reason in this config trying to get the logs from the button in the web admin generates a 500 error.  Same Docker container running in Docker on my Mac works fine.  So it isn't NPVR or even the Docker container.  Sub, if you have a minute, could you give a description of how the logs are retrieved and zipped?  If I understood that I could at least troubleshoot some more. At the end of this, I'm fine if I can't get the logs using the web admin, and I'm hoping this particular config will only be for another month or two until I get a new NAS I can use with Docker.

So basically, please don't run NPVR from a Docker container on Windows 10.  Wink
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,666
Threads: 767
Joined: Nov 2003
#2
2020-03-23, 07:09 PM
I checked the code and can't see an obvious reason for it to fail. You could see if running the container with "docker run -it....", so that you can see the output, provides any useful clues like an error message when you ask for the logs. Alternatively, take at the log files themselves in /config/logs directory, to see what happens when you click the logs.
pkscout
Offline

Senior Member

USA
Posts: 464
Threads: 50
Joined: May 2014
#3
2020-03-24, 02:05 AM
(2020-03-23, 07:09 PM)sub Wrote: I checked the code and can't see an obvious reason for it to fail. You could see if running the container with "docker run -it....", so that you can see the output, provides any useful clues like an error message when you ask for the logs. Alternatively, take at the log files themselves in /config/logs directory, to see what happens when you click the logs.

OK, I'm going to do a little bit of a no-no and post a log snippet.  I cannot stress enough how NOT important this is, as nobody should do what I'm doing.  Wink

Code:
2020-03-23 15:52:53.109    [DEBUG][31]    Got request [::ffff:172.17.0.1]: /services/service
2020-03-23 15:52:53.109    [DEBUG][31]    method=system.logs
2020-03-23 15:52:53.109    [DEBUG][31]    parameters:
2020-03-23 15:52:53.109    [DEBUG][31]       method: system.logs
2020-03-23 15:52:53.109    [DEBUG][31]       format: json
2020-03-23 15:52:53.109    [DEBUG][31]       client_ip: ::ffff:172.17.0.1
2020-03-23 15:52:53.109    [DEBUG][31]       user_agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36 Edg/80.0.361.69
2020-03-23 15:52:53.109    [DEBUG][31]       host_callback: 172.16.1.5:8866
2020-03-23 15:52:53.109    [DEBUG][31]       sid: default
2020-03-23 15:52:53.109    [DEBUG][31]    Zipping logs...
2020-03-23 15:52:53.109    [INFO][31]    Flushing logs
2020-03-23 15:52:53.272    [ERROR][31]    System.ArgumentOutOfRangeException: The DateTimeOffset specified cannot be converted into a Zip file timestamp. (Parameter 'value')
   at System.IO.Compression.ZipArchiveEntry.set_LastWriteTime(DateTimeOffset value)
   at NShared.Extend.SystemRequestHandler.GetLogs(ServiceResponseStream serviceResponseStream, Dictionary`2 parameters)
   at NShared.Extend.PluginFactory.HandleRequest(ServiceResponseStream serviceResponseStream, Dictionary`2 parameters)
   at NPVR5.Controllers.ServicesController.HandleServiceRequest(String body, String contentType)

I don't get this error when running the same image on a Mac using Docker (and I get the log downloads).  I suspect it's some oddity of getting Docker running on Windows 10 Home.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,847
Threads: 954
Joined: May 2006
#4
2020-03-24, 02:23 AM
If you change the tz of the docker to an earlier time zone like pt what happens

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,666
Threads: 767
Joined: Nov 2003
#5
2020-03-24, 02:52 AM
Good info. I’ll check it in a bit.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,666
Threads: 767
Joined: Nov 2003
#6
2020-03-24, 04:01 AM
I'm not sure why that particular machine is failing, but I've added some protection around this for the next build. (this machine will end up creating a logs zip file where the file dates are probably all the current time, rather than the real times)
pkscout
Offline

Senior Member

USA
Posts: 464
Threads: 50
Joined: May 2014
#7
2020-03-24, 06:32 AM
Let's call this done then. It really is something with running Docker on Windows 10. I have a python script that uses a log roller, and from time to time the log will roll a file to 1969-12-31, which basically means 0 was returned for the date. It's not consistent, although the log problem with the NPVR logs is. I never have a problem with NPVR knowing what time it is for recordings, showing the guide, etc. so I'm not going to pull any hair out over this. Thanks for looking into it.
pkscout
Offline

Senior Member

USA
Posts: 464
Threads: 50
Joined: May 2014
#8
2020-03-25, 04:46 PM (This post was last modified: 2020-03-25, 04:46 PM by pkscout.)
Just a followup.  I was having some other issues and tried to update Docker, but the little hack to trick the installer into thinking it was running on Windows 10 Pro (instead of Home) doesn't work anymore with the current Windows 10 version. So I bit the bullet and upgraded to Windows 10 Pro and updated Docker.  The problem with the logs not downloading went away, so there was either an issue with Docker on Windows or the fact that I was trying to run in on Windows 10 Home.  Mostly just posting this here in case someone stumbles on this thread with a similar issue.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,666
Threads: 767
Joined: Nov 2003
#9
2020-03-25, 04:59 PM
(2020-03-25, 04:46 PM)pkscout Wrote: Just a followup.  I was having some other issues and tried to update Docker, but the little hack to trick the installer into thinking it was running on Windows 10 Pro (instead of Home) doesn't work anymore with the current Windows 10 version. So I bit the bullet and upgraded to Windows 10 Pro and updated Docker.  The problem with the logs not downloading went away, so there was either an issue with Docker on Windows or the fact that I was trying to run in on Windows 10 Home.  Mostly just posting this here in case someone stumbles on this thread with a similar issue.
That's weird - good to know though. Good find.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  NPVR Windows recordings folder cleanup.... Colincam 21 2,886 2025-04-16, 07:38 PM
Last Post: mvallevand
  Windows 24H2 - Can't install Hauppage Drivers Lao Pan 6 1,248 2025-04-04, 04:49 AM
Last Post: seattlefog
  Freezing/Buffering on Windows 11 (NPVR app only) nextpvrnoob 64 7,684 2025-02-21, 07:52 PM
Last Post: mvallevand
  Help. IPTV audio. 1ch works. 1ch doesn't. w/examples+logs snard 6 450 2025-02-02, 10:11 PM
Last Post: snard
  DVB-T210 August USB Freeview HD TV Stick Windows 10 16brae 6 399 2025-01-17, 03:20 AM
Last Post: jimil
  Windows Client not receiving class messages ElihuRozen 1 238 2024-12-01, 06:55 PM
Last Post: sub
  windows in a vm not showing channels treypop 4 474 2024-09-27, 09:42 PM
Last Post: mvallevand
  What are the hotkeys for the NextPVR client app (Windows 11) NJW1979 2 474 2024-09-23, 10:05 PM
Last Post: NJW1979
Information failed recordings: operation timed out or recording service not running jobby99 1 286 2024-09-23, 01:48 AM
Last Post: mvallevand
  Scheduled Recordings Not Fully Recording on Windows organizevaulter 1 415 2024-08-29, 01:37 AM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode