# Reconstrucción fallida (la columna directory\_columns.type no existe)

**URL:** https://meta.discourse.org/t/failed-rebuild-column-directory-columns-type-does-not-exist/194728
**Category:** Self-hosting
**Created:** [22 Junio, 2021 22:04 UTC](https://meta.discourse.org/t/failed-rebuild-column-directory-columns-type-does-not-exist/194728 "2021-06-22T22:04:58Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [22 Junio, 2021 22:04 UTC](https://meta.discourse.org/t/failed-rebuild-column-directory-columns-type-does-not-exist/194728/1 "2021-06-22T22:04:58Z")

</div>

Hola,

Acabo de intentar reconstruir ahora y falló con este error:

I, [2021-06-22T21:57:12.240614 #1] INFO – : \> cd /var/www/discourse && su discourse -c ‘bundle exec rake db:migrate’

2021-06-22 21:57:15.052 UTC [3862] discourse@discourse ERROR: la columna directory\_columns.type no existe en el carácter 66

```plaintext
2021-06-22 21:57:15.052 UTC [3862] discourse@discourse STATEMENT: SELECT "directory_columns"."name" FROM "directory_columns" WHERE "directory_columns"."type" IN (0, 2) AND "directory_columns"."enabled" = TRUE

**FALLO DEL PLUGIN**

No puedes compilar Discourse debido a este error durante la inicialización del plugin:

PG::UndefinedColumn: ERROR: la columna directory_columns.type no existe

LINE 1: ...ry_columns"."name" FROM "directory_columns" WHERE "directory...

```

Creo que esto está relacionado con el plugin Solved en este commit.

> <https://github.com/discourse/discourse-solved/commit/52d46560111267698f370efd1effe65f17bc8370>

No estoy seguro si podría ser un problema de compatibilidad de plugins, ya que aquí en meta funciona.

Uso estos plugins:

```
      - https://github.com/discourse/discourse-solved.git
      - https://github.com/jannolii/discourse-topic-trade-buttons.git
      - https://github.com/discourse/discourse-whos-online.git
      - https://github.com/discourse/discourse-adplugin.git
      - https://github.com/paviliondev/discourse-follow.git
      - https://github.com/discourse/discourse-cakeday.git
      - https://github.com/paviliondev/discourse-locations.git
      - https://github.com/discourse/discourse-docs.git
      - https://github.com/paviliondev/discourse-pm-topic-author.git
      - https://github.com/discourse/discourse-reactions.git

```

Actualización: Intenté comentar uno por uno. Creo que lo encontré. Si comento el plugin Discourse Locations, la reconstrucción se ejecuta con éxito.

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [23 Junio, 2021 11:23 UTC](https://meta.discourse.org/t/failed-rebuild-column-directory-columns-type-does-not-exist/194728/2 "2021-06-23T11:23:11Z")

</div>

Robert compartió una solución en el tema del plugin de ubicaciones para esto, así que creo que este tema podría cerrarse. ¡Gracias! 🙂

> [@Locations Plugin earth\_africa](https://meta.discourse.org/t/locations-plugin/69742/707?u=dodesz):
>
> Hey there, thanks for the report. Yeah, this is a weird one, and actually I’m not fully convinced it’s Locations fault (although we may be following bad practice?!). It appears during plugin Initialisation, a Discourse migration was causing the model (actually the Serializer) and the database to be in an inconsistent state. The solution is really simple: Remove Locations from app.yml Rebuild (the crucial step is the database migration. Once that’s done …) \< – suspect you are here?. Add Loc…

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [25 Junio, 2021 08:47 UTC](https://meta.discourse.org/t/failed-rebuild-column-directory-columns-type-does-not-exist/194728/3 "2021-06-25T08:47:39Z")

</div>


