Active Topics

 



Notices


Reply
Thread Tools
Posts: 123 | Thanked: 33 times | Joined on Jan 2010 @ Stockholm
#131
Originally Posted by lorelei View Post
There's a chance in 60 (very exactly!) that you will get this bug: in fact it is triggered when the timestamp of the last update falls exactly at a whole minute (for instance 12:30:00).
So, adding a second to the timestamp in config would have solved it? Anyway, 0.1.2 did.
/P
 
Posts: 123 | Thanked: 33 times | Joined on Jan 2010 @ Stockholm
#132
The bug report formerly in this post was just me being to impatient, but here's another one that might interest you:

Code:
/erminig-ng-0.1.2 $ python erminig-ng --sync-calendars
~/erminig-ng-0.1.2 $ python erminig-ng --sync-calendars
Traceback (most recent call last):
  File "erminig-ng", line 520, in <module>
    getAllCalendars()
  File "erminig-ng", line 190, in getAllCalendars
    createGoogleCalendar(id, cal)
  File "erminig-ng", line 137, in createGoogleCalendar
    new_calendar = gd_client.InsertCalendar(new_calendar=calendar)
  File "/usr/lib/python2.5/site-packages/gdata/calendar/service.py", line 207, in InsertCalendar
    converter=gdata.calendar.CalendarListEntryFromString)
  File "/usr/lib/python2.5/site-packages/gdata/service.py", line 1178, in Post
    media_source=media_source, converter=converter)
  File "/usr/lib/python2.5/site-packages/gdata/service.py", line 1287, in PostOrPut
    redirects_remaining - 1, media_source, converter=converter)
  File "/usr/lib/python2.5/site-packages/gdata/service.py", line 1287, in PostOrPut
    redirects_remaining - 1, media_source, converter=converter)
  File "/usr/lib/python2.5/site-packages/gdata/service.py", line 1287, in PostOrPut
    redirects_remaining - 1, media_source, converter=converter)
  File "/usr/lib/python2.5/site-packages/gdata/service.py", line 1287, in PostOrPut
    redirects_remaining - 1, media_source, converter=converter)
  File "/usr/lib/python2.5/site-packages/gdata/service.py", line 1295, in PostOrPut
    'body': result_body}
gdata.service.RequestError: {'status': 302, 'body': '<HTML>\n<HEAD>\n<TITLE>Moved Temporarily</TITLE>\n</HEAD>\n<BODY BGCOLOR="#FFFFFF" TEXT="#000000">\n<H1>Moved Temporarily</H1>\nThe document has moved <A HREF="http://www.google.com/calendar/feeds/default/owncalendars/full?gsessionid=FeLmldAkcyhgByN_0WPPwA">here</A>.\n</BODY>\n</HTML>\n', 'reason': 'Redirect received, but redirects_remaining <= 0'}
~/erminig-ng-0.1.2 $ python erminig-ng --sync-calendars
~/erminig-ng-0.1.2 $
This is:
1. Answering no to all calendars.
2. Answering yes to create N900 on Google - got error.
3. Answering yes to create N900 on Google - worked.

Although it seems that it didn't export the existing stuff in the N900 calendar to the Google N900 calendar?

Is there a way to remove this N900 configuration and recreate the bond, without affecting the other connection I have (where my main Google calendar created a calendar on my N900)?

/P

Last edited by Palleman; 2010-02-06 at 00:07.
 

The Following User Says Thank You to Palleman For This Useful Post:
Posts: 479 | Thanked: 641 times | Joined on Dec 2007 @ Switzerland
#133
So, adding a second to the timestamp in config would have solved it?
yes, but of course this would not have been a good solution Anyway, now the problem has been fixed in the code, so this won't come back. Thank you for your help!

Originally Posted by Palleman View Post
but here,s another one that might interest you:
[...]
yup, this one is not an unknown one: got hit by it a few days ago. this situation is handled correctly in a few cases but not in others (so the fix can be trivial, but I want to make it generic and clean)

