NethServer / dev

NethServer issue tracker
https://github.com/NethServer/dev/issues
63 stars 18 forks source link

Application update does not clean up old files #7058

Open DavidePrincipi opened 1 month ago

DavidePrincipi commented 1 month ago

When an application update is applied, files and directories from the previous application image are not removed. This bug was discovered in an app pre-release version, but it affects any NS8 application.

Old files that remain can cause unexpected issues in all applications.

Steps to reproduce

Expected behavior

The file located at AGENT_INSTALL_DIR/actions/configure-module/50migrate should not exist, as version 1.1.8 does not include it.

Actual behavior

The file remains present. Below is a file listing after the update:

-rwxr-xr-x. 1 nextcloud3 nextcloud3 2275 Sep 11 08:23 20configure
-rwxr-xr-x. 1 nextcloud3 nextcloud3 1712 Sep 11 08:23 30traefik
-rwxr-xr-x. 1 nextcloud3 nextcloud3 4150 Sep 11 08:23 40migrate
-rwxr-xr-x. 1 nextcloud3 nextcloud3 3509 Feb  7  2023 50migrate
-rwxr-xr-x. 1 nextcloud3 nextcloud3 1101 Sep 11 08:23 50systemd
-rwxr-xr-x. 1 nextcloud3 nextcloud3  847 Sep 11 08:23 70ldap
-rwxr-xr-x. 1 nextcloud3 nextcloud3  658 Sep 11 08:23 80configure_collabora
-rwxr-xr-x. 1 nextcloud3 nextcloud3  356 Sep 11 08:23 90apps_management

Notice the different modification dates.

Components

See also

Discussion https://mattermost.nethesis.it/nethesis/pl/jh3agmc9uby19dfiydzhneyrxo


Thanks to @Amygos @gsanchietti

DavidePrincipi commented 1 month ago

List of repositories that may need a fix