Unable to upgrade from 2.4.0.6

OS Name/Version: Debian 10

Product Name/Version: AMP 2.4.0.6

Problem Description:

I tried to upgrade AMP from the web interface, and the web interface is now down. So instead, I ssh’d into the box and tried…

amp@lego:~$ ampinstmgr upgradeall
[Info] AMP Instance Manager v2.4.0.6 built 30/09/2022 14:13
[Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
[Info] Upgrading instance ADS01
[Info] Using cached archive: /home/amp/.ampdata/instances/AMPCache-2440.zip
[/home/amp/.ampdata/instances/AMPCache-2440.zip]
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /home/amp/.ampdata/instances/AMPCache-2440.zip or
        /home/amp/.ampdata/instances/AMPCache-2440.zip.zip, and cannot find /home/amp/.ampdata/instances/AMPCache-2440.zip.ZIP, period.
[Error] Download or unpack failed. Please check your network connection and try again.
[Error] Unzip return code was 9
[Info] Upgrade failed
[Info] Stopping Instance: 'Minecraft01'
[Info] Stopping instance Minecraft01...
[Info] Requesting soft-stop...
[Info] Waiting for instance to stop...
[Info] Instance was shut down gracefully.
[Info] Instance Minecraft01 has stopped.
[Info] Upgrading instance Minecraft01
[Info] Using cached archive: /home/amp/.ampdata/instances/AMPCache-LTS-20240208-164132.zip
[/home/amp/.ampdata/instances/AMPCache-LTS-20240208-164132.zip]
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /home/amp/.ampdata/instances/AMPCache-LTS-20240208-164132.zip or
        /home/amp/.ampdata/instances/AMPCache-LTS-20240208-164132.zip.zip, and cannot find /home/amp/.ampdata/instances/AMPCache-LTS-20240208-164132.zip.ZIP, period.
[Error] Download or unpack failed. Please check your network connection and try again.
[Error] Unzip return code was 9
[Info] Upgrade failed
[Info] Waiting for AMP instance to start...
[Notice] AMP instance Minecraft01 is now running.
[Info] Start for instance Minecraft01 was requested, but it is already running.

Steps to reproduce:

  • Use AMP 2.4.0.6 on Debian 10 via the Hostinger template
  • Run ampinstmgr --nocache upgradeall

Actions taken to resolve so far: Manual upgrade, upgrade via console

You need to update the ampinstmgr package first

Is there a trick here? apt upgrade ampinstmgr reports that I’m at the latest version.

Have you done ‘apt update’ first?

Run the following as root:

bash <(wget -qO- getamp.sh) addRepo
apt update && apt upgrade
su - amp -c "ampinstmgr upgradeall"