[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



Hi,
I think you might be able to set the proxy in the env e.g.:
export http_proxy='http://user:password at proxy-server:3128'
export https_proxy='http://user:password at proxy-server:3128'
export ftp_proxy='http://user:password at 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 at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of holger.berth at mdc-berlin.de
Sent: 28 April 2016 11:56
To: eprints-tech at 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 at ecs.soton.ac.uk<mailto:eprints-tech-bounces at ecs.soton.ac.uk> [mailto:eprints-tech-bounces at ecs.soton.ac.uk] Im Auftrag von Denis Pitzalis
Gesendet: Donnerstag, 28. April 2016 11:01
An: Eprints Tech Mailing List <eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at 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 at mdc-berlin.de<mailto:holger.berth at mdc-berlin.de> <holger.berth at mdc-berlin.de<mailto:holger.berth at 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<tel:%2B49-%280%2930-9406%202828>
fax: +49-(0)30-9406 49919<tel:%2B49-%280%2930-9406%2049919>
it-hotline: +49-(0)30-9406 4440<tel:%2B49-%280%2930-9406%204440>
mail: holger.berth at mdc-berlin.de<mailto:holger.berth at mdc-berlin.de>
web: www.mdc-berlin.de<http://www.mdc-berlin.de>

Von: eprints-tech-bounces at ecs.soton.ac.uk<mailto:eprints-tech-bounces at ecs.soton.ac.uk> [mailto:eprints-tech-bounces at ecs.soton.ac.uk<mailto:eprints-tech-bounces at ecs.soton.ac.uk>] Im Auftrag von Denis Pitzalis
Gesendet: Donnerstag, 28. April 2016 09:29
An: Eprints Tech Mailing List <eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at 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<http://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 at mdc-berlin.de<mailto:holger.berth at mdc-berlin.de> <holger.berth at mdc-berlin.de<mailto:holger.berth at 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/



--
Denis Pitzalis, PhD<mailto:d.pitzalis at unesco.org>
Web Architect/Lead Developer<http://www.unesco.org>

ERI/DPI/WEB<http://www.unesco.org>
7, place de Fontenoy
75007 ? Paris ? France<https://goo.gl/maps/U2TEZ2x14MM2>
Tel. +33 (0) 1 45 68 18 16<tel:%2B33%20%280%29%201%2045%2068%2018%2016>

http://www.unesco.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/



--
Denis Pitzalis, PhD<mailto:d.pitzalis at unesco.org>
Web Architect/Lead Developer<http://www.unesco.org>

ERI/DPI/WEB<http://www.unesco.org>
7, place de Fontenoy
75007 ? Paris ? France<https://goo.gl/maps/U2TEZ2x14MM2>
Tel. +33 (0) 1 45 68 18 16

http://www.unesco.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20160428/25a3cfdb/attachment-0001.html