[GH-ISSUE #561] Operation not permitted issue when using openstack Mitaka version in centos #318

Closed
opened 2026-03-04 01:44:20 +03:00 by kerem · 9 comments
Owner

Originally created by @janibashamd on GitHub (Apr 10, 2017).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/561

I installed s3fs and configured it successfully.

Later i added my local swift container to local mount point. I can't view or create new files in this location.

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.

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

  • V1.80

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

  • 2.9.2

  • System information (uname -a)

  • Linux centos 3.10.0-514.6.2.el7.x86_64 #1 SMP Thu Feb 23 03:04:39 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

  • Distro (cat /etc/issue)

  • \S Kernel \r on an \m

  • s3fs command line used (if applicable)
    s3fs dhanu /mnt/s3fs -o passwd_file=passwd -o url=http://centos.com:35357/v3 -o endpoint=RegionOne -d -d -f -o f2 -o curldbg

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

[CRT] s3fs.cpp:set_s3fs_log_level(254): change debug level from [CRT] to [INF]
[CRT] s3fs.cpp:set_s3fs_log_level(254): change debug level from [INF] to [DBG]
[INF]     s3fs.cpp:set_mountpoint_attribute(4196): PROC(uid=0, gid=0) - MountPoint(uid=0, gid=0, mode=40755)
FUSE library version: 2.9.2
nullpath_ok: 0
nopath: 0
utime_omit_ok: 0
unique: 1, opcode: INIT (26), nodeid: 0, insize: 56, pid: 0
INIT: 7.22
flags=0x0000f7fb
max_readahead=0x00020000
[CRT] s3fs.cpp:s3fs_init(3375): init v1.80(commit:94ddcb8) with OpenSSL
[INF] s3fs.cpp:s3fs_check_service(3753): check services.
[INF]       curl.cpp:CheckBucket(2897): check a bucket.
[DBG] curl.cpp:GetHandler(283): Get handler from pool: 31
[INF]       curl.cpp:prepare_url(4221): URL is http://centos.com:35357/v3/dhanu/
[INF]       curl.cpp:prepare_url(4253): URL changed is http://dhanu.centos.com:35357/v3/
[INF]       curl.cpp:insertV4Headers(2274): computing signature [GET] [/] [] []
[INF]       curl.cpp:url_to_host(100): url is http://centos.com:35357/v3
[DBG] curl.cpp:RequestPerform(1930): connecting to URL http://dhanu.centos.com:35357/v3/
* About to connect() to dhanu.centos.com port 35357 (#0)
*   Trying 192.168.12.175...
* Connected to dhanu.centos.com (192.168.12.175) port 35357 (#0)
> GET /v3/ HTTP/1.1
User-Agent: s3fs/1.80 (commit hash 94ddcb8; OpenSSL)
Accept: */*
Authorization: AWS4-HMAC-SHA256 Credential=672806275f1141ecb687197086b43bb8/20170410/RegionOne/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=e681a5a034a8352b408ea4bef169fc3f271f13fd502ebdc6543dcbd90f228a49
host: dhanu.centos.com:35357
x-amz-content-sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz-date: 20170410T084029Z

< HTTP/1.1 200 OK
< Date: Mon, 10 Apr 2017 08:40:29 GMT
< Server: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5
< Vary: X-Auth-Token
< x-openstack-request-id: req-e59cdc34-9e25-48e3-82f6-3bfc030c5520
< Content-Length: 256
< Content-Type: application/json
<
* Connection #0 to host dhanu.centos.com left intact
[INF]       curl.cpp:RequestPerform(1947): HTTP response code 200
[DBG] curl.cpp:ReturnHandler(306): Return handler to pool: 31
   INIT: 7.19
   flags=0x00000019
   max_readahead=0x00020000
   max_write=0x00020000
   max_background=0
   congestion_threshold=0
   unique: 1, success, outsize: 40




unique: 2, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 17231
getattr /
[INF] s3fs.cpp:s3fs_getattr(809): [path=/]
[DBG] s3fs.cpp:check_parent_object_access(666): [path=/]
[DBG] s3fs.cpp:check_object_access(560): [path=/]
[DBG] s3fs.cpp:get_object_attribute(406): [path=/]
[DBG] fdcache.cpp:ExistOpen(2048): [path=/][fd=-1][ignore_existfd=false]
[DBG] fdcache.cpp:Open(1982): [path=/][size=-1][time=-1]
[DBG] s3fs.cpp:s3fs_getattr(833): [path=/] uid=0, gid=0, mode=40700
   unique: 2, success, outsize: 120
unique: 3, opcode: STATFS (17), nodeid: 1, insize: 40, pid: 17231
statfs /
   unique: 3, success, outsize: 96

Mount was successful and can be seen in mount command..
[root@vda pratap]# mount
s3fs on /mnt/pratap type fuse.s3fs (rw,relatime,user_id=0,group_id=0,allow_other)

[root@centos ~]# df -kh
Filesystem               Size  Used Avail Use% Mounted on
/dev/mapper/centos-root   42G   40G  3.0G  93% /
devtmpfs                 3.8G     0  3.8G   0% /dev
tmpfs                    3.8G  4.0K  3.8G   1% /dev/shm
tmpfs                    3.8G  105M  3.7G   3% /run
tmpfs                    3.8G     0  3.8G   0% /sys/fs/cgroup
/dev/sdd1                 20G   33M   20G   1% /mnt/swiftonfile
/dev/sdc                  20G   15G  5.4G  73% /srv/node/sdc
/dev/sda1                497M  172M  326M  35% /boot
/dev/sdb                  20G   15G  5.5G  73% /srv/node/sdb
/dev/mapper/centos-home   21G   80M   21G   1% /home
tmpfs                    765M     0  765M   0% /run/user/0
**s3fs**                     256T     0  256T   0% /mnt/s3fs

Later tied to check files but got below error...

Details about issue

[root@centos ~]# ls /mnt/s3fs
ls: reading directory /mnt/s3fs: Operation not permitted

Debug output is as below -

unique: 4, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 17275
getattr /
[INF] s3fs.cpp:s3fs_getattr(809): [path=/]
[DBG] s3fs.cpp:check_parent_object_access(666): [path=/]
[DBG] s3fs.cpp:check_object_access(560): [path=/]
[DBG] s3fs.cpp:get_object_attribute(406): [path=/]
[DBG] fdcache.cpp:ExistOpen(2048): [path=/][fd=-1][ignore_existfd=false]
[DBG] fdcache.cpp:Open(1982): [path=/][size=-1][time=-1]
[DBG] s3fs.cpp:s3fs_getattr(833): [path=/] uid=0, gid=0, mode=40700
   unique: 4, success, outsize: 120
unique: 5, opcode: OPENDIR (27), nodeid: 1, insize: 48, pid: 17275
opendir flags: 0x18800 /
[INF] s3fs.cpp:s3fs_opendir(2278): [path=/][flags=100352]
[DBG] s3fs.cpp:check_object_access(560): [path=/]
[DBG] s3fs.cpp:get_object_attribute(406): [path=/]
[DBG] s3fs.cpp:check_parent_object_access(666): [path=/]
   opendir[0] flags: 0x18800 /
   unique: 5, success, outsize: 32
unique: 6, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 17275
readdir[0] from 0
[INF] s3fs.cpp:s3fs_readdir(2429): [path=/]
[DBG] s3fs.cpp:check_object_access(560): [path=/]
[DBG] s3fs.cpp:get_object_attribute(406): [path=/]
[INF]   s3fs.cpp:list_bucket(2474): [path=/]
[INF]       curl.cpp:ListBucketRequest(2943): [tpath=/]
[DBG] curl.cpp:GetHandler(283): Get handler from pool: 31
[INF]       curl.cpp:prepare_url(4221): URL is http://centos.com:35357/v3/dhanu?delimiter=/&max-keys=1000&prefix=
[INF]       curl.cpp:prepare_url(4253): URL changed is http://dhanu.centos.com:35357/v3?delimiter=/&max-keys=1000&prefix=
[INF]       curl.cpp:insertV4Headers(2274): computing signature [GET] [/] [delimiter=/&max-keys=1000&prefix=] []
[INF]       curl.cpp:url_to_host(100): url is http://centos.com:35357/v3
[DBG] curl.cpp:RequestPerform(1930): connecting to URL http://dhanu.centos.com:35357/v3?delimiter=/&max-keys=1000&prefix=
* Found bundle for host dhanu.centos.com: 0x7fbf1817ad50
* Connection 0 seems to be dead!
* Closing connection 0
* About to connect() to dhanu.centos.com port 35357 (#1)
*   Trying 192.168.12.175...
* Connected to dhanu.centos.com (192.168.12.175) port 35357 (#1)
> GET /v3?delimiter=/&max-keys=1000&prefix= HTTP/1.1
User-Agent: s3fs/1.80 (commit hash 94ddcb8; OpenSSL)
Accept: */*
Authorization: AWS4-HMAC-SHA256 Credential=672806275f1141ecb687197086b43bb8/20170410/RegionOne/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=a94f05d03d2efad309c41033b6d6f0c88b420262f57b11b751bf1e1b2c574382
host: dhanu.centos.com:35357
x-amz-content-sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz-date: 20170410T084331Z

< HTTP/1.1 200 OK
< Date: Mon, 10 Apr 2017 08:43:31 GMT
< Server: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5
< Vary: X-Auth-Token
< x-openstack-request-id: req-b68d8888-1694-4afe-8d82-7e4783580db1
< Content-Length: 256
< Content-Type: application/json
<
* Connection #1 to host dhanu.centos.com left intact
[INF]       curl.cpp:RequestPerform(1947): HTTP response code 200
:1: parser error : Start tag expected, '<' not found
{"version": {"status": "stable", "updated": "2016-04-04T00:00:00Z", "media-types
^
[ERR] s3fs.cpp:list_bucket(2516): xmlReadMemory returns with error.
[DBG] curl.cpp:ReturnHandler(306): Return handler to pool: 31
[ERR] s3fs.cpp:s3fs_readdir(2437): list_bucket returns error(-1).
   unique: 6, error: -1 (Operation not permitted), outsize: 16
unique: 7, opcode: RELEASEDIR (29), nodeid: 1, insize: 64, pid: 0
   unique: 7, success, outsize: 16

We tried multiple options allow_other, umask ,.... but in vain.... Please check and let me know..

If need anything else just let me know...

Originally created by @janibashamd on GitHub (Apr 10, 2017). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/561 I installed s3fs and configured it successfully. Later i added my local swift container to local mount point. I can't view or create new files in this location. #### 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._ - Version of s3fs being used (s3fs --version) - V1.80 - Version of fuse being used (pkg-config --modversion fuse) - 2.9.2 - System information (uname -a) - Linux centos 3.10.0-514.6.2.el7.x86_64 #1 SMP Thu Feb 23 03:04:39 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux - Distro (cat /etc/issue) - \S Kernel \r on an \m - s3fs command line used (if applicable) **s3fs dhanu /mnt/s3fs -o passwd_file=passwd -o url=http://centos.com:35357/v3 -o endpoint=RegionOne -d -d -f -o f2 -o curldbg** - s3fs syslog messages (grep s3fs /var/log/syslog, or s3fs outputs) ``` [CRT] s3fs.cpp:set_s3fs_log_level(254): change debug level from [CRT] to [INF] [CRT] s3fs.cpp:set_s3fs_log_level(254): change debug level from [INF] to [DBG] [INF] s3fs.cpp:set_mountpoint_attribute(4196): PROC(uid=0, gid=0) - MountPoint(uid=0, gid=0, mode=40755) FUSE library version: 2.9.2 nullpath_ok: 0 nopath: 0 utime_omit_ok: 0 unique: 1, opcode: INIT (26), nodeid: 0, insize: 56, pid: 0 INIT: 7.22 flags=0x0000f7fb max_readahead=0x00020000 [CRT] s3fs.cpp:s3fs_init(3375): init v1.80(commit:94ddcb8) with OpenSSL [INF] s3fs.cpp:s3fs_check_service(3753): check services. [INF] curl.cpp:CheckBucket(2897): check a bucket. [DBG] curl.cpp:GetHandler(283): Get handler from pool: 31 [INF] curl.cpp:prepare_url(4221): URL is http://centos.com:35357/v3/dhanu/ [INF] curl.cpp:prepare_url(4253): URL changed is http://dhanu.centos.com:35357/v3/ [INF] curl.cpp:insertV4Headers(2274): computing signature [GET] [/] [] [] [INF] curl.cpp:url_to_host(100): url is http://centos.com:35357/v3 [DBG] curl.cpp:RequestPerform(1930): connecting to URL http://dhanu.centos.com:35357/v3/ * About to connect() to dhanu.centos.com port 35357 (#0) * Trying 192.168.12.175... * Connected to dhanu.centos.com (192.168.12.175) port 35357 (#0) > GET /v3/ HTTP/1.1 User-Agent: s3fs/1.80 (commit hash 94ddcb8; OpenSSL) Accept: */* Authorization: AWS4-HMAC-SHA256 Credential=672806275f1141ecb687197086b43bb8/20170410/RegionOne/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=e681a5a034a8352b408ea4bef169fc3f271f13fd502ebdc6543dcbd90f228a49 host: dhanu.centos.com:35357 x-amz-content-sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date: 20170410T084029Z < HTTP/1.1 200 OK < Date: Mon, 10 Apr 2017 08:40:29 GMT < Server: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 < Vary: X-Auth-Token < x-openstack-request-id: req-e59cdc34-9e25-48e3-82f6-3bfc030c5520 < Content-Length: 256 < Content-Type: application/json < * Connection #0 to host dhanu.centos.com left intact [INF] curl.cpp:RequestPerform(1947): HTTP response code 200 [DBG] curl.cpp:ReturnHandler(306): Return handler to pool: 31 INIT: 7.19 flags=0x00000019 max_readahead=0x00020000 max_write=0x00020000 max_background=0 congestion_threshold=0 unique: 1, success, outsize: 40 unique: 2, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 17231 getattr / [INF] s3fs.cpp:s3fs_getattr(809): [path=/] [DBG] s3fs.cpp:check_parent_object_access(666): [path=/] [DBG] s3fs.cpp:check_object_access(560): [path=/] [DBG] s3fs.cpp:get_object_attribute(406): [path=/] [DBG] fdcache.cpp:ExistOpen(2048): [path=/][fd=-1][ignore_existfd=false] [DBG] fdcache.cpp:Open(1982): [path=/][size=-1][time=-1] [DBG] s3fs.cpp:s3fs_getattr(833): [path=/] uid=0, gid=0, mode=40700 unique: 2, success, outsize: 120 unique: 3, opcode: STATFS (17), nodeid: 1, insize: 40, pid: 17231 statfs / unique: 3, success, outsize: 96 ``` Mount was successful and can be seen in mount command.. [root@vda pratap]# mount s3fs on /mnt/pratap type fuse.s3fs (rw,relatime,user_id=0,group_id=0,allow_other) ``` [root@centos ~]# df -kh Filesystem Size Used Avail Use% Mounted on /dev/mapper/centos-root 42G 40G 3.0G 93% / devtmpfs 3.8G 0 3.8G 0% /dev tmpfs 3.8G 4.0K 3.8G 1% /dev/shm tmpfs 3.8G 105M 3.7G 3% /run tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup /dev/sdd1 20G 33M 20G 1% /mnt/swiftonfile /dev/sdc 20G 15G 5.4G 73% /srv/node/sdc /dev/sda1 497M 172M 326M 35% /boot /dev/sdb 20G 15G 5.5G 73% /srv/node/sdb /dev/mapper/centos-home 21G 80M 21G 1% /home tmpfs 765M 0 765M 0% /run/user/0 **s3fs** 256T 0 256T 0% /mnt/s3fs ``` Later tied to check files but got below error... #### Details about issue ``` [root@centos ~]# ls /mnt/s3fs ls: reading directory /mnt/s3fs: Operation not permitted ``` Debug output is as below - ``` unique: 4, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 17275 getattr / [INF] s3fs.cpp:s3fs_getattr(809): [path=/] [DBG] s3fs.cpp:check_parent_object_access(666): [path=/] [DBG] s3fs.cpp:check_object_access(560): [path=/] [DBG] s3fs.cpp:get_object_attribute(406): [path=/] [DBG] fdcache.cpp:ExistOpen(2048): [path=/][fd=-1][ignore_existfd=false] [DBG] fdcache.cpp:Open(1982): [path=/][size=-1][time=-1] [DBG] s3fs.cpp:s3fs_getattr(833): [path=/] uid=0, gid=0, mode=40700 unique: 4, success, outsize: 120 unique: 5, opcode: OPENDIR (27), nodeid: 1, insize: 48, pid: 17275 opendir flags: 0x18800 / [INF] s3fs.cpp:s3fs_opendir(2278): [path=/][flags=100352] [DBG] s3fs.cpp:check_object_access(560): [path=/] [DBG] s3fs.cpp:get_object_attribute(406): [path=/] [DBG] s3fs.cpp:check_parent_object_access(666): [path=/] opendir[0] flags: 0x18800 / unique: 5, success, outsize: 32 unique: 6, opcode: READDIR (28), nodeid: 1, insize: 80, pid: 17275 readdir[0] from 0 [INF] s3fs.cpp:s3fs_readdir(2429): [path=/] [DBG] s3fs.cpp:check_object_access(560): [path=/] [DBG] s3fs.cpp:get_object_attribute(406): [path=/] [INF] s3fs.cpp:list_bucket(2474): [path=/] [INF] curl.cpp:ListBucketRequest(2943): [tpath=/] [DBG] curl.cpp:GetHandler(283): Get handler from pool: 31 [INF] curl.cpp:prepare_url(4221): URL is http://centos.com:35357/v3/dhanu?delimiter=/&max-keys=1000&prefix= [INF] curl.cpp:prepare_url(4253): URL changed is http://dhanu.centos.com:35357/v3?delimiter=/&max-keys=1000&prefix= [INF] curl.cpp:insertV4Headers(2274): computing signature [GET] [/] [delimiter=/&max-keys=1000&prefix=] [] [INF] curl.cpp:url_to_host(100): url is http://centos.com:35357/v3 [DBG] curl.cpp:RequestPerform(1930): connecting to URL http://dhanu.centos.com:35357/v3?delimiter=/&max-keys=1000&prefix= * Found bundle for host dhanu.centos.com: 0x7fbf1817ad50 * Connection 0 seems to be dead! * Closing connection 0 * About to connect() to dhanu.centos.com port 35357 (#1) * Trying 192.168.12.175... * Connected to dhanu.centos.com (192.168.12.175) port 35357 (#1) > GET /v3?delimiter=/&max-keys=1000&prefix= HTTP/1.1 User-Agent: s3fs/1.80 (commit hash 94ddcb8; OpenSSL) Accept: */* Authorization: AWS4-HMAC-SHA256 Credential=672806275f1141ecb687197086b43bb8/20170410/RegionOne/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=a94f05d03d2efad309c41033b6d6f0c88b420262f57b11b751bf1e1b2c574382 host: dhanu.centos.com:35357 x-amz-content-sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date: 20170410T084331Z < HTTP/1.1 200 OK < Date: Mon, 10 Apr 2017 08:43:31 GMT < Server: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 < Vary: X-Auth-Token < x-openstack-request-id: req-b68d8888-1694-4afe-8d82-7e4783580db1 < Content-Length: 256 < Content-Type: application/json < * Connection #1 to host dhanu.centos.com left intact [INF] curl.cpp:RequestPerform(1947): HTTP response code 200 :1: parser error : Start tag expected, '<' not found {"version": {"status": "stable", "updated": "2016-04-04T00:00:00Z", "media-types ^ [ERR] s3fs.cpp:list_bucket(2516): xmlReadMemory returns with error. [DBG] curl.cpp:ReturnHandler(306): Return handler to pool: 31 [ERR] s3fs.cpp:s3fs_readdir(2437): list_bucket returns error(-1). unique: 6, error: -1 (Operation not permitted), outsize: 16 unique: 7, opcode: RELEASEDIR (29), nodeid: 1, insize: 64, pid: 0 unique: 7, success, outsize: 16 ``` We tried multiple options allow_other, umask ,.... but in vain.... Please check and let me know.. If need anything else just let me know...
kerem closed this issue 2026-03-04 01:44:21 +03:00
Author
Owner

@gaul commented on GitHub (Apr 14, 2017):

s3fs works with S3-compatible object stores. Swift uses a different protocol. If you want to use s3fs with Swift, you need to install the swift3 middleware or use a translator like S3Proxy.

<!-- gh-comment-id:294187986 --> @gaul commented on GitHub (Apr 14, 2017): s3fs works with S3-compatible object stores. Swift uses a different protocol. If you want to use s3fs with Swift, you need to install the swift3 middleware or use a translator like S3Proxy.
Author
Owner

@janibashamd commented on GitHub (Apr 17, 2017):

Hai Andrew,

We installed swift3 on swift and then tried s3fs but getting same issue - "Operation not permitted" .

[root@vda ~]# ls /mnt/s3fs
ls: reading directory /mnt/s3fs: Operation not permitted

Debug logs is as below -
[ERR] s3fs.cpp:list_bucket(2516): xmlReadMemory returns with error.
[ERR] s3fs.cpp:s3fs_readdir(2437): list_bucket returns error(-1).

We tried with both v2 and v3 still no go... Please let me know if you need anything..

<!-- gh-comment-id:294413684 --> @janibashamd commented on GitHub (Apr 17, 2017): Hai Andrew, We installed swift3 on swift and then tried s3fs but getting same issue - "Operation not permitted" . [root@vda ~]# ls /mnt/s3fs ls: reading directory /mnt/s3fs: Operation not permitted Debug logs is as below - [ERR] s3fs.cpp:list_bucket(2516): xmlReadMemory returns with error. [ERR] s3fs.cpp:s3fs_readdir(2437): list_bucket returns error(-1). We tried with both v2 and v3 still no go... Please let me know if you need anything..
Author
Owner

@gaul commented on GitHub (Apr 20, 2017):

Please include logs with these flags: -d -f -o curldbg

<!-- gh-comment-id:295582177 --> @gaul commented on GitHub (Apr 20, 2017): Please include logs with these flags: `-d -f -o curldbg`
Author
Owner

@janibashamd commented on GitHub (Apr 24, 2017):

Hai Andrew,

I have already provided debug logs in above comments, please check and if needed i will provide them again..

<!-- gh-comment-id:296544449 --> @janibashamd commented on GitHub (Apr 24, 2017): Hai Andrew, I have already provided debug logs in above comments, please check and if needed i will provide them again..
Author
Owner

@ggtakec commented on GitHub (Apr 30, 2017):

@janibashamd
I think that result of list bucket is not xml but it is json format body.

[INF] curl.cpp:RequestPerform(1947): HTTP response code 200
 :1: parser error : Start tag expected, '<' not found
 {"version": {"status": "stable", "updated": "2016-04-04T00:00:00Z", "media-types
 ^
 [ERR] s3fs.cpp:list_bucket(2516): xmlReadMemory returns with error.

Thus s3fs failed to parse body as xml, and exited.

Then I think you need to use middleware or translator for xml, as @andrewgaul says.

<!-- gh-comment-id:298243141 --> @ggtakec commented on GitHub (Apr 30, 2017): @janibashamd I think that result of list bucket is not xml but it is json format body. ``` [INF] curl.cpp:RequestPerform(1947): HTTP response code 200 :1: parser error : Start tag expected, '<' not found {"version": {"status": "stable", "updated": "2016-04-04T00:00:00Z", "media-types ^ [ERR] s3fs.cpp:list_bucket(2516): xmlReadMemory returns with error. ``` Thus s3fs failed to parse body as xml, and exited. Then I think you need to use middleware or translator for xml, as @andrewgaul says.
Author
Owner

@janibashamd commented on GitHub (May 5, 2017):

We already tried installing s3 middleware over swift still facing same issues..

<!-- gh-comment-id:299437710 --> @janibashamd commented on GitHub (May 5, 2017): We already tried installing s3 middleware over swift still facing same issues..
Author
Owner

@gaul commented on GitHub (Feb 2, 2019):

@janibashamd did you ever resolve this issue? Note that S3 functionality is built into newer versions of Swift which also includes fixes for many compatibility issues.

<!-- gh-comment-id:459932720 --> @gaul commented on GitHub (Feb 2, 2019): @janibashamd did you ever resolve this issue? Note that S3 functionality is built into newer versions of Swift which also includes fixes for many compatibility issues.
Author
Owner

@janibashamd commented on GitHub (Feb 2, 2019):

Sorry, right now i am not working in swift. So i didn't verify it.

On Sat, Feb 2, 2019, 09:26 Andrew Gaul <notifications@github.com wrote:

@janibashamd https://github.com/janibashamd did you ever resolve this
issue? Note that S3 functionality is built into newer versions of Swift
which also includes fixes for many compatibility issues.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/s3fs-fuse/s3fs-fuse/issues/561#issuecomment-459932720,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFz8BjZL4yRcXeUSq2ig8EDjUYdLKkQEks5vJQxmgaJpZM4M4fRw
.

<!-- gh-comment-id:459936881 --> @janibashamd commented on GitHub (Feb 2, 2019): Sorry, right now i am not working in swift. So i didn't verify it. On Sat, Feb 2, 2019, 09:26 Andrew Gaul <notifications@github.com wrote: > @janibashamd <https://github.com/janibashamd> did you ever resolve this > issue? Note that S3 functionality is built into newer versions of Swift > which also includes fixes for many compatibility issues. > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <https://github.com/s3fs-fuse/s3fs-fuse/issues/561#issuecomment-459932720>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AFz8BjZL4yRcXeUSq2ig8EDjUYdLKkQEks5vJQxmgaJpZM4M4fRw> > . >
Author
Owner

@gaul commented on GitHub (Mar 17, 2019):

It appears that you connected to the Swift endpoint and not the S3 endpoint. The request s3fs performs unexpected returns a JSON response and not XML:

{"version": {"status": "stable", "updated": "2016-04-04T00:00:00Z", "media-types

Please reopen if you can reproduce these symptoms against the S3 endpoint.

<!-- gh-comment-id:473665752 --> @gaul commented on GitHub (Mar 17, 2019): It appears that you connected to the Swift endpoint and not the S3 endpoint. The request s3fs performs unexpected returns a JSON response and not XML: ``` {"version": {"status": "stable", "updated": "2016-04-04T00:00:00Z", "media-types ``` Please reopen if you can reproduce these symptoms against the S3 endpoint.
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#318
No description provided.