Assets are missing


#1

A case similar to older Discourse Meta. Shortly after uploading an avatar picture file it shows, but gets broken ju st after leaving preference page. Since I dont see any /sideqik/failures folder, I am stuck on this issue. Also, same problem with custom profile picture.


(Mittineague) #2

IIRC there is a type of “this may take a while” message that shows after changing the avatar.

In my experience the few times I have changed an avatar, I did not need to wait to see the change.

But considering there is that message, maybe in some cases it does take a while.

How long has it been since you changed it?


#3

Over 24 hours, @Mittineague. I just don’t think it can take so long :smiley:


(Mittineague) #4

AFAIK some “jobs” are run every 24 hours. eg. checking Badge requirements.
So there could very well be a problem somewhere.

Standard question - Anything in your error logs?


(Sam Saffron) #5

Can you reproduce this issue consistently? What are the steps?


#6

Steps are:

  • opening main page - production.log:
Started GET "/latest.json?order=default&_=1452548720152" for 127.0.0.1 at 2016-01-12 07:14:42 +0000
Processing by ListController#latest as JSON
  Parameters: {"order"=>"default", "_"=>"1452548720152"}
Completed 200 OK in 110ms (Views: 0.3ms | ActiveRecord: 55.6ms)
Started GET "/about/live_post_counts.json?_=1452548720153" for 127.0.0.1 at 2016-01-12 07:14:42 +0000
Processing by AboutController#live_post_counts as JSON
  Parameters: {"_"=>"1452548720153"}
Completed 200 OK in 39ms (Views: 0.5ms | ActiveRecord: 26.5ms)
ActionController::RoutingError (No route matches [GET] "/user_avatar/10.50.108.49:8080/system/25/14_1.png")
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
Job exception: Net::ReadTimeout

notice that avatar picture in HTML code is

<img width="32" height="32" class="avatar" alt="" src="/letter_avatar_proxy/v2/letter/a/cc9497/32.png">

On uploading an avatar picture I can see the photo present in right top corner, production log:

Started GET "/notifications?recent=true&limit=5&_=1452548720154" for 127.0.0.1 a
t 2016-01-12 07:20:49 +0000
Processing by NotificationsController#index as JSON
  Parameters: {"recent"=>"true", "limit"=>"5", "_"=>"1452548720154"}
Completed 200 OK in 87ms (Views: 0.3ms | ActiveRecord: 49.7ms)
Started GET "/users/adas.json?_=1452548720155" for 127.0.0.1 at 2016-01-12 07:20
:53 +0000
Processing by UsersController#show as JSON
  Parameters: {"_"=>"1452548720155", "username"=>"adas"}
Completed 200 OK in 203ms (Views: 0.4ms | ActiveRecord: 131.6ms)
Started GET "/users/adas/staff-info.json?_=1452548720156" for 127.0.0.1 at 2016-
01-12 07:20:53 +0000
Processing by UsersController#staff_info as JSON
  Parameters: {"_"=>"1452548720156", "username"=>"adas"}
Completed 200 OK in 50ms (Views: 0.4ms | ActiveRecord: 32.4ms)
ActionController::RoutingError (No route matches [GET] "/user_avatar/10.50.108.49:8080/adas/45/15_1.png")
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
Started POST "/uploads.json?client_id=5c5b9ff7859e451f9c6344022e41db0e&authenticity_token=5RQh%2FtKrjy75SyQv%2FLeTqrfTYpOIwDYaU2CXvZhD6zY6hkdz1AMkd6xFrN81jp9j5A4vdwLIN%2Flok1LSGGnMfg%3D%3D" for 127.0.0.1 at 2016-01-12 07:21:39 +0000
Processing by UploadsController#create as JSON
  Parameters: {"type"=>"avatar", "user_id"=>"1", "files"=>[#<ActionDispatch::Http::UploadedFile:0x007fe2880ca130 @tempfile=#<Tempfile:/tmp/RackMultipart20160112-132-z6wnbj.jpg>, @original_filename="ja.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"files[]\"; filename=\"ja.jpg\"\r\nContent-Type: image/jpeg\r\n">], "client_id"=>"5c5b9ff7859e451f9c6344022e41db0e", "authenticity_token"=>"5RQh/tKrjy75SyQv/LeTqrfTYpOIwDYaU2CXvZhD6zY6hkdz1AMkd6xFrN81jp9j5A4vdwLIN/lok1LSGGnMfg=="}
Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 1.1ms)
Started PUT "/users/adas/preferences/avatar/pick" for 127.0.0.1 at 2016-01-12 07:21:45 +0000
Processing by UsersController#pick_avatar as */*
  Parameters: {"upload_id"=>"15", "type"=>"uploaded", "username"=>"adas"}
Completed 200 OK in 84ms (Views: 0.4ms | ActiveRecord: 42.3ms)

Then till closing browser tab I do see uploaded avatar, but just closing and reopening a tab makes it missing:


Started GET "/" for 127.0.0.1 at 2016-01-12 07:25:10 +0000
Processing by ListController#latest as HTML
  Rendered list/list.erb within layouts/application (4.4ms)
  Rendered layouts/_head.html.erb (0.4ms)
  Rendered common/_special_font_face.html.erb (0.6ms)
  Rendered common/_discourse_stylesheet.html.erb (0.4ms)
  Rendered application/_header.html.erb (0.3ms)
  Rendered common/_discourse_javascript.html.erb (1.3ms)
Completed 200 OK in 352ms (Views: 27.3ms | ActiveRecord: 206.0ms)
Started GET "/about/live_post_counts.json?_=1452583509258" for 127.0.0.1 at 2016-01-12 07:25:12 +0000
Processing by AboutController#live_post_counts as JSON
  Parameters: {"_"=>"1452583509258"}
Completed 200 OK in 23ms (Views: 0.5ms | ActiveRecord: 13.1ms)
ActionController::RoutingError (No route matches [GET] "/user_avatar/10.50.108.49:8080/adas/32/15_1.png")
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.5/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'