ProgrammersOfVilnius / pov-check-health

Debian package that runs basic system health monitoring checks hourly from cron
https://launchpad.net/~pov/+archive/ppa
2 stars 0 forks source link

check-virtualenvs -f clobbers docker layers and flatpak runtimes #23

Closed mgedmin closed 5 years ago

mgedmin commented 6 years ago

check-virtualenvs probably should not touch anything under /var/lib, because there are pythons there

# check-virtualenvs -f
...
cp /usr/bin/python2.7 
/var/lib/docker/aufs/diff/1fffd9491d58cfa6e856c0567ad334eb9976fd7c2755ed0822227ccc2083faa4/usr/bin/python2.7
...
cp /usr/bin/python2.7 /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/3.26/206dc8b94b672634830efc1203c0330fce77c9ddd0a823089f1f237476367d57/files/bin/python2.7
...
cp /usr/bin/python3.5 /snap/core/5328/usr/bin/python3.5
cp: nepavyko sukurti paprasto failo '/snap/core/5328/usr/bin/python3.5': Failų sistema tik skaitymui
...
cp /usr/bin/python3.5 /var/lib/lxd/storage-pools/lxd/containers/apparent-porpoise/rootfs/usr/bin/python3.5
...

There might be exceptions? /var/lib/jenkins/workspaces/*, I might want changes there.

mgedmin commented 6 years ago

FWIW you can fix flatpak runtimes with sudo flatpak repair.

I wiped the affected LXD containers (lxd delete $name) and all Docker thingies (docker system prune; docker volume prune; docker image prune --all; docker system df), just to be sure.