cimryan / teslausb

Steps and scripts for turning a Raspberry Pi into a useful USB drive for a Tesla
MIT License
580 stars 492 forks source link

Nothing backing up to google drive - seems due to wrong datetime #145

Closed ctwomey closed 5 years ago

ctwomey commented 5 years ago

I have everything setup and working (at least serving as a drive for the tesla) using marcone's fork (Thank you!!). However nothing is getting backed up to my google drive.

After digging into /mutable/archiveloop.log I saw the error "certificate has expired or is not yet valid" - and true enough, my pi is reporting the date as Feb 14, as opposed to today, June 28. Once I reset the time and kicked archiveloop, it started working....ONCE. Unfortunately every time the pi boots it is back to Feb 14 and the ensuing google error. Per above, I am using the marcone fork, ntp is running and wifi is chugging along on the pi.

Any advice?

ctwomey commented 5 years ago

Moved issue over to @marcone's fork...

FWIW, I fixed this issue by placing a call to ntpdate into /root/bin/archiveloop after detecting the remote archive is accessible