Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-18840

Upgrade failure when using a remote Solr core

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 12.10.8
    • Fix Version/s: 13.4.2, 13.6-rc-1, 12.10.9
    • Component/s: Old Core
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      When trying to upgrade XWiki from 8.4.5 to 12.10.8, with a remote Solr server, the following migration error happens:

      com.xpn.xwiki.store.migration.DataMigrationException: Migration of database [xwiki] has failed, it could not be safely used! Database is currently in version [1138000] while the required version is [121001000].
      	com.xpn.xwiki.store.migration.AbstractDataMigrationManager.preventAccessToOutdatedDb(AbstractDataMigrationManager.java:591)
      	com.xpn.xwiki.store.migration.AbstractDataMigrationManager.checkDatabase(AbstractDataMigrationManager.java:542)
      	com.xpn.xwiki.internal.store.hibernate.HibernateStore.setWiki(HibernateStore.java:675)
      	com.xpn.xwiki.internal.store.hibernate.HibernateStore.setWiki(HibernateStore.java:636)
      	com.xpn.xwiki.internal.store.hibernate.HibernateStore.beginTransaction(HibernateStore.java:814)
      	com.xpn.xwiki.store.XWikiHibernateBaseStore.beginTransaction(XWikiHibernateBaseStore.java:577)
      	com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:976)
      	com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:394)
      	com.xpn.xwiki.XWiki.getDocument(XWiki.java:2133)
      	com.xpn.xwiki.XWiki.getDocument(XWiki.java:2195)
      	com.xpn.xwiki.XWiki.getXClass(XWiki.java:7064)
      	com.xpn.xwiki.XWiki.getClass(XWiki.java:7077)
      	com.xpn.xwiki.doc.DefaultDocumentAccessBridge.isPropertyCustomMapped(DefaultDocumentAccessBridge.java:552)
      	org.xwiki.query.xwql.internal.QueryContext$PropertyInfo.isCustomMapped(QueryContext.java:153)
      	org.xwiki.query.xwql.internal.QueryContext$ObjectInfo.isCustomMapped(QueryContext.java:122)
      	org.xwiki.query.xwql.internal.hql.ObjectPrinter.print(ObjectPrinter.java:37)
      	org.xwiki.query.xwql.internal.hql.Printer.print(Printer.java:70)
      	org.xwiki.query.xwql.internal.hql.XWQLtoHQLTranslator.translate(XWQLtoHQLTranslator.java:61)
      	org.xwiki.query.xwql.internal.XWQLQueryExecutor.execute(XWQLQueryExecutor.java:97)
      	org.xwiki.query.internal.DefaultQueryExecutorManager.execute(DefaultQueryExecutorManager.java:72)
      	org.xwiki.query.internal.DefaultQuery.execute(DefaultQuery.java:306)
      	org.xwiki.wiki.internal.descriptor.document.DefaultWikiDescriptorDocumentHelper.findXWikiServerClassDocumentReference(DefaultWikiDescriptorDocumentHelper.java:121)
      	org.xwiki.wiki.internal.descriptor.document.DefaultWikiDescriptorDocumentHelper.findXWikiServerClassDocument(DefaultWikiDescriptorDocumentHelper.java:140)
      	org.xwiki.wiki.internal.descriptor.DefaultWikiDescriptorManager.getByAlias(DefaultWikiDescriptorManager.java:148)
      	org.xwiki.url.internal.standard.AbstractWikiReferenceExtractor.getWikiDescriptorByAlias(AbstractWikiReferenceExtractor.java:78)
      	org.xwiki.url.internal.standard.DomainWikiReferenceExtractor.resolveDomainBasedWikiReference(DomainWikiReferenceExtractor.java:61)
      	org.xwiki.url.internal.standard.DomainWikiReferenceExtractor.extract(DomainWikiReferenceExtractor.java:47)
      	org.xwiki.url.internal.standard.entity.BinEntityResourceReferenceResolver.extractWikiReference(BinEntityResourceReferenceResolver.java:51)
      	org.xwiki.url.internal.standard.entity.AbstractEntityResourceReferenceResolver.resolve(AbstractEntityResourceReferenceResolver.java:87)
      	org.xwiki.url.internal.standard.entity.AbstractEntityResourceReferenceResolver.resolve(AbstractEntityResourceReferenceResolver.java:50)
      	org.xwiki.url.internal.GenericResourceReferenceResolver.resolve(GenericResourceReferenceResolver.java:61)
      	org.xwiki.url.internal.GenericResourceReferenceResolver.resolve(GenericResourceReferenceResolver.java:47)
      	org.xwiki.url.internal.standard.StandardExtendedURLResourceReferenceResolver.resolve(StandardExtendedURLResourceReferenceResolver.java:65)
      	org.xwiki.url.internal.standard.StandardExtendedURLResourceReferenceResolver.resolve(StandardExtendedURLResourceReferenceResolver.java:43)
      	org.xwiki.url.internal.DefaultResourceReferenceResolver.resolve(DefaultResourceReferenceResolver.java:93)
      	org.xwiki.url.internal.DefaultResourceReferenceResolver.resolve(DefaultResourceReferenceResolver.java:48)
      	com.xpn.xwiki.XWiki.initializeResourceFromURL(XWiki.java:1045)
      	com.xpn.xwiki.XWiki.getXWiki(XWiki.java:910)
      	com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:378)
      	com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:283)
      	org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
      	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
      	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
      	org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      	com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:122)
      	org.xwiki.wysiwyg.filter.ConversionFilter.doFilter(ConversionFilter.java:109)
      	org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
      	org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
      	org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
      	org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:132)
      	net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:232)
      	net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:209)
      root cause
      com.xpn.xwiki.store.migration.DataMigrationException: Data migration R120901000XWIKI17761 failed
      	com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration.migrate(AbstractHibernateDataMigration.java:120)
      	com.xpn.xwiki.store.migration.AbstractDataMigrationManager.startMigrations(AbstractDataMigrationManager.java:837)
      	com.xpn.xwiki.store.migration.AbstractDataMigrationManager.migrateDatabase(AbstractDataMigrationManager.java:736)
      	com.xpn.xwiki.store.migration.AbstractDataMigrationManager.startMigrations(AbstractDataMigrationManager.java:657)
      	com.xpn.xwiki.store.migration.hibernate.HibernateDataMigrationManager.startMigrations(HibernateDataMigrationManager.java:361)
      	com.xpn.xwiki.store.migration.AbstractDataMigrationManager.startMigrationsOnlyOnce(AbstractDataMigrationManager.java:637)
      	com.xpn.xwiki.store.migration.AbstractDataMigrationManager.tryToProcceedToMigration(AbstractDataMigrationManager.java:614)
      	com.xpn.xwiki.store.migration.AbstractDataMigrationManager.checkDatabase(AbstractDataMigrationManager.java:539)
      	com.xpn.xwiki.internal.store.hibernate.HibernateStore.setWiki(HibernateStore.java:675)
      	com.xpn.xwiki.internal.store.hibernate.HibernateStore.setWiki(HibernateStore.java:636)
      	com.xpn.xwiki.internal.store.hibernate.HibernateStore.beginTransaction(HibernateStore.java:814)
      	com.xpn.xwiki.store.XWikiHibernateBaseStore.beginTransaction(XWikiHibernateBaseStore.java:577)
      	com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:976)
      	com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:394)
      	com.xpn.xwiki.XWiki.getDocument(XWiki.java:2133)
      	com.xpn.xwiki.XWiki.getDocument(XWiki.java:2195)
      	com.xpn.xwiki.XWiki.initializeMandatoryDocument(XWiki.java:1407)
      	com.xpn.xwiki.XWiki.initializeMandatoryDocuments(XWiki.java:1374)
      	com.xpn.xwiki.XWiki.initXWiki(XWiki.java:1279)
      	com.xpn.xwiki.XWiki.initXWiki(XWiki.java:1216)
      	com.xpn.xwiki.XWiki.<init>(XWiki.java:1189)
      	com.xpn.xwiki.internal.XWikiInitializerJob.runInternal(XWikiInitializerJob.java:117)
      	org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:243)
      	org.xwiki.job.AbstractJob.run(AbstractJob.java:220)
      	java.lang.Thread.run(Thread.java:748)
      root cause
      org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://10.144.28.12:8983/solr/xwiki_like: Expected mime type application/octet-stream but got text/html. <html>
      <head>
      <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
      <title>Error 404 Not Found</title>
      </head>
      <body><h2>HTTP ERROR 404 Not Found</h2>
      <table>
      <tr><th>URI:</th><td>/solr/xwiki_like/select</td></tr>
      <tr><th>STATUS:</th><td>404</td></tr>
      <tr><th>MESSAGE:</th><td>Not Found</td></tr>
      <tr><th>SERVLET:</th><td>default</td></tr>
      </table>
      </body>
      </html>
      	org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:629)
      	org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:265)
      	org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:248)
      	org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:211)
      	org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:1003)
      	org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:1018)
      	org.xwiki.ratings.internal.migration.R120901000XWIKI17761DataMigration.handleLikeMigration(R120901000XWIKI17761DataMigration.java:302)
      	org.xwiki.ratings.internal.migration.R120901000XWIKI17761DataMigration.hibernateMigrate(R120901000XWIKI17761DataMigration.java:277)
      	com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration.migrate(AbstractHibernateDataMigration.java:118)
      	com.xpn.xwiki.store.migration.AbstractDataMigrationManager.startMigrations(AbstractDataMigrationManager.java:837)
      	com.xpn.xwiki.store.migration.AbstractDataMigrationManager.migrateDatabase(AbstractDataMigrationManager.java:736)
      	com.xpn.xwiki.store.migration.AbstractDataMigrationManager.startMigrations(AbstractDataMigrationManager.java:657)
      	com.xpn.xwiki.store.migration.hibernate.HibernateDataMigrationManager.startMigrations(HibernateDataMigrationManager.java:361)
      	com.xpn.xwiki.store.migration.AbstractDataMigrationManager.startMigrationsOnlyOnce(AbstractDataMigrationManager.java:637)
      	com.xpn.xwiki.store.migration.AbstractDataMigrationManager.tryToProcceedToMigration(AbstractDataMigrationManager.java:614)
      	com.xpn.xwiki.store.migration.AbstractDataMigrationManager.checkDatabase(AbstractDataMigrationManager.java:539)
      	com.xpn.xwiki.internal.store.hibernate.HibernateStore.setWiki(HibernateStore.java:675)
      	com.xpn.xwiki.internal.store.hibernate.HibernateStore.setWiki(HibernateStore.java:636)
      	com.xpn.xwiki.internal.store.hibernate.HibernateStore.beginTransaction(HibernateStore.java:814)
      	com.xpn.xwiki.store.XWikiHibernateBaseStore.beginTransaction(XWikiHibernateBaseStore.java:577)
      	com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:976)
      	com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:394)
      	com.xpn.xwiki.XWiki.getDocument(XWiki.java:2133)
      	com.xpn.xwiki.XWiki.getDocument(XWiki.java:2195)
      	com.xpn.xwiki.XWiki.initializeMandatoryDocument(XWiki.java:1407)
      	com.xpn.xwiki.XWiki.initializeMandatoryDocuments(XWiki.java:1374)
      	com.xpn.xwiki.XWiki.initXWiki(XWiki.java:1279)
      	com.xpn.xwiki.XWiki.initXWiki(XWiki.java:1216)
      	com.xpn.xwiki.XWiki.<init>(XWiki.java:1189)
      	com.xpn.xwiki.internal.XWikiInitializerJob.runInternal(XWikiInitializerJob.java:117)
      	org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:243)
      	org.xwiki.job.AbstractJob.run(AbstractJob.java:220)
      	java.lang.Thread.run(Thread.java:748)
      note The full stack trace of the root cause is available in the Apache Tomcat/8.5.11 logs.
      Apache Tomcat/8.5.11
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              surli Simon Urli
              Reporter:
              mouhb Mohamed Boussaa
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: