5 / 5
Mar 2022

We had a problem when our main directory suddenly disappeared.
We searched everywhere, but it was nowhere to be found.
We thought someone had deleted the entire folder, but in fact no one had deleted it, because the space on our server had remained the same.

Someone had accidentally moved the root folder to one of its subfolders, and suddenly the root folder and its subfolders were no longer accessible.
Moving a folder within itself should generally not be allowed.

We managed to fix the problem by changing its parent connection (fs_dir) to the right folder directly in the database.
I logged into the server via SSH and ran the following commands.

cd /etc/egroupware-docker/
bash mysql.sh

use egroupware;
select * from egw_sqlfs where fs_name = "our folder";
update egw_sqlfs set fs_dir = "rootID" where fs_name = "our folder";
  • created

    Mar '22
  • last reply

    Mar '22
  • 4

    replies

  • 1.1k

    views

  • 2

    users

  • 1

    like

Dear Ralf,

i did that first but it didn’t recognise the missing folders.
It showed that it has found no problems.
That’s why i had to do it manually in the database.

17 days later

The value of fs_dir was “2” before, but when it got accidentally moved to one of its subfolders fs_dir was like “123” or something.
I looked up this number in the database and i found out that it was the subfolder where the main folder was accidentally moved to.
Changing the fs_dir value to the right value solved my problem, but what i mean is this should not have happened in the first place.
I hope you will implement some code where this should not be allowed.
Since i have already solved this i’m gonna mark it as solved.
Thank you for your time!