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 2 3 4 5 6 7 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: 102
Threads: 32
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
Offline

Posting Freak

Ontario Canada
Posts: 47,338
Threads: 889
Joined: May 2006
#2
2021-01-18, 02:43 PM
Can you map

/etc/localtime:/etc/localtime:ro

Martin
janoonk
Offline

Member

Netherlands
Posts: 102
Threads: 32
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: 102
Threads: 32
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 Import failed. Not logged in. XM55 4 130 2023-08-08, 08:35 PM
Last Post: XM55
  AMD64 based Docker Image with Python3 pkscout 20 4,357 2023-07-23, 04:15 PM
Last Post: pkscout
  Docker compose matt77303 10 339 2023-06-25, 08:41 PM
Last Post: sub
  Docker and Comskip mexjerry 3 359 2023-06-04, 09:38 PM
Last Post: Ranbato
  Getting guide data for Kodi and NextPVR on Synology NAS NewUser 2 446 2023-01-02, 04:42 PM
Last Post: sub
  "database is locked" on brand new container bpmmmm 11 671 2022-11-23, 07:25 PM
Last Post: sub
  Change docker user Deihmos 5 429 2022-10-25, 05:06 PM
Last Post: mvallevand
  TrueNAS Scale - NextPVR asw2012 24 1,605 2022-09-28, 09:01 PM
Last Post: Tugdwal
  NextPVR in Unraid Docker is writing recordings with 755 permissions antenna 4 823 2022-09-24, 12:20 AM
Last Post: greg in kansas
  NextPVR in Docker on Synology not finding 'epg.xml' huntercj 3 407 2022-09-04, 08:10 AM
Last Post: huntercj

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

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

Linear Mode
Threaded Mode