Forum

Error on Install Au...
 
Notifications
Retirer tout

Error on Install Auto plugin

10 Posts
2 Utilisateurs
0 Reactions
5,483 Vu
Bena
 Bena
(@bena)
Posts: 65
Estimable Member
Début du sujet
 
[#6171]

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

 
Posté : 07/08/2019 12:05 pm
(@babynus)
Posts: 14952
Membre Admin
 

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)


 
Posté : 07/08/2019 10:35 pm
Bena
 Bena
(@bena)
Posts: 65
Estimable Member
Début du sujet
 

The value is already set to 1.

I have this error since 8.1.3
It works well before.


--
Bena

 
Posté : 08/08/2019 8:06 pm
(@babynus)
Posts: 14952
Membre Admin
 

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 ?


 
Posté : 10/08/2019 8:19 pm
Bena
 Bena
(@bena)
Posts: 65
Estimable Member
Début du sujet
 

Strange thing,

I have received the notification about the new version but I can't see it in th auto update plugin.

Regards.


--
Bena

 
Posté : 13/08/2019 11:56 am
(@babynus)
Posts: 14952
Membre Admin
 

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 ?


 
Posté : 13/08/2019 12:44 pm
Bena
 Bena
(@bena)
Posts: 65
Estimable Member
Début du sujet
 

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

 
Posté : 13/08/2019 1:46 pm
(@babynus)
Posts: 14952
Membre Admin
 

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);

 
Posté : 13/08/2019 4:29 pm
Bena
 Bena
(@bena)
Posts: 65
Estimable Member
Début du sujet
 

Nice, It works well with the modification.

Thanks 🙂


--
Bena

 
Posté : 14/08/2019 12:08 pm
(@babynus)
Posts: 14952
Membre Admin
 

Great !
We'll have an upgrade of the plugin to take this situation into account.


 
Posté : 14/08/2019 12:22 pm
Share:
Retour en haut