Geüploade txt-bestand lijkt niet in S3 te staan

AI-generated summary

A user reports that an uploaded .txt file (FileName-555.log.txt) is not appearing in their Discourse support forum, with a 404 error indicating the file does not exist in S3. The file path suggests it should be in a 2X/0/0a40b... folder, but the user confirms no such folders exist—only 3X/x/y folders are present. The user is on Discourse 2.6.0.beta2 and can’t reproduce the issue, but has access to the pod and database. They seek diagnostic steps to resolve the missing file issue. Another user asks how the image in the pod was created, noting that their own test upload worked correctly and redirects to the expected S3 location.

Hello,
Today we got a new support thread in our discourse where someone uploaded a file, (FileName-555.log.txt) However, when we click on the link in the discussion it doesn’t show up.

One thing which is strange is that in S3, we don’t have any 2X folders at all. All of our original files are organisd in 3X/x/y

I was not able to reproduce the problem and when I attempted to upload a file on our support forum it worked fine.

I’m trying to dig into what happened so I’m exec into our discourse pod and I’ve connected to the database. Is there any diagnostic I can run to find out what’s happened to the uploaded file?

We are on discourse version: 2.6.0.beta2

When we click the link to download our file from the discussion we are redirected to S3 instead of seeing the file download:

<Error>
<Code>NoSuchKey</Code>
<Message>The specified key does not exist.</Message>
<Key>
original/2X/0/0a40bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx791.txt
</Key>
<RequestId>79xxxxxxxxxxxxxxxxB9</RequestId>
<HostId>
reZHxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2ZB0=
</HostId>
</Error>

How did you create the image that you’re running in your pod?

I just tested a txt upload on an instance and it gets a URL like https://support.literatecomputing.com/uploads/short-url/blah.txt which redirects to the S3 location.