-
Notifications
You must be signed in to change notification settings - Fork 116
Description
The update script removes the following files/directories (See https://github.com/dappnode/DAppNode/blob/09dc55ae4c9af427c481862fc08ccb719956ec15/scripts/dappnode_install.sh#L31C1-L40C3)
if [ "$UPDATE" = true ]; then
echo "Cleaning for update..."
rm -rf $LOGFILE
rm -rf ${DAPPNODE_CORE_DIR}/docker-compose-*.yml
rm -rf ${DAPPNODE_CORE_DIR}/dappnode_package-*.json
rm -rf ${DAPPNODE_CORE_DIR}/*.tar.xz
rm -rf ${DAPPNODE_CORE_DIR}/*.txz
rm -rf ${DAPPNODE_CORE_DIR}/.dappnode_profile
rm -rf ${CONTENT_HASH_FILE}
fiAfter this file removal the dappnode core is downloaded and executed again, making volumes persist.
When a user is running a core package with a host port allocated, such as HTTPS does with ports 443 and 80, since this update script is not stoppping/removing the core docker containers, when the script attemps to determine which core packages need to be installed (see
DAppNode/scripts/dappnode_install.sh
Line 66 in 09dc55a
| determine_packages() { |
DAppNode/scripts/dappnode_install.sh
Line 61 in 09dc55a
| is_port_used() { |
This script execution makes the HTTPS container be in an orphan state without:
- docker image
- compose file
- manifest file.
A possible solution would be, if the port is used AND its being used by a running HTTPS container then set the HTTPS pkgs as an installable pkg
References
- docs https://docs.dappnode.io/docs/user/install/script#restore-to-the-latest-version
- bash script
sudo wget -O - https://installer.dappnode.io | sudo UPDATE=true bash