Some avatars not appearing after migration off S3

(Gavin The Muss) #1

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.


(Régis Hanol) #3

Are there any errors in ?

(Sam Saffron) #4

How are you hosted ?

(Gavin The Muss) #5

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.

(Régis Hanol) #6

What did you do before it broke?

(Gavin The Muss) #7

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

(Régis Hanol) #8

Migrating from or to S3?

(Gavin The Muss) #9

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

(Dean Taylor) #10

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:

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

Discourse 1.3.0.beta9 - version efb992c9d953c80cc615cd1c609fc2caf2801afc

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

(Gavin The Muss) #11

Nice find, what is the answer?

(Sam Saffron) #12

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

Don’t know why/how

(Gavin The Muss) #13

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

(Sam Saffron) #14

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

(Gavin The Muss) #15

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.

(Gavin The Muss) #16

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?

(Régis Hanol) #17