-
Notifications
You must be signed in to change notification settings - Fork 207
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
Relative paths are not working in config file #1116
Comments
"FileCache::OpenFile : error creating directory structure for file ******* [mkdir cache: permission denied]" : your "./cache" directory is not having permissions for the user who has mounted blobfuse. Kindly ensure required permissions are there. |
As I said in my original email the cache directory is created by the blobfuse and has correct permissions. The "du" command is also present on the system. As I suggested in the workaround if absolute paths are used all is working as expected. |
file_cache: path: /mnt/blobfusetmppath: ./blobfusetmp for me both works fine and no issues observed. Tried both with directory already present vs not present. In any combination it works well for me. As per logs its clearly showing some permission issue. Can you add "-o allow_other" to your cli param and recheck. |
I don't think WSL2 supports "allow_other", in any case I might not want to allow others to access the mount, so this is not a good solution. Here is the log: Here is the complete test showing it does not work with relative path. To reproduce the error it is important to try writing something to a file Here is the complete test with absolute path to cache dir: |
Yes I have tried with both absolute and relative paths and for me it does not give any error. Able to read/write files as well in both the cases. This might be something to do with your system settings and permissions. For me read/write works even without allow_other. |
In your relative path logs I see the same error related to permissions "Mon Apr 24 14:32:36 BST 2023 : blobfuse2[2511] : LOG_ERR [file_cache.go (806)]: FileCache::OpenFile : error creating directory structure for file 11 [mkdir cache: permission denied]" May be on WSL the relative paths are not working properly for some reason. I do not see any blobfuse issue here as per my test results. Can you try the same case on a linux VM instead of WSL and validate. |
I can confirm that on Ubuntu 20.04 I can replicate the issue |
Can you try out the branch linked above and let me know if it resolves the issue. |
Which version of blobfuse was used?
v2
Which OS distribution and version are you using?
ubuntu 20.04 (WSL2)
If relevant, please share your mount command.
blobfuse2 mount data --config-file conf1.yaml
What was the issue encountered?
If relative path is used in cache path then mount half-working. I can see container is mounted and can see files in the container. But it is not possible to read files because cache is not working.
BTW the cache directory is created correctly by blobfuse even with relative path in conf file.
Have you found a mitigation/solution?
Use absolute paths
Please share logs if available.
The text was updated successfully, but these errors were encountered: