Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Folder becomes inaccessible after deleting a file inside it #701

Closed
flivieri opened this issue Jan 12, 2024 · 4 comments
Closed

Folder becomes inaccessible after deleting a file inside it #701

flivieri opened this issue Jan 12, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@flivieri
Copy link

Mountpoint for Amazon S3 version

mount-s3 1.3.2

AWS Region

us-west-2

Describe the running environment

EC2 SERVER running SLES 15.2 using an AMI from AWS.

Mountpoint options

mount-s3 --allow-delete <BUCKET_NAME> /temp/BackupTemp/ShareMount

What happened?

I'm trying to install the mount-s3.rpm file on SUSE LINUX.
But, during the RPM installation, I receive a dependency error:

error: Failed dependencies:
fuse-libs is needed by mount-s3-1.3.2-1.x86_64

The point is: there is no package on SUSE with the name "fuse-libs".
When I search the repositories, there is a package called "libfuse". That is already installed.

Screenshot 2024-01-12 at 11 03 12 AM

I tried to install mount-s3 ignoring the dependencies, but it's not working correctly.
I can mount, but I'm getting some errors creating files or accessing folders inside the mount point. Probably because of this dependency.
Is the application compatible with SLES? If not, there are any plans to make it compatible?
Thanks!

Relevant log output

No response

@flivieri flivieri added the bug Something isn't working label Jan 12, 2024
@passaro
Copy link
Contributor

passaro commented Jan 12, 2024

Hi @flivieri, thanks for raising the issue. Different linux distributions can package things in different ways and the release .rpm may not cover all of them. Workarounds include manually installing the binary or building from source.

In your case, though, it seems that Mountpoint was indeed installed. If you can mount successfully, the missing dependency is probably not an issue.

Could you provide more details on the errors you are seeing?

@flivieri
Copy link
Author

Hello @passaro
Thanks for the explanation.

I thought my problem was related to the missing dependency.

What is happening: If I create a subfolder and access this new folder, everything is ok.
But, If I create a file inside/folder inside this new folder, and delete them after that, my folder becomes inaccessible.
Instead of "blank folder", seems like I'm inside a folder that no longer exists. I cannot list, create files, or type "cd .." to go back.

On S3, the folder no longer exists. At the moment I deleted the files inside the folder, the folder is also deleted by S3.
Example:

image Screenshot 2024-01-12 at 3 25 52 PM

After that, I decide to delete the file inside the folder:

Screenshot 2024-01-12 at 3 27 00 PM Screenshot 2024-01-12 at 3 27 27 PM

Is this a normal behavior?
Thank you.

@passaro
Copy link
Contributor

passaro commented Jan 12, 2024

Yes, that is expected. Mountpoint maps key prefixes to directories, but if the last object with a key containing a prefix is deleted, it considers the directory to also have been deleted. From the Directory Operations section of the file system behavior documentation:

If Mountpoint later observes that there are no files existing for that directory in S3, Mountpoint will consider the directory to have been deleted.

@passaro passaro changed the title SUSE LINUX - Failed Dependencies - fuse-libs Folder becomes inaccessible after deleting a file inside it Jan 12, 2024
@flivieri
Copy link
Author

Hello @passaro
Sorry for bothering you and thanks for the explanation.
Best,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants