EPrints Technical Mailing List Archive

Message: #05653


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] how to tell eprints to use a proxy server


Wait, I do a test and post it back

Denis

On Thu, Apr 28, 2016 at 5:07 PM, holger.berth@mdc-berlin.de <holger.berth@mdc-berlin.de> wrote:

Hi Denis,

 

sorry, what i have to change in PubMedID.pm? Only adding the line

 

 

use LWP::UserAgent;

 

?

 

Best regards,

Holger

 

 

Von: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] Im Auftrag von Denis Pitzalis
Gesendet: Donnerstag, 28. April 2016 14:12


An: Eprints Tech Mailing List <eprints-tech@ecs.soton.ac.uk>
Betreff: Re: [EP-tech] how to tell eprints to use a proxy server

 

Setting global variables is a solution, but the real problem is that the import does not support proxy.
To do so you could patch the import file PubMedID.pm and add the method LWP for fetching the files (same as DSpace.pm).
Once you have done that, add

https://github.com/eprints/eprints/pull/296/files

to use proxy with LWP.

Best regards,

Denis

 

On Thu, Apr 28, 2016 at 1:57 PM, John Salter <J.Salter@leeds.ac.uk> wrote:

Hi,

I think you might be able to set the proxy in the env e.g.:

export http_proxy='http://user:password@proxy-server:3128'

export https_proxy='http://user:password@proxy-server:3128'

export ftp_proxy='http://user:password@proxy-server:3128'

 

 

In the past (for a reason I can’t remember now), I had to do something like this:

http://serverfault.com/questions/589340/configuring-apache-web-server-to-use-the-http-proxy-environment-variable

- but that was on an old Solaris server…

 

Cheers,

John

 

 

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of holger.berth@mdc-berlin.de
Sent: 28 April 2016 11:56
To: eprints-tech@ecs.soton.ac.uk
Subject: Re: [EP-tech] how to tell eprints to use a proxy server

 

No, that is not the problem - the extension is installed and works fine. I have changed our firewall config, so eprints can communicate without a proxy, but this is only a workaround.

 

Do you have any other idea?

 

Von: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] Im Auftrag von Denis Pitzalis
Gesendet: Donnerstag, 28. April 2016 11:01


An: Eprints Tech Mailing List <eprints-tech@ecs.soton.ac.uk>
Betreff: Re: [EP-tech] how to tell eprints to use a proxy server

 

It seems, from your log message, that the problem is with your perl installation: you are missing the extension XML::LibXML

 

On Thu, Apr 28, 2016 at 9:43 AM, holger.berth@mdc-berlin.de <holger.berth@mdc-berlin.de> wrote:

Hi Denis,

 

i have created the file, reloaded eprints and restarted the apache, but i get the same error message. Here is the full error message:

 

Unhandled exception in Import::PubMedID: Could not create file parser context f

or file "http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&ret

mode=xml&rettype=full&id=26993800": No such file or directory at /usr/lib64/per

l5/XML/LibXML.pm line 929 XML::LibXML::parse_file('XML::LibXML=HASH(0x7f4130b08

500)', 'http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=p...') call

ed at /usr/share/eprints/perl_lib/EPrints/XML/LibXML.pm line 93 EPrints::XML::_

parse_url('URI::http=SCALAR(0x7f41316851d0)') called at /usr/share/eprints/perl

_lib/EPrints/XML.pm line 155 EPrints::XML::parse_url() called at /usr/share/epr

ints/perl_lib/EPrints/Plugin/Import/PubMedID.pm line 58 EPrints::Plugin::Import

::PubMedID::input_fh('EPrints::Plugin::Import::PubMedID=HASH(0x7f41316d5658)',

'dataset', 'EPrints::DataSet=HASH(0x7f412ca76198)', 'fh', 'File::Temp=GLOB(0x7f

412e2111a8)', 'user', 'EPrints::DataObj::User=HASH(0x7f4131687630)', 'filename'

, undef, ...) called at /usr/share/eprints/perl_lib/EPrints/Plugin/Screen/Im ...

 

Do you have any other idea?

 

Best,

Holger

 

 

--

Holger Berth

IT Web/Database

 

Max-Delbrück-Center for Molecular Medicine in the Helmholtz Association

House 23, Room 228

Robert-Roessle-Str. 10

D-13125 Berlin

 

phone:+49-(0)30-9406 2828

fax: +49-(0)30-9406 49919

it-hotline: +49-(0)30-9406 4440

mail: holger.berth@mdc-berlin.de

web: www.mdc-berlin.de

 

Von: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] Im Auftrag von Denis Pitzalis
Gesendet: Donnerstag, 28. April 2016 09:29
An: Eprints Tech Mailing List <eprints-tech@ecs.soton.ac.uk>
Betreff: Re: [EP-tech] how to tell eprints to use a proxy server

 

Hi Holger,

I have created in cfg/cfg.d a file called proxy.pl with the line:

$c->{proxy} = 'http://proxy.yourproxy.org:yourport';

and everything works fine.

Denis

 

On Thu, Apr 28, 2016 at 9:24 AM, holger.berth@mdc-berlin.de <holger.berth@mdc-berlin.de> wrote:

Hi @ all,

 

my new eprints server is behind a firewall in a DMZ. If i will import Items from Pubmed ID i get an error message.

 

-- error : unreachable network --

 

I think eprints dont know how to communicate outside and i have to set a proxy.

 

So how can i tell eprints to use a proxy server?

 

OS: Cent OS 6.7

Eprints Version 3.3.15

 

King regards,

Holger

 


*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/




--


*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/




--


*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/




--


*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/




--