SOLR '0' Status: Communication Error
0 down vote favorite I am using SOLR for indexing documents.I create index from a mysql database. I create index from PHP which runs on wamp server. I am using SOLR PHP client to create index. When I create index from the server on which SOLR is deployed, everything works fine. But when I try to create index from a different machine, I get the following error: '0' Status: Communication Error I tried changing php socket time out, solr commitlocktimeout and solr writelocktimeout. But still I get the same error. When I create index from the solr server itslef, there is no error. PHP version : 5.2.2 SOLR version : 1.4.1 Any idea on why this happens? Thank you -- View this message in context: http://lucene.472066.n3.nabble.com/SOLR-0-Status-Communication-Error-tp4031698.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: SOLR '0' Status: Communication Error
I forgot to mention.When I add documents to SOLR, I add it in batches of 50. Because my table has a lot of records, I have to do in batches due to memory constraints. The 'Communication error' occurs only for some batches. For other batches, documents get added properly. And also, I am including the stack trace just in case if it helps. '0' Status: Communication Error#0 C:\wamp\www\nist\application\library\SolrPhpClient\Apache\Solr\Service.php(672): Apache_Solr_Service->_sendRawPost('http://129.107', 'add('addDocuments(Array) #3 C:\wamp\www\nist\application\library\Nist\Console\CrawlUNT.php(346): Nist_Console_NistSolrIndex->createIndex() #4 C:\wamp\www\nist\application\library\Nist\Console\CrawlUNT.php(89): Nist_Console_CrawlUNT->CrawlParseAndIndexProfiles() #5 C:\wamp\www\nist\application\Bootstrap.php(107): Nist_Console_CrawlUNT->run(Object(Zend_Console_Getopt)) #6 C:\wamp\www\nist\application\Bootstrap.php(78): Bootstrap->_runConsoleApp() #7 C:\wamp\www\dkumar\mentis-libs\Zend\Application.php(366): Bootstrap->run() #8 C:\wamp\www\nist\index.php(37): Zend_Application->run() -- View this message in context: http://lucene.472066.n3.nabble.com/SOLR-0-Status-Communication-Error-tp4031698p4031949.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: SOLR '0' Status: Communication Error
Thanks Shawn. I tried increasing following timeouts in php: max_execution_time max_input_time default_socket_timeout But still I get 'Communication error'. Please let me know if I have to change any other timeout in php. -- View this message in context: http://lucene.472066.n3.nabble.com/SOLR-0-Status-Communication-Error-tp4031698p4032012.html Sent from the Solr - User mailing list archive at Nabble.com.