mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #1139] command not works when run from .sh script file #596
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#596
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
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:
@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
@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.
@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:
Actually it was trying to print our next error:
So, there seems to be some problems with the error output.