[GH-ISSUE #1139] command not works when run from .sh script file #596

Closed
opened 2026-03-04 01:47:03 +03:00 by kerem · 3 comments
Owner

Originally created by @lxknvlk on GitHub (Sep 3, 2019).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1139

Additional Information
The following information is very important in order to help us to help you. Omission of the following details may delay your support request or receive no attention at all.
Keep in mind that the commands we provide to retrieve information are oriented to GNU/Linux Distributions, so you could need to use others if you use s3fs on macOS or BSD

Version of s3fs being used (s3fs --version)
1.82

Version of fuse being used (pkg-config --modversion fuse, rpm -qi fuse, dpkg -s fuse)
2.9.7

Kernel information (uname -r)
4.15.0-1044-aws

GNU/Linux Distribution, if applicable (cat /etc/os-release)
NAME="Ubuntu"
VERSION="18.04.2 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.2 LTS"
VERSION_ID="18.04"
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"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

Details about issue

The command i run

    sudo /usr/bin/s3fs bucketname /home/ubuntu/bucket -o allow_other -o uid=1000 -o mp_umask=002 -o multireq_max=5 -o use_path_request_style -o url=<myurl> -o passwd_file=/passwd

In this command the passwd file i put in root folder.

When i run my command just in terminal, mount works ok. When i try to run it from a bash script, i get next output: s3fs: specified passwd_file is not readable.

I have tried different directories for the passwd file, setting chown. The pats was absolute, home/ubuntu/passwd

Also, adding debug options to command inside bash script file ( -o dbglevel=info -f -o curldbg) produces next error:

    [CRT] s3fs.cpp:set_s3fs_log_level(257): change debug level from [CRT] to [INF]
    [INF]     s3fs.cpp:set_mountpoint_attribute(4193): PROC(uid=0, gid=0) -                                 
    MountPoint(uid=1000, gid=1000, mode=40775)
    'use: unknown option `curldbg
Originally created by @lxknvlk on GitHub (Sep 3, 2019). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1139 Additional Information The following information is very important in order to help us to help you. Omission of the following details may delay your support request or receive no attention at all. Keep in mind that the commands we provide to retrieve information are oriented to GNU/Linux Distributions, so you could need to use others if you use s3fs on macOS or BSD Version of s3fs being used (s3fs --version) 1.82 Version of fuse being used (pkg-config --modversion fuse, rpm -qi fuse, dpkg -s fuse) 2.9.7 Kernel information (uname -r) 4.15.0-1044-aws GNU/Linux Distribution, if applicable (cat /etc/os-release) NAME="Ubuntu" VERSION="18.04.2 LTS (Bionic Beaver)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 18.04.2 LTS" VERSION_ID="18.04" 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" VERSION_CODENAME=bionic UBUNTU_CODENAME=bionic Details about issue The command i run sudo /usr/bin/s3fs bucketname /home/ubuntu/bucket -o allow_other -o uid=1000 -o mp_umask=002 -o multireq_max=5 -o use_path_request_style -o url=<myurl> -o passwd_file=/passwd In this command the passwd file i put in root folder. When i run my command just in terminal, mount works ok. When i try to run it from a bash script, i get next output: s3fs: specified passwd_file is not readable. I have tried different directories for the passwd file, setting chown. The pats was absolute, home/ubuntu/passwd Also, adding debug options to command inside bash script file ( -o dbglevel=info -f -o curldbg) produces next error: [CRT] s3fs.cpp:set_s3fs_log_level(257): change debug level from [CRT] to [INF] [INF] s3fs.cpp:set_mountpoint_attribute(4193): PROC(uid=0, gid=0) - MountPoint(uid=1000, gid=1000, mode=40775) 'use: unknown option `curldbg
kerem closed this issue 2026-03-04 01:47:03 +03:00
Author
Owner

@lxknvlk commented on GitHub (Sep 3, 2019):

Also tried with AWS guide https://geraldalinio.com/aws/s3/install-s3fs-and-mount-s3-bucket-on-ubuntu-18-04-instance/
with s3fs version 1.85, same problems

<!-- gh-comment-id:527461695 --> @lxknvlk commented on GitHub (Sep 3, 2019): Also tried with AWS guide https://geraldalinio.com/aws/s3/install-s3fs-and-mount-s3-bucket-on-ubuntu-18-04-instance/ with s3fs version 1.85, same problems
Author
Owner

@lxknvlk commented on GitHub (Sep 3, 2019):

I have solved the password file problem by removing the password file option and putting credentials in .passwd-s3fs file.

But the command still does not work from script file. And works perfect from shell.

<!-- gh-comment-id:527485589 --> @lxknvlk commented on GitHub (Sep 3, 2019): I have solved the password file problem by removing the password file option and putting credentials in .passwd-s3fs file. But the command still does not work from script file. And works perfect from shell.
Author
Owner

@lxknvlk commented on GitHub (Sep 4, 2019):

The problem was in windows carriage returns in the script file. I changed them to unix style and the script started working.

The output error was like this:

'use: unknown option `curldbg

Actually it was trying to print our next error:

fuse: unknown option 'curldbg<CR>'

So, there seems to be some problems with the error output.

<!-- gh-comment-id:527891427 --> @lxknvlk commented on GitHub (Sep 4, 2019): The problem was in windows carriage returns in the script file. I changed them to unix style and the script started working. The output error was like this: 'use: unknown option `curldbg Actually it was trying to print our next error: fuse: unknown option 'curldbg<CR>' So, there seems to be some problems with the error output.
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#596
No description provided.