Hi,
Thank you for your answer.
I noticed that version 3.20.9 was released and tried to upgrade, to see if this bug was corrected in our installation and to give feedback here.
The problem is that I receive a php-fpm error, every time I tried to upgrade. The error is always the same:
What I find strange is that the update is decompressed and permissions look ok:
I tried with the modified “app/lib/classes/class.upload.php”, and with the original “app/lib/classes/class.upload.php” with the “env TMP” parameter pointing to a local temp location (/var/www/img/temp).
I tried the update on the Web Dashboard, and gave me the "Can't connect to %s" message, but I thought it was normal, as it is only corrected in this 3.20.9.
I don’t know if I’m doing something wrong or obvious. I don’t know if this upgrade error as any relation with the original bug and if you can help.
Thanks.
Thank you for your answer.
I noticed that version 3.20.9 was released and tried to upgrade, to see if this bug was corrected in our installation and to give feedback here.
The problem is that I receive a php-fpm error, every time I tried to upgrade. The error is always the same:
Code:
** errorId #6d44688229a40ae6 **
>> ErrorException [0]: copy(/var/www/img/app/lib/classes/class.upload.php): failed to open stream: Permission denied
At /app/install/update/updater.php:128
Stack trace:
#0 unknown file(unknown line): G\errorsAsExceptions(2, 'copy(/var/www/img/app/lib/classes/class.upload.php): failed to open stream: Permission denied', '/app/install/update/updater.php', 128, Array)
#1 /app/install/update/updater.php(128): copy('/app/install/update/temp/chevereto/app/lib/classes/class.upload.php', '/app/lib/classes/class.upload.php')
#2 /app/install/update/updater.php(243): CHV\extract('/app/install/update/temp/', Array)
#3 /app/routes/route.update.php(16): require_once('/app/install/update/updater.php')
#4 /lib/G/classes/class.handler.php(230): G\Handler->{closure}(G\Handler)
#5 /lib/G/classes/class.handler.php(130): G\Handler->processRequest()
#6 /app/web.php(411): G\Handler->__construct(Array)
#7 /app/loader.php(230): require_once('/app/web.php')
#8 /index.php(20): include_once('/app/loader.php')
What I find strange is that the update is decompressed and permissions look ok:
Code:
/var/www/img/app/install/update/temp # ls -lah
total 37
drwxrwx--- 3 img www 5B Jul 9 15:40 .
drwxrwx--- 4 img www 5B May 4 2019 ..
-rw-r--r-- 1 img www 303B Jul 9 15:38 README.txt
-rw-r--r-- 1 img www 522B Jul 9 15:38 Release notes.txt
drwxr-xr-x 8 img www 10B Jul 9 15:40 chevereto
Code:
/var/www/img/app/install/update/temp/chevereto # ls -lah
total 58
drwxr-xr-x 8 img www 10B Jul 9 15:40 .
drwxrwx--- 3 img www 5B Jul 9 15:40 ..
-rw-r--r-- 1 img www 1.3K Jul 9 15:38 .htaccess
drwxr-xr-x 10 img www 20B Jul 9 15:40 app
-rw-r--r-- 1 img www 1.0K Jul 9 15:38 cli.php
drwxr-xr-x 4 img www 4B Jul 9 15:40 content
drwxr-xr-x 2 img www 2B Jul 9 15:40 images
drwxr-xr-x 6 img www 6B Jul 9 15:40 importing
drwxr-xr-x 4 img www 4B Jul 9 13:50 lib
drwxr-xr-x 2 img www 2B Jul 9 15:40 sdk
I tried with the modified “app/lib/classes/class.upload.php”, and with the original “app/lib/classes/class.upload.php” with the “env TMP” parameter pointing to a local temp location (/var/www/img/temp).
I tried the update on the Web Dashboard, and gave me the "Can't connect to %s" message, but I thought it was normal, as it is only corrected in this 3.20.9.
I don’t know if I’m doing something wrong or obvious. I don’t know if this upgrade error as any relation with the original bug and if you can help.
Thanks.