GoogleCloudPlatform / gcsfuse

A user-space file system for interacting with Google Cloud Storage

Home Page:https://cloud.google.com/storage/docs/gcs-fuse

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to open file uploaded via Google Cloud console url

apitchaya-skooldio opened this issue · comments

Describe the issue
Unable to open file uploaded via Google Cloud console endpoint

To Collect more Debug logs
Steps to reproduce the behavior:

  1. 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 have FOLDER_NAME/SUB_FOLDER before
  2. Then upload the file as normal behavior until it uploads successfully.
  3. 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'\\""}
  1. But the files in GCS are still usable and can be downloaded.
  2. If you enter the Google Cloud console and create FOLDER and SUB_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

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

Thanks for Your Help @vadlakondaswetha