LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-17-2021, 12:32 AM   #1
DBabo
Member
 
Registered: Feb 2003
Distribution: Fedora {latest}
Posts: 568

Rep: Reputation: 40
Question GCP and fuse


Hello,
i can't figure out how to use a service account while mounting a bucket.

how do i properly setup a service account and where do i use its json ?


as of right now I only created a service account and created a key for it. Didn't grant anything. After that, I replaced the /root/.config/gcloud/application_default_credentials.json with the key file for the service account.
When i try to mount - i get :
Code:
[root@dell5000 ~]# mount /media/test/
Calling gcsfuse with arguments: -o nosuid -o nodev --gid 1000 -o rw -o noexec --uid 1000 -o allow_other media_storage_family_2021 /media/test
2021/04/16 23:46:46.900311 Using mount point: /media/test
2021/04/16 23:46:46.911456 Opening GCS connection...
daemonize.Run: readFromProcess: sub-process: mountWithArgs: mountWithConn: fs.NewServer: create file system: SetUpBucket: OpenBucket: Bad credentials for bucket "media_storage_family_2021". Check the bucket name and your credentials.
running gcsfuse: exit status 1

i read
https://github.com/GoogleCloudPlatfo...cs/mounting.md
https://blog.josephziegler.com/2019/...loud-fuse.html

but still confused.
Thank you in advance
 
Old 04-17-2021, 03:32 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,829

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
probably this: my-bucket /mount/point gcsfuse rw,noauto,user,key_file=/path/to/key.json
check key_file
But without knowing your config hard to say anything.
 
1 members found this post helpful.
Old 04-17-2021, 03:00 PM   #3
DBabo
Member
 
Registered: Feb 2003
Distribution: Fedora {latest}
Posts: 568

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by pan64 View Post
probably this: my-bucket /mount/point gcsfuse rw,noauto,user,key_file=/path/to/key.json
check key_file
But without knowing your config hard to say anything.

@pan thank you for helping out.

I think I just figured my problem out. I was missing "Basic->Owner" permissions on the Service account. Once that was addressed - i can mount and access files.
But now i have a different challenge - upload is abysmal 400Kb/s. but that is for another thread.

Last edited by DBabo; 04-17-2021 at 11:18 PM.
 
  


Reply

Tags
fuse, gcp



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GCP - Monitoring kubernetes klusters and CloudSQL database grzeslaw Linux - Containers 2 04-28-2020 10:32 AM
[SOLVED] fuse: device not found, try 'modprobe fuse' first -Centos 5.4 jsaravana87 Linux - Server 2 08-02-2012 03:33 AM
[SOLVED] Fuse installation problems: "cannot remove `/sbin/mount.fuse': Permission denied" kvm1983 Linux - Software 3 02-05-2012 11:34 PM
fusermount: fuse device not found, try 'modprobe fuse' first maestromani Linux - Newbie 1 10-21-2010 12:53 PM
FUSE works but fuse group does not exist? violagirl23 Linux - Software 3 01-21-2008 04:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration