# Migración a un nuevo servidor: error con la base de datos

**URL:** <https://meta.discourse.org/t/moving-to-a-new-server-error-with-database/149027>\
**Category:** Self-hosting\
**Created:** [23 Abril, 2020 17:01 UTC](https://meta.discourse.org/t/moving-to-a-new-server-error-with-database/149027 "2020-04-23T17:01:52Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![nevscope](https://avatars.discourse-cdn.com/v4/letter/n/2bfe46/32.png) [@nevscope](https://meta.discourse.org/u/nevscope)\
**Post date:** [23 Abril, 2020 17:01 UTC](https://meta.discourse.org/t/moving-to-a-new-server-error-with-database/149027/1 "2020-04-23T17:01:52Z")

</div>

Estamos intentando migrar todo a un nuevo servidor. Después de la migración, aparece este mensaje en la parte superior:

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/5/f52093bbc2a32b75469c4ac7bb93bd0376fa133c.png)

Cuando intento ejecutar lo siguiente dentro de la aplicación:

```
  # sudo ./launcher enter app
  # rails c
  > user = User.find_by_email("<admin_email>")
  > user.admin = true
  > user.save`

```

Recibo el siguiente error:

> ActiveModel::MissingAttributeError: no se puede escribir el atributo desconocido ``  
> desde /var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activemodel-6.0.2.2/lib/active\_model/attribute.rb:206:in `with_value_from_database' Causado por ActiveRecord::StatementInvalid: PG::SyntaxError: ERROR: identificador delimitado de longitud cero en o cerca de """" LINE 1: ... = '2020-04-23 16:30:36.173916' WHERE "site_settings"."" = 3 ^ desde /var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rack-mini-profiler-2.0.1/lib/patches/db/pg.rb:69:in `exec\_params’  
> Causado por PG::SyntaxError: ERROR: identificador delimitado de longitud cero en o cerca de “”“”  
> LINE 1: … = ‘2020-04-23 16:30:36.173916’ WHERE “site\_settings”.“” = 3  
> ^  
> desde /var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rack-mini-profiler-2.0.1/lib/patches/db/pg.rb:69:in `exec\_params’

¿Alguna idea sobre cómo finalizar la instalación? Podría parecer que una tabla está corrupta.

---

_[View the full topic](https://meta.discourse.org/t/moving-to-a-new-server-error-with-database/149027)._
