mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[GH-ISSUE #1182] connecting to swift - dont understand the error #622
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#622
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 @amitkertis17 on GitHub (Oct 23, 2019).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1182
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)
Amazon Simple Storage Service File System V1.82(commit:unknown) with GnuTLS(gcrypt)
Version of fuse being used (pkg-config --modversion fuse, rpm -qi fuse, dpkg -s fuse)
Package: fuse
Status: install ok installed
Priority: optional
Section: utils
Installed-Size: 104
Maintainer: Ubuntu Developers ubuntu-devel-discuss@lists.ubuntu.com
Architecture: amd64
Version: 2.9.7-1ubuntu1
Kernel information (uname -r)
_command result: 4.15.0-66-generic
GNU/Linux Distribution, if applicable (cat /etc/os-release)
command result: cat /etc/os-release
s3fs command line used, if applicable
Details about issue
hi
i am trying configure connection to swift and i getting those error
can u please help and give me direction
i also don't really understand what i need to put in the pass file
MYKEY:MYSECRET
can u tell me from where i get those value in swift
i see many video for aws can u please provide information for swift
is it the same as
application_credential_id = %APPLICATION_CREDENTIAL_ID%
application_credential_secret = %APPLICATION_CREDENTIAL_SECRET%
thanks for the help
@gaul commented on GitHub (Oct 24, 2019):
The error message
<Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message>suggests that your bucket name is invalid. Perhaps the upper case letter confuse swift3? Do you setdns_compliant_bucket_namesto true?The S3 credentials should be the Swift ones but you can probably override this.
@amitkertis17 commented on GitHub (Oct 26, 2019):
thanks for the help but even after i change the name i got the same error
the command i use is
sudo s3fs amittest /mnt/s3test2 -o passwd_file=/home/ccloud/.passwd-s3fs2 -o url=https://objectstore-3.eu-nl-1.cloud.sap:443/v1/AUTH_33d948979e5b445aa127ee1fbe346ec3 -o use_path_request_style -o dbglevel=info -f -o curldbg
BucketName = amittest
regarding "Do you set dns_compliant_bucket_names to true?"
do i need to do it ?
can u send me the command with all the flag that is needed
in the debug print i see one more error that maybe this is the issue
AuthorizationHeaderMalformedThe authorization header is malformed; the region 'us-east-1' is wrong; expecting 'eu-nl-1'tx2c540babbe3c43cc84645-005db3eacdeu-nl-1here is the full print i got
root@amitkertes02:/# sudo s3fs amittest /mnt/s3test2 -o passwd_file=/home/ccloud/.passwd-s3fs2 -o url=https://objectstore-3.eu-nl-1.cloud.sap:443/v1/AUTH_33d948979e5b445aa127ee1fbe346ec3 -o use_path_request_style -o dbglevel=info -f -o curldbg
[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=0, gid=0, mode=40755)
[CRT] s3fs.cpp:s3fs_init(3378): init v1.82(commit:unknown) with GnuTLS(gcrypt)
[INF] s3fs.cpp:s3fs_check_service(3754): check services.
[INF] curl.cpp:CheckBucket(2914): check a bucket.
[INF] curl.cpp:prepare_url(4205): URL is https://objectstore-3.eu-nl-1.cloud.sap:443/v1/AUTH_33d948979e5b445aa127ee1fbe346ec3/amittest/
[INF] curl.cpp:prepare_url(4237): URL changed is https://objectstore-3.eu-nl-1.cloud.sap:443/v1/AUTH_33d948979e5b445aa127ee1fbe346ec3/amittest/
[INF] curl.cpp:insertV4Headers(2267): computing signature [GET] [/] [] []
[INF] curl.cpp:url_to_host(100): url is https://objectstore-3.eu-nl-1.cloud.sap:443/v1/AUTH_33d948979e5b445aa127ee1fbe346ec3
< HTTP/1.1 400 Bad Request
< Server: nginx/1.14.0
< Content-Type: application/xml
< Transfer-Encoding: chunked
< Connection: keep-alive
< x-amz-id-2: tx0a80ff2bb4854717a985d-005db3ec83
< x-amz-request-id: tx0a80ff2bb4854717a985d-005db3ec83
< X-Trans-Id: tx0a80ff2bb4854717a985d-005db3ec83
< X-Openstack-Request-Id: tx0a80ff2bb4854717a985d-005db3ec83
< Date: Sat, 26 Oct 2019 06:49:39 GMT
<
[INF] curl.cpp:RequestPerform(1952): HTTP response code 400 was returned, returning EIO.
[ERR] curl.cpp:CheckBucket(2953): Check bucket failed, S3 response:
AuthorizationHeaderMalformedThe authorization header is malformed; the region 'us-east-1' is wrong; expecting 'eu-nl-1'tx0a80ff2bb4854717a985d-005db3ec83eu-nl-1[CRT] s3fs.cpp:s3fs_check_service(3775): Could not connect wrong region us-east-1, so retry to connect region eu-nl-1.
[INF] curl.cpp:CheckBucket(2914): check a bucket.
[INF] curl.cpp:prepare_url(4205): URL is https://objectstore-3.eu-nl-1.cloud.sap:443/v1/AUTH_33d948979e5b445aa127ee1fbe346ec3/amittest/
[INF] curl.cpp:prepare_url(4237): URL changed is https://objectstore-3.eu-nl-1.cloud.sap:443/v1/AUTH_33d948979e5b445aa127ee1fbe346ec3/amittest/
[INF] curl.cpp:insertV4Headers(2267): computing signature [GET] [/] [] []
[INF] curl.cpp:url_to_host(100): url is https://objectstore-3.eu-nl-1.cloud.sap:443/v1/AUTH_33d948979e5b445aa127ee1fbe346ec3
< HTTP/1.1 400 Bad Request
< Server: nginx/1.14.0
< Content-Type: application/xml
< Transfer-Encoding: chunked
< Connection: keep-alive
< x-amz-id-2: txf23430291f12434f9ff7e-005db3ec83
< x-amz-request-id: txf23430291f12434f9ff7e-005db3ec83
< X-Trans-Id: txf23430291f12434f9ff7e-005db3ec83
< X-Openstack-Request-Id: txf23430291f12434f9ff7e-005db3ec83
< Date: Sat, 26 Oct 2019 06:49:39 GMT
<
[INF] curl.cpp:RequestPerform(1952): HTTP response code 400 was returned, returning EIO.
[ERR] curl.cpp:CheckBucket(2953): Check bucket failed, S3 response:
InvalidBucketNameThe specified bucket is not valid.txf23430291f12434f9ff7e-005db3ec83v1[WAN] s3fs.cpp:s3fs_check_service(3795): Could not connect, so retry to connect by signature version 2.
[INF] curl.cpp:CheckBucket(2914): check a bucket.
[INF] curl.cpp:prepare_url(4205): URL is https://objectstore-3.eu-nl-1.cloud.sap:443/v1/AUTH_33d948979e5b445aa127ee1fbe346ec3/amittest/
[INF] curl.cpp:prepare_url(4237): URL changed is https://objectstore-3.eu-nl-1.cloud.sap:443/v1/AUTH_33d948979e5b445aa127ee1fbe346ec3/amittest/
< HTTP/1.1 400 Bad Request
< Server: nginx/1.14.0
< Content-Type: application/xml
< Transfer-Encoding: chunked
< Connection: keep-alive
< x-amz-id-2: txb6239843ad2244258248a-005db3ec83
< x-amz-request-id: txb6239843ad2244258248a-005db3ec83
< X-Trans-Id: txb6239843ad2244258248a-005db3ec83
< X-Openstack-Request-Id: txb6239843ad2244258248a-005db3ec83
< Date: Sat, 26 Oct 2019 06:49:39 GMT
<
[INF] curl.cpp:RequestPerform(1952): HTTP response code 400 was returned, returning EIO.
[ERR] curl.cpp:CheckBucket(2953): Check bucket failed, S3 response:
InvalidBucketNameThe specified bucket is not valid.txb6239843ad2244258248a-005db3ec83v1[CRT] s3fs.cpp:s3fs_check_service(3807): Bad Request(host=https://objectstore-3.eu-nl-1.cloud.sap:443/v1/AUTH_33d948979e5b445aa127ee1fbe346ec3) - result of checking service.
[ERR] s3fs.cpp:s3fs_exit_fuseloop(3368): Exiting FUSE event loop due to errors
[INF] s3fs.cpp:s3fs_destroy(3441): destroy
[WAN] s3fs.cpp:s3fs_destroy(3445): Could not release curl library.
root@amitkertes02:/#
again thanks for the help
waiting for your answer :)
@amitkertis17 commented on GitHub (Oct 26, 2019):
i look for this flag and i cant find it
dns_compliant_bucket_names
what do u mean ? what i need to do ?
@amitkertis17 commented on GitHub (Oct 28, 2019):
ok , i change the url to be just url=https://identity-3.eu-nl-1.cloud.sap:443/
and not url=https://objectstore-3.eu-nl-1.cloud.sap:443/v1/AUTH_33d948979e5b445aa127ee1fbe346ec3
and the issue with the "InvalidBucketName" solved
not the only thing left is issue with credential and i open separate ticket for this
https://github.com/s3fs-fuse/s3fs-fuse/issues/1187
thanks for the help