Calendar sync is not happening

Bug #1438662 reported by Dave Morley
166
This bug affects 57 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
Critical
Bill Filler
sync-monitor
Invalid
Critical
Renato Araujo Oliveira Filho
syncevolution (Ubuntu)
Fix Released
Critical
Renato Araujo Oliveira Filho
syncevolution (Ubuntu RTM)
Fix Released
Critical
Renato Araujo Oliveira Filho

Bug Description

STEPS:
1. Install calendar
2. Step up your google account
3. Enable accounts to use calendar
4. Tap on the sync option in Calendar

EXPECTED:
I expect it to update my calendar and notifications

ACTUAL:
In .cache/upstart/sync-monitor.log I see lots of
"error" : "error code from SyncEvolution remote, status 400: updateAllSubItems REPORT 'list items': bad HTTP status: <status 1.1, code 400, class 4, Bad Request>" and "error" : "error code from SyncEvolution remote, status 400: REPORT 'meta data': bad HTTP status: <status 1.1, code 400, class 4, Bad Request>" and sync doesn't happen

We are assuming this is a change on googles side that affects us on both vivid and rtm.

Dave Morley (davmor2)
tags: added: qa-manual-testing
Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

Confirmed here on rtm.

Changed in sync-monitor:
status: New → Confirmed
Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

.. and confirmed on vivid too.

Changed in sync-monitor:
assignee: nobody → Renato Araujo Oliveira Filho (renatofilho)
importance: Undecided → Critical
Bill Filler (bfiller)
Changed in syncevolution (Ubuntu):
status: New → In Progress
Changed in syncevolution (Ubuntu RTM):
status: New → In Progress
Changed in syncevolution (Ubuntu):
assignee: nobody → Renato Araujo Oliveira Filho (renatofilho)
Changed in syncevolution (Ubuntu RTM):
assignee: nobody → Renato Araujo Oliveira Filho (renatofilho)
importance: Undecided → Critical
Changed in syncevolution (Ubuntu):
importance: Undecided → Critical
Changed in sync-monitor:
status: Confirmed → Invalid
Bill Filler (bfiller)
Changed in canonical-devices-system-image:
milestone: none → ww13-ota
importance: Undecided → Critical
status: New → Confirmed
Changed in canonical-devices-system-image:
assignee: nobody → Bill Filler (bfiller)
status: Confirmed → In Progress
Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

I found the problem.

The function that convert the synInterval property into a date was returning month value in a range 0..11 instead of 1..12.

Changed in canonical-devices-system-image:
milestone: ww13-ota → ww17-2015
tags: added: bq hotfix
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

using rtm silo 2
Seemed to work, it took 7 mins to complete. The calendar app did not update properly until I closed and reopened it.

Sync Report
  "dir" : "/home/phablet/.cache/syncevolution/google_+calendar_+10-2015-04-15-11-45"
  "end" : "1429113132"
  "peer" : "google-calendar-10"
  "source-calendar__uoa__10-backup-after" : "-1"
  "source-calendar__uoa__10-backup-before" : "-1"
  "source-calendar__uoa__10-first" : "false"
  "source-calendar__uoa__10-mode" : "two-way"
  "source-calendar__uoa__10-resume" : "false"
  "source-calendar__uoa__10-stat-local-added-total" : "77"
  "source-calendar__uoa__10-stat-local-any-received" : "874399"
  "source-calendar__uoa__10-stat-local-removed-total" : "45"
  "source-calendar__uoa__10-stat-local-updated-total" : "216"
  "source-calendar__uoa__10-status" : "0"
  "start" : "1429112752"
  "status" : "200"
"[4/15/15 11:52 AM] Sync done: <email address hidden> (calendar) Status: 200 Error: None Duration: 380s"

Revision history for this message
Mathieu Blanvillain (mathieu-blanvillain) wrote :

I've updated the Calendar app with the today update.

I got an error during calendar sync. Attached is the log. Please, be careful. First, I removed my google account, then add it again and enable sync for mail, contacts and calendar.

Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote : Re: [Bug 1438662] Re: Calendar sync is not happening

did you reboot the device after the update?
Could you send me the version of the syncevolution installed on your device?

On Wed, Apr 15, 2015 at 5:57 PM, Mathieu Blanvillain
<email address hidden> wrote:
> I've updated the Calendar app with the today update.
>
> I got an error during calendar sync. Attached is the log. Please, be
> careful. First, I removed my google account, then add it again and
> enable sync for mail, contacts and calendar.
>
>
> ** Attachment added: "calendar_app.log"
> https://bugs.launchpad.net/sync-monitor/+bug/1438662/+attachment/4376612/+files/calendar_app.log
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1438662
>
> Title:
> Calendar sync is not happening
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/canonical-devices-system-image/+bug/1438662/+subscriptions

Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

@mathieu

did you reboot the device after the update?
Could you send me the version of the syncevolution installed on your device?

Revision history for this message
Yuri (linux-colombi) wrote :

I installed the last calendar patch too, and after a reboot, while trying to sync my calendar with Google, I got the error "fail to sync". The version of the package syncevolution is 1.5~rtm-0ubuntu4. It runs on a bq phone (manufacturer version updated with last patches).

The log is :

From file /home/phablet/.cache/upstart/sync-monitor.log:
syn requested for account: "<email address hidden>" "calendar"
Pushed into queue with immediately sync? true Sync is running false
Request sync
Sync requested service: "<email address hidden>" "calendar"
Configure account for service: "<email address hidden>" "calendar" "disabled"
start configure for services ("calendar")
 config session created "google-calendar-2" "idle"
 account config done "<email address hidden>" "calendar"
