0
Not a bug

Error 500 during attempt to upgrade from 2019 to 2020 build

olokos 9 months ago updated 8 months ago 6

Hello,

I'm trying to upgrade FileRun from version 2019.12.25 to 2020.11.21, but each time it downloads update, I press on install update and it just Says "Loading..." forever and chrome returns error 500.

How should I go about this issue?

The FileRun installation seems to be completely unaffected as I can attempt to upgrade forever.

Censored some numbers for security reasons, but this is how it looks like.

Where should I look for the problem?

Thank you very much for your software, it's really awesome! (no sarcasm intended)

Answer

Answer

The "zlib extension" is a FileRun requirement: https://filerun.com/req See here on how to add it to your PHP installation: https://www.php.net/manual/en/zip.installation.php

+1
Not a bug

Sorry for the late reply. PHP is probably configured with "display_errors" set to "Off", that's why just the Internal Server Error 500 instead of a meaningful error message.

You should enable log_errors in the PHP configuration and then check error_log for the actual error message. Or enable error displaying.

No problem, thank you for reply!

I assume it is a bug in fact, as this is what the error is once I enabled display errors:

Developer info: de:1 met:300 ml:128M
-------------------------------------
Cleaning after previous update...Done
Extracting update...
Fatal error: Uncaught Error: Class 'ZipArchive' not found in /var/www/filerun/system/classes/arch/arch.zip.lib.php:10 Stack trace: #0 /var/www/filerun/system/classes/arch/arch.lib.php(16): ArchZip->__construct() #1 /var/www/filerun/system/modules/software_update/sections/cpanel/php/install.php(45): ArchUtil::init() #2 /var/www/filerun/index.php(191): unknown() #3 {main} thrown in /var/www/filerun/system/classes/arch/arch.zip.lib.php on line 10
Answer

The "zlib extension" is a FileRun requirement: https://filerun.com/req See here on how to add it to your PHP installation: https://www.php.net/manual/en/zip.installation.php

I do have it installed in fact, as you can see in the above screenshot.

location ~ \.php$ {

include snippets/fastcgi-php.conf;

fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

include fastcgi_params;

}


Above is a snippet from the filerun nginx configuration.

I did successfully update filerun before without any issues, but with this particular update it's not possible anymore, no idea why.

This blueloader warning isn't that relevant, it's sole purpose is to check with the main server if I'm running a licensed website, which is trash anway, so I think it's not affecting this issue at all.

+1
I do have it installed in fact, as you can see in the above screenshot.

You don't. You are running a different PHP configuration via the command line.

I'm running a licensed website, which is trash anway,

What is trash?

What is blueloader extension you are trying to load?

I've got this!

The command is:

sudo apt install php7.4-zip


and the problem is gone.

By trash I meant some PHP site I bought for 50$ which is using this blueloader for pinging the main server, if there's no response the page I bought is down.