Page 1 of 2

Sharing error

Posted: Wed Apr 12, 2023 7:33 am
by Kenderice
Hello.
Please help.
I'm using Gargoyle on an x86 PC.
It has a SATA HDD on which I store the data.
Movies, music, photos.
I added a new FTP user to the system.
I have granted access to a shared folder.

When I saved the configuration, all the shared folders became empty.
When I transferred the HDD to another Linux PC, it also saw it as empty.
This is the second time this has happened.

What could be the problem?

Re: Sharing error

Posted: Wed Apr 12, 2023 10:29 am
by pythonic
Which specific x86 profile and Gargoyle version?

Re: Sharing error

Posted: Wed Apr 12, 2023 1:53 pm
by Kenderice
Gargoyle Version:1.12.0
Model: FUJITSU D3003-S2

Re: Sharing error

Posted: Wed Apr 12, 2023 2:11 pm
by Kenderice
df command result:
/dev/sda1 1K-blocks: 960380628 used:77852 available: 911448316
0% /tmp/usb_mount/13cb989f-966f-ca4b-b760-ba400c628c77

The entire HDD appears to be empty.

How can gargoyle delete all files in few seconds?

Re: Sharing error

Posted: Wed Apr 12, 2023 2:30 pm
by Kenderice
fdisk -l command:
GPT PMBR size mismatch (1953525163 != 1953525167) will be corrected by write.
The backup GPT table is corrupt, but the primary appears OK, so that will be used.
The backup GPT table is not on the end of the device. This problem will be corrected by write.

could this be causing the problem?

Re: Sharing error

Posted: Wed Apr 12, 2023 10:56 pm
by pythonic
fsck?

BTW: is this machine on a UPS? do the problems follow power disturbances/outages?

Re: Sharing error

Posted: Thu Apr 13, 2023 3:24 am
by Kenderice
No UPS
The error does not occur after a power failure or unexpected restart.
It happens when I add a new user and a new share to a working system, after when I click the "Save settings" button.

fsck:
root@Gargoyle:~# fsck
-ash: fsck: not found

Many basic terminal commands are missing from gargoyle...

Re: Sharing error

Posted: Thu Apr 13, 2023 5:44 am
by ispyisail
Can we rule out hardware failure?

Re: Sharing error

Posted: Thu Apr 13, 2023 5:56 am
by Lantis
Please perform the following troubleshooting steps.
1. Put the data on the drive.
2. Verify the data on the drive from Gargoyle (ls -al)
3. Set up the FTP share (please show your settings for the share including the path, the users permission etc)
4. Verify the data again

If I can reproduce it locally that will help

Re: Sharing error

Posted: Thu Apr 13, 2023 6:24 am
by Kenderice
ispyisail wrote:
Thu Apr 13, 2023 5:44 am
Can we rule out hardware failure?
Not a hardware fault.
The system worked for a long time.
After that, I had to add another user and his shared folder to the system, then all data disappeared from the HDD.

I then unmounted the HDD, formatted it, recreated the users and shared directories.
I restored all data from backup.

After that, the next day I added a new user and his shared folder again, again all the data disappeared from the hdd.
All shared directories are empty. Viewed with Midnigt Commander, the entire /dev/sda1 partition is empty. Files and folders are all gone.