# Rclone settier fails with scaleway: EntityTooLarge

**URL:** <https://forum.rclone.org/t/rclone-settier-fails-with-scaleway-entitytoolarge/17384>\
**Category:** Help and Support\
**Created:** [June 23, 2020, 3:32pm UTC](https://forum.rclone.org/t/rclone-settier-fails-with-scaleway-entitytoolarge/17384 "2020-06-23T15:32:41Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![guybrush](https://forum.rclone.org/letter_avatar_proxy/v4/letter/g/4da419/32.png) [@guybrush](https://forum.rclone.org/u/guybrush)\
**Post date:** [June 23, 2020, 3:32pm UTC](https://forum.rclone.org/t/rclone-settier-fails-with-scaleway-entitytoolarge/17384/1 "2020-06-23T15:32:41Z")

</div>

I've set up a scaleway glacier backend which is working well with one exception: settier

```auto
# rclone -v --progress settier STANDARD scaleway:guybrush-scripts/0pdj43lcacui7p71d2cr7uumec 
2020-06-24 01:18:31 ERROR : S3 bucket guybrush-scripts: Failed to do SetTier, EntityTooLarge: Your proposed upload exceeds the maximum allowed object size.

```

I get the same error with move/copy, presumably because glacier backends do not support server-side copy. Why I should get EntityTooLarge for settier is more of a mystery though. I can't see anything about about maximum object size in the scaleway console.

Has anybody seen this before?

Changing an object's storage class in the scaleway console works fine.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [June 23, 2020, 3:50pm UTC](https://forum.rclone.org/t/rclone-settier-fails-with-scaleway-entitytoolarge/17384/2 "2020-06-23T15:50:19Z")

</div>

To change the tier of an object you have to alter the metadata.

The only way of doing this on S3 is to copy the object to a new object then delete the old one - so it is doing a copy.

So the question is why doesn't server side copy or move work?

What version of rclone are you using? With a recent rclone 1.52 this should just work I think.

---

<div class="post-metadata">

**Author:** ![guybrush](https://forum.rclone.org/letter_avatar_proxy/v4/letter/g/4da419/32.png) [@guybrush](https://forum.rclone.org/u/guybrush)\
**Post date:** [June 23, 2020, 4:00pm UTC](https://forum.rclone.org/t/rclone-settier-fails-with-scaleway-entitytoolarge/17384/3 "2020-06-23T16:00:08Z")

</div>

rclone 1.52.1

As far as I was aware, server side copy doesn't work with objects with storage class GLACIER. Well, they don't with Scaleway anyway. Guess I'll have to find some other workaround.

Scaleway have some examples of how to do it with the API/aws tool but I can't post the link to this forum. I was hoping rclone could do it for me.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [June 23, 2020, 4:10pm UTC](https://forum.rclone.org/t/rclone-settier-fails-with-scaleway-entitytoolarge/17384/4 "2020-06-23T16:10:12Z")

</div>

> [@guybrush](#):
>
> As far as I was aware, server side copy doesn't work with objects with storage class GLACIER. Well, they don't with Scaleway anyway. Guess I'll have to find some other workaround.

You can't server side copy them that is true, but if they aren't GLACIER you should be able to server side copy them to GLACIER I think.

> [@guybrush](#):
>
> Scaleway have some examples of how to do it with the API/aws tool but I can't post the link to this forum. I was hoping rclone could do it for me.

That would be interesting to see. I upgraded your account so you can post links 🙂

---

<div class="post-metadata">

**Author:** ![guybrush](https://forum.rclone.org/letter_avatar_proxy/v4/letter/g/4da419/32.png) [@guybrush](https://forum.rclone.org/u/guybrush)\
**Post date:** [June 23, 2020, 4:18pm UTC](https://forum.rclone.org/t/rclone-settier-fails-with-scaleway-entitytoolarge/17384/5 "2020-06-23T16:18:20Z")

</div>

> **[Object Storage - C14 Cold Storage Class](https://www.scaleway.com/en/docs/object-storage-glacier/#-Managing-Definitive-Restore-through-the-API)**
>
> Learn how to use the Glacier Storage Class with C14 Cold Storage

---

<div class="post-metadata">

**Author:** ![guybrush](https://forum.rclone.org/letter_avatar_proxy/v4/letter/g/4da419/32.png) [@guybrush](https://forum.rclone.org/u/guybrush)\
**Post date:** [June 23, 2020, 4:22pm UTC](https://forum.rclone.org/t/rclone-settier-fails-with-scaleway-entitytoolarge/17384/6 "2020-06-23T16:22:06Z")

</div>

Here's the corresponding man page from AWS:  
[https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3api/restore-object.html](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3api/restore-object.html)

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [June 23, 2020, 4:31pm UTC](https://forum.rclone.org/t/rclone-settier-fails-with-scaleway-entitytoolarge/17384/7 "2020-06-23T16:31:09Z")

</div>

Interesting thanks.

Rclone doesn't yet support the Restore Object API. THere is a place it could go though in a backend command so maybe it should?

What I think should work is if you have an object of normal Tier - rclone should be able to set it to GLACIER for you I think.

---

<div class="post-metadata">

**Author:** ![guybrush](https://forum.rclone.org/letter_avatar_proxy/v4/letter/g/4da419/32.png) [@guybrush](https://forum.rclone.org/u/guybrush)\
**Post date:** [June 23, 2020, 4:57pm UTC](https://forum.rclone.org/t/rclone-settier-fails-with-scaleway-entitytoolarge/17384/8 "2020-06-23T16:57:08Z")

</div>

yes, this seems to work going from STANDARD to GLACIER

---

<div class="post-metadata">

**Author:** ![guybrush](https://forum.rclone.org/letter_avatar_proxy/v4/letter/g/4da419/32.png) [@guybrush](https://forum.rclone.org/u/guybrush)\
**Post date:** [June 23, 2020, 5:06pm UTC](https://forum.rclone.org/t/rclone-settier-fails-with-scaleway-entitytoolarge/17384/9 "2020-06-23T17:06:29Z")

</div>

AFAICT the modification time is also in metadata. Can rclone read this on GLACIER objects, or is it syncing on size only? The Scaleway console won't let me read metadata on GLACIER objects, but it shows up for NORMAL objects.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [June 23, 2020, 5:13pm UTC](https://forum.rclone.org/t/rclone-settier-fails-with-scaleway-entitytoolarge/17384/10 "2020-06-23T17:13:21Z")

</div>

Great. Do you think settier should know what to do for GLACIER -\> NORMAL? I guess that would be most consistent with the rest of rclone?

Though it is quite a specialised call I think so maybe it should be a different command - what do you think?

Here is the [API call in the Go SDK](https://docs.aws.amazon.com/sdk-for-go/api/service/s3/#S3.RestoreObject)

I think we can ignore the select stuff, the restoring the archive is the stuff we need.

Looks quite complicated!

---

<div class="post-metadata">

**Author:** ![guybrush](https://forum.rclone.org/letter_avatar_proxy/v4/letter/g/4da419/32.png) [@guybrush](https://forum.rclone.org/u/guybrush)\
**Post date:** [June 23, 2020, 5:18pm UTC](https://forum.rclone.org/t/rclone-settier-fails-with-scaleway-entitytoolarge/17384/11 "2020-06-23T17:18:34Z")

</div>

Well, my instinct was "settier NORMAL".

rclone is like a compatibility layer for object stores, so I wouldn't be too fussed about adding some magic to settier. You could always do both, but then you have the problem that a "restore" command might make no sense to some/most backends. It's also asymmetric.. you have "restore" but no "freeze"...

---

<div class="post-metadata">

**Author:** ![guybrush](https://forum.rclone.org/letter_avatar_proxy/v4/letter/g/4da419/32.png) [@guybrush](https://forum.rclone.org/u/guybrush)\
**Post date:** [June 23, 2020, 5:23pm UTC](https://forum.rclone.org/t/rclone-settier-fails-with-scaleway-entitytoolarge/17384/12 "2020-06-23T17:23:05Z")

</div>

s3cmd implementation (python):

> <https://github.com/s3tools/s3cmd/blob/3d4a4caf91582c2a674deaa837a5e07d96510059/S3/S3.py#L800>

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [June 23, 2020, 6:37pm UTC](https://forum.rclone.org/t/rclone-settier-fails-with-scaleway-entitytoolarge/17384/13 "2020-06-23T18:37:36Z")

</div>

I could make a backend specific command quite easily.

Do you think people will want to restore one object or many? I guess I could to restore this key or and sub keys quite easily.

---

<div class="post-metadata">

**Author:** ![guybrush](https://forum.rclone.org/letter_avatar_proxy/v4/letter/g/4da419/32.png) [@guybrush](https://forum.rclone.org/u/guybrush)\
**Post date:** [June 23, 2020, 6:50pm UTC](https://forum.rclone.org/t/rclone-settier-fails-with-scaleway-entitytoolarge/17384/14 "2020-06-23T18:50:22Z")

</div>

My use case is restoring backups, which would be single object, directory, or whole bucket. Single objects can already be done with most web interfaces, so it's the directory/recursive/bucket case that needs tooling.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [June 24, 2020, 10:14am UTC](https://forum.rclone.org/t/rclone-settier-fails-with-scaleway-entitytoolarge/17384/15 "2020-06-24T10:14:09Z")

</div>

I had a go at this here

[https://beta.rclone.org/branch/v1.52.1-111-g58902710-fix-s3-restore-beta/](https://beta.rclone.org/branch/v1.52.1-111-g58902710-fix-s3-restore-beta/) (uploaded in 15-30 mins)

You use it like this (use `rclone backend help s3` to see this help)

I've tested it as far as I think it calls the right API calls, but I haven't restored anything.

Would you be willing to test it some more for me?

Any comments much appreciated!

#### restore

Restore objects from GLACIER to normal storage

```
rclone backend restore remote: [options] [<arguments>+]

```

This command can be used to restore one or more objects from GLACIER  
to normal storage.

Usage Examples:

```
rclone backend restore s3:bucket/path/to/object [-o priority=PRIORITY] [-o lifetime=DAYS]
rclone backend restore s3:bucket/path/to/directory [-o priority=PRIORITY] [-o lifetime=DAYS]
rclone backend restore s3:bucket [-o priority=PRIORITY] [-o lifetime=DAYS]

```

This flag also obeys the filters. Test first with -i/--interactive or --dry-run flags

```
rclone -i backend restore --include "*.txt" s3:bucket/path -o priority=Standard

```

All the objects shown will be marked for restore, then

```
rclone backend restore --include "*.txt" s3:bucket/path -o priority=Standard

```

It returns a list of status dictionaries with Remote and Status  
keys. The Status will be OK if it was successfull or an error message  
if not.

```
[
    {
        "Status": "OK",
        "Path": "test.txt"
    },
    {
        "Status": "OK",
        "Path": "test/file4.txt"
    }
]

```

Options:

- "description": The optional description for the job.
- "lifetime": Lifetime of the active copy in days
- "priority": Priority of restore: Standard|Expedited|Bulk

---

<div class="post-metadata">

**Author:** ![guybrush](https://forum.rclone.org/letter_avatar_proxy/v4/letter/g/4da419/32.png) [@guybrush](https://forum.rclone.org/u/guybrush)\
**Post date:** [June 24, 2020, 12:03pm UTC](https://forum.rclone.org/t/rclone-settier-fails-with-scaleway-entitytoolarge/17384/16 "2020-06-24T12:03:48Z")

</div>

I'm getting timeouts with this, though I suspect it is a problem with Scaleway. Same thing happened using s3cmd. I've submitted a ticket to Scaleway. Will keep you posted.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [June 24, 2020, 12:53pm UTC](https://forum.rclone.org/t/rclone-settier-fails-with-scaleway-entitytoolarge/17384/17 "2020-06-24T12:53:21Z")

</div>

> [@guybrush](#):
>
> Will keep you posted.

Thank you - looking forward to seeing how it turns out!

---

<div class="post-metadata">

**Author:** ![guybrush](https://forum.rclone.org/letter_avatar_proxy/v4/letter/g/4da419/32.png) [@guybrush](https://forum.rclone.org/u/guybrush)\
**Post date:** [June 24, 2020, 4:13pm UTC](https://forum.rclone.org/t/rclone-settier-fails-with-scaleway-entitytoolarge/17384/18 "2020-06-24T16:13:12Z")

</div>

I tried using a bucket in Scaleway's nl-ams region instead of fr-par, and it worked fine. Scaleway seem to have a few issues with their service. Unfortunately I can't give it a more thorough test until they fix their fr-par endpoint.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [June 25, 2020, 8:40pm UTC](https://forum.rclone.org/t/rclone-settier-fails-with-scaleway-entitytoolarge/17384/19 "2020-06-25T20:40:24Z")

</div>

I've decided to merge this into the [the latest beta](https://beta.rclone.org) now given that it has had light testing! If any problems come up, please let me know and I'll fix them before the release.

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [August 25, 2020, 4:40pm UTC](https://forum.rclone.org/t/rclone-settier-fails-with-scaleway-entitytoolarge/17384/20 "2020-08-25T16:40:25Z")

</div>

Closed on August 25, 2020, 4:40pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
