Hi!
I am getting random 404 errors when accessing the content. It just doesn’t make any sense.
I can easily reproduce it by making subsequent requests, say with wget, like this:
$wget https://libp2p.example.com/img/svg/nat-traversal.svg
--2021-12-09 10:36:26-- https://libp2p.example.com/img/svg/nat-traversal.svg
Resolving libp2p.example.com (libp2p.example.com)... [PUBLIC-IP]
Connecting to libp2p.example.com (libp2p.example.com)|[PUBLIC-IP]|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5821 (5,7K) [image/svg+xml]
Saving to: ‘nat-traversal.svg’
nat-traversal.svg 100%[=============================================================>] 5,68K --.-KB/s in 0s
2021-12-09 10:36:26 (313 MB/s) - ‘nat-traversal.svg’ saved [5821/5821]
$wget https://libp2p.example.com/img/svg/nat-traversal.svg
--2021-12-09 10:36:28-- https://libp2p.example.com/img/svg/nat-traversal.svg
Resolving libp2p.example.com (libp2p.example.com)... [PUBLIC-IP]
Connecting to libp2p.example.com (libp2p.example.com)|[PUBLIC-IP]|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5821 (5,7K) [image/svg+xml]
Saving to: ‘nat-traversal.svg.1’
nat-traversal.svg.1 100%[=============================================================>] 5,68K --.-KB/s in 0,002s
2021-12-09 10:36:28 (3,17 MB/s) - ‘nat-traversal.svg.1’ saved [5821/5821]
$wget https://libp2p.example.com/img/svg/nat-traversal.svg
--2021-12-09 10:36:30-- https://libp2p.example.com/img/svg/nat-traversal.svg
Resolving libp2p.example.com (libp2p.example.com)... [PUBLIC-IP]
Connecting to libp2p.example.com (libp2p.example.com)|[PUBLIC-IP]|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5821 (5,7K) [image/svg+xml]
Saving to: ‘nat-traversal.svg.2’
nat-traversal.svg.2 100%[=============================================================>] 5,68K --.-KB/s in 0s
2021-12-09 10:36:30 (572 MB/s) - ‘nat-traversal.svg.2’ saved [5821/5821]
$wget https://libp2p.example.com/img/svg/nat-traversal.svg
--2021-12-09 10:36:35-- https://libp2p.example.com/img/svg/nat-traversal.svg
Resolving libp2p.example.com (libp2p.example.com)... [PUBLIC-IP]
Connecting to libp2p.example.com (libp2p.example.com)|[PUBLIC-IP]|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2021-12-09 10:36:35 ERROR 404: Not Found.
The previous log has been anonymized. I simply mounted libp2p.io on my ipfs gateway/dns.
As you can see the last of subsequent requests responds with 404.
Just making a few requests and eventually 404 comes. Looks like when the IPFS gateway has not been accessed for a while the error is most probable. Happens with pinned content too.
I serve a couple of sites and uptime robot reports 99.3% updatime with frequest 404s on the test url (index).
I use dockerized go-ipfs, latest published image.
Any idea of what could be going on?