10 votes

[SOLVED] I filled up my VM with Nextcloud all in one (Docker) to the brim. Help me rescue it.

RESOLVED
/var/lib/docker/volumes/ <-- thats where the data is saved

I fucked up colossaly
I run a Nextcloud all in one instance on my ubuntu VM with Hetzner.
I run a backup of my phone to said instance.
I forgot to set a sensible limit on my Nextcloud.
I somehow changed to hourly backups....
My Vm filled up in a very short time.
My VM has not one byte of free space left.

What I tried to do:
open Console inside the Nextcloud Aio Container with docker exec -t -i , to find the space and delete stuff, but no chance, not enough space.

There is nothing else on the VM i know of that i could delete to make space (nothing else i put)

has somebody an idea how to fix this gracefully?

I have some ideas but they involve a lot of work or money...

  • just pay for a bigger VM but i dont need more cores only more space, even that i dont really need (incures a monthly cost, cannot downsize afterwards as more space means you cannot downsize)
  • clone my vm onto a bigger one, delete stuff, clone it back to the original one... (sound like a lot of work, incrues (little) cost, and feels like a lot of risk involved)

4 comments

  1. [2]
    th0mcat
    Link
    Do you have the Nextcloud data bind-mounted to a directory on your VM? If not, then you have to figure out where your container storage is in /var/lib/docker/, then start deleting the backup files...

    Do you have the Nextcloud data bind-mounted to a directory on your VM?

    If not, then you have to figure out where your container storage is in /var/lib/docker/, then start deleting the backup files if that’s what you want to get rid of.

    4 votes
    1. Don_Camillo
      Link Parent
      that was it. thank you soo much

      that was it. thank you soo much

      4 votes
  2. [2]
    dedime
    Link
    I've never used Hertzner, but there might be some sort of rescue OS option? Like they let you boot into a recovery OS....

    I've never used Hertzner, but there might be some sort of rescue OS option? Like they let you boot into a recovery OS.

    https://docs.hetzner.com/robot/dedicated-server/troubleshooting/hetzner-rescue-system/

    Beyond that, restoring from backup would be my next choice. Part of why Docker is great since it's easy to migrate your config from one machine to the next.

    1 vote
    1. Don_Camillo
      Link Parent
      i have ssh access, but not inside the docker container :-/ so maybe if i somehow got a MB of space somwhere else... And its not just the config, but also the data. writing this i just got an idea...

      i have ssh access, but not inside the docker container :-/ so maybe if i somehow got a MB of space somwhere else...

      And its not just the config, but also the data.

      writing this i just got an idea will be back

      1 vote