[EP-tech] how to tell eprints to use a proxy server
holger.berth at mdc-berlin.de
holger.berth at mdc-berlin.de
Thu Apr 28 16:07:48 BST 2016
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 at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] Im Auftrag von Denis Pitzalis
Gesendet: Donnerstag, 28. April 2016 14:12
An: Eprints Tech Mailing List <eprints-tech at 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 at leeds.ac.uk <mailto:J.Salter at 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 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> ] On Behalf Of holger.berth at mdc-berlin.de <mailto:holger.berth at mdc-berlin.de>
Sent: 28 April 2016 11:56
To: eprints-tech at ecs.soton.ac.uk <mailto: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 <http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&ret> &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: <mailto:holger.berth at mdc-berlin.de> holger.berth at mdc-berlin.de
web: <http://www.mdc-berlin.de> 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/
--
<mailto:d.pitzalis at unesco.org> Denis Pitzalis, PhD
<http://www.unesco.org> Web Architect/Lead Developer
<http://www.unesco.org> ERI/DPI/WEB
<https://goo.gl/maps/U2TEZ2x14MM2> 7, place de Fontenoy
75007 • Paris • France
Tel. +33 (0) 1 45 68 18 16 <tel:%2B33%20%280%29%201%2045%2068%2018%2016>
<http://www.unesco.org> 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/
--
<mailto:d.pitzalis at unesco.org> Denis Pitzalis, PhD
<http://www.unesco.org> Web Architect/Lead Developer
<http://www.unesco.org> ERI/DPI/WEB
<https://goo.gl/maps/U2TEZ2x14MM2> 7, place de Fontenoy
75007 • Paris • France
Tel. +33 (0) 1 45 68 18 16 <tel:%2B33%20%280%29%201%2045%2068%2018%2016>
<http://www.unesco.org> 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/
--
<mailto:d.pitzalis at unesco.org> Denis Pitzalis, PhD
<http://www.unesco.org> Web Architect/Lead Developer
<http://www.unesco.org> ERI/DPI/WEB
<https://goo.gl/maps/U2TEZ2x14MM2> 7, place de Fontenoy
75007 • Paris • France
Tel. +33 (0) 1 45 68 18 16
<http://www.unesco.org> http://www.unesco.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20160428/77e76305/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6135 bytes
Desc: not available
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20160428/77e76305/attachment-0001.bin
More information about the Eprints-tech
mailing list