WillyXJ / facileManager

A modular suite of web apps built with the sysadmin in mind.
www.facilemanager.com
GNU General Public License v2.0
84 stars 37 forks source link

[BUG] Error during the update #615

Open beza2000 opened 4 months ago

beza2000 commented 4 months ago

fM Version : 4.6.1 fmDNS Version : 6.0.3

In raising this issue, I confirm the following (please check boxes, eg [X]):


(BUG | ISSUE) Expected Behavior:

Server Upgrade

  1. Make a backup of your database using the built-in tool via the UI or manually.
  2. Make a backup of your config.inc.php file.
  3. Delete your old facileManager files.
  4. Extract/upload the new files from the server directory.
  5. Copy your backup of config.inc.php to the document root. (ie /var/www/html/facileManager/)
  6. Login as a super-admin to facileManager and follow the wizard to upgrade your database.
  7. Once fM is upgraded, you will be redirected to the admin-modules page where you can upgrade your modules individually.

(BUG | ISSUE) Actual Behavior: At step 7, everything stops.

(BUG | ISSUE) Steps to reproduce: The update takes place from the version fM Version : 4.1.1 / fmDNS Version : 5.1.0 There is an error in the log file on the server:

[29-Feb-2024 13:48:20 UTC] PHP Notice:  Undefined index: module in /usr/local/facileManager/server/fm-modules/fmDNS/js/module.php on line 149
[29-Feb-2024 13:48:20 UTC] PHP Notice:  Undefined index: module in /usr/local/facileManager/server/fm-modules/fmDNS/js/module.php on line 182
[29-Feb-2024 13:48:20 UTC] PHP Notice:  Undefined index: module in /usr/local/facileManager/server/fm-modules/fmDNS/js/module.php on line 416
[29-Feb-2024 13:48:20 UTC] PHP Notice:  Undefined index: module in /usr/local/facileManager/server/fm-modules/fmDNS/js/module.php on line 550

In the browser url - https://fm.server/fm-upgrade.php?step=2

But when installing a new version on a clean server and transferring the old DB, the start and update of the DB is successful and without problems.

WillyXJ commented 4 months ago

What do you mean by "At step 7, everything stops.?" Is it a blank white screen? Grey screen? Any error? What version of PHP are you using on your old and new web servers?

beza2000 commented 4 months ago

I was wrong. At step 6, the update process stops. image

image

On the old server (RHEL8):

# php -v
PHP 7.2.24 (cli) (built: Oct 22 2019 08:28:36) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

On the new server (RHEL9):

# php -v
PHP 8.1.14 (cli) (built: Jan  4 2023 17:23:14) (NTS gcc x86_64)
Copyright (c) The PHP Group
Zend Engine v4.1.14, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.14, Copyright (c), by Zend Technologies
leeyc2017 commented 3 months ago

I'm in the same as you