3.3 upgrade from 3.2.12p1 on single instance: upgrade.php exits early

Discussion in 'Installation/Configuration' started by Jonathan Crooke, Apr 25, 2025.

Tags:
  1. Jonathan Crooke

    Jonathan Crooke New Member

    Hi,
    Just trying to run the 3.3 upgrade on my single server, and the installer appears to exit early after the backup phase:
    Code:
    # php -q update.php
    
    
    --------------------------------------------------------------------------------
     _____ ___________   _____              __ _         ____
    |_   _/  ___| ___ \ /  __ \            / _(_)       /__  \
      | | \ `--.| |_/ / | /  \/ ___  _ __ | |_ _  __ _    _/ /
      | |  `--. \  __/  | |    / _ \| '_ \|  _| |/ _` |  |_ |
     _| |_/\__/ / |     | \__/\ (_) | | | | | | | (_| | ___\ \
     \___/\____/\_|      \____/\___/|_| |_|_| |_|\__, | \____/
                                                  __/ |
                                                 |___/ 
    --------------------------------------------------------------------------------
    
    
    >> Update 
    
    Operating System: Debian 12.0 (Bookworm) or compatible
    
    This application will update ISPConfig 3 on your server.
    
    Shall the script create a ISPConfig backup in /var/backup/ now? (yes,no) [yes]: 
    
    Creating backup of "/usr/local/ispconfig" directory...
    Creating backup of "/etc" directory...
    Creating backup of "/root/.acme.sh" directory...
    Creating backup of "/etc/letsencrypt" directory...
    root@ispconfig:/tmp/ispconfig3_install/install# 
    
    Code:
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Debian GNU/Linux 12 (bookworm)
    
    [INFO] uptime:  11:00:28 up 10 days,  9:00,  2 users,  load average: 0.84, 0.77, 0.78
    
    [INFO] memory:
                   total        used        free      shared  buff/cache   available
    Mem:           895Mi       556Mi        76Mi        86Mi       528Mi       338Mi
    Swap:          974Mi       245Mi       729Mi
    
    [INFO] systemd failed services status:
      UNIT LOAD ACTIVE SUB DESCRIPTION
    0 loaded units listed.
    
    [INFO] ISPConfig is installed.
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.2.12p1
    
    Not so great w/ php so as to run the script in debug mode to show why it exits. I can debug if more info is provided though

    Cheers
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The updater has no debug mode. I guess there must be an issue with the PHP install of your system as PHP on your server seems to die without issuing an error. What you can try is choosing 'no' when it asks if it should back up the system; maybe the backup fails silently for whatever reason.
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    And you might want to check that your hard disk is not full.
     
  4. Jonathan Crooke

    Jonathan Crooke New Member

    Already tried `no` to backup.

    Plenty of space:
    Code:
    # df /
    Filesystem     1K-blocks    Used Available Use% Mounted on
    /dev/sda1       31861548 6251856  23965660  21% /
    
    Not many changes on PHP since original ISPC install: https://pastebin.com/7tzTswQG
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    And you are logged in as root user?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Your system must somehow fail between line 226 and 278 of the update.php script, because the next line in the output would be:

    Checking MariaDB version 10.11.11 .. OK

    on Debian 12. I wonder if maybe the database can not be dumped by the function prepareDBDump(); Maybe you changed MariaDB settings so it can not be dumped anymore e.g. by disabling networking or by changing the root password without changing it in ISPConfig or installed a unsupported MariaDB version from another source than default Debian repository.
     
  7. michelangelo

    michelangelo Active Member

    I think it could be due to the available free memory.
    I also had in a local Debian 12 dev VM the problem to run through the ISPConfig update.
    Maybe it helps to not automatically backup ISPConfig when the Updater asks if it should perform the backup.
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, running out of memory might also be a cause for a dying PHP script without any error message being shown. From the test script output he seem to have quite a bit free memory and swap, but maybe it was not enough at the time he ran the update.
     
  9. Jonathan Crooke

    Jonathan Crooke New Member

    Thanks for your replies.
    I upped the RAM (it's a VM) and this didn't help. Also, verified the db host and passwords in
    /usr/local/ispconfig/interface/lib/config.inc.php and
    /usr/local/ispconfig/server/lib/config.inc.php

    I can also log into the db from the VM with `mysql -h <db host> -u <db user> -p` using those values and can log in no probs.
    I did previous 3.2.x point upgrades in this VM without issues, so this is only occurring with the 3.3. update
     
  10. Jonathan Crooke

    Jonathan Crooke New Member

    Ok, got it: I'd tightened permissions in the db and didn't have permission for the db root from the ispc host. Now adjusted and it's working.
    Thanks for your help
     
    till likes this.

Share This Page