mount bucket into vm disk problem

Hello I am trying to access data from a bucket to a disk in virtual machine

I create folder on a vm and set wide access

```

mkdir /home/jm/dukebreastsegm3

chmod 777 /home/jm/dukebreastsegm3

```

Then I mount bucket dukebreastsegm
mount -t gcsfuse -o allow_other dukebreastsegm /home/jm/dukebreastsegm3

getting info from df -h I get info that bucket is mounted 

Jakub_Mitura_0-1693477930256.png

 

However when I cd into it and try to browse files inside nothing happens, as if no files are present

Jakub_Mitura_1-1693477992189.png

 

Hovewer in bucket I have multiple files

Jakub_Mitura_2-1693478044466.png

vm has full access to google cloud api

 

Full debug info

 

[4:05 PM] Jakub Mitura

https://cloud.google.com/storage/docs/gcsfuse-mount

 

gcsfuse --foreground --debug_fuse --debug_fs --debug_gcs --debug_http dukebreastsegm /mnt/disks/sdb/raw/dukebreastsegm_loc
{"name":"root","levelname":"INFO","severity":"INFO","message":"Start gcsfuse/1.1.0 (Go version go1.20.5) for app \"\" using mount point: /mnt/disks/sdb/raw/dukebreastsegm_loc\n","timestampSeconds":1693664077,"timestampNanos":455531919}
{"name":"root","levelname":"INFO","severity":"INFO","message":"Creating Storage handle...\n","timestampSeconds":1693664077,"timestampNanos":455587109}
{"name":"root","levelname":"INFO","severity":"INFO","message":"Creating a mount at \"/mnt/disks/sdb/raw/dukebreastsegm_loc\"\n","timestampSeconds":1693664077,"timestampNanos":458663438}



WARNING: gcsfuse invoked as root. This will cause all files to be owned by
root. If this is not what you intended, invoke gcsfuse as the user that will
be interacting with the file system.
{"name":"root","levelname":"INFO","severity":"INFO","message":"Creating a new server...\n","timestampSeconds":1693664077,"timestampNanos":458709169}
{"name":"root","levelname":"INFO","severity":"INFO","message":"Set up root directory for bucket dukebreastsegm\n","timestampSeconds":1693664077,"timestampNanos":458717158}
{"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"gcs: Req              0x0: \u003c- ListObjects(\"\")\n","timestampSeconds":1693664077,"timestampNanos":458727958}
{"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"gcs: Req              0x0: -\u003e ListObjects(\"\") (42.131208ms): OK\n","timestampSeconds":1693664077,"timestampNanos":500870995}
{"name":"root","levelname":"INFO","severity":"INFO","message":"Mounting file system \"dukebreastsegm\"...\n","timestampSeconds":1693664077,"timestampNanos":500946506}
{"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"fuse_debug: Beginning the mounting kickoff process\n","timestampSeconds":1693664077,"timestampNanos":500983575}
{"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"fuse_debug: Parsing fuse file descriptor\n","timestampSeconds":1693664077,"timestampNanos":500998346}
{"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"fuse_debug: Preparing for direct mounting\n","timestampSeconds":1693664077,"timestampNanos":501002286}
{"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"fuse_debug: Successfully opened the /dev/fuse in blocking mode\n","timestampSeconds":1693664077,"timestampNanos":501022615}
{"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"fuse_debug: Starting the unix mounting\n","timestampSeconds":1693664077,"timestampNanos":501041615}
{"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"fuse_debug: Unix mounting completed successfully\n","timestampSeconds":1693664077,"timestampNanos":502589615}
{"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"fuse_debug: Completed the mounting kickoff process\n","timestampSeconds":1693664077,"timestampNanos":502658546}
{"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"fuse_debug: Creating a connection object\n","timestampSeconds":1693664077,"timestampNanos":502669746}
{"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"fuse_debug: Op 0x00000002        connection.go:416] \u003c- init\n","timestampSeconds":1693664077,"timestampNanos":502791286}
{"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"fuse_debug: Op 0x00000002        connection.go:498] -\u003e OK ()\n","timestampSeconds":1693664077,"timestampNanos":502810086}
{"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"fuse_debug: Successfully created the connection\n","timestampSeconds":1693664077,"timestampNanos":502834115}
{"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"fuse_debug: Waiting for mounting process to complete\n","timestampSeconds":1693664077,"timestampNanos":502859486}
{"name":"root","levelname":"INFO","severity":"INFO","message":"File system has been successfully mounted.\n","timestampSeconds":1693664077,"timestampNanos":502875646}



{"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"fuse_debug: Op 0x00000004        connection.go:416] \u003c- GetInodeAttributes (inode 1, PID 112193)\n","timestampSeconds":1693664110,"timestampNanos":690991412}
{"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"fuse_debug: Op 0x00000004        connection.go:498] -\u003e OK ()\n","timestampSeconds":1693664110,"timestampNanos":691926892}
{"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"fuse_debug: Op 0x00000006        connection.go:416] \u003c- OpenDir (inode 1, PID 112248)\n","timestampSeconds":1693664112,"timestampNanos":180480645}
{"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"fuse_debug: Op 0x00000006        connection.go:498] -\u003e OK ()\n","timestampSeconds":1693664112,"timestampNanos":180753676}
{"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"fuse_debug: Op 0x00000008        connection.go:416] \u003c- ReadDir (inode 1, PID 112248)\n","timestampSeconds":1693664112,"timestampNanos":181087016}
{"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"gcs: Req              0x1: \u003c- ListObjects(\"\")\n","timestampSeconds":1693664112,"timestampNanos":181256196}
{"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"gcs: Req              0x1: -\u003e ListObjects(\"\") (16.673659ms): OK\n","timestampSeconds":1693664112,"timestampNanos":197893564}
{"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"fuse_debug: Op 0x00000008        connection.go:498] -\u003e OK ()\n","timestampSeconds":1693664112,"timestampNanos":197980235}
{"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"fuse_debug: Op 0x0000000a        connection.go:416] \u003c- ReleaseDirHandle (PID 0)\n","timestampSeconds":1693664112,"timestampNanos":198215604}
{"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"fuse_debug: Op 0x0000000a        connection.go:498] -\u003e OK ()\n","timestampSeconds":1693664112,"timestampNanos":198419234}


1 2 222
2 REPLIES 2

Have you followed GCS Fuse official documentation? https://cloud.google.com/storage/docs/gcsfuse-install?hl=it

yes although I used  predefined Linux binaries; should I try build it from source?