Hello,
I have the following error with the plugin installAuto
2019-08-07 09:53:35.349 ** ERROR ** [V8.1.3] ERROR ** 2019-08-07 09:53:35.349 ** ERROR ** [V8.1.3] on file '/projets/projeqtor/plugin/installAuto/installAutoZipList.php' at line (168) 2019-08-07 09:53:35.349 ** ERROR ***** [V8.1.3] cause = file_get_contents( http://projeqtor.org/admin/getInstallableVersions.php?currentVersion=V8.1.3): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden
But this work :
# sudo -u www-data curl "http://projeqtor.org/admin/getInstallableVersions.php?currentVersion=V8.1.3"
{}
Regards.
--
Bena
Issue can be due to your php configuration
Check value of allow_url_fopen in php.ini
It must be set to 1 (or on)
The value is already set to 1.
I have this error since 8.1.3
It works well before.
--
Bena
I could not find errors in the apache error and access log file on our server.
Could you try again to see if this was temporary rejection ?
Hi,
You server cannot reach projector server to get list of installable versions.
(message is explicit)
I checked our log files : not access was refused
projeqtor.org:80 40.113.159.96 - - [13/Aug/2019:09:29:09 +0200] "GET http://projeqtor.org/admin/getInstallableVersions.php?currentVersion=V8.1.3 HTTP/1.0" 200 319 "-" "-"
projeqtor.org:80 40.113.159.96 - - [13/Aug/2019:09:29:10 +0200] "GET http://projeqtor.org/admin/getInstallableVersions.php?currentVersion=V8.1.3 HTTP/1.0" 200 319 "-" "-"
projeqtor.org:80 40.113.159.96 - - [13/Aug/2019:09:29:55 +0200] "GET http://projeqtor.org/admin/getInstallableVersions.php?currentVersion=V8.1.3 HTTP/1.0" 200 319 "-" "-"
projeqtor.org:80 40.113.159.96 - - [13/Aug/2019:09:29:55 +0200] "GET http://projeqtor.org/admin/getInstallableVersions.php?currentVersion=V8.1.3 HTTP/1.0" 200 319 "-" "-"
projeqtor.org:80 40.113.159.96 - - [13/Aug/2019:09:29:58 +0200] "GET http://projeqtor.org/admin/getInstallableVersions.php?currentVersion=V8.1.3 HTTP/1.0" 200 319 "-" "-"
projeqtor.org:80 40.113.159.96 - - [13/Aug/2019:09:29:59 +0200] "GET http://projeqtor.org/admin/getInstallableVersions.php?currentVersion=V8.1.3 HTTP/1.0" 200 319 "-" "-"
projeqtor.org:80 40.113.159.96 - - [13/Aug/2019:09:30:00 +0200] "GET http://projeqtor.org/admin/getInstallableVersions.php?currentVersion=V8.1.3 HTTP/1.0" 200 319 "-" "-"
projeqtor.org:80 40.113.159.96 - - [13/Aug/2019:09:30:01 +0200] "GET http://projeqtor.org/admin/getInstallableVersions.php?currentVersion=V8.1.3 HTTP/1.0" 200 319 "-" "-"
projeqtor.org:80 40.113.159.96 - - [13/Aug/2019:09:30:02 +0200] "GET http://projeqtor.org/admin/getInstallableVersions.php?currentVersion=V8.1.3 HTTP/1.0" 200 319 "-" "-"
projeqtor.org:80 40.113.159.96 - - [13/Aug/2019:09:30:03 +0200] "GET http://projeqtor.org/admin/getInstallableVersions.php?currentVersion=V8.1.3 HTTP/1.0" 200 319 "-" "-"
projeqtor.org:80 40.113.159.96 - - [13/Aug/2019:09:32:23 +0200] "GET http://projeqtor.org/admin/getInstallableVersions.php?currentVersion=V8.1.3 HTTP/1.0" 200 319 "-" "-"
projeqtor.org:80 40.113.159.96 - - [13/Aug/2019:09:32:23 +0200] "GET http://projeqtor.org/admin/getInstallableVersions.php?currentVersion=V8.1.3 HTTP/1.0" 200 319 "-" "-"
projeqtor.org:80 40.113.159.96 - - [13/Aug/2019:09:32:30 +0200] "GET http://projeqtor.org/admin/getInstallableVersions.php?currentVersion=V8.1.3 HTTP/1.0" 200 319 "-" "-"
projeqtor.org:80 40.113.159.96 - - [13/Aug/2019:09:32:31 +0200] "GET http://projeqtor.org/admin/getInstallableVersions.php?currentVersion=V8.1.3 HTTP/1.0" 200 319 "-" "-"
projeqtor.org:80 40.113.159.96 - - [13/Aug/2019:09:32:32 +0200] "GET http://projeqtor.org/admin/getInstallableVersions.php?currentVersion=V8.1.3 HTTP/1.0" 200 319 "-" "-"
projeqtor.org:80 40.113.159.96 - - [13/Aug/2019:09:32:33 +0200] "GET http://projeqtor.org/admin/getInstallableVersions.php?currentVersion=V8.1.3 HTTP/1.0" 200 319 "-" "-"
projeqtor.org:80 40.113.159.96 - - [13/Aug/2019:09:32:34 +0200] "GET http://projeqtor.org/admin/getInstallableVersions.php?currentVersion=V8.1.3 HTTP/1.0" 200 319 "-" "-"
projeqtor.org:80 40.113.159.96 - - [13/Aug/2019:09:32:34 +0200] "GET http://projeqtor.org/admin/getInstallableVersions.php?currentVersion=V8.1.3 HTTP/1.0" 200 319 "-" "-"
projeqtor.org:80 195.154.216.26 - - [13/Aug/2019:10:26:24 +0200] "GET http://projeqtor.org/admin/getInstallableVersions.php?currentVersion=V8.1.3 HTTP/1.0" 200 319 "-" "-"
projeqtor.org:80 195.154.216.26 - - [13/Aug/2019:10:26:24 +0200] "GET http://projeqtor.org/admin/getInstallableVersions.php?currentVersion=V8.1.3 HTTP/1.0" 200 319 "-" "-"
projeqtor.org:80 195.154.216.26 - - [13/Aug/2019:10:26:27 +0200] "GET http://projeqtor.org/admin/getInstallableVersions.php?currentVersion=V8.1.3 HTTP/1.0" 200 319 "-" "-"
projeqtor.org:80 195.154.216.26 - - [13/Aug/2019:10:26:27 +0200] "GET http://projeqtor.org/admin/getInstallableVersions.php?currentVersion=V8.1.3 HTTP/1.0" 200 319 "-" "-"
projeqtor.org:80 195.154.216.26 - - [13/Aug/2019:10:26:27 +0200] "GET http://projeqtor.org/admin/getInstallableVersions.php?currentVersion=V8.1.3 HTTP/1.0" 200 319 "-" "-"
projeqtor.org:80 195.154.216.26 - - [13/Aug/2019:10:26:28 +0200] "GET http://projeqtor.org/admin/getInstallableVersions.php?currentVersion=V8.1.3 HTTP/1.0" 200 319 "-" "-"
projeqtor.org:80 82.243.121.187 - - [13/Aug/2019:10:36:43 +0200] "GET /admin/getInstallableVersions.php?currentVersion=V8.2.0 HTTP/1.0" 200 152 "-" "-"
projeqtor.org:80 82.243.121.187 - - [13/Aug/2019:10:36:43 +0200] "GET /admin/getInstallableVersions.php?currentVersion=V8.2.0 HTTP/1.0" 200 152 "-" "-"
projeqtor.org:80 82.243.121.187 - - [13/Aug/2019:10:37:06 +0200] "GET /admin/getInstallableVersions.php?currentVersion=V8.2.0 HTTP/1.0" 200 152 "-" "-"
projeqtor.org:80 82.243.121.187 - - [13/Aug/2019:10:37:06 +0200] "GET /admin/getInstallableVersions.php?currentVersion=V8.2.0 HTTP/1.0" 200 152 "-" "-"
So It seems it is because of PHP configuration (allow_url_fopen off, or php_curl not installed, of safe mode active)
or because of your network security.
If you need to use a proxy, you have access to the proxy configuration (below message)
Last possibility, is that our access filter (fail2ban) blocked you.
Can you retreive your public IP and send it to me (in private message) so that I can check it is not blocked ?
I'm lost ...
This command should not work :
# php -r 'print file_get_contents("http://projeqtor.org/admin/getInstallableVersions.php?currentVersion=V8.1.3");'
{"V8.1.4":{"name":"V8.1.4","stable":"Y","lastStable":"Y","last":"Y","url":"http://projeqtor.org/version/projeqtorV8.1.4.zip","size":"49446492"}}
But it works.
And there is no difference between my apache2 php.ini and the cli's one.
--
Bena
What is different is that in projector we use a context to shorten timeout
Can you please try and change line 168 in plugin/installAuto/installAutoZipList.php
from
return file_get_contents($fileName,false,$cxContext);
to
return file_get_contents($fileName,false,null);
Great !
We'll have an upgrade of the plugin to take this situation into account.

