cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to start Solr server for instance [name: default, hostname: localhost, port: 8983, mode: STANDALONE during hybris server start

Former Member
0 Kudos

jvm 1 | main | 2019/03/11 12:36:20.325 | Mar 11, 2019 12:36:20 PM de.hybris.platform.solr.controller.commands.StartSolrServersCommand executeCommand INFO | jvm 1 | main | 2019/03/11 12:36:20.325 | INFO: Starting Solr servers ... INFO | jvm 1 | main | 2019/03/11 12:36:20.434 | Mar 11, 2019 12:36:20 PM de.hybris.platform.solr.controller.commands.StartSolrServerCommand getSolrServerStatus INFO | jvm 1 | main | 2019/03/11 12:36:20.434 | INFO: Checking Solr server status for instance [name: default, hostname: localhost, port: 8983, mode: STANDALONE] INFO | jvm 1 | main | 2019/03/11 12:36:20.635 | Mar 11, 2019 12:36:20 PM de.hybris.platform.solr.controller.commands.StartSolrServerCommand startSolrServer INFO | jvm 1 | main | 2019/03/11 12:36:20.635 | INFO: Starting Solr server for instance [name: default, hostname: localhost, port: 8983, mode: STANDALONE] INFO | jvm 1 | main | 2019/03/11 12:36:20.861 | WARNING: Starting Solr as the root user is a security risk and not considered best practice. Exiting. INFO | jvm 1 | main | 2019/03/11 12:36:20.861 | Please consult the Reference Guide. To override this check, start with argument '-force' INFO | jvm 1 | main | 2019/03/11 12:36:20.861 | Mar 11, 2019 12:36:20 PM de.hybris.platform.solr.controller.commands.StartSolrServersCommand apply INFO | jvm 1 | main | 2019/03/11 12:36:20.861 | SEVERE: Failed to start Solr server for instance [name: default, hostname: localhost, port: 8983, mode: STANDALONE] INFO | jvm 1 | main | 2019/03/11 12:36:20.861 | de.hybris.platform.solr.controller.SolrControllerException: Failed to start Solr server for instance [name: default, hostname: localhost, port: 8983, mode: STANDALONE] INFO | jvm 1 | main | 2019/03/11 12:36:20.861 | at de.hybris.platform.solr.controller.commands.StartSolrServerCommand.startSolrServer(StartSolrServerCommand.java:144) INFO | jvm 1 | main | 2019/03/11 12:36:20.861 | at de.hybris.platform.solr.controller.commands.StartSolrServerCommand.executeCommand(StartSolrServerCommand.java:115) INFO | jvm 1 | main | 2019/03/11 12:36:20.861 | at de.hybris.platform.solr.controller.commands.StartSolrServersCommand.executeCommand(StartSolrServersCommand.java:67) INFO | jvm 1 | main | 2019/03/11 12:36:20.861 | at de.hybris.platform.solr.controller.commands.StartSolrServersCommand.apply(StartSolrServersCommand.java:42) INFO | jvm 1 | main | 2019/03/11 12:36:20.861 | at de.hybris.platform.solr.controller.commands.StartSolrServersCommand.apply(StartSolrServersCommand.java:27) INFO | jvm 1 | main | 2019/03/11 12:36:20.861 | at de.hybris.platform.solrserver.strategies.impl.DefaultSolrServerCommandExecutor.executeExternalCommand(DefaultSolrServerCommandExecutor.java:93) INFO | jvm 1 | main | 2019/03/11 12:36:20.861 | at de.hybris.platform.solrserver.strategies.impl.DefaultSolrServerCommandExecutor.executeCommand(DefaultSolrServerCommandExecutor.java:65) INFO | jvm 1 | main | 2019/03/11 12:36:20.861 | at de.hybris.platform.solrserver.strategies.impl.DefaultSolrServerController.startServers(DefaultSolrServerController.java:36) INFO | jvm 1 | main | 2019/03/11 12:36:20.861 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) INFO | jvm 1 | main | 2019/03/11 12:36:20.861 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) INFO | jvm 1 | main | 2019/03/11 12:36:20.861 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) INFO | jvm 1 | main | 2019/03/11 12:36:20.861 | at java.lang.reflect.Method.invoke(Method.java:498) INFO | jvm 1 | main | 2019/03/11 12:36:20.861 | at **strong text**org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1760) INFO | jvm 1 | main | 2019/03/11 12:36:20.861 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1697) INFO | jvm 1 | main | 2019/03/11 12:36:20.861 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1627) INFO | jvm 1 | main | 2019/03/11 12:36:20.861 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) INFO | jvm 1 | main | 2019/03/11 12:36:20.861 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481) INFO | jvm 1 | main | 2019/03/11 12:36:20.862 | at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312) INFO | jvm 1 | main | 2019/03/11 12:36:20.862 | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) INFO | jvm 1 | main | 2019/03/11 12:36:20.862 | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308) INFO | jvm 1 | main | 2019/03/11 12:36:20.862 | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) INFO | jvm 1 | main | 2019/03/11 12:36:20.862 | at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) INFO | jvm 1 | main | 2019/03/11 12:36:20.862 | at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) INFO | jvm 1 | main | 2019/03/11 12:36:20.862 | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) INFO | jvm 1 | main | 2019/03/11 12:36:20.862 | at de.hybris.platform.core.HybrisContextFactory.refreshContext(HybrisContextFactory.java:95) INFO | jvm 1 | main | 2019/03/11 12:36:20.862 | at de.hybris.platform.core.HybrisContextFactory$GlobalContextFactory.build(HybrisContextFactory.java:173) INFO | jvm 1 | main | 2019/03/11 12:36:20.862 | at de.hybris.platform.core.HybrisContextHolder.getGlobalInstanceCached(HybrisContextHolder.java:131) INFO | jvm 1 | main | 2019/03/11 12:36:20.862 | at de.hybris.platform.core.HybrisContextHolder.getGlobalInstance(HybrisContextHolder.java:110) INFO | jvm 1 | main | 2019/03/11 12:36:20.862 | at de.hybris.platform.core.HybrisContextHolder.getAppCtxFactory(HybrisContextHolder.java:161) INFO | jvm 1 | main | 2019/03/11 12:36:20.862 | at de.hybris.platform.core.HybrisContextHolder.getApplicationInstance(HybrisContextHolder.java:87) INFO | jvm 1 | main | 2019/03/11 12:36:20.862 | at de.hybris.platform.core.AbstractTenant.createCoreApplicationContext(AbstractTenant.java:713) INFO | jvm 1 | main | 2019/03/11 12:36:20.862 | at de.hybris.platform.core.AbstractTenant.doStartupSafe(AbstractTenant.java:752) INFO | jvm 1 | main | 2019/03/11 12:36:20.862 | at de.hybris.platform.core.AbstractTenant.doStartUp(AbstractTenant.java:685) INFO | jvm 1 | main | 2019/03/11 12:36:20.862 | at de.hybris.platform.core.Registry.assureTenantStarted(Registry.java:658) INFO | jvm 1 | main | 2019/03/11 12:36:20.862 | at de.hybris.platform.core.Registry.activateTenant(Registry.java:719) INFO | jvm 1 | main | 2019/03/11 12:36:20.862 | at de.hybris.platform.core.Registry.setCurrentTenant(Registry.java:566) INFO | jvm 1 | main | 2019/03/11 12:36:20.863 | at de.hybris.platform.core.Registry.activateMasterTenant(Registry.java:626) INFO | jvm 1 | main | 2019/03/11 12:36:20.863 | at de.hybris.platform.core.Registry.startup(Registry.java:444) INFO | jvm 1 | main | 2019/03/11 12:36:20.863 | at de.hybris.platform.core.ClassLoaderUtils.executeWithWebClassLoaderParentIfNeeded(ClassLoaderUtils.java:42) INFO | jvm 1 | main | 2019/03/11 12:36:20.863 | at de.hybris.platform.spring.HybrisContextLoaderListener.startRegistry(HybrisContextLoaderListener.java:325) INFO | jvm 1 | main | 2019/03/11 12:36:20.863 | at de.hybris.platform.spring.HybrisContextLoaderListener.doInitWebApplicationContext(HybrisContextLoaderListener.java:211) INFO | jvm 1 | main | 2019/03/11 12:36:20.863 | at de.hybris.platform.spring.HybrisContextLoaderListener.initWebApplicationContext(HybrisContextLoaderListener.java:199) INFO | jvm 1 | main | 2019/03/11 12:36:20.863 | at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107) INFO | jvm 1 | main | 2019/03/11 12:36:20.863 | at de.hybris.platform.spring.HybrisContextLoaderListener.contextInitialized(HybrisContextLoaderListener.java:95) INFO | jvm 1 | main | 2019/03/11 12:36:20.863 | at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4792) INFO | jvm 1 | main | 2019/03/11 12:36:20.863 | at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5256) INFO | jvm 1 | main | 2019/03/11 12:36:20.863 | at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) INFO | jvm 1 | main | 2019/03/11 12:36:20.863 | at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1421) INFO | jvm 1 | main | 2019/03/11 12:36:20.863 | at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1411) INFO | jvm 1 | main | 2019/03/11 12:36:20.863 | at java.util.concurrent.FutureTask.run(FutureTask.java:266) INFO | jvm 1 | main | 2019/03/11 12:36:20.863 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) INFO | jvm 1 | main | 2019/03/11 12:36:20.863 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) INFO | jvm 1 | main | 2019/03/11 12:36:20.863 | at java.lang.Thread.run(Thread.java:748)

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member620692
Active Contributor

One reason for this kind of error is trying to start hybris server as sudo ./hybrisserver. If it is the case, you should use just ./hybrisserver to start hybris server.

If the problem still persists, please check if some other application is running on port 8983. If yes, either kill that or change the port for Solr instance and try again. If you using UNIX based system, you can use sudo lsof -i tcp:8983 to find the ID of the process running at port number 8983 and then kill 12345 (assuming 12345 is the process ID) to kill the process. If you are using Windows machine, please check https://stackoverflow.com/questions/48198/how-can-you-find-out-which-process-is-listening-on-a-port-... to find and kill the process running at port 8983.

Alternatively, you can configure different ports than the default ones:

 solrserver.instances.default.port=9993
 solrserver.instances.standalone.port=9993
 solrfacetsearch.test.server.standalone.endpoint=https://localhost:9993/solr
Former Member
0 Kudos

hi Arvind, sorry for the late response. actually, nothing was wrong with the port. that installation was on Linux machine. now I installed it in windows machine and it is working fine.

former_member620692
Active Contributor
0 Kudos

Good to hear that your problem is resolved.