Some avatars not appearing after migration off S3

All my avatars look like this:


I am running:


What info do I need to collect to get to the problem and fix it?

Thanks in advance.

Gav

Are there any errors in http://your.discourse.org/logs ?

How are you hosted ?

1 Like

Hi Both,

A tonne of errors saying it couldnt find it

So I took the bottom example, and it is on my server. @sam I am on Digital Ocean.

What did you do before it broke?

s3 migrate is the last thing I did. I have not given the site the love and attention it has needed recently.

Migrating from or to S3?

Away from S3, to local disk (I assume), please accept my apologies on the lack of clarity there @zogstrip.

A quick look at the “blank” avatar images reveals they are 1x1 pixel gifs…
… all the user_avatar's are broken all the letter_avatar ones are fine.

One example:
http://forum.ssrcg.com/user_avatar/forum.ssrcg.com/dayc/25/1185.png

Here is the decompressed output, note the content type image/png for the 1x1 pixel gif.

Running:
Discourse 1.3.0.beta9 - https://github.com/discourse/discourse version efb992c9d953c80cc615cd1c609fc2caf2801afc

I love the way that delivering a 1x1 pixel gif compressed takes 95 bytes, uncompressed it’s 84 (including headers)

1 Like

Nice find, what is the answer?

It simply looks like a big pile of images are missing from the uploads dir

Don’t know why/how

I tried to upload a new one and it didnt work…

There is a rake task that scrubs out invalid images, how many avatars are we talking here?

What is the rake task?

We’re a small community, and if I just take my usual cannon approach and do it they wont object.

1 Like

I am still having this issue, if I copy the URL from one of the errors in /logs it shows the image.

What should I do? Can I go back to S3? If so how?