To fix in the interim: you can redo the actions (i.e. asking for the creation of calendars on Google) until Google cooperates. Usually on the second try everything goes well. A more definitive fix will come up in the next release (I still don't know whether it will be a major release with GUI, or just a bugfix release).
 

The Following User Says Thank You to lorelei For This Useful Post:
Posts: 123 | Thanked: 33 times | Joined on Jan 2010 @ Stockholm
#134
Originally Posted by lorelei View Post
To fix in the interim: you can redo the actions (i.e. asking for the creation of calendars on Google) until Google cooperates. Usually on the second try everything goes well.
Yup, it did for me as well (look in my "code" section here).

I think you missed this edit:

Originally Posted by Palleman View Post
Although it seems that it didn't export the existing stuff in the N900 calendar to the Google N900 calendar?

Is there a way to remove this N900 configuration and recreate the bond, without affecting the other connection I have (where my main Google calendar created a calendar on my N900)
I looked into the .erminigdb file. Deleting the test events I created in the involved calendars, and removing the corresponding entry in googleIDs should make erminig ask again about the same calendar, right?

/P

Last edited by Palleman; 2010-02-06 at 00:32.
 
Posts: 479 | Thanked: 641 times | Joined on Dec 2007 @ Switzerland
#135
I looked into the .erminigdb file. Deleting the test events I created in the involved calendars, and removing the corresponding entry in googleIDs should make erminig ask again about the same calendar, right?

Woops, missed the edit, indeed!

To answer your question: yes, what makes Erminig ask for a new calendar is the entry in googleIDs. If an entry alread exist, then it won't ask you about that calendar. The format of that table is:

local_calendar_id | google_calendar_id

you should also perform cleanup in the events table (in erminigdb), by removing local events ids and the corresponding google id. Local events (and their IDs) are stored in ~/.calendar/calendardb sqlite3 file, so you may be able to track down which events you want to remove (many events information are stored in the Components table).

Beware that fiddling with the calendar db can be dangerous...
 

The Following 2 Users Say Thank You to lorelei For This Useful Post:
Posts: 123 | Thanked: 33 times | Joined on Jan 2010 @ Stockholm
#136
Originally Posted by lorelei View Post
you should also perform cleanup in the events table (in erminigdb),
I didn't have to do that. Erminig recognized the events as if I had never deleted the entry in googleIDs.

Reran --sync-calendars and a couple of ordinary syncs, but the existing data still won't get synced. The data in the N9i00 calendar is synced to my N900 calendar via MfE (from another Exchange server than the one mentioned in an earlier post). So I'm trying another approach - chaning MfE to sync to the calendar created by Erminig when I did --sync-calendar from my main Google calendar.

Originally Posted by lorelei View Post
Beware that fiddling with the calendar db can be dangerous...
That's why I love this device.
 
Posts: 123 | Thanked: 33 times | Joined on Jan 2010 @ Stockholm
#137
Just when you thought I ran out of bug reports:
Code:
-------------------------------------------
Traceback (most recent call last):
  File "erminig-ng", line 524, in <module>
    syncNewEvents()
  File "erminig-ng", line 503, in syncNewEvents
    getNewEventsFromGoogle(lastSync)
  File "erminig-ng", line 290, in getNewEventsFromGoogle
    feed = gd_client.CalendarQuery(query)
  File "/usr/lib/python2.5/site-packages/gdata/calendar/service.py", line 126, in CalendarQuery
    converter=gdata.calendar.CalendarEventFeedFromString)
  File "/usr/lib/python2.5/site-packages/gdata/calendar/service.py", line 118, in Query
    result = self.Get(uri, converter=converter)
  File "/usr/lib/python2.5/site-packages/gdata/service.py", line 1039, in Get
    encoding=encoding, converter=converter)
  File "/usr/lib/python2.5/site-packages/gdata/service.py", line 1050, in Get
    'reason': server_response.reason, 'body': result_body}
gdata.service.RequestError: {'status': 403, 'body': 'the@pal.pp.se har inte l\xc3\xa4s\xc3\xa5tkomst till kalendern som \xc3\xa4gs av g1op2h8ebo5ecbqg7eqb8ihh3c@group.calendar.google.com.', 'reason': 'Forbidden'}
~/erminig-ng-0.1.2 $
Dunno why the error message is in Swedish... everything on my Google and on my N900 is in English. Anyway, the translation is "the@pal.pp.se don't have access to the calendar owned by blahblah@blahblah".

Before the error it successfully synced a lot of events.

Edit: The error is repeating at each run, but not until the same bunch of birthdays has been ignored, and a couple of updates have been updated (or at least it says so on screen).

/P

Last edited by Palleman; 2010-02-06 at 02:34.
 
Posts: 479 | Thanked: 641 times | Joined on Dec 2007 @ Switzerland
#138
Originally Posted by Palleman View Post
Reran --sync-calendars and a couple of ordinary syncs, but the existing data still won't get synced. The data in the N9i00 calendar is synced to my N900 calendar via MfE (from another Exchange server than the one mentioned in an earlier post). So I'm trying another approach - chaning MfE to sync to the calendar created by Erminig when I did --sync-calendar from my main Google calendar.
Hmmm, I'm note sure I really understood the problem, but possible hint: the "last synchronization timestamp" is global to all calendars (for the moment, this will change in the upcoming release), so if you synced a first calendar, then add a new one with --sync-calendars, events prior to the last sync won't be synchronized in your newly added calendar.

This is a shortcoming that will also be fixed in the next major version.
 

The Following 2 Users Say Thank You to lorelei For This Useful Post:
Posts: 123 | Thanked: 33 times | Joined on Jan 2010 @ Stockholm
#139
Ah, that explains it. So I should have deleted all calendars on N900, deleted the .erminigdb file and then run --sync-calendars.

I can also report that changing which calendar MfE should sync with made MfE delete a few thousand entries on that Exchange server and then added all entries from the calendar (the one I changed to) on my N900.

/P
 
Posts: 200 | Thanked: 15 times | Joined on Dec 2009 @ São Paulo - Brasil
#140
Hi everybody! A little help please.
Everytime I try to unzip it I get "permission denied" as you can see...I am totaly new at this.

thanx in advance!
 
Reply

Tags
erminig, erminig-ng, ernie nig, google calendar, google sync, synchronization


 
Forum Jump


All times are GMT. The time now is 14:00.