0
Not a bug

failed to move item to trash folder

Rudhra 2 years ago updated by Vlad R 1 year ago 7

Strange issue: I can create, edit and permanently delete files.
but if I simply delete a file (should go to trash), I get this error:


failed to move item to trash folder

How can I solve this?

Answer

Answer
Not a bug

It's a file permission problem. Either on the file you are trying to delete, or the trash folder. One of them is not writable by PHP.

Answer
Not a bug

It's a file permission problem. Either on the file you are trying to delete, or the trash folder. One of them is not writable by PHP.

It only happens with files/folders inside the folder (Family) that is directly mounted into the user (Jimmy) folder:

Volumes:
 - $DATAPOOL/Users:/user-files:rw
 - $DATAPOOL/Users/Family:/user-files/Jimmy/Family

It seems files/folders within Family cannot be moved to the trash folder that resides within Jimmy.

@Vlad R

All folders, even the root folder of my disk mount point, are owned by the filerun user and all files and folders are 775. This is proven by the fact I can create, edit and permanently delete everything.

Just moving folders to trash does not work for new folders created with FileRun in the Family dir.

Moving files newly created with FileRun to trash does work fine. Also, moving existing folders in the Family dir to trash seems to work. 


I do believe this is a bug.

Do check the FileRun user activity log and see if the failed action gets logged and if it includes a full error description.

Unsure why but after reapplying permissions on the host, recreating the container and then updating FileRun (the update is essential), the issue is gone.

I didn't realize I was back on the old FileRun version. It is a bit strange the docker image is not up to date. You should be able to recreate the container without having to perform in-container update. I hope it can get updated soon. Updating via the UI does go fast and smooth. 

I have the same problem "Failed to move file to trash." But i can permanently delete files. So then i of my mistake also delete Trash folder on left side menu. As you see there is no more Trash folder

I also try next thing as is described on this link -> https://docs.filerun.com/advanced_configuration#system

I create this config.php file and add text as you see on image.


But still not help. What i can do here?

Ok i find yes perssimison is not right. I fixed now.