-
Notifications
You must be signed in to change notification settings - Fork 434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
folders not mounting on reboot #1043
Comments
@gcontois, Sorry for the late response! Can you please provide the logs after adding more debug flags while mounting gcsfuse - Regards, |
I set this up on a non live server. 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 Returned after a manual sudo mount -a THANKS |
Hey @gcontois , Thanks for sharing the logs. In the logs that you have shared, the ListObjects method is stuck before running sudo mount -a. We aren't able to reproduce this exactly. However, we suspect that this is happening due to network connection not available just after reboot at the time of mounting. (Network connection is required at the time of mounting because gcsfuse tries to list the bucket before mounting as a check) Could you please try adding |
This seems to have fix the issue. I added _netdev to all my connections. |
0973026218 |
I recently noticed that upon reboot my gcsfuse folders set up in my fstab file are not getting mounted. This is a new occurrence even after the recent permission issues. If i manually run sudo mount -a, everything is fine.
fstab file:
ctwebcust-live-prwdr /var/www/html/prwdr gcsfuse rw,allow_other,file_mode=777,dir_mode=777,implicit_dirs,key_file=/usr/key.json
mspeechsample-prod /var/www/html/mspeechsample gcsfuse rw,allow_other,file_mode=777,dir_mode=777,implicit_dirs,key_file=/usr/key.json
restapiresources-prod /var/www/html/restapiresources gcsfuse rw,allow_other,file_mode=777,dir_mode=777,implicit_dirs,key_file=/usr/key.json
prwrw-prod /var/www/html/prwrw gcsfuse rw,allow_other,file_mode=777,dir_mode=777,implicit_dirs,key_file=/usr/key.json
Log after reboot: (they do not get mounted)
Apr 1 13:38:31 ctwebfuse-hc-l gcsfuse[445]: {"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/restapiresources\n","timestampSeconds":1680356210,"timestampNanos":965838198}
Apr 1 13:38:31 ctwebfuse-hc-l gcsfuse[445]: {"name":"root","levelname":"INFO","severity":"INFO","message":"Opening GCS connection...\n","timestampSeconds":1680356210,"timestampNanos":965940118}
Apr 1 13:38:31 ctwebfuse-hc-l gcsfuse[432]: {"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/prwrw\n","timestampSeconds":1680356210,"timestampNanos":967719040}
Apr 1 13:38:31 ctwebfuse-hc-l gcsfuse[432]: {"name":"root","levelname":"INFO","severity":"INFO","message":"Opening GCS connection...\n","timestampSeconds":1680356210,"timestampNanos":967794600}
Apr 1 13:38:31 ctwebfuse-hc-l gcsfuse[433]: {"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":1680356210,"timestampNanos":971932295}
Apr 1 13:38:31 ctwebfuse-hc-l gcsfuse[433]: {"name":"root","levelname":"INFO","severity":"INFO","message":"Opening GCS connection...\n","timestampSeconds":1680356210,"timestampNanos":972039156}
Apr 1 13:38:31 ctwebfuse-hc-l gcsfuse[450]: {"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/mspeechsample\n","timestampSeconds":1680356210,"timestampNanos":973770968}
Apr 1 13:38:31 ctwebfuse-hc-l gcsfuse[450]: {"name":"root","levelname":"INFO","severity":"INFO","message":"Opening GCS connection...\n","timestampSeconds":1680356210,"timestampNanos":973838078}
Apr 1 13:38:31 ctwebfuse-hc-l gcsfuse[445]: {"name":"root","levelname":"INFO","severity":"INFO","message":"Creating a mount at "/var/www/html/restapiresources"\n","timestampSeconds":1680356211,"timestampNanos":91893470}
Apr 1 13:38:31 ctwebfuse-hc-l gcsfuse[450]: {"name":"root","levelname":"INFO","severity":"INFO","message":"Creating a mount at "/var/www/html/mspeechsample"\n","timestampSeconds":1680356211,"timestampNanos":91908330}
Apr 1 13:38:31 ctwebfuse-hc-l gcsfuse[450]: {"name":"root","levelname":"INFO","severity":"INFO","message":"Creating a new server...\n","timestampSeconds":1680356211,"timestampNanos":91938420}
Apr 1 13:38:31 ctwebfuse-hc-l gcsfuse[445]: {"name":"root","levelname":"INFO","severity":"INFO","message":"Creating a new server...\n","timestampSeconds":1680356211,"timestampNanos":91938440}
Apr 1 13:38:31 ctwebfuse-hc-l gcsfuse[445]: {"name":"root","levelname":"INFO","severity":"INFO","message":"Set up root directory for bucket restapiresources-prod\n","timestampSeconds":1680356211,"timestampNanos":91950260}
Apr 1 13:38:31 ctwebfuse-hc-l gcsfuse[450]: {"name":"root","levelname":"INFO","severity":"INFO","message":"Set up root directory for bucket mspeechsample-prod\n","timestampSeconds":1680356211,"timestampNanos":91950250}
Apr 1 13:38:31 ctwebfuse-hc-l gcsfuse[432]: {"name":"root","levelname":"INFO","severity":"INFO","message":"Creating a mount at "/var/www/html/prwrw"\n","timestampSeconds":1680356211,"timestampNanos":92131270}
Apr 1 13:38:31 ctwebfuse-hc-l gcsfuse[432]: {"name":"root","levelname":"INFO","severity":"INFO","message":"Creating a new server...\n","timestampSeconds":1680356211,"timestampNanos":92159230}
Apr 1 13:38:31 ctwebfuse-hc-l gcsfuse[433]: {"name":"root","levelname":"INFO","severity":"INFO","message":"Creating a mount at "/var/www/html/prwdr"\n","timestampSeconds":1680356211,"timestampNanos":92150700}
Apr 1 13:38:31 ctwebfuse-hc-l gcsfuse[432]: {"name":"root","levelname":"INFO","severity":"INFO","message":"Set up root directory for bucket prwrw-prod\n","timestampSeconds":1680356211,"timestampNanos":92168510}
Apr 1 13:38:31 ctwebfuse-hc-l gcsfuse[433]: {"name":"root","levelname":"INFO","severity":"INFO","message":"Creating a new server...\n","timestampSeconds":1680356211,"timestampNanos":92168670}
Apr 1 13:38:31 ctwebfuse-hc-l gcsfuse[433]: {"name":"root","levelname":"INFO","severity":"INFO","message":"Set up root directory for bucket ctwebcust-live-prwdr\n","timestampSeconds":1680356211,"timestampNanos":92207370}
Returned after a manual sudo mount -a
Calling gcsfuse with arguments: --implicit-dirs=true --key-file /usr/key.json -o rw -o allow_other --file-mode 777 --dir-mode 777 ctwebcust-live-prwdr /var/www/html/prwdr
2023/04/01 13:42:26.429929 Start gcsfuse/0.42.3 (Go version go1.19.5) for app "" using mount point: /var/www/html/prwdr
Calling gcsfuse with arguments: --implicit-dirs=true --key-file /usr/key.json -o rw -o allow_other --file-mode 777 --dir-mode 777 mspeechsample-prod /var/www/html/mspeechsample
2023/04/01 13:42:26.671311 Start gcsfuse/0.42.3 (Go version go1.19.5) for app "" using mount point: /var/www/html/mspeechsample
Calling gcsfuse with arguments: -o rw -o allow_other --file-mode 777 --dir-mode 777 --implicit-dirs=true --key-file /usr/key.json restapiresources-prod /var/www/html/restapiresources
2023/04/01 13:42:26.813454 Start gcsfuse/0.42.3 (Go version go1.19.5) for app "" using mount point: /var/www/html/restapiresources
Calling gcsfuse with arguments: -o rw -o allow_other --file-mode 777 --dir-mode 777 --implicit-dirs=true --key-file /usr/key.json prwrw-prod /var/www/html/prwrw
2023/04/01 13:42:26.931168 Start gcsfuse/0.42.3 (Go version go1.19.5) for app "" using mount point: /var/www/html/prwrw
Just wondering if I am missing something. As stated this was working up to recently.
The text was updated successfully, but these errors were encountered: