Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Error on Install Au...
 
Notifications
Clear all

Error on Install Auto plugin

10 Posts
2 Users
0 Reactions
5,484 Views
Bena
 Bena
(@bena)
Posts: 65
Active Member
Topic starter
 
[#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

 
Posted : 07 Aug 2019 12H05
(@babynus)
Posts: 14952
Member 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)


 
Posted : 07 Aug 2019 22H35
Bena
 Bena
(@bena)
Posts: 65
Active Member
Topic starter
 

The value is already set to 1.

I have this error since 8.1.3
It works well before.


--
Bena

 
Posted : 08 Aug 2019 20H06
(@babynus)
Posts: 14952
Member 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 ?


 
Posted : 10 Aug 2019 20H19
Bena
 Bena
(@bena)
Posts: 65
Active Member
Topic starter
 

Strange thing,

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

Regards.


--
Bena

 
Posted : 13 Aug 2019 11H56
(@babynus)
Posts: 14952
Member 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 ?


 
Posted : 13 Aug 2019 12H44
Bena
 Bena
(@bena)
Posts: 65
Active Member
Topic starter
 

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

 
Posted : 13 Aug 2019 13H46
(@babynus)
Posts: 14952
Member 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);

 
Posted : 13 Aug 2019 16H29
Bena
 Bena
(@bena)
Posts: 65
Active Member
Topic starter
 

Nice, It works well with the modification.

Thanks 🙂


--
Bena

 
Posted : 14 Aug 2019 12H08
(@babynus)
Posts: 14952
Member Admin
 

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


 
Posted : 14 Aug 2019 12H22
Share:

Scroll to Top