Copy link to clipboard
Copied
Hello,
we can't add collections in CF 2021 Update 2. It was working until we made the update. Now we reveice this message:
org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException
Any ideas what the problem could be?
92006454 [qtp1318180415-125] INFO org.apache.solr.handler.admin.CoreAdminOperation - core create command template=/opt/ColdFusion2021/cfusion/jetty/multicore/template&name=test&action=CREATE&instanceDir=/opt/ColdFusion2021/cfusion/jetty/multicore/collections/test&wt=xml&version=2.2
92006460 [qtp1318180415-125] ERROR org.apache.solr.core.CorePropertiesLocator - Couldn't persist core properties to /opt/ColdFusion2021/cfusion/jetty/multicore/collections/test/core.properties: /opt/ColdFusion2021/cfusion/jetty/multicore/collections/test
92006463 [qtp1318180415-125] ERROR org.apache.solr.handler.RequestHandlerBase - org.apache.solr.common.SolrException: Error CREATEing SolrCore 'test': Couldn't persist core properties to /opt/ColdFusion2021/cfusion/jetty/multicore/collections/test/core.properties : /opt/ColdFusion2021/cfusion/jetty/multicore/collections/test
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:987)
at org.apache.solr.handler.admin.CoreAdminOperation.lambda$static$0(CoreAdminOperation.java:98)
at org.apache.solr.handler.admin.CoreAdminOperation.execute(CoreAdminOperation.java:403)
at org.apache.solr.handler.admin.CoreAdminHandler$CallInfo.call(CoreAdminHandler.java:440)
at org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:181)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:177)
at org.apache.solr.servlet.HttpSolrCall.handleAdmin(HttpSolrCall.java:735)
at org.apache.solr.servlet.HttpSolrCall.handleAdminRequest(HttpSolrCall.java:716)
at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:497)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:382)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:326)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1630)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:567)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:602)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1610)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1377)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:507)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1580)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1292)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:234)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.Server.handle(Server.java:501)
at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383)
at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:556)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.apache.solr.common.SolrException: Couldn't persist core properties to /opt/ColdFusion2021/cfusion/jetty/multicore/collections/test/core.properties : /opt/ColdFusion2021/cfusion/jetty/multicore/collections/test
at org.apache.solr.core.CorePropertiesLocator.writePropertiesFile(CorePropertiesLocator.java:97)
at org.apache.solr.core.CorePropertiesLocator.create(CorePropertiesLocator.java:70)
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:943)
... 44 more
92006463 [qtp1318180415-125] INFO org.apache.solr.servlet.HttpSolrCall - [admin] webapp=null path=/admin/cores params={template=/opt/ColdFusion2021/cfusion/jetty/multicore/template&name=test&action=CREATE&instanceDir=/opt/ColdFusion2021/cfusion/jetty/multicore/collections/test&wt=xml&version=2.2} status=400 QTime=9
92006476 [qtp1318180415-130] INFO org.apache.solr.servlet.HttpSolrCall - [admin] webapp=null path=/admin/cores params={action=STATUS&indexInfo=true&wt=xml&version=2.2} status=0 QTime=0
Copy link to clipboard
Copied
Is there any documentation what should be configured in Solr? I thought that this service is out-of-the-box and no need to configure anything.
Copy link to clipboard
Copied
[deleted message]
It was sent by mistake before being completed.
Copy link to clipboard
Copied
Yep, it IS indeed ready "out of the box". And FWIW, I can create a new collection in the CF Admin in CF2021 with update 2. So whatever is amiss, it seems something on your end there.
And any of many issues could be amiss, which may have nothing to do with the update, really. So please tell us:
Just trying to help narrow down where things are failing for you. Hope that's helpful.
Copy link to clipboard
Copied
Hi Charlie,
I'm very thankful for your help! I will try to answer the questions:
- Normally I use the cfcollection tag, but the error is the same when using cfcollection or creating an collection in CF Admin
- We run Linux and the service is started
- When I go to "coldfusion collections" page there is no error. but when I enter an name and press "Create collection" I get:
"Unable to create collection test.
Unable to create Solr collection test.
An error occurred while creating the collection: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException. Check the Solr logs for more detail."
And the logs show the error above.
- It was working on CF2021 with updater 1, that's we I thought there could be an connection.
Copy link to clipboard
Copied
I'm resurrecting this quasi-old thread because I'm having the same issue.
@Char - I downloaded the installer and run the installation (installing solr) only. When I logged back into CF admin and navigate to the ColdFusion Collection, I get the following error:
Unable to retrieve collections from the Search Services.
Ensure that you have installed ColdFusion Search Service and it is running.
Tried navigating to http://localhost:8993 - page can't be reached. I looked in Windows Services for the Solr service and I don't see it.
Logs: ColdFusion2021\cfusion\jetty\logs do not exist.
Copy link to clipboard
Copied
As a followup, I'm assuming that in Windows Services, "ColdFusion2021Add-onServices", runs solr?
Copy link to clipboard
Copied
Follow up to the follow up 🙂
I re-installed it again, selecting everything on the list and this time, it fired up. Navigating to localhost:8993, shows the solr is started.
I can navigate to the ColdFusion Collection with no issues. With that said, when I try to create a new collection, I get the following error:
Unable to create collection faqs.
Unable to create Solr collection faqs.
An error occurred while creating the collection: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException. Check the Solr logs for more detail.
The logs show the following error:
112045 [qtp1794717576-16] ERROR org.apache.solr.handler.RequestHandlerBase - org.apache.solr.common.SolrException: Error CREATEing SolrCore 'faqs': Unable to create core [faqs] Caused by: Can't find resource 'solrconfig.xml' in classpath or 'C:\ColdFusion2021\cfusion\bin\ColdFusionSolr\multicore\collections\faqs'
And yes, I verified that the solrconfig.xml isn't there. It doesn't say anything about permissions, but could it be?