|
[ https://issues.apache.org/jira/browse/OFBIZ-11504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17103319#comment-17103319 ] Jacques Le Roux edited comment on OFBIZ-11504 at 5/10/20, 10:15 AM: -------------------------------------------------------------------- Hi Jacques, I have tested the Solr connection by writing custom code in groovy and executing it from programmable export tab. I just replaced the solrWebappDomainName from localhost to demo-trunk.ofbiz.apache.org. This forms the below url as per the current implementation- [https://demo-trunk.ofbiz.apache.org:8443/solr] The above url is giving "Connection Refused" error just because of the port as domain already includes it. It's working fine with this url - https://demo-trunk.ofbiz.apache.org/solr There is code in SolrUtil class to set the port (default to same as OFBiz server) - {code} if (UtilValidate.isNotEmpty(solrWebappPortOverride)) { solrPort = solrWebappPortOverride; } else { solrPort = UtilProperties.getPropertyValue("url", ("https".equals(solrWebappProtocol) ? "port.https" : "port.http"), ("https".equals(solrWebappProtocol) ? "8443" : "8080")); } {code} I have tried to change the port for Solr by setting solrWebappPortOverride property. But it's not working. Even after changing the port, it was running on the same port as OFBiz. But that is a different issue. So how should I proceed now? Should we introduce one new property say completeSolrUrl which contains full path like this [https://demo-trunk.ofbiz.apache.org/solr|https://demo-trunk.ofbiz.apache.org:8443/solr] and the EntityUtilProperties to read the same. So that it can be modified from DB. Then modification in makeSolrWebappUrl() method of SolrUtil class to give preference to completeSolrUrl if set. was (Author: lodhiravi): Hi Jacques, I have tested the Solr connection by writing custom code in groovy and executing it from programmable export tab. I just replaced the solrWebappDomainName from localhost to demo-trunk.ofbiz.apache.org. This forms the below url as per the current implementation- [https://demo-trunk.ofbiz.apache.org:8443/solr] The above url is giving "Connection Refused" error just because of the port as domain already includes it. It's working fine with this url - [https://demo-trunk.ofbiz.apache.org/solr|https://demo-trunk.ofbiz.apache.org:8443/solr] There is code in SolrUtil class to set the port (default to same as OFBiz server) - {code} if (UtilValidate.isNotEmpty(solrWebappPortOverride)) { solrPort = solrWebappPortOverride; } else { solrPort = UtilProperties.getPropertyValue("url", ("https".equals(solrWebappProtocol) ? "port.https" : "port.http"), ("https".equals(solrWebappProtocol) ? "8443" : "8080")); } {code} I have tried to change the port for Solr by setting solrWebappPortOverride property. But it's not working. Even after changing the port, it was running on the same port as OFBiz. But that is a different issue. So how should I proceed now? Should we introduce one new property say completeSolrUrl which contains full path like this [https://demo-trunk.ofbiz.apache.org/solr|https://demo-trunk.ofbiz.apache.org:8443/solr] and the EntityUtilProperties to read the same. So that it can be modified from DB. Then modification in makeSolrWebappUrl() method of SolrUtil class to give preference to completeSolrUrl if set. > Solr Configuration Problem on Demo Instance > ------------------------------------------- > > Key: OFBIZ-11504 > URL: https://issues.apache.org/jira/browse/OFBIZ-11504 > Project: OFBiz > Issue Type: Bug > Components: solr > Affects Versions: Trunk > Reporter: Ravi Lodhi > Assignee: Ravi Lodhi > Priority: Minor > Attachments: DemoStableRebuildSolrIndex.png, DemoTrunkErrorLogs.txt, DemoTrunkRebuildSolrIndexError.png > > > Unable to build Solr Index on demo-trunk and demo-stable instances. > > *Demo Trunk:* Getting connection error while running *rebuildSolrIndex* service from webtools on [demo-trunk|https://demo-trunk.ofbiz.apache.org/webtools/control/runService] instance. Below is the error message- > > {code:java} > org.apache.http.conn.HttpHostConnectException: Connect to localhost:8443 [localhost/127.0.0.1] failed: Connection refused (Connection refused){code} > > *Demo Stable:* I also tried running the same service from webtools on [demo-stable|https://demo-stable.ofbiz.apache.org/webtools/control/runService] instance and getting below error- > > > {code:java} > javax.net.ssl.SSLPeerUnverifiedException: Host name 'localhost' does not match the certificate subject provided by the peer (CN=demo-old.ofbiz.apache.org). Please find the attached screenshots for the same.{code} > > > It seems like some configurations are missing for solr plugins on these demo instances. > Please find attached the error logs from demo-trunk instance as shared by [~jleroux]. Thanks Jacques for providing the error logs from the instance. > > > -- This message was sent by Atlassian Jira (v8.3.4#803005) |
| Free forum by Nabble | Edit this page |
