Unable to open file uploaded via Google Cloud console url
apitchaya-skooldio opened this issue · comments
Apitchaya Radchakit commented
Describe the issue
Unable to open file uploaded via Google Cloud console
endpoint
To Collect more Debug logs
Steps to reproduce the behavior:
- go to GCS - Google Cloud console by use URL like -
https:// console.cloud.google.com/storage/browser/BUCKE_NAME
/FOLDER_NAME
/SUB_FOLDER
but don't haveFOLDER_NAME
/SUB_FOLDER
before - Then upload the file as normal behavior until it uploads successfully.
- GCS fuse can't access that file. and got this error
// mount folder path: /mnt/asset
{"Error":"\\"Error: ENOENT: no such file or directory, stat '/mnt/asset/BUCKE_NAME/FOLDER_NAME/SUB_FOLDER/FILENAME.mp4'\\""}
- But the files in GCS are still usable and can be downloaded.
- If you enter the Google Cloud console and create
FOLDER
andSUB_FOLDER
with the UI before upload, you will not found this error.
System (please complete the following information):
- OS: Mac OS Ventura 13.4 (22F66)
- Google Cloud console
vadlakondaswetha commented
You need to pass --implicit-dirs flag to the mount command to see the folders which are not explicitly created on google cloud console. More details are here: https://github.com/GoogleCloudPlatform/gcsfuse/blob/master/docs/semantics.md#files-and-directories
Apitchaya Radchakit commented
Thanks for Your Help @vadlakondaswetha