Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time sync fails #1504

Closed
markuznw opened this issue Jun 20, 2020 · 10 comments
Closed

Time sync fails #1504

markuznw opened this issue Jun 20, 2020 · 10 comments
Labels

Comments

@markuznw
Copy link

markuznw commented Jun 20, 2020

Hello, with both master branch and beta I can't seem to have a working time sync feature. It is set by default to time.google.com but even if I change that to another NTP server time still stays at January 1970. Is there anything else I can do to fix that?
I also tried through ssh but there is no ntpdate command

@jmtatsch
Copy link
Collaborator

Likely you have dns problems or you didn’t have internet at startup.

@gadget78
Copy link
Contributor

also see if you have configured the staticip.conf
and if you did make sure you also setup defaultgw.conf as well :) as i fell for this too !

@markuznw
Copy link
Author

markuznw commented Jun 25, 2020

Hello and thanks for reply @gadget78. I've got both files configured:

# IP address and subnet mask
# The format must be [ip] netmask [netmask]
# Ex: 10.0.0.10 netmask 255.255.255.0
192.168.1.247 netmask 255.255.255.0
# default gateway IP address
192.168.1.1

which is my router ip (192.168.1.1) but it doesn't work. Don't have any idea on what's wrong.

@mr2c12
Copy link

mr2c12 commented Jul 20, 2020

I suffered from (probably) the same problem.
Please check: #1540

Long story short: check the filesystem on your sd, it may be (partially) corrupted.

@Geek-MD
Copy link
Contributor

Geek-MD commented Aug 10, 2020

I have the same problem. First, my time zone is not available for selection (America, Chile, Santiago), and second every time I configure static ip and default gateway at staticip.conf and defaultgw.conf, time and date changes to 1967, even when time.google.com is configured as ntp server.

@nemiro-TECH
Copy link

nemiro-TECH commented Aug 12, 2020

@MrAndersonMD and @markuznw

I have had the same problem.

Double checked and it is when I use fix IP it looses the time and goes back to the 70's.
If I change through ssh and reboots the time and date updates back to the 20's (2020 🥇 )

Also, update brakes too...

EDIT
Fixed my Time sync and OTA Update.
I all resumed to the staticip.conf and defaultgw.conf.
After changing the gateway IP it all worked fine and even my network that was lagging had some improvements.

Services running: motion detection, motion snapshot, auto night and H264 server.
Video streaming flawlessly.

image
image

@Geek-MD
Copy link
Contributor

Geek-MD commented Sep 14, 2020

Now time sync it's working on my Xiaomi camera. Don't know what worked from all the things I've done, but it's working.

@sar
Copy link

sar commented Nov 11, 2020

If you have an offline install, one workaround is the linux date set command, it's not persistent on reboot without a hwclock sync present.

$ date -s YYMMDDhhmm

@stale
Copy link

stale bot commented Jan 10, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jan 10, 2021
@stale stale bot closed this as completed Jan 17, 2021
@kiranbhakre
Copy link

If you have an offline install, one workaround is the linux date set command, it's not persistent on reboot without a hwclock sync present.

$ date -s YYMMDDhhmm

Works for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants