GoogleCloudPlatform / gcsfuse

A user-space file system for interacting with Google Cloud Storage
https://cloud.google.com/storage/docs/gcs-fuse
Apache License 2.0
2.04k stars 421 forks source link

I set this up on a non live server. #2197

Open METANOVA-241 opened 1 month ago

METANOVA-241 commented 1 month ago
          I set this up on a non live server.

fstab file: LABEL=cloudimg-rootfs / ext4 defaults 0 1 LABEL=UEFI /boot/efi vfat umask=0077 0 1

ctwebcust-test-prwdr /var/www/html/prwdr gcsfuse rw,allow_other,file_mode=777,dir_mode=777,implicit_dirs,debug_gcs,debug_fs,debug_fuse,log_file=/var/log/fuse.log,key_file=/usr/key.json

Log after reboot: (does not get mounted) - just seems to stop {"name":"root","levelname":"INFO","severity":"INFO","message":"Start gcsfuse/0.42.3 (Go version go1.19.5) for app \"\" using mount point: /var/www/html/prwdr\n","timestampSeconds":1681132871,"timestampNanos":809785695} {"name":"root","levelname":"INFO","severity":"INFO","message":"Opening GCS connection...\n","timestampSeconds":1681132871,"timestampNanos":809927336} {"name":"root","levelname":"INFO","severity":"INFO","message":"Creating a mount at \"/var/www/html/prwdr\"\n","timestampSeconds":1681132871,"timestampNanos":869427943} {"name":"root","levelname":"INFO","severity":"INFO","message":"Creating a new server...\n","timestampSeconds":1681132871,"timestampNanos":869474692} {"name":"root","levelname":"INFO","severity":"INFO","message":"Set up root directory for bucket ctwebcust-test-prwdr\n","timestampSeconds":1681132871,"timestampNanos":869503712} {"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"gcs: Req 0x0: \u003c- ListObjects(\"\")\n","timestampSeconds":1681132871,"timestampNanos":869520903}

Returned after a manual sudo mount -a {"name":"root","levelname":"INFO","severity":"INFO","message":"Start gcsfuse/0.42.3 (Go version go1.19.5) for app \"\" using mount point: /var/www/html/prwdr\n","timestampSeconds":1681132871,"timestampNanos":809785695} {"name":"root","levelname":"INFO","severity":"INFO","message":"Opening GCS connection...\n","timestampSeconds":1681132871,"timestampNanos":809927336} {"name":"root","levelname":"INFO","severity":"INFO","message":"Creating a mount at \"/var/www/html/prwdr\"\n","timestampSeconds":1681132871,"timestampNanos":869427943} {"name":"root","levelname":"INFO","severity":"INFO","message":"Creating a new server...\n","timestampSeconds":1681132871,"timestampNanos":869474692} {"name":"root","levelname":"INFO","severity":"INFO","message":"Set up root directory for bucket ctwebcust-test-prwdr\n","timestampSeconds":1681132871,"timestampNanos":869503712} {"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"gcs: Req 0x0: \u003c- ListObjects(\"\")\n","timestampSeconds":1681132871,"timestampNanos":869520903} {"name":"root","levelname":"INFO","severity":"INFO","message":"Start gcsfuse/0.42.3 (Go version go1.19.5) for app \"\" using mount point: /var/www/html/prwdr\n","timestampSeconds":1681133139,"timestampNanos":58349370} {"name":"root","levelname":"INFO","severity":"INFO","message":"Opening GCS connection...\n","timestampSeconds":1681133139,"timestampNanos":58632200} {"name":"root","levelname":"INFO","severity":"INFO","message":"Creating a mount at \"/var/www/html/prwdr\"\n","timestampSeconds":1681133139,"timestampNanos":118089066} {"name":"root","levelname":"INFO","severity":"INFO","message":"Creating a new server...\n","timestampSeconds":1681133139,"timestampNanos":118186606} {"name":"root","levelname":"INFO","severity":"INFO","message":"Set up root directory for bucket ctwebcust-test-prwdr\n","timestampSeconds":1681133139,"timestampNanos":121399457} {"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"gcs: Req 0x0: \u003c- ListObjects(\"\")\n","timestampSeconds":1681133139,"timestampNanos":121569027} {"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"gcs: Req 0x0: -\u003e ListObjects(\"\") (139.9024ms): OK\n","timestampSeconds":1681133139,"timestampNanos":261479107} {"name":"root","levelname":"INFO","severity":"INFO","message":"Mounting file system \"ctwebcust-test-prwdr\"...\n","timestampSeconds":1681133139,"timestampNanos":261928837} {"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"fuse_debug: Beginning the mounting kickoff process\n","timestampSeconds":1681133139,"timestampNanos":262078687} {"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"fuse_debug: Parsing fuse file descriptor\n","timestampSeconds":1681133139,"timestampNanos":262092637} {"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"fuse_debug: Preparing for direct mounting\n","timestampSeconds":1681133139,"timestampNanos":262134047} {"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"fuse_debug: Successfully opened the /dev/fuse in blocking mode\n","timestampSeconds":1681133139,"timestampNanos":262167557} {"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"fuse_debug: Starting the unix mounting\n","timestampSeconds":1681133139,"timestampNanos":262204567} {"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"fuse_debug: Unix mounting completed successfully\n","timestampSeconds":1681133139,"timestampNanos":265095568} {"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"fuse_debug: Completed the mounting kickoff process\n","timestampSeconds":1681133139,"timestampNanos":265113558} {"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"fuse_debug: Creating a connection object\n","timestampSeconds":1681133139,"timestampNanos":265121418} {"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"fuse_debug: Op 0x00000002 connection.go:416] \u003c- init\n","timestampSeconds":1681133139,"timestampNanos":277011133} {"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"fuse_debug: Op 0x00000002 connection.go:498] -\u003e OK ()\n","timestampSeconds":1681133139,"timestampNanos":277085693} {"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"fuse_debug: Successfully created the connection\n","timestampSeconds":1681133139,"timestampNanos":277159034} {"name":"root","levelname":"DEBUG","severity":"DEBUG","message":"fuse_debug: Waiting for mounting process to complete\n","timestampSeconds":1681133139,"timestampNanos":277173954} {"name":"root","levelname":"INFO","severity":"INFO","message":"File system has been successfully mounted.\n","timestampSeconds":1681133139,"timestampNanos":277180583}

THANKS

Originally posted by @gcontois in https://github.com/GoogleCloudPlatform/gcsfuse/issues/1043#issuecomment-1501878845

Tulsishah commented 1 month ago

Hi @METANOVA-241,

By "non-live server," do you mean a server without internet access? If so, then it won't work without internet access. If not, could you please run GCSFuse with the latest version and share the latest logs?

Thanks, Tulsi Shah