Time-zone settings lost every time i reboot

Permissions, domain/LDAP, power, security, notification and more.
Locked
User avatar
flacotelli
Posts: 5
Joined: 06 Jun 2023, 15:48

Time-zone settings lost every time i reboot

Post by flacotelli »

Hello,

my TNAS (TOS 5.1, latest version) is set to syncronize it's time and date settings with it.pool.ntp.org server. However, every time i reboot the NAS, the time becomes wrong again and i i have to manually sycronize again from the control panel to make it correct.

How can this issue be fixed ?

Regards
User avatar
TMtina
TerraMaster Team
Posts: 100
Joined: 01 Nov 2022, 18:00

Re: Time-zone settings lost every time i reboot

Post by TMtina »

Hello, thank you for your feedback, our lab will verify this problem.
User avatar
flacotelli
Posts: 5
Joined: 06 Jun 2023, 15:48

Re: Time-zone settings lost every time i reboot

Post by flacotelli »

Problem still there
User avatar
Gremlin
Posts: 433
Joined: 02 Dec 2022, 22:31
Great Britain

Re: Time-zone settings lost every time i reboot

Post by Gremlin »

Have you tried using a different time server? (Something 'generic' like time.windows.com)
F5-221 5.1.123, 8GB System Partition on 3 x 4TB Traid; 3TB EXT4
F2-221 TOS6 (Beta), 8GB System Partition on 2 x 6TB in Traid.
User avatar
dmilan
Posts: 1
Joined: 07 Aug 2023, 00:03

Re: Time-zone settings lost every time i reboot

Post by dmilan »

if you can, enable ssh access, login via ssh, and check if /etc/localtime is the timezone you selected in Region and Language.

I'm in Europe/Belgrade time zone and will use it as an example.

For example:

Code: Select all

diff /usr/share/zoneinfo/Europe/Belgrade /etc/localtime
If there is a difference, than make a link to or copy zoneinfo file from /usr/share/zoneinfo/... to /etc/localtime

Code: Select all

ln -sf /usr/share/zoneinfo/Europe/Belgrade /etc/localtime
then check /etc/timezone if it is correspond to Region and Language settings

Code: Select all

cat /etc/timezone 
Europe/Belgrade
next is to set Time zone in Region And Language and sync with time server.

I hope this will work for you as it worked for me.

Best wishes,
Milan
User avatar
Revamp
Posts: 31
Joined: 27 Aug 2023, 21:37

Re: Time-zone settings lost every time i reboot

Post by Revamp »

{L_BUTTON_AT}TMtina

Hello All,

I need NTP to run normally, I find sometimes when I log on that the NAS is sometimes an hour out or even 6 hours after a week of up time.

I have set up two Firewall rules, this to isolate my NAS from the internet and to allow external access for the time sync function (NTP)

Isolation mode off..
NTP service not running (that is server service not enabled and not required).

1. First rule.. Set Internal LAN access only..
Allow all protocols and an INTERNAL LAN IP RANGE (range inclusive of the NAS IP) which is just outside my DHCP reservation pool as I have set a manual static IP for the No1 RJ45 interface. This works fine...

2. Second rule ..NTP..
Allow all IP's (as I don't know or cant find the IP listing that is static enough for the europe NTP) set UDP protocol only, allow 1 port of "123" only.

The above rule 2 should allow the unit to remain isolated but allow traffic from what ever IP for UDP on port 123 for the basic NTP function once you hit the time update button. (Not to be confused with the NTP service which I believe is to allow the NAS to be the NTP sync server for other devices on the LAN, don't need this).

This fails but only after a long time out, which takes longer than normal to fail so I believe it is trying.

So I don't know if I am doing something wrong with the rules here or my question for the TM staff is..

Have you changed the standard port number for the NTP function as a different port number?

Any direction much appreciated..

Revamp
F4-423 (24/08/2023)
20GB
2 x M.2 SSD NVMe 500GB 970 EVO Plus
(1 For TOS5 Boot and Apps - 1 For Hyper Cache) with a custom fabricated heatsink (L shaped) to cover both
4 x 1TB IronWolf in TRAID
TOS 5.1.67 + @current
TOS Language - English
Locked