Discourse none admin side not working returning error 500


(Edgar Chris) #1

we have a private discourse community hosted here http://discourse.curtisbrowncreative.co.uk/
now what is interesting is that nothing on that is not on /admin/ route works
for example the main page it self or any other route works
they all return error 500.

The production.log has this in it

Completed 404 Not Found in 56ms (Views: 1.1ms | ActiveRecord: 20.5ms)
Started GET "/extra-locales/admin" for 105.231.204.251 at 2017-10-18 07:02:44 +0000
Processing by ExtraLocalesController#show as */*
  Parameters: {"bundle"=>"admin"}
  Rendering text template
  Rendered text template (0.0ms)
Completed 200 OK in 28ms (Views: 1.4ms | ActiveRecord: 5.3ms)
Started GET "/c/write-to-the-end-of-your-novel/introduction-and-pace" for 105.231.204.251 at 2017-10-18 07:03:04 +0000
Processing by ListController#parent_category_category_latest as HTML
  Parameters: {"parent_category"=>"write-to-the-end-of-your-novel", "category"=>"introduction-and-pace"}
Completed 500 Internal Server Error in 157ms (ActiveRecord: 59.3ms)
NoMethodError (undefined method `name' for nil:NilClass)
/var/www/discourse/app/models/site_setting.rb:61:in `homepage'
Started GET "/c/write-to-the-end-of-your-novel/introduction-and-pace" for 105.231.204.251 at 2017-10-18 07:03:29 +0000
Processing by ListController#parent_category_category_latest as HTML
  Parameters: {"parent_category"=>"write-to-the-end-of-your-novel", "category"=>"introduction-and-pace"}
Completed 500 Internal Server Error in 117ms (ActiveRecord: 45.4ms)
NoMethodError (undefined method `name' for nil:NilClass)
/var/www/discourse/app/models/site_setting.rb:61:in `homepage'
Started GET "/" for 105.231.204.251 at 2017-10-18 07:03:38 +0000
NoMethodError (undefined method `name' for nil:NilClass)
/var/www/discourse/app/models/site_setting.rb:61:in `homepage'
Started GET "/c/uncategorized" for 105.231.204.251 at 2017-10-18 07:03:48 +0000
Processing by ListController#category_default as HTML
  Parameters: {"category"=>"uncategorized"}
Completed 500 Internal Server Error in 139ms (ActiveRecord: 60.6ms)
NoMethodError (undefined method `name' for nil:NilClass)
/var/www/discourse/app/models/site_setting.rb:61:in `homepage' 

the routes are similar for other routes.

The only change that happened was a domain change following this Change the domain name or rename my Discourse?


(Jeff Atwood) #2

Disable all third party plugins. Disable all CSS / HTML customizations. Then rebuild.


(Edgar Chris) #3

hi,
first thank you for such a quick response and suggestion to a fix.
just tried the fix you recommended (Disable all CSS / HTML customizations) it did not work, we also have not installed any third party plugins.
i also tried to load the site in safe mode it did not work


(Jeff Atwood) #4

The site loads fine without errors for me: http://discourse.curtisbrowncreative.co.uk/

Do you mean there are only errors for logged in users?


(Edgar Chris) #5

Hi,
we have actually moved the site to a new server and installed a new discourse instance the troubled instance is hosted here 178.62.101.108


(Jay Pfaffman) #6

So you solved the problem with a clean install?


(Edgar Chris) #7

Hi
No we have not fixed the issue,we changed server and did a clean install because we could not afford the downtime as a result of the issue.
We are still trying to resolve the issue and so far have madr no proggress