Avatars not always showing up after refresh


(Jeff Atwood) #26

@zogstrip has added content length headers to avatars; this may help.


(Sam Saffron) #27

I think the repro is to ship a whole bunch of images via NGINX SPDY and omit the Content-Length header. I suspect there is some sort of issue there.


(Sam Saffron) #28

I just rebuilt appleseed with the stock HTTPS + SPDY image and @zogstrip’s content length fix, let us know if the issue persists @dictoon


(Franz) #29

Hey guys, thanks for the investigation, I’ll check and let you know how it goes. Thanks again!


(Jeff Atwood) #30

I moved a post to an existing topic: Discourse gravatar processing screws up gamma?


(Franz) #31

I’m sorry to have to report that the issue of avatars failing to load still exists… Let me know if/how I can help.


(Sam Saffron) #32

I just captured and got:

4536199: URL_REQUEST
https://forum.appleseedhq.net/letter_avatar/twak/25/2.png
Start Time: 2014-10-27 11:20:29.984

t=269301718 [st=   0] +REQUEST_ALIVE  [dt=1129]
t=269301718 [st=   0]    URL_REQUEST_DELEGATE  [dt=0]
t=269301718 [st=   0]   +URL_REQUEST_START_JOB  [dt=1129]
                         --> load_flags = 67174401 (MAYBE_USER_GESTURE | VALIDATE_CACHE | VERIFY_EV_CERT)
                         --> method = "GET"
                         --> priority = "IDLE"
                         --> url = "https://forum.appleseedhq.net/letter_avatar/twak/25/2.png"
t=269301718 [st=   0]     +URL_REQUEST_DELEGATE  [dt=4]
t=269301718 [st=   0]        DELEGATE_INFO  [dt=4]
                             --> delegate_info = "extension ModHeader"
t=269301722 [st=   4]     -URL_REQUEST_DELEGATE
t=269301722 [st=   4]      HTTP_CACHE_GET_BACKEND  [dt=0]
t=269301722 [st=   4]      HTTP_CACHE_OPEN_ENTRY  [dt=1]
t=269301723 [st=   5]      HTTP_CACHE_ADD_TO_ENTRY  [dt=0]
t=269301723 [st=   5]      HTTP_CACHE_READ_INFO  [dt=2]
t=269301725 [st=   7]      URL_REQUEST_DELEGATE  [dt=0]
t=269301725 [st=   7]     +HTTP_STREAM_REQUEST  [dt=2]
t=269301727 [st=   9]        HTTP_STREAM_REQUEST_BOUND_TO_JOB
                             --> source_dependency = 4536230 (HTTP_STREAM_JOB)
t=269301727 [st=   9]     -HTTP_STREAM_REQUEST
t=269301727 [st=   9]     +HTTP_TRANSACTION_SEND_REQUEST  [dt=1]
t=269301727 [st=   9]        HTTP_TRANSACTION_SPDY_SEND_REQUEST_HEADERS
                             --> :host: forum.appleseedhq.net
                                 :method: GET
                                 :path: /letter_avatar/twak/25/2.png
                                 :scheme: https
                                 :version: HTTP/1.1
                                 accept: image/webp,*/*;q=0.8
                                 accept-encoding: gzip,deflate
                                 accept-language: en-US,en;q=0.8
                                 cache-control: max-age=0
                                 cookie: [445 bytes were stripped]
                                 if-modified-since: Wed, 22 Oct 2014 21:55:10 GMT
                                 referer: https://forum.appleseedhq.net/
                                 user-agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.104 Safari/537.36
t=269301728 [st=  10]     -HTTP_TRANSACTION_SEND_REQUEST
t=269301728 [st=  10]     +HTTP_TRANSACTION_READ_HEADERS  [dt=271]
t=269301750 [st=  32]        URL_REQUEST_SET_PRIORITY
                             --> priority = 1
t=269301999 [st= 281]        SPDY_STREAM_ERROR
                             --> description = "ABANDONED (stream_id=43): https://forum.appleseedhq.net/letter_avatar/twak/25/2.png"
                             --> status = -100
                             --> stream_id = 43
t=269301999 [st= 281]        HTTP_TRANSACTION_RESTART_AFTER_ERROR
                             --> net_error = -100 (ERR_CONNECTION_CLOSED)
t=269301999 [st= 281]     -HTTP_TRANSACTION_READ_HEADERS
t=269301999 [st= 281]     +HTTP_STREAM_REQUEST  [dt=359]
t=269302358 [st= 640]        HTTP_STREAM_REQUEST_BOUND_TO_JOB
                             --> source_dependency = 4536326 (HTTP_STREAM_JOB)
t=269302358 [st= 640]     -HTTP_STREAM_REQUEST
t=269302358 [st= 640]     +HTTP_TRANSACTION_SEND_REQUEST  [dt=3]
t=269302358 [st= 640]        HTTP_TRANSACTION_SPDY_SEND_REQUEST_HEADERS
                             --> :host: forum.appleseedhq.net
                                 :method: GET
                                 :path: /letter_avatar/twak/25/2.png
                                 :scheme: https
                                 :version: HTTP/1.1
                                 accept: image/webp,*/*;q=0.8
                                 accept-encoding: gzip,deflate
                                 accept-language: en-US,en;q=0.8
                                 cache-control: max-age=0
                                 cookie: [445 bytes were stripped]
                                 if-modified-since: Wed, 22 Oct 2014 21:55:10 GMT
                                 referer: https://forum.appleseedhq.net/
                                 user-agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.104 Safari/537.36
