# S3QL with Storj S3 gateway

**URL:** <https://forum.storj.io/t/s3ql-with-storj-s3-gateway/14191>\
**Category:** Developer Discussions\
**Tags:** s3-gateway\
**Created:** [June 8, 2021, 4:42pm UTC](https://forum.storj.io/t/s3ql-with-storj-s3-gateway/14191 "2021-06-08T16:42:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![xtrmrider](https://storj.bcdn.literatehosting.com/letter_avatar/xtrmrider/32/6_449c533f586939b6e5f246632a46421f.png) [@xtrmrider](https://forum.storj.io/u/xtrmrider)\
**Post date:** [June 8, 2021, 4:42pm UTC](https://forum.storj.io/t/s3ql-with-storj-s3-gateway/14191/1 "2021-06-08T16:42:29Z")

</div>

Hello,  
I tried to mount a s3ql ([GitHub - s3ql/s3ql: a full featured file system for online data storage](https://github.com/s3ql/s3ql)) filesystem with Storj S3 Gateway.

For that purpose, I used the s3c backend and tried to build the FS with:

> mkfs.s3ql --debug --plain s3c://gateway.eu1.storjshare.io/s3ql/

This ends with an error:

> Traceback (most recent call last):  
> File “/usr/bin/mkfs.s3ql”, line 11, in   
> load\_entry\_point(‘s3ql==3.3.2’, ‘console\_scripts’, ‘mkfs.s3ql’)()  
> File “/usr/lib/s3ql/s3ql/mkfs.py”, line 159, in main  
> dump\_and\_upload\_metadata(backend, db, param)  
> File “/usr/lib/s3ql/s3ql/metadata.py”, line 313, in dump\_and\_upload\_metadata  
> upload\_metadata(backend, fh, param)  
> File “/usr/lib/s3ql/s3ql/metadata.py”, line 327, in upload\_metadata  
> cycle\_metadata(backend)  
> File “/usr/lib/s3ql/s3ql/metadata.py”, line 135, in cycle\_metadata  
> cycle\_fn(“s3ql\_metadata\_new”, “s3ql\_metadata”)  
> File “/usr/lib/s3ql/s3ql/backends/comprenc.py”, line 310, in copy  
> self.\_copy\_or\_rename(src, dest, rename=False, metadata=metadata)  
> File “/usr/lib/s3ql/s3ql/backends/comprenc.py”, line 343, in \_copy\_or\_rename  
> self.backend.copy(src, dest, metadata=meta\_raw)  
> File “/usr/lib/s3ql/s3ql/backends/common.py”, line 108, in wrapped  
> return method(\*a, \*\*kw)  
> File “/usr/lib/s3ql/s3ql/backends/s3c.py”, line 413, in copy  
> resp = self.\_do\_request(‘PUT’, ‘/%s%s’ % (self.prefix, dest), headers=headers)  
> File “/usr/lib/s3ql/s3ql/backends/s3c.py”, line 528, in \_do\_request  
> self.\_parse\_error\_response(resp)  
> File “/usr/lib/s3ql/s3ql/backends/s3c.py”, line 562, in \_parse\_error\_response  
> raise get\_S3Error(tree.findtext(‘Code’), tree.findtext(‘Message’), resp.headers)  
> s3ql.backends.s3c.S3Error: NotImplemented: A header you provided implies functionality that is not implemented

Nevertheless I tried with a local S3 gateway.

> mkfs.s3ql --debug --plain s3c://127.0.0.1:7777/s3ql/

With: `backend-options: no-ssl`

Returned without error but when I try to mount the FS I get an error:

> $ mount.s3ql --debug s3c://127.0.0.1:7777/s3ql/ ./s3ql  
> Using 4 upload threads.  
> Autodetected 1048532 file descriptors available for cache entries  
> ERROR: No S3QL file system found at given storage URL.

Wouldn’t it be nice to be able to mount an unlimited filesystem to store any data from any application?

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [June 8, 2021, 9:38pm UTC](https://forum.storj.io/t/s3ql-with-storj-s3-gateway/14191/2 "2021-06-08T21:38:11Z")

</div>

Hello @xtrmrider ,  
Welcome to the forum!

Please, use `s3fs` or `rclone mount` instead.  
The `rclone` could be [configured natively](https://docs.storj.io/how-tos/sync-files-with-rclone/rclone-with-native-integration) with client-side encryption.

---

<div class="post-metadata">

**Author:** ![xtrmrider](https://storj.bcdn.literatehosting.com/letter_avatar/xtrmrider/32/6_449c533f586939b6e5f246632a46421f.png) [@xtrmrider](https://forum.storj.io/u/xtrmrider)\
**Post date:** [June 10, 2021, 9:37am UTC](https://forum.storj.io/t/s3ql-with-storj-s3-gateway/14191/3 "2021-06-10T09:37:36Z")

</div>

Hello @Alexey ,

Thank you for your answer.

I tried `s3fs` but it gives poor performances and user experience.

`rclone mount` is working great with native integration (even if it still refer to tardigarde…) but it gets error when copying files to the mounted drive when using S3 gateway.

Anyway, the native `rclone mount` seems very promising.  
Browsing is fluid and user experience is good.

I originaly wanted to use `s3ql` for the caching capability.

What would you advice to save bandwidth for multiple access to a file with `rclone` ?

---

<div class="post-metadata">

**Author:** ![xtrmrider](https://storj.bcdn.literatehosting.com/letter_avatar/xtrmrider/32/6_449c533f586939b6e5f246632a46421f.png) [@xtrmrider](https://forum.storj.io/u/xtrmrider)\
**Post date:** [June 10, 2021, 9:49am UTC](https://forum.storj.io/t/s3ql-with-storj-s3-gateway/14191/4 "2021-06-10T09:49:30Z")

</div>

In fact `rclone mount` with `--vfs-cache-mode full` gives really nice user experience!

I will be able to continue my setup of a Piwigo server with unlimited storage on a very small VPS ! (Alternative to new policy of google photo…)

---

<div class="post-metadata">

**Author:** ![wthorp](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/wthorp/32/1139_2.png) [@wthorp](https://forum.storj.io/u/wthorp)\
**Post date:** [June 22, 2021, 12:50pm UTC](https://forum.storj.io/t/s3ql-with-storj-s3-gateway/14191/5 "2021-06-22T12:50:05Z")

</div>

Its currently a known issue that s3ql does not work with Storj Gateways, because it requires a features of S3 that we do not currently support (server side copies). We want to make sure we get this feature correct, so this may take some time to resolve. It is definitely on the roadmap though!
