Hei Trudde,

I'm wondering if your setup is forwarding requests from
dspace-test.hio.no:8080 to dspace-test.hio.no (removing the port
specification) and if SOLR is having trouble with the (302) redirection. Be
sure to check your solr.log.server, in your dspace.cfg file and make sure
that doesn't have 8080 in it. You would probably want that to be...
solr.log.server = https://dspace-test.hio.no/solr/statistics

Also, check to see if you can view the solr frontend from your browser. i.e.
go to http://dspace-test.hio.no/solr/

When someone added the forwarding from the servlet port (8080) to apache (80
or omitted on the browser) on that machine, perhaps they only added it for
the interfaces in use at the time: jspui, oai, sword, ... but maybe not for
solr. So you might need to add a rule for getting to solr as well. Also
viewing the /solr page might only work if you can open a browser from the
server, as there is a local-only restriction in place. If this is a linux
machine, you should be able to see what can be seen locally for solr with
the command:
wget http://localhost/solr -O -
or
wget https://dspace-test.hio.no/solr -O -

If it says Welcome to Solr in there somewhere that it is working and
visible, so then the solr log importer should be working.

Versågod

Peter Dietz
Systems Developer/Engineer
Ohio State University Libraries



On Wed, Apr 21, 2010 at 10:25 AM, <keith.gilbert...@library.gatech.edu>wrote:

> Hi,
>
> I think that part of what's happening is that your request to
> http://dspace-test.hio.no:8080/solr/statistics is being forwarded to
> somewhere else.
>
> See this output from the command line:
>
> wget http://dspace-test.hio.no/solr/statistics
> --2010-04-21 09:12:25--  http://dspace-test.hio.no/solr/statistics
> Resolving dspace-test.hio.no... 158.36.78.39
> Connecting to dspace-test.hio.no|158.36.78.39|:80... connected.
> HTTP request sent, awaiting response... 302 Moved Temporarily
> Location: https://dspace-test.hio.no/solr/statistics [following]
>
>
> The last couple of lines show my http request being forwarded to https,
> with a Moved Temporarily message.  Is it possible something similar is
> happening on your end?
>
> If that's the case, you might need to
>  - make an adjustment to solr.log.server in your dspace.cfg file and set it
> to the final url
>
>   OR
>
>
>   - make an adjustment somewhere else on your system to prevent requests to
> /solr/statistics from being forwarded/forced to https.
>
> --keith
>
>
>
> ----- Original Message -----
> From: "Trude Eikebrokk" <trude.eikebr...@hio.no>
> To: dspace-tech@lists.sourceforge.net
> Sent: Wednesday, April 21, 2010 8:30:09 AM GMT -05:00 US/Canada Eastern
> Subject: [Dspace-tech] Solr error: moved temporarily
>
> I'm joining the wave of SOLR-error reports.
> As I'm unfortunately not a programmer, I'd appreciate any help!
>
> I'm running Dspace 1.6.0/Tomcat 6.0.20.0/PostgreSQL, Java version
> 1.6.0_20.
>
> Whenever I try to use solr I get an Moved Temporarily.exception. Below
> is what happens when I try to convert the log-files.
>
> [r...@dspace-test dspace.dir]# bin/dspace stats-log-importer -v -i
> /opt/dspace/dspace.dir/log/solr.log -m
> Writing to solr server at: http://dspace-test.hio.no:8080/solr/statistics
> solr.log.2010-03-24
> Processing file: /opt/dspace/dspace.dir/log/solr.log.2010-03-24
>
> Line:20100324000031852,view_community,3,2010-03-24T00:00:31,anonymous,129.241.16.2
> ip addr = 129.241.16.2, dns name = fw.bibsys.no., country = , city =
> Moved Temporarily
>
> Moved Temporarily
>
> request:
>
> http://dspace-test.hio.no:8080/solr/statistics/update?wt=javabin&version=2.2
> org.apache.solr.common.SolrException: Moved Temporarily
>
> Moved Temporarily
>
> request:
>
> http://dspace-test.hio.no:8080/solr/statistics/update?wt=javabin&version=2.2
>         at
>
> org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:343)
>         at
>
> org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:183)
>         at
>
> org.apache.solr.client.solrj.request.UpdateRequest.process(UpdateRequest.java:217)
>         at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:63)
>         at
>
> org.dspace.statistics.util.StatisticsImporter.load(StatisticsImporter.java:361)
>         at
>
> org.dspace.statistics.util.StatisticsImporter.main(StatisticsImporter.java:493)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at
> org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:194)
> Processed 1 log lines
>  - 0 entries added to solr: 0%
>  - 1 errors: 100%
>  - 0 search engine activity skipped: 0%
> About to commit data to solr...Exception: Moved Temporarily
>
> Moved Temporarily
>
> request: http://dspace-test.hio.no:8080/solr/statistics/update
> org.apache.solr.common.SolrException: Moved Temporarily
>
> Moved Temporarily
>
> request: http://dspace-test.hio.no:8080/solr/statistics/update
>         at
>
> org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:343)
>         at
>
> org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:183)
>         at
>
> org.apache.solr.client.solrj.request.UpdateRequest.process(UpdateRequest.java:217)
>         at
> org.apache.solr.client.solrj.SolrServer.commit(SolrServer.java:85)
>         at
> org.apache.solr.client.solrj.SolrServer.commit(SolrServer.java:74)
>         at
>
> org.dspace.statistics.util.StatisticsImporter.load(StatisticsImporter.java:387)
>         at
>
> org.dspace.statistics.util.StatisticsImporter.main(StatisticsImporter.java:493)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at
> org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:194)
>
>
> --
> Mvh
> Trude Eikebrokk
> Oslo University College
> trude.eikebr...@hio.no
> 22 45 35 70
> p48/S336
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
------------------------------------------------------------------------------
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to