502 / 504 when approve post


(zh99998) #1

502 or 504 occurs when approve a post. but reject works fine.

other functions of forum works fine too. cpu load not high.

screenshot

logs


(Sam Saffron) #2

Can you clear logs, make it happen again, then paste the text you get in the share screen for log message


(zh99998) #3

unfortunately, seems it doesn’t generate logs.


i also tried tail -f production.log, seems request started but not completed.
this is my production.log from approve request until 502 generated.

Started PUT "/queued_posts/22" for 112.124.17.10 at 2016-02-10 01:43:14 +0000
Processing by QueuedPostsController#update as JSON
  Parameters: {"queued_post"=>{"state"=>"approved"}, "id"=>"22"}
Started GET "/" for 157.122.164.12 at 2016-02-10 01:43:17 +0000
Started GET "/robots.txt" for 207.46.13.49 at 2016-02-10 01:43:24 +0000
Processing by RobotsTxtController#index as */*
  Rendered robots_txt/index.erb (5.4ms)
Completed 200 OK in 253ms (Views: 199.4ms | ActiveRecord: 0.0ms)
Started GET "/t/bug/24424/4" for 203.208.60.118 at 2016-02-10 01:43:28 +0000
Processing by TopicsController#show as HTML
  Parameters: {"slug"=>"bug", "topic_id"=>"24424", "post_number"=>"4"}
  Rendered topics/show.html.erb within layouts/crawler (268.7ms)
  Rendered layouts/_head.html.erb (0.3ms)
  Rendered common/_google_universal_analytics.html.erb (0.2ms)
Completed 200 OK in 943ms (Views: 309.3ms | ActiveRecord: 115.9ms)
Started GET "/thread-58334-1-1.html" for 203.208.60.118 at 2016-02-10 01:43:29 +0000
Processing by DiscuzController#redirect as HTML
  Parameters: {"tid"=>"58334", "page"=>"1", "extra"=>"1"}
Redirected to https://ygobbs.com/t/gy-vs-hx/55788
Completed 301 Moved Permanently in 593ms (ActiveRecord: 410.7ms)
Started GET "/t/gy-vs-hx/55788" for 203.208.60.118 at 2016-02-10 01:43:31 +0000
Processing by TopicsController#show as HTML
  Parameters: {"slug"=>"gy-vs-hx", "topic_id"=>"55788"}
  Rendered topics/show.html.erb within layouts/crawler (151.2ms)
  Rendered layouts/_head.html.erb (0.2ms)
  Rendered common/_google_universal_analytics.html.erb (0.2ms)
Completed 200 OK in 781ms (Views: 158.4ms | ActiveRecord: 344.0ms)
Started GET "/" for 123.125.71.111 at 2016-02-10 01:43:32 +0000
Processing by ListController#latest as */*
  Rendered list/list.erb within layouts/crawler (10.7ms)
  Rendered layouts/_head.html.erb (0.4ms)
  Rendered common/_google_universal_analytics.html.erb (0.6ms)
Completed 200 OK in 157ms (Views: 14.5ms | ActiveRecord: 10.8ms)
Started GET "/t/23912.json?track_visit=true&forceLoad=true&_=1455067111643" for 73.169.148.145 at 2016-02-10 01:43:47 +0000
Processing by TopicsController#show as JSON
  Parameters: {"track_visit"=>"true", "forceLoad"=>"true", "_"=>"1455067111643", "id"=>"23912"}