Nextcloud wiped data

Hello.

Something absolutely horrible happened.
I hooked up my external ssd to my pi (debian) with nextcloud on it.

It all worked fine, UNTILL i received messages in the upper right corner saying there’s wasn’t much space left on my external ssd. (Nextcloud notification)

Something like: Your disk is almost full 93,7%
Then the messages kept coming in (spammed)

Then my directories went away one by one very rapid, now i lost all my data which was on my ssd.

Now my question is how on earth could this happen?

Is there something configured in Nextcloud by default once it reaches almost full disk space to just wipe data?

I’m devastated.

It’s not enough info to do anything more than guess.

  • Any errors in your system logs?
  • Any errors in your Nextcloud logs?
  • Did you have this drive mounted? How and where?
  • Has the drive itself failed?
  • Are the files still on it and just don’t show up in Nextcloud?
  • Is the drive really full? What filled it up?

Any errors in your Nextcloud logs?

No, no errors regarding the storage

Did you have this drive mounted? How and where?

I’ve mounted sda1
By doing the following:
Mkdir /mnt/storage
Mount /dev/sda1 /mnt/storage

After that I went to nextcloud and configured the local storage. It worked properly.

Are the files still on it and just don’t show up in Nextcloud?

Unfortunately not, I plugged the external storage to my Windows 10 laptop with Aomei Partition Assistant. Empty.

Is the drive really full? What filled it up?

It’s empty now, there was media files on it.
MKV, MP4 and so on.

Not sure about how Raspi handles it’s standard filesystems when you set it up but i would expect the external drive to be sdb1 or something else and not sda1.

You didn’t answer whether the drive itself has failed. You should run the manufacturer’s test on it if one is available.

Very strange that Nextcloud would say the disk is full while you say it’s now empty. It doesn’t sound like a Nextcloud issue necessarily.

By this do you mean local external storage?

What format is this drive?

Can you run and show output:

mount
df -h
du -shx /mnt/storage