Problem with Flavor after upgrade from xwiki 9.11.1 to xwiki 10.0

migration
xwiki

#1

Hello,

I’m new with xwiki and i’m having problem with extensions i cant’ install. I don’t understand the origin of the problem.

After upgrading to xwiki 10.0 with apt-get update / upgrade, i noticed that many extensions where deprecated.So i made update with the Extension Manager.

But the XWiki Standard Flavor refuse to install. I have error message like this text in bottom.

Could you please tell me how can i debug?
Thanks in advance for your help

 Installing document [Home » FlamingoThemesCode » ThemeClass]
    Done installing document [Home » FlamingoThemesCode » ThemeClass]
    No row with the given identifier exists: [com.xpn.xwiki.doc.XWikiAttachmentContent#616558408]
    class org.xwiki.extension.InstallException: Failed to install extension [org.xwiki.platform:xwiki-platform-flamingo-theme-ui/10.0]
        at org.xwiki.extension.handler.internal.DefaultExtensionHandlerManager.install(DefaultExtensionHandlerManager.java:87)
        at org.xwiki.extension.job.internal.AbstractExtensionJob.installExtension(AbstractExtensionJob.java:306)
        at org.xwiki.extension.job.internal.AbstractExtensionJob.applyAction(AbstractExtensionJob.java:209)
        at org.xwiki.extension.job.internal.AbstractExtensionJob.applyActions(AbstractExtensionJob.java:157)
        at org.xwiki.extension.job.internal.InstallJob.runInternal(InstallJob.java:154)
        at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:206)
        at org.xwiki.job.AbstractJob.run(AbstractJob.java:189)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
    Caused by: class org.xwiki.extension.InstallException: Failed to import xar for extension [org.xwiki.platform:xwiki-platform-flamingo-theme-ui/10.0]
        at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.installInternal(XarExtensionHandler.java:205)
        at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.install(XarExtensionHandler.java:167)
        at org.xwiki.extension.handler.internal.DefaultExtensionHandlerManager.install(DefaultExtensionHandlerManager.java:85)
        at org.xwiki.extension.job.internal.AbstractExtensionJob.installExtension(AbstractExtensionJob.java:306)
        at org.xwiki.extension.job.internal.AbstractExtensionJob.applyAction(AbstractExtensionJob.java:209)
        at org.xwiki.extension.job.internal.AbstractExtensionJob.applyActions(AbstractExtensionJob.java:157)
        at org.xwiki.extension.job.internal.InstallJob.runInternal(InstallJob.java:154)
        at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:206)
        at org.xwiki.job.AbstractJob.run(AbstractJob.java:189)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
    Caused by: class com.xpn.xwiki.XWikiException: Error number 3231 in 3: Exception while loading attachment Attachment xwiki:FlamingoThemes.Charcoal@logo
        at com.xpn.xwiki.store.XWikiHibernateAttachmentStore.loadAttachmentContent(XWikiHibernateAttachmentStore.java:255)
        at com.xpn.xwiki.doc.XWikiAttachment.loadAttachmentContent(XWikiAttachment.java:1018)
        at com.xpn.xwiki.doc.XWikiDocument.loadAttachmentsContent(XWikiDocument.java:4099)
        at org.xwiki.extension.xar.internal.handler.packager.Packager.importDocumentToWiki(Packager.java:216)
        at org.xwiki.extension.xar.internal.handler.packager.Packager.importXARToWiki(Packager.java:184)
        at org.xwiki.extension.xar.internal.handler.packager.Packager.importXARToWiki(Packager.java:157)
        at org.xwiki.extension.xar.internal.handler.packager.Packager.importXAR(Packager.java:148)
        at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.installInternal(XarExtensionHandler.java:202)
        at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.install(XarExtensionHandler.java:167)
        at org.xwiki.extension.handler.internal.DefaultExtensionHandlerManager.install(DefaultExtensionHandlerManager.java:85)
        at org.xwiki.extension.job.internal.AbstractExtensionJob.installExtension(AbstractExtensionJob.java:306)
        at org.xwiki.extension.job.internal.AbstractExtensionJob.applyAction(AbstractExtensionJob.java:209)
        at org.xwiki.extension.job.internal.AbstractExtensionJob.applyActions(AbstractExtensionJob.java:157)
        at org.xwiki.extension.job.internal.InstallJob.runInternal(InstallJob.java:154)
        at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:206)
        at org.xwiki.job.AbstractJob.run(AbstractJob.java:189)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
    Caused by: class org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.xpn.xwiki.doc.XWikiAttachmentContent#616558408]
        at org.hibernate.impl.SessionFactoryImpl$2.handleEntityNotFound(SessionFactoryImpl.java:435)
        at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:233)
        at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:285)
        at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:152)
        at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:1090)
        at org.hibernate.impl.SessionImpl.load(SessionImpl.java:974)
        at com.xpn.xwiki.store.XWikiHibernateAttachmentStore.loadAttachmentContent(XWikiHibernateAttachmentStore.java:242)
        at com.xpn.xwiki.doc.XWikiAttachment.loadAttachmentContent(XWikiAttachment.java:1018)
        at com.xpn.xwiki.doc.XWikiDocument.loadAttachmentsContent(XWikiDocument.java:4099)
        at org.xwiki.extension.xar.internal.handler.packager.Packager.importDocumentToWiki(Packager.java:216)
        at org.xwiki.extension.xar.internal.handler.packager.Packager.importXARToWiki(Packager.java:184)
        at org.xwiki.extension.xar.internal.handler.packager.Packager.importXARToWiki(Packager.java:157)
        at org.xwiki.extension.xar.internal.handler.packager.Packager.importXAR(Packager.java:148)
        at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.installInternal(XarExtensionHandler.java:202)
        at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.install(XarExtensionHandler.java:167)
        at org.xwiki.extension.handler.internal.DefaultExtensionHandlerManager.install(DefaultExtensionHandlerManager.java:85)
        at org.xwiki.extension.job.internal.AbstractExtensionJob.installExtension(AbstractExtensionJob.java:306)
        at org.xwiki.extension.job.internal.AbstractExtensionJob.applyAction(AbstractExtensionJob.java:209)
        at org.xwiki.extension.job.internal.AbstractExtensionJob.applyActions(AbstractExtensionJob.java:157)
        at org.xwiki.extension.job.internal.InstallJob.runInternal(InstallJob.java:154)
        at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:206)
        at org.xwiki.job.AbstractJob.run(AbstractJob.java:189)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
    No row with the given identifier exists: [com.xpn.xwiki.doc.XWikiAttachmentContent#616558408]
    class org.xwiki.extension.InstallException: Failed to install extension [org.xwiki.platform:xwiki-platform-flamingo-theme-ui/10.0]
        at org.xwiki.extension.handler.internal.DefaultExtensionHandlerManager.install(DefaultExtensionHandlerManager.java:87)
        at org.xwiki.extension.job.internal.AbstractExtensionJob.installExtension(AbstractExtensionJob.java:306)
        at org.xwiki.extension.job.internal.AbstractExtensionJob.applyAction(AbstractExtensionJob.java:209)
        at org.xwiki.extension.job.internal.AbstractExtensionJob.applyActions(AbstractExtensionJob.java:157)
        at org.xwiki.extension.job.internal.InstallJob.runInternal(InstallJob.java:154)
        at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:206)
        at org.xwiki.job.AbstractJob.run(AbstractJob.java:189)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
    Caused by: class org.xwiki.extension.InstallException: Failed to import xar for extension [org.xwiki.platform:xwiki-platform-flamingo-theme-ui/10.0]
        at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.installInternal(XarExtensionHandler.java:205)
        at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.install(XarExtensionHandler.java:167)
        at org.xwiki.extension.handler.internal.DefaultExtensionHandlerManager.install(DefaultExtensionHandlerManager.java:85)
        at org.xwiki.extension.job.internal.AbstractExtensionJob.installExtension(AbstractExtensionJob.java:306)
        at org.xwiki.extension.job.internal.AbstractExtensionJob.applyAction(AbstractExtensionJob.java:209)
        at org.xwiki.extension.job.internal.AbstractExtensionJob.applyActions(AbstractExtensionJob.java:157)
        at org.xwiki.extension.job.internal.InstallJob.runInternal(InstallJob.java:154)
        at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:206)
        at org.xwiki.job.AbstractJob.run(AbstractJob.java:189)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
    Caused by: class com.xpn.xwiki.XWikiException: Error number 3231 in 3: Exception while loading attachment Attachment xwiki:FlamingoThemes.Charcoal@logo
        at com.xpn.xwiki.store.XWikiHibernateAttachmentStore.loadAttachmentContent(XWikiHibernateAttachmentStore.java:255)
        at com.xpn.xwiki.doc.XWikiAttachment.loadAttachmentContent(XWikiAttachment.java:1018)
        at com.xpn.xwiki.doc.XWikiDocument.loadAttachmentsContent(XWikiDocument.java:4099)
        at org.xwiki.extension.xar.internal.handler.packager.Packager.importDocumentToWiki(Packager.java:216)
        at org.xwiki.extension.xar.internal.handler.packager.Packager.importXARToWiki(Packager.java:184)
        at org.xwiki.extension.xar.internal.handler.packager.Packager.importXARToWiki(Packager.java:157)
        at org.xwiki.extension.xar.internal.handler.packager.Packager.importXAR(Packager.java:148)
        at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.installInternal(XarExtensionHandler.java:202)
        at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.install(XarExtensionHandler.java:167)
        at org.xwiki.extension.handler.internal.DefaultExtensionHandlerManager.install(DefaultExtensionHandlerManager.java:85)
        at org.xwiki.extension.job.internal.AbstractExtensionJob.installExtension(AbstractExtensionJob.java:306)
        at org.xwiki.extension.job.internal.AbstractExtensionJob.applyAction(AbstractExtensionJob.java:209)
        at org.xwiki.extension.job.internal.AbstractExtensionJob.applyActions(AbstractExtensionJob.java:157)
        at org.xwiki.extension.job.internal.InstallJob.runInternal(InstallJob.java:154)
        at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:206)
        at org.xwiki.job.AbstractJob.run(AbstractJob.java:189)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
    Caused by: class org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.xpn.xwiki.doc.XWikiAttachmentContent#616558408]
        at org.hibernate.impl.SessionFactoryImpl$2.handleEntityNotFound(SessionFactoryImpl.java:435)
        at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:233)
        at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:285)
        at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:152)
        at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:1090)
        at org.hibernate.impl.SessionImpl.load(SessionImpl.java:974)
        at com.xpn.xwiki.store.XWikiHibernateAttachmentStore.loadAttachmentContent(XWikiHibernateAttachmentStore.java:242)
        at com.xpn.xwiki.doc.XWikiAttachment.loadAttachmentContent(XWikiAttachment.java:1018)
        at com.xpn.xwiki.doc.XWikiDocument.loadAttachmentsContent(XWikiDocument.java:4099)
        at org.xwiki.extension.xar.internal.handler.packager.Packager.importDocumentToWiki(Packager.java:216)
        at org.xwiki.extension.xar.internal.handler.packager.Packager.importXARToWiki(Packager.java:184)
        at org.xwiki.extension.xar.internal.handler.packager.Packager.importXARToWiki(Packager.java:157)
        at org.xwiki.extension.xar.internal.handler.packager.Packager.importXAR(Packager.java:148)
        at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.installInternal(XarExtensionHandler.java:202)
        at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.install(XarExtensionHandler.java:167)
        at org.xwiki.extension.handler.internal.DefaultExtensionHandlerManager.install(DefaultExtensionHandlerManager.java:85)
        at org.xwiki.extension.job.internal.AbstractExtensionJob.installExtension(AbstractExtensionJob.java:306)
        at org.xwiki.extension.job.internal.AbstractExtensionJob.applyAction(AbstractExtensionJob.java:209)
        at org.xwiki.extension.job.internal.AbstractExtensionJob.applyActions(AbstractExtensionJob.java:157)
        at org.xwiki.extension.job.internal.InstallJob.runInternal(InstallJob.java:154)
        at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:206)
        at org.xwiki.job.AbstractJob.run(AbstractJob.java:189)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
    Finished job of type [install] with identifier [extension/action/org.xwiki.platform:xwiki-platform-distribution-flavor-mainwiki/wiki:xwiki]

