Solr url access returning 403 error

830 views
Skip to first unread message

Pantelis Karamolegkos

unread,
May 24, 2016, 11:01:29 AM5/24/16
to DSpace Technical Support
I just installed dspace from the master branch source.
I am however getting an "Internal System Error" on the landing page (as you can see in the attached image)

dspace log indicates a solr issue: http://pastebin.com/CP93Mwj0

tl;dr: solr is not accessible via http (returning 403). Here is my server.xml extract regarding dspace sonfiguration:

 <Context path="/dspace" docBase="/home/pkaramol/Workspace/dspace/dspace-installation/webapps/jspui" reloadable="true" />
            <Context path="/solr" docBase="/home/pkaramol/Workspace/dspace/dspace-installation/webapps/solr" reloadable="true">
                <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="127\.0\.0\.1|123\.123\.123\.123|111\.222\.233\.d+"/>
                <Parameter name="LocalHostRestrictionFilter.localhost" value="false" override="false" />
            </Context>


Any suggestions would be appreciated, thx.

Pantelis

internalsystemerror.jpg

Pantelis Karamolegkos

unread,
May 24, 2016, 12:59:01 PM5/24/16
to DSpace Technical Support
Resolved

Given the fact that the the following config parames were passed in local.cfg

dspace.baseUrl = http://my.pc.ip.add:8080

solr.server = http://my.pc.ip.add:8080/solr


where my.pc.ip.add are of course digits corresponding to my workstation's (static) IP addr, I had to also allow it explicitly in the value of the allow parameter of the Valve element which now looks sth like this

 <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="my\.pc\.ip\.add|127\.0\.0\.1|123\.123\.123\.123|111\.222\.233\.d+"/>

Chris Gray

unread,
May 24, 2016, 2:49:32 PM5/24/16
to DSpace Technical Support
You can solve this problem by ssh tunneling to your server without
any change to the server's configuration.  If you have ssh access
to the server you can set up a tunnel.

Coming from a Linux box I use:
   ssh -L localhost:9180:127.0.0.1:8080 myuse...@my.dspace.server -N
If you don't have ssh keys set up, you will have to log in after giving this command.  When
you are done accessing Solr and close your browser you have to use ^C to exit this command

This tunnels from my Linux workstation to the dspace server.  Solr dashboard is then accessible by my browser to:
  http://localhost:9180/solr/#/

We also use the tunneling capability of PuTTY to give access to Window's workstations.

Chris
Reply all
Reply to author
Forward
0 new messages