What app is this about, and its version: castopod from v1.13.7~ynh1 to 1.14.1~ynh1 What YunoHost version are you running: 12.1.39 What type of hardware are you using: Virtual machine
You already found the root cause yourself → the writable/session directory contains 1.6 million session files , which prevents the rm command from completing during the upgrade (the upgrade script uses --full_replace which tries to wipe the entire /var/www/castopod directory before extracting the new sources).
To fix this and complete the upgrade:
First, clean up the session files (using find -delete which handles millions of files much better than rm -rf):
find /var/www/castopod/writable/session -type f -delete
What appen if I delete the files in the session directory? I hope that castopod continues to work…
Can I periodically delete old files (< 7 days) in that directory?