Upgrade failed to version 6.6.2

We got the following error after the upgrade: 

Upgrade failed. Please consult the system logs for details. You will need to fix these problems, restore your database and confluence home directory to the pre upgrade state. Then retry the upgrade. Upgrade error message: Upgrade task com.atlassian.confluence.upgrade.upgradetask.ReindexAllBlogsUpgradeTask@3f9afb90 failed during the UPGRADE phase due to: Failed to add entry to queue

2 answers

0 votes

Hi Dries,

I've looked into the "the UPGRADE phase due to: Failed to add entry to queue" error, and it seems a lot of things could cause it, for example, database issues, out of memory, etc.

We'll need to see more information from your instance to know what is causing it.

  1. Confirm your database version.
  2. Let us know what version you came from.
  3. Have a look at the system logs for more details on what causes the error. Can you provide us the lines of error messages that occur during this time and look for any "caused by" lines as well.

Thank you!




Thank you for your reply.

I wrote an email but I got now a mail back explaining that my mail didn't passed your mail system. So that's why I'm entering the information online. 

Confluence Version: 5.10.1
Build Number: 6441

Where can I find the database version?

I lost the system logs due the fact that I needed to restore the Confluence Home directory and installation, so the users could work further.


You'll want to ask your server administrator what database version you have installed. They should have this information.

The reason your email in reply to this thread didn't work is because it is a noreply email and the community is fully online.

In order to respond to a thread make sure to type into the 'reply' box directly below the response, and not the part below "Suggest an Answer".

We will need the logs in order to know what the problem is. My suggestion is to attempt to restart Confluence again and perform the upgrade, and then you can tail the logs on the instance and see what errors occur.

Once we have the error messages we'll be able to see why your upgrade is failing.



Database version is SQL Server 2012. I thought you meant the database version of the Confuence database. 

Ok, I'll try to upgrade Confluence again and send you then the logs.

Thank you for the information. There's no separate Confluence internal database so this is indeed what I was looking for!

As soon as you have any details of the error logs when upgrading do let me know and we can proceed in troubleshooting your issue.



Hello Shannon,

Sorry for the late response but I needed to find a time slot where I could bring down Confluence.

You can find the errors below: 


Caused by: org.springframework.dao.DataAccessResourceFailureException: Failed to read id for journal 'main_index': For input string: " "; nested exception is java.lang.NumberFormatException: For input string: " "
at com.atlassian.confluence.impl.journal.FilesystemJournalStateStore.getMostRecentId(FilesystemJournalStateStore.java:47)
at com.atlassian.confluence.impl.journal.CachingJournalStateStore.lambda$getMostRecentId$0(CachingJournalStateStore.java:27)
at com.atlassian.vcache.internal.core.metrics.TimedSupplier.get(TimedSupplier.java:32)
at com.atlassian.vcache.internal.legacy.LegacyJvmCache.lambda$get$4(LegacyJvmCache.java:52)
at java.util.Optional.orElseGet(Optional.java:267)
at com.atlassian.vcache.internal.legacy.LegacyJvmCache.get(LegacyJvmCache.java:50)
at com.atlassian.vcache.internal.core.metrics.TimedLocalCacheOperations.get(TimedLocalCacheOperations.java:64)
at com.atlassian.confluence.impl.journal.CachingJournalStateStore.getMostRecentId(CachingJournalStateStore.java:27)
at com.atlassian.confluence.impl.journal.DefaultJournalManager.enqueue(DefaultJournalManager.java:46)
at com.atlassian.confluence.impl.journal.DefaultJournalService.enqueue(DefaultJournalService.java:32)


Caused by: com.atlassian.confluence.api.service.exceptions.ServiceException: Failed to add entry to queue
at com.atlassian.confluence.impl.journal.DefaultJournalService.enqueue(DefaultJournalService.java:34)
at com.atlassian.confluence.search.queue.AbstractJournalIndexTaskQueue.lambda$enqueue$0(AbstractJournalIndexTaskQueue.java:89)
at java.util.Optional.ifPresent(Optional.java:159)
at com.atlassian.confluence.search.queue.AbstractJournalIndexTaskQueue.enqueue(AbstractJournalIndexTaskQueue.java:88)
at com.atlassian.confluence.upgrade.upgradetask.ReindexAllBlogsUpgradeTask.doUpgrade(ReindexAllBlogsUpgradeTask.java:27)
at com.atlassian.confluence.upgrade.AbstractUpgradeManager$UpgradeStep$4.execute(AbstractUpgradeManager.java:654)
at com.atlassian.confluence.upgrade.AbstractUpgradeManager.executeUpgradeTask(AbstractUpgradeManager.java:250)
at com.atlassian.confluence.upgrade.AbstractUpgradeManager.executeUpgradeStep(AbstractUpgradeManager.java:230)
... 14 more

Caused by: java.lang.IllegalStateException: Unable to create a tracker when osgi is not running
at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.getServiceTracker(FelixOsgiContainerManager.java:490)
at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.getServiceTracker(FelixOsgiContainerManager.java:482)
at com.atlassian.confluence.osgi.OsgiServiceRegistryImpl$1.create(OsgiServiceRegistryImpl.java:46)
at com.atlassian.confluence.osgi.OsgiServiceRegistryImpl$1.create(OsgiServiceRegistryImpl.java:43)
at com.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:321)
at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:143)
... 27 more

Hello Shannon,

After the upgrade, I restored the backup but I'm not able to start Confluence again. 

I restored the 2 backup files from Confluence and the database.

This is the error that I get: 



Hello Shannon,

I restored the full VM, just to be able to work again with Confluence. So we are able to work again with the previous version.


But the original problem still occurs. We can't upgrade to the newest version. See errors mentioned in my previous post

Hi Dries,

The errors appear to be database related, could verify with the database server administrator that the SQL Database was created according to this set of instructions:

Specifically checking the portion regarding the creation of the database user, as it tends to be overlooked.

Can you let me know which Confluence upgrade method you are performing?

You can try setting up a test environment and tail the Atlassian Confluence log while you are performing the upgrade. This will help avoid unexpected downtime in production.

Follow this article for information on how to do that:

We always will recommend you test the upgrade first on a test instance rather than upgrading the production instance to make sure everything goes smoothly.



Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,479 views 4 13
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you