# Erro HTTP 500 na página principal do fórum após atualização do Discourse

**URL:** https://meta.discourse.org/t/http-error-500-at-main-forum-page-after-discourse-upgrade/201739
**Category:** Support
**Created:** [25 Agosto , 2021 21:53 UTC](https://meta.discourse.org/t/http-error-500-at-main-forum-page-after-discourse-upgrade/201739 "2021-08-25T21:53:10Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![lubezniy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lubezniy/32/137694_2.png) [@lubezniy](https://meta.discourse.org/u/lubezniy)
#### Post date: [25 Agosto , 2021 21:53 UTC](https://meta.discourse.org/t/http-error-500-at-main-forum-page-after-discourse-upgrade/201739/1 "2021-08-25T21:53:10Z")

</div>

Olá,

Atualizamos nosso fórum hoje para a versão mais recente, mas recebemos um erro HTTP 500 na página raiz. A seguinte mensagem aparece no arquivo production.log dentro do container quando a página raiz é aberta com erro 500:

Started GET “/” for 141.8.142.82 at 2021-08-25 21:44:06 +0000  
Processing by CategoriesController#index as _/_  
Completed 500 Internal Server Error in 163ms (ActiveRecord: 0.0ms | Allocations: 23021)  
StandardError (Attempted to access the non preloaded custom field ‘TopicEventStartsAt’. This is disallowed to prevent N+1 queries.)  
app/models/concerns/has\_custom\_fields.rb:173:in `[]' lib/plugin/instance.rb:284:in `public\_send’  
lib/plugin/instance.rb:284:in `block (2 levels) in add_to_class' (eval):47:in `\_fast\_attributes’  
lib/freedom\_patches/ams\_include\_without\_root.rb:57:in `include!' app/controllers/categories_controller.rb:61:in `block (2 levels) in index’  
app/controllers/categories\_controller.rb:40:in `index' app/controllers/application_controller.rb:397:in `block in with\_resolved\_locale’  
app/controllers/application\_controller.rb:397:in `with_resolved_locale' lib/middleware/omniauth_bypass_middleware.rb:71:in `call’  
lib/content\_security\_policy/middleware.rb:12:in `call' lib/middleware/anonymous_cache.rb:353:in `call’  
config/initializers/008-rack-cors.rb:25:in `call' config/initializers/100-quiet_logger.rb:23:in `call’  
config/initializers/100-silence\_logger.rb:31:in `call' lib/middleware/enforce_hostname.rb:23:in `call’  
lib/middleware/request\_tracker.rb:187:in `call’

Tentei recriar o container, mas o problema não desapareceu. A página de administração funciona sem nenhum problema. O que devemos fazer para reparar o fórum?

Estamos usando os seguintes plug-ins (todos funcionavam corretamente antes da conclusão da atualização):

```
      - git clone https://github.com/discourse/docker_manager.git
      - git clone https://github.com/angusmcleod/discourse-quick-messages.git
      - git clone https://github.com/davidtaylorhq/discourse-whos-online.git
      - git clone https://github.com/discourse/discourse-adplugin.git
      - git clone https://github.com/Toxuru/discourse-sidebar-categories.git
      - git clone https://github.com/pmusaraj/discourse-sidebar-blocks.git
      - git clone https://github.com/discourse/discourse-tooltips.git
      - git clone https://github.com/discourse/discourse-saved-searches.git
      - git clone https://github.com/davidtaylorhq/discourse-telegram-notifications.git
      - git clone https://github.com/discourse/discourse-calendar.git
      - git clone https://github.com/discourse/discourse-push-notifications.git
      - git clone https://github.com/joebuhlig/discourse-mlm-daily-summary.git
      - git clone https://github.com/discourse/discourse-solved.git
      - git clone https://github.com/discourse/discourse-hamburger-theme-selector.git
      - git clone https://github.com/discourse/discourse-user-notes.git
      - git clone https://github.com/angusmcleod/discourse-question-answer
      - git clone https://github.com/discourse/discourse-cakeday.git
      - git clone https://github.com/discourse/discourse-yearly-review.git
      - git clone https://github.com/discourse/discourse-subscriptions.git
      - git clone https://github.com/discourse/discourse-signatures.git
      - git clone https://github.com/discourse/discourse-sitemap.git
      - git clone https://github.com/merefield/discourse-user-network-vis.git
      - git clone https://github.com/discourse/discourse-reactions.git
      - git clone https://github.com/discourse/discourse-automation.git
      - git clone https://github.com/discourse/discourse-assign.git

```

---

<div class="post-metadata">

### Author: ![tot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tot/32/105673_2.png) [@tot](https://meta.discourse.org/u/tot)
#### Post date: [25 Agosto , 2021 21:58 UTC](https://meta.discourse.org/t/http-error-500-at-main-forum-page-after-discourse-upgrade/201739/2 "2021-08-25T21:58:10Z")

</div>

nosso site [https://club.klerk.ru/](https://club.klerk.ru/)

---

<div class="post-metadata">

### Author: ![justin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justin/32/157614_2.png) [@justin](https://meta.discourse.org/u/justin)
#### Post date: [25 Agosto , 2021 22:01 UTC](https://meta.discourse.org/t/http-error-500-at-main-forum-page-after-discourse-upgrade/201739/3 "2021-08-25T22:01:09Z")

</div>

Estamos cientes e investigando! Parece que pode ser um commit com bug causando o problema.

---

<div class="post-metadata">

### Author: ![justin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justin/32/157614_2.png) [@justin](https://meta.discourse.org/u/justin)
#### Post date: [25 Agosto , 2021 22:06 UTC](https://meta.discourse.org/t/http-error-500-at-main-forum-page-after-discourse-upgrade/201739/4 "2021-08-25T22:06:43Z")

</div>

Identificamos um commit no Solved que pode ter causado um conflito.

> <https://github.com/discourse/discourse-solved/commit/6123f224124a86989763ab5c84f0c5b7faaf68f0>
>
> This reverts commit 556f402db8702bb37c81f69b94d4e871962d8ed8.

Ele foi revertido, então por favor, tente reconstruir e nos avise se continuar a ter problemas.

---

<div class="post-metadata">

### Author: ![lubezniy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lubezniy/32/137694_2.png) [@lubezniy](https://meta.discourse.org/u/lubezniy)
#### Post date: [25 Agosto , 2021 22:16 UTC](https://meta.discourse.org/t/http-error-500-at-main-forum-page-after-discourse-upgrade/201739/5 "2021-08-25T22:16:04Z")

</div>

Muito obrigado. Não temos mais erros.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [24 Setembro , 2021 22:16 UTC](https://meta.discourse.org/t/http-error-500-at-main-forum-page-after-discourse-upgrade/201739/6 "2021-09-24T22:16:18Z")

</div>

Este tópico foi automaticamente fechado 30 dias após a última resposta. Novas respostas não são mais permitidas.
