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

QNAP Google Drive Synch (which is using Grive) manually syncs but not when scheduled - CURL error. #295

Open
BalooBearUSA opened this issue Jan 15, 2015 · 0 comments

Comments

@BalooBearUSA
Copy link

When running Google Drive Synch manually, everything works as expected - thanks. However when I try to schedule a synch I receive the follow CURL error.

QNAP TS-410 NAS
My related system settings
Time/Server: Synchronize with Internet Time server automatically, 0.europe.pool.ntp.org
Google Drive Sync: 0.3.3.7, Direction NAS to Google Drive
Google Drive Size: 23GB, 31,238 Files

Is it something to do w/the scheduling part of this program as manual synchs work fine (See Manual Log Success below)?
All files synch as expected. However, if I then create a schedule (eg I tried both daily and hourly) they fail (See Schedule Fail Log)?
I had thought it might be the fact it takes about 2 hours to run manually (I guess would impact hourly), but not the daily?

Possibilities considered:
• I've re-installed the Google Drive Sync application with no change in results.
• I've re-started the QNAP server with no change in results.
• I do have two-pass authentication on my Google account, but I don’t think that affects it as you can see manual synchs work just fine.
• I also see that at the number of files I have is slightly over the recommended 30,000 for ARM, but the manual synchs work fine?
• To check that authentication wasn't an issue, I did a manual (success), schedule (fail) and manual (success).

On a side note; it would be also nice to manually change the time interval. Once the scheduled syncs work I’d be comfortable tweaking the script.

Manual Log Success [2015-01-14-20-26-38]: Actual file names changed to [Private DATA], but it did do many…

[quote]
last sync time: 1970-01-01T00:00:00.000Z
Reading local directories
Synchronizing folders
resquest failed due to auth token expired: 401. refreshing token
Reading remote server file list
Synchronizing files
sync ./[PRIVATE DATA] changed in local. uploading
sync ./[PRIVATE DATA] doesn't exist in server, uploading
Sync time (from local time): 2015-01-14T20:26:38.752Z
Finished!
[/quote]

Schedule Log Fail [2015-01-15-00-00-04]:
[quote]
last sync time: 1970-01-01T00:00:00.000Z
Reading local directories
Synchronizing folders
resquest failed due to auth token expired: 401. refreshing token
Reading remote server file list
Curl failed due to error: 35, url=https://docs.google.com/feeds/default/private/full?start-key=[Private DATA]&showroot=true&showfolders=true, http_code=0.
exception: Throw in function (unknown)
Dynamic exception type: N2gr3xml5ErrorE
std::exception::what: std::exception
[PN2gr4expt6MsgTagE] = invalid node
[PN2gr4expt12BacktraceTagE] = #0 0xda910 crtstuff.c:0 gr::Exception::Exception()
#1 0xe0d90 crtstuff.c:0 gr::xml::Error::Error()
#2 0xe6dec crtstuff.c:0 gr::xml::TreeBuilder::Result() const
#3 0xbf830 crtstuff.c:0 gr::http::XmlResponse::Response() const
#4 0xaa834 crtstuff.c:0 gr::Feed::Start(gr::http::Agent*, gr::http::Header const&, std::string const&)
#5 0xaac50 crtstuff.c:0 gr::Feed::GetNext(gr::http::Agent*, gr::http::Header const&)
#6 0x97c70 crtstuff.c:0 gr::Drive::DetectChanges()
#7 0x783d4 crtstuff.c:0 Main(int, char**)
#8 0x78788 crtstuff.c:0 main
#9 0xb6a22924 /lib/libc.so.6 __libc_start_main
#10 0x765f0 crtstuff.c:0 _start

[/quote]

My system

[quote]
Model name: TS-410
Firmware version: 4.1.2 Build 20141229
OS to access: Window 7
Number of HDDs: 4
HDD model: 2 Hitachi HDS722020ALA330 JKAO, Seagate ST32000542AS CC94, Seagate ST2000DL001-9VT1CC96
HDD capacity: (1.82 TB)
RAID configuration: Raid 5
Services enabled: AntiVirus, Download, FTP, MS Networking, Multimedia iTunes, DLNA, Music, Photo, File Station, Rsync, VPN, WebServer
External devices: INNO TECH USB to Serial
NAS connection speed/ MTU: 100 Mbps/1500
[/quote]

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

No branches or pull requests

1 participant