###前提・実現したいこと
AWS EC2再起動時にgoofysでs3を自動マウントしたい。
###発生している問題・エラーメッセージ
Jan 9 00:45:51 ip-10-0-11-101 /root/go/bin/goofys[2571]: s3.ERROR code=NoCredentialProviders msg=no valid providers in chain. Deprecated.#012#011For verbose messaging see aws.Config.CredentialsChainVerboseErrors, err=<nil>#012 Jan 9 00:45:51 ip-10-0-11-101 /root/go/bin/goofys[2571]: s3.ERROR code=NoCredentialProviders msg=no valid providers in chain. Deprecated.#012#011For verbose messaging see aws.Config.CredentialsChainVerboseErrors, err=<nil>#012 Jan 9 00:45:51 ip-10-0-11-101 /root/go/bin/goofys[2571]: main.ERROR Unable to access 'tes-bkt': NoCredentialProviders: no valid providers in chain. Deprecated.#012#011For verbose messaging see aws.Config.CredentialsChainVerboseErrors Jan 9 00:45:51 ip-10-0-11-101 /root/go/bin/goofys[2571]: main.FATAL Mounting file system: Mount: initialization failed
###該当のソースコード
/etc/fstab の記述
/root/go/bin/goofys#tes-bkt /extend fuse allow_other,--dir-mode=0777,--file-mode=0666,--uid=501,--gid=501 0 0
###試したこと
以下のコマンドではマウントできます。
/root/go/bin/goofys --region ap-northeast-1 tes-bkt /extend
/etc/fstabに以下の記述をして
/root/go/bin/goofys#tes-bkt /extend fuse allow_other,--dir-mode=0777,--file-mode=0666,--uid=501,--gid=501 0 0
mount -a ではマウント成功しますが、再起動では固まってしまいます。
そこで、/etc/crontabに @reboot にマウントコマンドを設定してみたところ、
上記のログが出ていました。
回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/01/09 07:37