I believe that the docker image needs to be run at a higher level of privilege to allow for that mounting, which is not possible using App Engine Flex.
Is there a specific reason you want to mount a GCS bucket onto an App Engine instance? You should have no trouble accessing it using the client libraries. On Tuesday, September 26, 2017 at 9:05:17 AM UTC-4, [email protected] wrote: > > I am running a gcsfuse mount command in a startup script in my custom > runtime docker, which fails with > > Mounting file system... > > Using mount point: /var/www/html/mount-point > Opening GCS connection... > Opening bucket... > > daemonize.Run: readFromProcess: sub-process: mountWithArgs: mountWithConn: > Mount: mount: running fusermount: exit status 1 > stderr: > fusermount: failed to open /dev/fuse: Operation not permitted > > > however, ssh-ing into instance and executing the same script manually works. > Manual startup is not acceptable since the instances are brought up and down > by google at will. > > > Has anybody solved this problem? > > > > > This is my script: > > > export GOOGLE_APPLICATION_CREDENTIALS=/etc/gcloud/service-account.json > while :do FILE="" DIR="/var/www/html/mount-point"# init# look for empty > dirif [ "$(ls -A $DIR)" ]; then echo "$DIR is mounted. Exit." > breakelse echo "$DIR is not mounted. Trying to mount" gcsfuse -o rw -o > allow_other --implicit-dirs --dir-mode 777 --file-mode 777 bucket_id > /var/www/html/mount-pointweb/imgfi sleep 10 echo "Press [CTRL+C] to > stop.."done > Thanks. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/bbec9226-1015-431f-868d-e6ade54890d3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
