on 10-28-2015 8:57 AM
Hi,
I am trying to use a standalone Solr Server on the same system as Hybris is installed. I have commented out the solrserver extension in localextensions.xml. While running the indexer, I am getting HTTP 1.1/405 Method Not Found
Please find the log below.
INFO [hybrisHTTP38] [SolrIndexerOperationWizard] Perform cronjob with code: 00000334 INFO [00000334::de.hybris.platform.servicelayer.internal.jalo.ServicelayerJob] (00000334) [AbstractReplicationCallback] disable replicatio INFO [00000334::de.hybris.platform.servicelayer.internal.jalo.ServicelayerJob] (00000334) [AbstractReplicationCallback] enableReplicationO WARN [00000334::de.hybris.platform.servicelayer.internal.jalo.ServicelayerJob] (00000334) [SolrIndexerJob] Error during indexer call: powe de.hybris.platform.solrfacetsearch.indexer.exceptions.IndexerException: de.hybris.platform.solrfacetsearch.config.exceptions.FacetConfigExp 405 Method Not Allowed at de.hybris.platform.solrfacetsearch.indexer.listeners.ConfigurationExporterListener.beforeIndex(ConfigurationExporterListener.jav at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexerContextFactory.executeBeforeIndexListeners(DefaultIndexerContextFa at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexerContextFactory.initializeContext(DefaultIndexerContextFactory.java at de.hybris.platform.solrfacetsearch.indexer.strategies.impl.DefaultIndexerStrategy.doExecute(DefaultIndexerStrategy.java:354) at de.hybris.platform.solrfacetsearch.indexer.strategies.impl.DefaultIndexerStrategy.execute(DefaultIndexerStrategy.java:326) at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexerService.performFullIndex(DefaultIndexerService.java:70) at de.hybris.platform.solrfacetsearch.indexer.cron.SolrIndexerJob.performIndexingJob(SolrIndexerJob.java:71) at de.hybris.platform.solrfacetsearch.indexer.cron.AbstractIndexerJob.perform(AbstractIndexerJob.java:41) at de.hybris.platform.servicelayer.internal.jalo.ServicelayerJob.performCronJob(ServicelayerJob.java:38) at de.hybris.platform.cronjob.jalo.Job.execute(Job.java:1274) at de.hybris.platform.cronjob.jalo.Job.performImpl(Job.java:794) at de.hybris.platform.cronjob.jalo.Job.access$1(Job.java:747) at de.hybris.platform.cronjob.jalo.Job$JobRunable.run(Job.java:667) at de.hybris.platform.util.threadpool.PoolableThread.run(PoolableThread.java:198) Caused by: de.hybris.platform.solrfacetsearch.config.exceptions.FacetConfigExportException: Update synonyms failed. 405 Method Not Allowed at de.hybris.platform.solrfacetsearch.config.impl.ManagedSolrSynonymsService.handleException(ManagedSolrSynonymsService.java:113) at de.hybris.platform.solrfacetsearch.config.impl.ManagedSolrSynonymsService.exportSynonyms(ManagedSolrSynonymsService.java:101) at de.hybris.platform.solrfacetsearch.config.impl.ManagedSolrSynonymsService.exportSynonyms(ManagedSolrSynonymsService.java:67) at de.hybris.platform.solrfacetsearch.config.impl.DefaultSolrSynonymsService.exportSynonyms(DefaultSolrSynonymsService.java:67) at de.hybris.platform.solrfacetsearch.indexer.listeners.ConfigurationExporterListener.beforeIndex(ConfigurationExporterListener.jav ... 13 more Caused by: org.springframework.web.client.HttpClientErrorException: 405 Method Not Allowed at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:91) at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:614) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:570) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:530) at org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:330) at de.hybris.platform.solrfacetsearch.solr.impl.AbstractSolrRestService.createManagedResource(AbstractSolrRestService.java:71) at de.hybris.platform.solrfacetsearch.config.impl.ManagedSolrSynonymsService.getSynonymsFromServer(ManagedSolrSynonymsService.java: at de.hybris.platform.solrfacetsearch.config.impl.ManagedSolrSynonymsService.exportSynonyms(ManagedSolrSynonymsService.java:193) at de.hybris.platform.solrfacetsearch.config.impl.ManagedSolrSynonymsService.exportSynonyms(ManagedSolrSynonymsService.java:90) ... 16 more
Regards, Shakti
I also faced this issue similar to on version 6.2.0 : Getting connection refused. I started manually solr server and it got resolved.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you are using hybris v5.7, I don't think you should comment out solrserver extension.
According to https://wiki.hybris.com/display/release5/SolrFacetSearch+-+Installation+Guide Version 5.7 and higher tab, the embedded solr mode was removed along with version 5.7 and solrserver extension is introduced. To have a standalone Solr server to use, we have to enable solrserver extension in localextensions.xml.
I tested in v5.7, after commented out solrserver extension and did Full index operation, error like "Error during indexer call:...due to Server refused connection" showed in console. Though different error from yours, I think solrserver extension is necessary to run solr server.
You can refer to the wiki page for more details.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This was due to older Solr files. Downloading fresh standalone solr files fixed this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.