Request signature we calculated does not match (bis) [chunked-upload]

Same as these (which, sadly, were automatically closed before obtaining an answer):

After further investigation we found that “small files” (under the 100 MB) upload successfully.
But as soon as a file needs chunking we starting getting the AWS upload error.

@charles ? (Pretty sure it’s a common and easily reproducible [still, very annoying] bug)

Hi Raf,
can you tell (again?) more about your proxy. This is 99% of the time an issue with the request Host header being carried out through a proxy.
-c

No proxy (except Cloudflare). It’s all within cells Go binary (including SSL), no Apache nor Nginx nor docker involved.
(Is there a ./cells command to dump the internal httpd configuration if that’s of any use for you?)

ping :wink: @charles
(Sorry, not sure how should I ring the bell)

sorry @drzraf :slight_smile: Covid is hitting the team …
How do you access to the instance, with an IP or a domain ? In the latter case, did you properly configure the external URL with cells configure sites?

Confirmat quod non necat.

cells is using a domain-name (and everything is working fine except chunked-upload)
I never ran cells configure sites since I upgraded from a previous v2 version where this command was not necessary.

I think my installation was:
cells install --bind mydomain.org:443 --external https://mydomain.org --le_email foo@mydomain.org --le_agree true

But running now ./cells configure sites gives

The following sites are currently defined:
+---+--------------------------+--------------+--------------------------+
| # |               BIND(S)    |     TLS      |             EXTERNAL UR  |
+---+--------------------------------------+--------------+--------------+
| 0 | https://mydomain.org:443 | Lets Encrypt | https://mydomain.org:443 |
+---+--------------------------+--------------+--------------------------+

Regarding DNS,
resolveip mydomain.org resolves to Cloudflare addresses.

And my /etc/hosts mostly only mentions:

127.0.0.1 localhost
127.0.1.1 pydio

On eth0 I added a 10.0.0.1/8 eth0:1 alias (as mentioned at Unable to successfully run Cells 3.0 / Websocket error / Internal Server Error - #3 by soderberg)

Sadly, since cells is handling it’s SSL decryption itself I can’t hook and provide you tcpdump/unencrypted traffic/HTTP headers as received by it (unless there is a built-in detailed logging mechanism inside cells)

Can you change the external to https://mydomain.org without port?
Can you start once in debug mode to print out the caddy config ?
-c

Dear charles,
Thank you for the hint. I updated to 3.0.5 (from 3.0.1) and changed this setting.

I think it solved this problem. I’m now beaten by two others problem I’ll report in another post.