Thanks for the quick response, they are pretty quick though, about 10s.

On Fri, Aug 21, 2015 at 2:58 PM, Sriram Karra <[email protected]> wrote:
> How long does each of your runs take? Asynk is not designed to be "thread
> safe". One wild possibility could be the cron runs are getting into each
> other. Sounds very unlikely, but that is the best guess I can come up with.
>
> On Aug 21, 2015 6:45 AM, <[email protected]> wrote:
>>
>> Hi,
>> When I run my google to google sync on the command line it always works.
>> But I run it every 15mins via cron, and probably once an hour or two the
>> sync fails with an "Invalid Credentials" error.  My credentials are on an
>> NFS share, so I thought perhaps they weren't immediately available sometimes
>> (pretty unlikely I know!), so I now do an ls -l ~/.asynk/ before the sync,
>> but it makes no difference.  The full error is below.  I can't blame asynk,
>> it works fine from the command line, I expect it must be something to do
>> with my machine or network (but I run tons of stuff from cron that access
>> the network and they never bomb out), so I'm just looking for a clue about
>> why this would be happening.  Thanks!
>> Matt
>>
>>
>> CRITICAL:root:Exception (Unauthorized - Server responded with: 401, <?xml
>> version="1.0" encoding="UTF-8"?>
>> <errors xmlns="http://schemas.google.com/g/2005";>
>>  <error>
>>   <domain>GData</domain>
>>   <code>authError</code>
>>   <location type="header">Authorization</location>
>>   <internalReason>Invalid Credentials</internalReason>
>>  </error>
>> </errors>
>> ) while syncing profile heatherkjenkins2mrmattwilkins
>> [12:30:05.625 CRITICAL] Exception (Unauthorized - Server responded with:
>> 401, <?xml version="1.0" encoding="UTF-8"?>
>> <errors xmlns="http://schemas.google.com/g/2005";>
>>  <error>
>>   <domain>GData</domain>
>>   <code>authError</code>
>>   <location type="header">Authorization</location>
>>   <internalReason>Invalid Credentials</internalReason>
>>  </error>
>> </errors>
>> ) while syncing profile heatherkjenkins2mrmattwilkins
>> CRITICAL:root:Traceback (most recent call last):
>>   File "/usr/local/ASynK/asynk/asynk_core.py", line 396, in op_sync
>>     result = sync.sync(self.get_sync_dir())
>>   File "/usr/local/ASynK/asynk/sync.py", line 295, in sync
>>     sl1, sl2 = self.prep_lists(dirn)
>>   File "/usr/local/ASynK/asynk/sync.py", line 283, in prep_lists
>>     return self._prep_lists_2_way(self.get_f1(), self.get_f2())
>>   File "/usr/local/ASynK/asynk/sync.py", line 179, in _prep_lists_2_way
>>     f2.prep_sync_lists(f1.get_dbid(), f2sl)
>>   File "/usr/local/ASynK/asynk/folder_gc.py", line 118, in prep_sync_lists
>>     newi  = self.get_itemids(pname, destid)
>>   File "/usr/local/ASynK/asynk/folder_gc.py", line 219, in get_itemids
>>     self._refresh_contacts()
>>   File "/usr/local/ASynK/asynk/folder_gc.py", line 550, in
>> _refresh_contacts
>>     feed = self._get_group_feed()
>>   File "/usr/local/ASynK/asynk/folder_gc.py", line 629, in _get_group_feed
>>     feed = self.get_gdc().GetContacts(q=query)
>>   File "/usr/local/ASynK/lib/gdata/contacts/client.py", line 201, in
>> get_contacts
>>     desired_class=desired_class, **kwargs)
>>   File "/usr/local/ASynK/lib/gdata/client.py", line 640, in get_feed
>>     **kwargs)
>>   File "/usr/local/ASynK/lib/gdata/client.py", line 307, in request
>>     response, Unauthorized)
>> Unauthorized: Unauthorized - Server responded with: 401, <?xml
>> version="1.0" encoding="UTF-8"?>
>> <errors xmlns="http://schemas.google.com/g/2005";>
>>  <error>
>>   <domain>GData</domain>
>>   <code>authError</code>
>>   <location type="header">Authorization</location>
>>   <internalReason>Invalid Credentials</internalReason>
>>  </error>
>> </errors>
>>
>>
>> [12:30:05.627 CRITICAL] Traceback (most recent call last):
>>   File "/usr/local/ASynK/asynk/asynk_core.py", line 396, in op_sync
>>     result = sync.sync(self.get_sync_dir())
>>   File "/usr/local/ASynK/asynk/sync.py", line 295, in sync
>>     sl1, sl2 = self.prep_lists(dirn)
>>   File "/usr/local/ASynK/asynk/sync.py", line 283, in prep_lists
>>     return self._prep_lists_2_way(self.get_f1(), self.get_f2())
>>   File "/usr/local/ASynK/asynk/sync.py", line 179, in _prep_lists_2_way
>>     f2.prep_sync_lists(f1.get_dbid(), f2sl)
>>   File "/usr/local/ASynK/asynk/folder_gc.py", line 118, in prep_sync_lists
>>     newi  = self.get_itemids(pname, destid)
>>   File "/usr/local/ASynK/asynk/folder_gc.py", line 219, in get_itemids
>>     self._refresh_contacts()
>>   File "/usr/local/ASynK/asynk/folder_gc.py", line 550, in
>> _refresh_contacts
>>     feed = self._get_group_feed()
>>   File "/usr/local/ASynK/asynk/folder_gc.py", line 629, in _get_group_feed
>>     feed = self.get_gdc().GetContacts(q=query)
>>   File "/usr/local/ASynK/lib/gdata/contacts/client.py", line 201, in
>> get_contacts
>>     desired_class=desired_class, **kwargs)
>>   File "/usr/local/ASynK/lib/gdata/client.py", line 640, in get_feed
>>     **kwargs)
>>   File "/usr/local/ASynK/lib/gdata/client.py", line 307, in request
>>     response, Unauthorized)
>> Unauthorized: Unauthorized - Server responded with: 401, <?xml
>> version="1.0" encoding="UTF-8"?>
>> <errors xmlns="http://schemas.google.com/g/2005";>
>>  <error>
>>   <domain>GData</domain>
>>   <code>authError</code>
>>   <location type="header">Authorization</location>
>>   <internalReason>Invalid Credentials</internalReason>
>>  </error>
>> </errors>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "ASynK Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send an email to [email protected].
>> To view this discussion on the web, visit
>> https://groups.google.com/d/msgid/asynk/d943a4c0-5347-459a-a14a-95bb3be765b9%40googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "ASynK Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/asynk/JKtcmvOmC9c/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/asynk/CAFkt3UO2qfcOV4qbm14ixqHcpkjfp9bfMb670gquzjEMWLmxXQ%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"ASynK Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send an email to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/asynk/CADH-zAc7L-7avOB3t%3Dt4pJjumr39USL_Qt4o7qy7-JNXZjM6eA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to