Google cloud storage gcsfuse装载退出,状态为1

Google cloud storage gcsfuse装载退出,状态为1,google-cloud-storage,google-compute-engine,gcsfuse,Google Cloud Storage,Google Compute Engine,Gcsfuse,尝试使用gcsfuse,但当我运行 gcsfuse <bucket> /target/dir 我是在一个GCE实例上完成这项工作的,该实例具有对Google云服务的完全API访问权限 文件夹存在,我在fuse组中 我尝试使用所有调试开关运行,但它们没有显示任何有用的信息 > gcsfuse --uid "33" --gid "33" --debug_fuse --debug_gcs --debug_http --debug_invariants bucket-name /ta

尝试使用gcsfuse,但当我运行

gcsfuse <bucket> /target/dir
我是在一个GCE实例上完成这项工作的,该实例具有对Google云服务的完全API访问权限

文件夹存在,我在fuse组中

我尝试使用所有调试开关运行,但它们没有显示任何有用的信息

> gcsfuse --uid "33" --gid "33" --debug_fuse --debug_gcs --debug_http --debug_invariants bucket-name /target/dir
Using mount point: /target/dir
Opening GCS connection...
Opening bucket...
Mounting file system...
daemonize.Run: readFromProcess: sub-process: mountWithArgs: mountWithConn: Mount: mount: fusermount: exit status 1

版本信息:gcsfuse version 0.15.0(Go version go1.5.2)

我的/target/dir归www-data:fuse所有,但该组在装载之前没有对目录的写入权限。

我遇到了相同的问题,因为我试图在docker容器上装载文件夹。然而,事实证明,容器需要在特权模式下运行,以便gcsfuse工作

docker--特权docker映像名称

上述命令工作正常。或者,如果有人正在使用kubernetes,则需要按如下方式指定安全上下文:


很高兴听到你已经解决了你的问题!请你把这个问题标记为已结束,好吗?谢谢我从数据实验室得到同样的错误。我chmod a+w target/dir,但仍然得到相同的错误。在将存储桶安装到datalab时,您知道如何避免该错误吗。如果gcsfuse打印了一条有助于解决问题的错误消息,我们一定会提供帮助。您准备好在GitHub上填写此问题了吗?如何更改组写入权限?
> gcsfuse --uid "33" --gid "33" --debug_fuse --debug_gcs --debug_http --debug_invariants bucket-name /target/dir
Using mount point: /target/dir
Opening GCS connection...
Opening bucket...
Mounting file system...
daemonize.Run: readFromProcess: sub-process: mountWithArgs: mountWithConn: Mount: mount: fusermount: exit status 1
  containers:
  - name: application-name
    securityContext:
      privileged: true