"[16/04/15 07:00] Start sync: <email address hidden> (calendar)"
Progress 0
Sync Report
  "dir" : "/home/phablet/.cache/syncevolution/google_+calendar_+2-2015-04-16-07-00"
  "end" : "1429160451"
  "error" : "error code from SyncEvolution fatal error (local, status 10500): no datastores active, check configuration"
  "peer" : "google-calendar-2"
  "start" : "1429160451"
  "status" : "10500"
"[16/04/15 07:00] Sync done: <email address hidden> (calendar) Status: 10500 Error: Unknown status Duration: 1s"
Sync requested service: "<email address hidden>" "calendar"
Configure account for service: "<email address hidden>" "calendar" "slow"
start configure for services ("calendar")
 config session created "google-calendar-2" "idle"
 account config done "<email address hidden>" "calendar"
"[16/04/15 07:00] Start sync: <email address hidden> (calendar)"
Progress 0
Progress 0
Progress 38
Sync Report
  "dir" : "/home/phablet/.cache/syncevolution/google_+calendar_+2-2015-04-16-07-00-a"
  "end" : "1429160453"
  "error" : "error code from SyncEvolution remote, status 400: REPORT 'meta data': bad HTTP status: <status 1.1, code 400, class 4, Bad Request>"
  "peer" : "google-calendar-2"
  "source-calendar__uoa__2-backup-after" : "-1"
  "source-calendar__uoa__2-backup-before" : "-1"
  "source-calendar__uoa__2-first" : "false"
  "source-calendar__uoa__2-mode" : "disabled"
  "source-calendar__uoa__2-resume" : "false"
  "source-calendar__uoa__2-status" : "10400"
  "start" : "1429160452"
  "status" : "10400"
"[16/04/15 07:00] Sync done: <email address hidden> (calendar) Status: 10400 Error: Unknown status Duration: 1s"
All syncs finished
New connection type: "WLAN"
New connection type: "WLAN"
New connection type: "WLAN"
New connection type: "WLAN"
New connection type: "WLAN"
New connection type: "WLAN"
New connection type: "WLAN"

Revision history for this message
Mathieu Blanvillain (mathieu-blanvillain) wrote :

@renatofilho : I tried again this morning after the OTA update on devel-proposed channel. So yes I've rebooted.

My syncevolution version is : 1.5-0ubuntu4

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

@mathieu when you updated you reverted to the old version, you should see 1.5-0ubuntu5 from the testing silo

Revision history for this message
Mathieu Blanvillain (mathieu-blanvillain) wrote :

ok, that's explain.

Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

@yuri @mathieu

This is not a calendar-app bug, it will not be fixed by updates on calendar-app. We are working on a fix in the sync service (syncevolution).

Revision history for this message
Mathieu Blanvillain (mathieu-blanvillain) wrote :

Ok, Thanks renatofilho

Revision history for this message
Mathieu Blanvillain (mathieu-blanvillain) wrote :

Hi all,

I have installed latest vivid version on my BQ (196 build) and synhcronization is working fine with google now. In both direction, from server and to server.
All coming events are also displayed in the status bar under clock icon.

Great jobs :)

Revision history for this message
Mathieu Blanvillain (mathieu-blanvillain) wrote :

Maybe I need to open an enhancement (do you have a dedicated location for enhancements?), but what about having a synchronization period for all google services (contacts and calendar as I suppose email is different while dekko doesn't connect with system settings) ?

Thanks a lot

Revision history for this message
EricDHH (ericdhh) wrote :

BQ aquaris ubuntu 14.10. (r21) patchlevel today

There is no sync in the calendar-app and status-bar. Did a reboot full, removed the google account for full. When inserting it again, the calendar-app switch displays "synchronisation fail", only the contact sync works for now.

None events are displayed in status bar and calendar.app and no event set into the calendar-app syncs to google.

Do is have to install something beta?

Changed in canonical-devices-system-image:
milestone: ww17-2015 → ww19-ota
Changed in syncevolution (Ubuntu):
status: In Progress → Fix Released
Changed in syncevolution (Ubuntu RTM):
status: In Progress → Fix Released
Changed in canonical-devices-system-image:
status: In Progress → Fix Committed
Revision history for this message
Davide Alberelli (dadexix86) wrote :

Hi. bq device, r21, calendar app version 0.4.627, the sync works again since a couple of days.

Revision history for this message
tobson (tmai) wrote :

Hello, I can confirm this. Since a couple of days the sync works also on my BQ with google and I can add and modify events in both directions.
app version 0.4.627

Changed in canonical-devices-system-image:
status: Fix Committed → Fix Released
Revision history for this message
Tomas Öqvist (tomoqv) wrote :

I can see that this bug is marked as fixed, but I haven't been able to sync any calendars on my Aquaris 4.5 for a long time. Either I get the error message "Couldn't sync <email address hidden>" or the sync icon in the menu stays greyed out forever. No sync in any case.

According to the e-mail thread "[Ubuntu-phone] is this a new calendar app (-version) ?" there seems to be a lot of confusion regarding the calendar sync ability. Alan Pope informed the e-mail thread that "Multiple calendars is a feature enhancement. We're currently using Evolution for our calendar syncing back-end, and this has never supported multi-calendar Google sync."

Is this bug really closed?

Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

This bug was fixed and it is not related with multiple calendar sync.

If you still have problems to sync your calendar it can be a different bug. Could you report a new bug and attach the sync-monitor log? you can find int on (/home/phablet/.cache/upstart/sync-monitor.log)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.