[GH-ISSUE #732] Mounting S3 Bucket Fails with "same bucket(default)" error #416

Closed
opened 2026-03-04 01:45:23 +03:00 by kerem · 1 comment
Owner

Originally created by @dresswithpockets on GitHub (Mar 13, 2018).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/732

Additional Information

Version of s3fs being used (s3fs --version)

1.83

Version of fuse being used (pkg-config --modversion fuse)

2.9.4

System information (uname -r)

4.4.0-1052-aws

Distro (cat /etc/issue)

Ubuntu 16.04.3 LTS

s3fs command line used (if applicable)

sudo s3fs wisedotnet-projects /media/projectbucket -o passwd_file=/etc/passwd-s3fs -o dbglevel=info -f -o curldbg

/etc/fstab entry (if applicable):

s3fs#wisedotnet-project /media/projectbucket fuse _netdev,allow_other,use_cache=/tmp/cache,uid=1000,gid=1000 0 0

s3fs syslog messages (grep s3fs /var/log/syslog, or s3fs outputs)

[CRT] s3fs.cpp:set_s3fs_log_level(272): change debug level from [CRT] to [INF]
[INF]     s3fs.cpp:set_mountpoint_attribute(4209): PROC(uid=0, gid=0) - MountPoint(uid=0, gid=0, mode=40777)
s3fs: same bucket(default) passwd setting found in passwd file.

Details about issue

Mounting S3 Bucket at command line using s3fs (as shown above) prints off the error s3fs: same bucket(default) passwd setting found in passwd file. and doesnt mount.

Mounting via fstab and running mount -a produces the same error.

Originally created by @dresswithpockets on GitHub (Mar 13, 2018). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/732 ### Additional Information #### Version of s3fs being used (s3fs --version) _1.83_ #### Version of fuse being used (pkg-config --modversion fuse) _2.9.4_ #### System information (uname -r) _4.4.0-1052-aws_ #### Distro (cat /etc/issue) _Ubuntu 16.04.3 LTS_ #### s3fs command line used (if applicable) ``` sudo s3fs wisedotnet-projects /media/projectbucket -o passwd_file=/etc/passwd-s3fs -o dbglevel=info -f -o curldbg ``` #### /etc/fstab entry (if applicable): ``` s3fs#wisedotnet-project /media/projectbucket fuse _netdev,allow_other,use_cache=/tmp/cache,uid=1000,gid=1000 0 0 ``` #### s3fs syslog messages (grep s3fs /var/log/syslog, or s3fs outputs) ``` [CRT] s3fs.cpp:set_s3fs_log_level(272): change debug level from [CRT] to [INF] [INF] s3fs.cpp:set_mountpoint_attribute(4209): PROC(uid=0, gid=0) - MountPoint(uid=0, gid=0, mode=40777) s3fs: same bucket(default) passwd setting found in passwd file. ``` ### Details about issue Mounting S3 Bucket at command line using s3fs (as shown above) prints off the error `s3fs: same bucket(default) passwd setting found in passwd file.` and doesnt mount. Mounting via fstab and running `mount -a` produces the same error.
kerem closed this issue 2026-03-04 01:45:23 +03:00
Author
Owner

@dresswithpockets commented on GitHub (Mar 13, 2018):

I solved this. The problem was that there are multiple entries in the passwd file that match the default/no bucket.

Ultimately the confusion from this issue came from the fact that the error message is not very helpful. I managed to decipher what the error message meant by looking at the code that leads to that message:

if(resmap.end() != resmap.find(bucket)){ // this line helped me understand what the message meant.
      S3FS_PRN_EXIT("same bucket(%s) passwd setting found in passwd file.", ("" == bucket ? "default" : bucket.c_str()));
      return -1;
}

I'm going to submit a PR for this issue to make this message more descriptive and helpful.

<!-- gh-comment-id:372823644 --> @dresswithpockets commented on GitHub (Mar 13, 2018): I solved this. The problem was that there are multiple entries in the passwd file that match the default/no bucket. Ultimately the confusion from this issue came from the fact that the error message is not very helpful. I managed to decipher what the error message meant by looking at the code that leads to that message: ```cpp if(resmap.end() != resmap.find(bucket)){ // this line helped me understand what the message meant. S3FS_PRN_EXIT("same bucket(%s) passwd setting found in passwd file.", ("" == bucket ? "default" : bucket.c_str())); return -1; } ``` I'm going to submit a PR for this issue to make this message more descriptive and helpful.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#416
No description provided.