Failed to open stream: Connection timed out in: /.../FileManager.inc.php on line 159

I can not install any Plugins in Plugin Gallery.
The web server is behind the proxy, in config.inc.php are correctly entered settings.
In addition, the entire server is configured with paths through the proxy.
wget properly receives files from sources.
wget https://github.com/pkp/quickSubmit/releases/download/ojs-3_0_2-0/quickSubmit-ojs-3_0_2-0.tar.gz
–2017-10-27 14:14:22-- https://github.com/pkp/quickSubmit/releases/download/ojs-3_0_2-0/quickSubmit-ojs-3_0_2-0.tar.gz
Łączenie się z 10.20.2.33:9128… połączono.
Żądanie Proxy wysłano, oczekiwanie na odpowiedź… 302 Found
Lokalizacja: https://github-production-release-asset-2e65be.s3.amazonaws.com/76507044/de1ab3be-fb79-11e6-81de-527aa99de911?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20171027%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20171027T121423Z&X-Amz-Expires=300&X-Amz-Signature=8605dfed6063bb8f7fb9c228959f01743727eb446798250e381aa7bc22b3ed46&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3DquickSubmit-ojs-3_0_2-0.tar.gz&response-content-type=application%2Foctet-stream [podążanie]
–2017-10-27 14:14:23-- https://github-production-release-asset-2e65be.s3.amazonaws.com/76507044/de1ab3be-fb79-11e6-81de-527aa99de911?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20171027%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20171027T121423Z&X-Amz-Expires=300&X-Amz-Signature=8605dfed6063bb8f7fb9c228959f01743727eb446798250e381aa7bc22b3ed46&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3DquickSubmit-ojs-3_0_2-0.tar.gz&response-content-type=application%2Foctet-stream
Łączenie się z 10.20.2.33:9128… połączono.
Żądanie Proxy wysłano, oczekiwanie na odpowiedź… 200 OK
Długość: 16472 (16K) [application/octet-stream]
Zapis do: `quickSubmit-ojs-3_0_2-0.tar.gz’

100%[============================================================================================>] 16.472 --.-K/s w 0,1s

2017-10-27 14:14:23 (144 KB/s) - zapisano `quickSubmit-ojs-3_0_2-0.tar.gz’ [16472/16472]

If I try to install the plugin in the logs, errors are logged:
[error] [client 10.20.2.31] PHP Warning: copy(https://github.com/pkp/quickSubmit/releases/download/ojs-3_0_2-0/quickSubmit-ojs-3_0_2-0.tar.gz): failed to open stream: Connection timed out in /home/www/organizacja/zpub/public_html/lib/pkp/classes/file/FileManager.inc.php on line 159, referer: http://zpub.uek.krakow.pl/index.php/zpub/management/settings/website

Regards,

Was this ever resolved? I’m getting a similar error when I try to install the Form Honeypot plugin. The following was obtained from the PHP log:

[22-Jan-2020 03:55:32 UTC] PHP Deprecated:  The each() function is deprecated. This message will be suppressed on further calls in /home/nzseeorg/public_html/bulletin/lib/pkp/lib/adodb/adodb.inc.php on line 1003
[22-Jan-2020 16:55:38 Pacific/Auckland] PHP Warning:  copy(https://github.com/ulsdevteam/pkp-formHoneypot/releases/download/v1.3.0-1/formHoneypot-1.3.0-1.tgz): failed to open stream: Connection timed out in /home/nzseeorg/public_html/bulletin/lib/pkp/classes/file/FileManager.inc.php on line 162
[22-Jan-2020 16:55:38 Pacific/Auckland] ojs2: Incorrect MD5 checksum!

Hi @reagan,

This may be caused by changing a package file without updating plugins.xml or the problems in the latter file itself, e.g., redundant space or new line. Maybe @ctgraham knows more.

Thanks @Vitaliy. The only thing I’ve done recently is added a new child theme folder in plugins/themes. Would this require any changes to be made in plugins.xml? I haven’t touched that file.

EDIT: I can’t even find the plugins.xml file in my OJS installation! The closest I can find is lib/pkp/xml/schema/plugins.xsd.

No, this file is served by external server to supply plugins gallery with relevant information regarding available plugins. I believe this problem is not related to your OJS instance. The best would be to review this by the plugin’s developers.

This message indicates that your server is having trouble downloading the package from github.com. Does your server require a proxy to make outgoing connections to the internet? Can your system administrator or hosting provider confirm that access is open to github.com on port 443 from your server?

Sorry for moving into wrong direction. @ctgraham identified the problem much better :slight_smile:
I had the problem with the similar message before, but the cause was different. In this case I’m able to download the plugin from my test OJS instance.

@ctgraham, @Vitaliy - The plugin installation appears to be miraculously working now without making any changes. I guess our hosting provider was just experiencing a network issue at the time I posted this. Thank you so much for your help troubleshooting and sorry for the false alarm.

1 Like