L'ancien droplet Linux non supporta versioni più recenti

Ho un droplet Linux molto, molto vecchio su Digital Ocean.

Come posso risolvere questo problema?

A proposito, prima di provare ad aggiornare, ho ricevuto la peggiore infestazione di spam di sempre!

Ho prima provato il pulsante di aggiornamento regolare:

Tasks: TOP => assets:precompile:compress_js

(Vedi il trace completo eseguendo il task con --trace)

Docker Manager: AGGIORNAMENTO FALLITO

#<RuntimeError: RuntimeError>

/var/www/discourse/plugins/docker_manager/lib/docker_manager/upgrader.rb:210:in `run’

/var/www/discourse/plugins/docker_manager/lib/docker_manager/upgrader.rb:111:in `upgrade’

/var/www/discourse/plugins/docker_manager/scripts/docker_manager_upgrade.rb:19:in `block in ’

/var/www/discourse/plugins/docker_manager/scripts/docker_manager_upgrade.rb:6:in `fork’

/var/www/discourse/plugins/docker_manager/scripts/docker_manager_upgrade.rb:6:in `’

Poi ho effettuato l’accesso e ho provato il vecchio modo per ricostruire l’app.

root@forum:/var/discourse# ./launcher rebuild app
ERROR: Docker version 18.09.0 not supported, please upgrade to at least 20.10.0, or recommended 24.0.7
root@forum:/var/discourse# wget -qO- https://get.docker.com/ | sh
Executing docker install script, commit: 0d6f72e671ba87f7aa4c6991646a1a5b9f9dae84
Warning: the “docker” command appears to already exist on this system.

If you already have Docker installed, this script can cause trouble, which is
why we’re displaying this warning and provide the opportunity to cancel the
installation.

If you installed the current Docker package using this script and are using it
again to update Docker, you can safely ignore this message.

e poi ho provato a installare docker

root@forum:/var/discourse# wget -qO- https://get.docker.com/ | sh
Executing docker install script, commit: 0d6f72e671ba87f7aa4c6991646a1a5b9f9dae84
Warning: the “docker” command appears to already exist on this system.

If you already have Docker installed, this script can cause trouble, which is
why we’re displaying this warning and provide the opportunity to cancel the
installation.

If you installed the current Docker package using this script and are using it
again to update Docker, you can safely ignore this message.

You may press Ctrl+C now to abort this script.

  • sleep 20

DEPRECATION WARNING
This Linux distribution (ubuntu bionic) reached end-of-life and is no longer supported by this script.
No updates or security fixes will be released for this distribution, and users are recommended
to upgrade to a currently maintained version of ubuntu.

ChatGPT mi ha guidato nell’aggiornamento, incluso il recupero dello spazio su disco!

1 Mi Piace

Devi aggiornare a una versione supportata. La soluzione consigliata è aggiornare docker. Ti consiglio di passare a un nuovo droplet.

3 Mi Piace

Ma questo è un altro modo di giocarci! Ben fatto!

(Una cosa riguardo all’avere un’istanza molto vecchia, è che il tuo provider potrebbe offrire tipi di istanze più recenti e migliori allo stesso prezzo. Nel mio caso, il doppio della RAM, il doppio del disco e il doppio della CPU per lo stesso prezzo.)

3 Mi Piace