specify / webportal-installer

The Specify Web Portal
GNU General Public License v2.0
8 stars 10 forks source link

Error with Solr: Could not load conf for core #37

Open maxpatiiuk opened 4 years ago

maxpatiiuk commented 4 years ago

I am trying to install Web Portal. These are the error I get when the solr is started (step 7):

Screenshot from 2020-01-23 09-45-30 Screenshot from 2020-01-23 09-49-55

Error message:

null:org.apache.solr.core.SolrCoreInitializationException: SolrCore 'wp' is not available due to init failure: Could not load conf for core wp: Can't load schema /home/specify/Downloads/webportal-installer/solr-7.5.0/server/solr/wp/conf/managed-schema: [schema.xml] Duplicate field definition for 'ce_startDate' [[[ce_startDate{type=pint,properties=indexed,stored,omitNorms,omitTermFreqAndPositions,docValues,useDocValuesAsStored}]]] and [[[ce_startDate{type=pint,properties=indexed,stored,omitNorms,omitTermFreqAndPositions,docValues,useDocValuesAsStored}]]]
    at org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:1593)
    at org.apache.solr.servlet.HttpSolrCall.init(HttpSolrCall.java:249)
    at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:469)
    at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:377)
    at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:323)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
    at org.eclipse.jetty.servlets.CrossOriginFilter.handle(CrossOriginFilter.java:311)
    at org.eclipse.jetty.servlets.CrossOriginFilter.doFilter(CrossOriginFilter.java:265)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1634)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
    at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
    at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1317)
    at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
    at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1219)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
    at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:219)
    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
    at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:335)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
    at org.eclipse.jetty.server.Server.handle(Server.java:531)
    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:352)
    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)
    at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281)
    at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
    at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)
    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)
    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)
    at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:762)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:680)
    at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.solr.common.SolrException: Could not load conf for core wp: Can't load schema /home/specify/Downloads/webportal-installer/solr-7.5.0/server/solr/wp/conf/managed-schema: [schema.xml] Duplicate field definition for 'ce_startDate' [[[ce_startDate{type=pint,properties=indexed,stored,omitNorms,omitTermFreqAndPositions,docValues,useDocValuesAsStored}]]] and [[[ce_startDate{type=pint,properties=indexed,stored,omitNorms,omitTermFreqAndPositions,docValues,useDocValuesAsStored}]]]
    at org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:97)
    at org.apache.solr.core.CoreContainer.getConfigSet(CoreContainer.java:1187)
    at org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1134)
    at org.apache.solr.core.CoreContainer.lambda$load$13(CoreContainer.java:684)
    at com.codahale.metrics.InstrumentedExecutorService$InstrumentedCallable.call(InstrumentedExecutorService.java:197)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:209)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    ... 1 more
Caused by: org.apache.solr.common.SolrException: Can't load schema /home/specify/Downloads/webportal-installer/solr-7.5.0/server/solr/wp/conf/managed-schema: [schema.xml] Duplicate field definition for 'ce_startDate' [[[ce_startDate{type=pint,properties=indexed,stored,omitNorms,omitTermFreqAndPositions,docValues,useDocValuesAsStored}]]] and [[[ce_startDate{type=pint,properties=indexed,stored,omitNorms,omitTermFreqAndPositions,docValues,useDocValuesAsStored}]]]
    at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:584)
    at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:181)
    at org.apache.solr.schema.ManagedIndexSchema.<init>(ManagedIndexSchema.java:105)
    at org.apache.solr.schema.ManagedIndexSchemaFactory.create(ManagedIndexSchemaFactory.java:173)
    at org.apache.solr.schema.ManagedIndexSchemaFactory.create(ManagedIndexSchemaFactory.java:45)
    at org.apache.solr.schema.IndexSchemaFactory.buildIndexSchema(IndexSchemaFactory.java:75)
    at org.apache.solr.core.ConfigSetService.createIndexSchema(ConfigSetService.java:119)
    at org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:92)
    ... 9 more
Caused by: org.apache.solr.common.SolrException: [schema.xml] Duplicate field definition for 'ce_startDate' [[[ce_startDate{type=pint,properties=indexed,stored,omitNorms,omitTermFreqAndPositions,docValues,useDocValuesAsStored}]]] and [[[ce_startDate{type=pint,properties=indexed,stored,omitNorms,omitTermFreqAndPositions,docValues,useDocValuesAsStored}]]]
    at org.apache.solr.schema.IndexSchema.loadFields(IndexSchema.java:658)
    at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:478)
    ... 16 more

Also, here is the error message when trying to go through step 8: Screenshot from 2020-01-23 09-51-36

maxpatiiuk commented 4 years ago

Installed everything from scratch on a new VM. Same issue again

Screenshot from 2020-01-28 08-49-59 Screenshot from 2020-01-28 08-50-11 Screenshot from 2020-01-28 08-50-33

maxpatiiuk commented 4 years ago

Still happens on a fresh VM Will test again with another exported .zip file

maxpatiiuk commented 4 years ago

Fixed after trying out a different .zip file

misilot commented 4 months ago

@maxpatiiuk what did you do different with your export? As we're running into this same issue when trying to use Solr 8

maxpatiiuk commented 4 months ago

Ups, my comment from 2020 is pretty vague, and I don't exactly recollect what resolved it. Possible solutions:

mcruz-umich commented 4 months ago

I hardcoded it to stay with Solr 7.5.0 [image: image.png]

On Sat, Jul 6, 2024 at 9:56 PM Max Patiiuk @.***> wrote:

Ups, my comment from 2020 is pretty vague, and I don't exactly recollect what resolved it. Possible solutions:

  • Check if your query (export definition) includes the same field multiple times. Try using a different export definition, a simpler one, to see if that works
  • The DataExport utility in Specify 6 has multiple buttons for initializing export - try exporting using one of the other buttons

— Reply to this email directly, view it on GitHub https://github.com/specify/webportal-installer/issues/37#issuecomment-2212247840, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIWEL5EFLNAERKUUDKWKH5DZLCN4ZAVCNFSM6AAAAABKNWKMPWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJSGI2DOOBUGA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Matthew Cruz, Application Architect Web and Application Development Services LSA Technology Services The University of Michigan