Exception in thread "main" org.apache.solr.client.solrj.SolrServerException: Server refused connection at: http://localhost:8983/solr -


i trying run solr(5.2.1) using;

$ bin/solr start -e cloud -noprompt 

but get

welcome solrcloud example!   starting 2 solr nodes example solrcloud cluster.  starting solrcloud node1 on port 8983 using command:  solr start -cloud -s example/cloud/node1/solr -p 8983  -m 512m    waiting see solr listening on port 8983 [/]  still not seeing solr listening on 8983 after 30 seconds! tail: cannot open '/home/altair/solr/example/cloud/node1/solr/../logs/solr.log' reading: no such file or directory   starting node2 on port 7574 using command:  solr start -cloud -s example/cloud/node2/solr -p 7574 -z localhost:9983 -m 512m     waiting see solr listening on port 7574 [/]  still not seeing solr listening on 7574 after 30 seconds! tail: cannot open '/home/altair/solr/example/cloud/node2/solr/../logs/solr.log' reading: no such file or directory warn  - 2015-07-02 10:22:47.156; org.apache.solr.util.solrcli; request http://localhost:8983/solr/admin/info/system failed due to: connection refused, sleeping 5 seconds before re-trying request ... exception in thread "main" java.net.connectexception: connection refused     @ java.net.plainsocketimpl.socketconnect(native method)     @ java.net.abstractplainsocketimpl.doconnect(abstractplainsocketimpl.java:339)     @ java.net.abstractplainsocketimpl.connecttoaddress(abstractplainsocketimpl.java:200)     @ java.net.abstractplainsocketimpl.connect(abstractplainsocketimpl.java:182)     @ java.net.sockssocketimpl.connect(sockssocketimpl.java:392)     @ java.net.socket.connect(socket.java:579)     @ org.apache.http.conn.scheme.plainsocketfactory.connectsocket(plainsocketfactory.java:117)     @ org.apache.http.impl.conn.defaultclientconnectionoperator.openconnection(defaultclientconnectionoperator.java:177)     @ org.apache.http.impl.conn.managedclientconnectionimpl.open(managedclientconnectionimpl.java:304)     @ org.apache.http.impl.client.defaultrequestdirector.tryconnect(defaultrequestdirector.java:611)     @ org.apache.http.impl.client.defaultrequestdirector.execute(defaultrequestdirector.java:446)     @ org.apache.http.impl.client.abstracthttpclient.doexecute(abstracthttpclient.java:882)     @ org.apache.http.impl.client.closeablehttpclient.execute(closeablehttpclient.java:71)     @ org.apache.http.impl.client.closeablehttpclient.execute(closeablehttpclient.java:220)     @ org.apache.http.impl.client.closeablehttpclient.execute(closeablehttpclient.java:164)     @ org.apache.http.impl.client.closeablehttpclient.execute(closeablehttpclient.java:139)     @ org.apache.solr.util.solrcli.getjson(solrcli.java:527)     @ org.apache.solr.util.solrcli.getjson(solrcli.java:471)     @ org.apache.solr.util.solrcli.getjson(solrcli.java:481)     @ org.apache.solr.util.solrcli.getzkhost(solrcli.java:1156)     @ org.apache.solr.util.solrcli$createcollectiontool.runtool(solrcli.java:1210)     @ org.apache.solr.util.solrcli.main(solrcli.java:215)  enabling auto soft-commits maxtime 3 secs using config api  posting request config api: http://localhost:8983/solr/gettingstarted/config {"set-property":{"updatehandler.autosoftcommit.maxtime":"3000"}}  exception in thread "main" org.apache.solr.client.solrj.solrserverexception: server refused connection at: http://localhost:8983/solr     @ org.apache.solr.client.solrj.impl.httpsolrclient.executemethod(httpsolrclient.java:567)     @ org.apache.solr.client.solrj.impl.httpsolrclient.request(httpsolrclient.java:235)     @ org.apache.solr.client.solrj.impl.httpsolrclient.request(httpsolrclient.java:227)     @ org.apache.solr.client.solrj.solrclient.request(solrclient.java:1220)     @ org.apache.solr.util.solrcli.postjsontosolr(solrcli.java:1882)     @ org.apache.solr.util.solrcli$configtool.runtool(solrcli.java:1856)     @ org.apache.solr.util.solrcli.main(solrcli.java:215) caused by: java.net.connectexception: connection refused     @ java.net.plainsocketimpl.socketconnect(native method)     @ java.net.abstractplainsocketimpl.doconnect(abstractplainsocketimpl.java:339)     @ java.net.abstractplainsocketimpl.connecttoaddress(abstractplainsocketimpl.java:200)     @ java.net.abstractplainsocketimpl.connect(abstractplainsocketimpl.java:182)     @ java.net.sockssocketimpl.connect(sockssocketimpl.java:392)     @ java.net.socket.connect(socket.java:579)     @ org.apache.http.conn.scheme.plainsocketfactory.connectsocket(plainsocketfactory.java:117)     @ org.apache.http.impl.conn.defaultclientconnectionoperator.openconnection(defaultclientconnectionoperator.java:177)     @ org.apache.http.impl.conn.managedclientconnectionimpl.open(managedclientconnectionimpl.java:304)     @ org.apache.http.impl.client.defaultrequestdirector.tryconnect(defaultrequestdirector.java:611)     @ org.apache.http.impl.client.defaultrequestdirector.execute(defaultrequestdirector.java:446)     @ org.apache.http.impl.client.abstracthttpclient.doexecute(abstracthttpclient.java:882)     @ org.apache.http.impl.client.closeablehttpclient.execute(closeablehttpclient.java:82)     @ org.apache.http.impl.client.closeablehttpclient.execute(closeablehttpclient.java:107)     @ org.apache.http.impl.client.closeablehttpclient.execute(closeablehttpclient.java:55)     @ org.apache.solr.client.solrj.impl.httpsolrclient.executemethod(httpsolrclient.java:466)     ... 6 more   solrcloud example running, please visit http://localhost:8983/solr  

i have done search nothing. have started solr using same command before time this.

what reason of error , how can fix it.

try starting without -e option (without including example). got same problem, not resolved restarting system. worked when removed command include example @ start time.

fyi : bin/solr start -noprompt


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - How to Hide Date Menu from Datepicker in yii2 -