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
S3FS fails quietly on incorrect password #2398
Comments
@JeremyWesthead Since the error message in your case cannot be parsed, create a PR #2410 and modify it to output the error message included in the response. |
I'm finding that s3fs fails silently on many types of errors. Running this command will yield these logs if bucket is wrong or creds are wrong: s3fs returns exit code 0 and signals to system to mount, in my case these were the logs
not sure if this is intended, seems strange esp for automated mounting solutions. any thoughts? |
@brodly Thanks for the details. We need to check why the mount command is not inheriting the s3fs exit code. |
thanks @ggtakec. I also noticed this behavior when using the Since my use case is automated, had to build a little utility to check /proc/mounts to see if we actually mounted the bucket before continuing on. FYI I have been using v1.89 but was able to also test on 1.90. Havent tested on versions beyond that. |
Thank you for your reply. |
I looked into this a little more, but the result remains the same that s3fs itself exits with an error code (1), but the mount command always returns 0. If anyone knows the cause of this, I look forward to helping. |
Additional Information
Version of s3fs being used (
s3fs --version
)V1.90 (commit:unknown)
Version of fuse being used (
pkg-config --modversion fuse
,rpm -qi fuse
ordpkg -s fuse
)No package 'fuse' found
or similar, but S3FS works fine generallyKernel information (
uname -r
)6.2.0-39-generic
GNU/Linux Distribution, if applicable (
cat /etc/os-release
)PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
How to run s3fs, if applicable
[X] command line
[] /etc/fstab
s3fs syslog messages (
grep s3fs /var/log/syslog
,journalctl | grep s3fs
, ors3fs outputs
)Details about issue
If the password file (
<password file>
above) contains a valid but incorrect password, s3fs gives no indication of failure to mount. This has been tested with OCI's buckets - not sure if platform specific.Cases which cause sensible 'failure to mount' errors (non-0 exitcode and a stderr message):
600
Specific case this issue refers to which has an exitcode of 0 and no stderr message:
Password file contents of
access_key:not_real_key
should replicate this behaviour. With a valid password file contents, the same command correctly mounts. Such a fail to mount should tell the user that the mount has failed.The text was updated successfully, but these errors were encountered: