• Resolved bruzona

    (@bruzona)


    Solr HTTP error: HTTP request failed, Failed to connect to 192.168.203.153: Permission denied (0)

    solr is running on a separate self-hosted server than wordpress, but is not cloud-based.

    Tested in conjunction with WPSolar chat support.
    1. Curl and http queries of solr server seem to be working normally (and are not restricted to localhost)
    2. Curl query of solr server from command line of *Wordpress* server working properly
    2. solr server and wordpress server can both see each other.

    https://www.ads-software.com/plugins/wpsolr-search-engine/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author WPSolr free

    (@wpsolr)

    Hi,

    The error message is based on a Solr ping (/solr/core/admin/ping).
    Please try to curl a ping to your Solr index from the WP server.

    Thread Starter bruzona

    (@bruzona)

    [root@localhost ~]# curl “https://192.168.203.153:8983/solr/collection1/admin/ping”

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <response>
    <lst name=”responseHeader”><int name=”status”>0</int><int name=”QTime”>2</int><lst name=”params”><str name=”spellcheck”>off</str><str name=”df”>text</str><str name=”echoParams”>all</str><str name=”rows”>10</str><str name=”echoParams”>all</str><str name=”q”>solrpingquery</str><str name=”distrib”>false</str></lst></lst><str name=”status”>OK</str>
    </response>
    [root@localhost ~]# curl “https://192.168.203.153:8983/solr/wordpress/admin/ping”

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <response>
    <lst name=”responseHeader”><int name=”status”>0</int><int name=”QTime”>1</int><lst name=”params”><str name=”spellcheck”>off</str><str name=”df”>text</str><str name=”echoParams”>all</str><str name=”rows”>10</str><str name=”echoParams”>all</str><str name=”q”>solrpingquery</str><str name=”distrib”>false</str></lst></lst><str name=”status”>OK</str>
    </response>

    Plugin Author WPSolr free

    (@wpsolr)

    Fine.

    Can you show me a sreen capture of the WPSOLR admin page with the setup and error message ?

    Thread Starter bruzona

    (@bruzona)

    Is there a way to add a screen capture to this board?

    Thread Starter bruzona

    (@bruzona)

    Solr HTTP error: HTTP request failed, Failed to connect to 192.168.203.153: Permission denied (0)

    Solr Protocol http
    Solr Host 192.168.203.153
    Solr Port 8983
    Solr Path /solr/wordpress

    (or /solr/#/wordpress, or mutliple other path variations, trying two cores, either of which can be queried using curl)

    Thank you for creating with WordPress.

    Version 4.1

    Plugin Author WPSolr free

    (@wpsolr)

    I never got in all my tests a “Permission denied”.

    That’s very strange.

    I really have the feeling there is a blockage between both machines.

    Try to gg “curl Permission denied”, there are some interresting similar issues out there.

    Thread Starter bruzona

    (@bruzona)

    That doesn’t really make sense. I can curl to query the solr just fine. I can access the solr using a browser just fine.

    Why would a blockage only affect curl from within PHP, but not the command line?

    Plugin Author WPSolr free

    (@wpsolr)

    Look in gg, there are issues with PHP/linux curl security, while curl command line works fine.

    Thread Starter bruzona

    (@bruzona)

    Okay – issue is:
    Centos SELINUX security settings blocking curl under user apache. (Oddly, this was not reflected in any of the usual logs.)

    Temporary workaround is to disable SELINUX

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘WPSolar unable to to connect’ is closed to new replies.