NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Docker amd64 v
« Previous 1 … 4 5 6 7 8 9 Next »
Time is incorrect inside logs of NextPVR inside docker container

 
  • 0 Vote(s) - 0 Average
Time is incorrect inside logs of NextPVR inside docker container
janoonk
Offline

Member

Netherlands
Posts: 105
Threads: 33
Joined: Dec 2020
#1
2021-01-18, 02:32 PM
Hi,

if I check the log files the time is incorrect. The guide is showing all programs correctly though.
I tried setting the TZ env. var. See screenshot.
And restarted the container but it doesn't work. Any ideas?


Attached Files Thumbnail(s)
   
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#2
2021-01-18, 02:43 PM
Can you map

/etc/localtime:/etc/localtime:ro

Martin
janoonk
Offline

Member

Netherlands
Posts: 105
Threads: 33
Joined: Dec 2020
#3
2021-01-18, 03:22 PM (This post was last modified: 2021-01-18, 03:32 PM by janoonk.)
(2021-01-18, 02:43 PM)mvallevand Wrote: Can you map

/etc/localtime:/etc/localtime:ro

Martin

I had to do a trick to map it because I use Synology Docker GUI. The GUI doesn't want you to let you link to a symlink, so I needed to create a dummy file (eg "touch localtime"), configure the GUI to point to them, then after you save your config, you can just replace the dummy file with a symlink:
Code:
ln -s /etc/localtime localtime


After restart it still didn't work. The date (and time) looks correct when I am inside my Synology but the localtime looks wrong?!
Here are in this order:
-my Synology Time settings
-Synology Docker container settings
-inside shell of Synology NAS
-inside docker container. Output is from doing:
Code:
cat /etc/localtime
date


Attached Files Thumbnail(s)
               
dsreyn
Offline

Member

USA
Posts: 66
Threads: 13
Joined: Jan 2020
#4
2021-01-28, 01:01 PM (This post was last modified: 2021-01-29, 02:50 PM by dsreyn.)
I ran into this problem a while ago.  It sounds like you have essentially the same setup - running in Docker on a Synology NAS, using the Docker GUI.  Here's how I got it to work:

1. First, make the standard Linux time zone files available to the container (/usr/share/zoneinfo has not been included in recent NextPVR images).

a) ssh into the NAS
- Enable SSH (if not already enabled):
In the Synology GUI:  Control Panel => Terminal & SNMP => Terminal
Select "Enable SSH service"
- In a Windows "Command Prompt" window:  ssh [NAS-name]

b) Copy the time zone files from the Synology OS to a location that can be mapped to the NextPVR container:
cp -rp /usr/share/zoneinfo /volume1/docker/zoneinfo
You might need to tweak the target location (e.g., /volume1) above if your setup is different.  When you have it right, the new zoneinfo directory should be visible in the "File Station" application if you expand the "docker" entry on the left.

c) If you normally have SSH disabled, go back and uncheck the box selected in a) above.

2. In the Docker GUI, map the target location from step 1 so it's visible to the NextPVR container.

Select the NextPVR container
Edit => Volume
For "File/Folder", choose docker/zoneinfo (this assumes that you pick the "correct" target location in step 1 above)
For "Mount path", enter /usr/share/zoneinfo

3. Tell the container which time zone you want

Edit => Environment
Create a new variable called TZ
Set "Value" to your time zone; for me, this is "America/New_York"

Doug
janoonk
Offline

Member

Netherlands
Posts: 105
Threads: 33
Joined: Dec 2020
#5
2021-01-28, 01:41 PM
Many many thanks! Worked like a charm!!!!!
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  NextPvr Instance Unresponsive itsnotjeff 6 274 2025-04-15, 04:57 PM
Last Post: mvallevand
  Error detecting HDHR devices with marklambert/nextpvr-ccextractor SickBoy 16 757 2025-03-23, 08:52 PM
Last Post: sub
  Comskip segfaults with comskip embedded in amd64 docker SickBoy 6 320 2025-02-24, 11:18 PM
Last Post: SickBoy
  Issues with Session Handling Behind Caddy Reverse Proxy in Docker: invalid session user001 5 358 2025-01-10, 08:23 PM
Last Post: sub
  Docker container becomes unresponsive overnight wapkaplet 6 552 2025-01-10, 04:47 PM
Last Post: wapkaplet
  Docker image upgrade ceejayemm 9 784 2025-01-07, 11:27 PM
Last Post: pkscout
  Current guide for NextPVR docker on Unraid? wapkaplet 1 656 2024-12-20, 02:40 AM
Last Post: wapkaplet
  Modification to the NextPVR Image DockerFile thelanofvilles 5 482 2024-12-15, 07:30 PM
Last Post: thelanofvilles
  NextPVR with Docker and Fritzbox icompas 9 559 2024-12-12, 02:50 PM
Last Post: icompas
  Docker postprocessing script aTF6i 12 941 2024-11-17, 01:17 AM
Last Post: aTF6i

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

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

Linear Mode
Threaded Mode