t=269302361 [st= 643]     -HTTP_TRANSACTION_SEND_REQUEST
t=269302361 [st= 643]     +HTTP_TRANSACTION_READ_HEADERS  [dt=486]
t=269302847 [st=1129]        SPDY_STREAM_ERROR
                             --> description = "ABANDONED (stream_id=7): https://forum.appleseedhq.net/letter_avatar/twak/25/2.png"
                             --> status = -100
                             --> stream_id = 7
t=269302847 [st=1129]     -HTTP_TRANSACTION_READ_HEADERS
                           --> net_error = -100 (ERR_CONNECTION_CLOSED)
t=269302847 [st=1129]   -URL_REQUEST_START_JOB
                         --> net_error = -100 (ERR_CONNECTION_CLOSED)
t=269302847 [st=1129]    URL_REQUEST_DELEGATE  [dt=0]
t=269302847 [st=1129] -REQUEST_ALIVE
                       --> net_error = -100 (ERR_CONNECTION_CLOSED)

So it looks like an abandoned SPDY stream.

What could be causing this?


(Jeff Atwood) #33

Do we also see this in Firefox? I would like to know if it is Chrome specific. Pretty sure IE 11 supports SPDY as well…


(Franz) #34

I confirm that I observe the exact same problem on Firefox 32.0.3.


(Ilya Grigorik) #35

Sounds like an nginx issue. Could be: #428 (SPDY and Proxy Cache prematurely closes connections) – nginx


(Sam Saffron) #36

Nice, so this looks like its fixed in 1.7.3, we ship 1.6.2

What would you recommend

  • Drop SPDY support for now, or
  • Ship our SSL containers with 1.7.6 (which is mainline)

(Ilya Grigorik) #37

Ship 1.7.6… please :smile:


(Sol) #38

SSL / SPDY is too important to skip it even for a while :slight_smile:


(Franz) #39

Thanks all for the investigation. Looking forward to new SSL containers if you decide to follow that path. Is there a simple way to disable SPDY on our side in the meantime?


(Sam Saffron) #40

Our call it to move to mainline NGINX, expect a new image in the next day or so.


(Sam Saffron) #41

Our 1.0.6 base image is now out, it ships with NGINX mainline, so the issue should be resolved.

Upgrading appleseed hq at the moment to confirm @dictoon

Thanks heaps for helping troubleshoot this @igrigorik

To upgrade

cd /var/discourse
git pull
./launcher rebuild app

Multisite configuration with Docker
(Franz) #42

Excellent. Thanks for the stellar support guys. Not that I was expecting any less from this team!


(TheLoneCuber) #43

I’m not sure this is related, but I’m having a heck of time with customised CSS and HTML changes not sticking: I am also running SSL (via CloudFlare).

I’ll add some custom HTML/CSS and the changes stick. Then 5 pageviews later, the custom changes are gone. Then they sometimes come back 10 pageviews laters and/or with a hard refresh. There’s no clear pattern.

Mine is pretty new instance of Discourse, so I’ve only just started customising things. I was having this trouble with 1.1.0.beta7, so upgraded to 1.1.0.beta8 just today. Though it doesn’t seemed to have helped.


Multiple Site Customisations at once
(Franz) #44

For what it’s worth, I witnessed something similar a few weeks ago: my custom header was gone for a while, then magically reappared. I reported the bug in a thread with title “Custom header has disappeared after last update” (Discourse Meta), however it seems that thread was deleted?

It probably makes sense to switch to a new thread.


(Jeff Atwood) #45