Upgrading Team Calendars for Confluence to 4.2 or above causes events to disappear

Still need help?

The Atlassian Community is here for you.

Ask the community

Problem

When you upgrade to Team Calendars for Confluence 4.2 or above some of your events will disappear as demonstrated in the following screen shots:

Prior Team Calendars for Confluence upgrade:

After Team Calendars for Confluence upgrade:


The following appears in the atlassian-confluence.log during the upgrade:

2015-04-09 15:12:10,701 ERROR [scheduler_Worker-4] [atlassian.labs.lucenecompat.Extractor2ToExtractorAdapter] addFields Error extracting search fields from [com.atlassian.confluence.extra.team-calendars:calendar-content-type] custom: IS Team Availability v.1 (167346472) using com.atlassian.confluence.extra.calendar3.extractor.PermissionCalendarContentTypeExtractor@3c3c7878: null
java.lang.NullPointerException
	at com.atlassian.confluence.extra.calendar3.calendarstore.InternalSubscriptionCalendarDataStore.fromStorageFormat(InternalSubscriptionCalendarDataStore.java:129)
	at com.atlassian.confluence.extra.calendar3.calendarstore.InternalSubscriptionCalendarDataStore.fromStorageFormat(InternalSubscriptionCalendarDataStore.java:53)
	at 
...
com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.surroundJobExecutionWithLogging(AbstractClusterAwareQuartzJobBean.java:65)
	at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.executeInternal(AbstractClusterAwareQuartzJobBean.java:47)
	at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
	at org.quartz.core.JobRunShell.run(JobRunShell.java:199)
	at com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool$1.run(ConfluenceQuartzThreadPool.java:20)
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)

Cause

Duplicated event types are causing the data migrated from the BANDANA table to the new AO tables to fail.

Resolution

If possible set up a staging environment for safety measures.

 

  1. Go into logging and profiling.
  2. Add below class as INFO:

    com.atlassian.confluence.extra.calendar3.upgrade.task.aomigration.impl.DefaultBandanaToActiveObjectMigrationManager
  3. Go to manage add ons.
  4. Download and install the team-calendars-5.0.8-SNAPSHOT.obr.
  5. That will upgrade you TC to a patched version.
  6. Go to the following page:

    <YourBaseURL>/admin/calendar/migratetoactiveobjects.action
  7. Hit the DELETE button so we can wipe all the data on the AO tables.
  8. Once the delete is done, hit MIGRATE.
  9. After the migration is complete, check that your events are showing up accordingly on the affected calendars.
  10. If everything is working fine, then upgrade to the latest version of Team Calendars for Confluence.
  11. If anything goes wrong, generate a confluence support zip and raise a Support Request.

Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.