#2

You should have got the Distribution Wizard right after apt-get upgrade, no need to “notice” anything usually :slight_smile:

The error you get seems to indicate that you have attachment metadata in your database but you lost the corresponding attachment content some way. Maybe you manipulated filesystem attachment storage configuration back and forth. I recently added some bulletproofing to not be stopped by such corrupted database but in the meantime I guess the workaround is to cleanup the attachments located on document FlamingoThemesCode.ThemeClass (http://host/xwiki.bin/view/FlamingoThemesCode/ThemeClass URL).


#3

Thanks for your help. I got the Distribution Wizard after upgrade but with the same problem : at the Flavor installation step (step 2), extension installation failed.

I did not changed the storage configuration, i’ve just changed the logo in the defaut theme (charcoal). And i think, the problem is related to this logo file i’ve uploaded.
I tried to delete it, but it didn’t solved the problem.

Could you please tell me how can i delete the references to this file in the database?

Thank you very much


#4

Do you still get the exact same error ? Maybe you have another issue this time.


#5

Yes it is the same error. i think i must delete the reference to this missing file to allow a correct extension installation?

image


#6

You definitely still have attachment in that page, are you sure you deleted all of them ? You can try to view the attachment in that page to find the failing one.


#7

Hello,

I found the attachment and deleted it. Now the extension install was correct. I had to accept some changes because of conflicts, but the installation is correct.

Thank you very much for your help


#8

Note that the install keep any local modification since it’s doing a merge and not an override so you might want to go back to that page and look at the history where you will find the standard version (first one) if you want to revert it to a more standard version.