# הגירה נכשלה בשדרוג לגרסה האחרונה מלפני כשלושה שבועות

**URL:** <https://meta.discourse.org/t/migration-failed-upgrading-to-latest-from-3-weeks-ago/211450>\
**Category:** Self-hosting\
**Created:** [8 בדצמבר,‏ 2021,‏ 6:02am UTC](https://meta.discourse.org/t/migration-failed-upgrading-to-latest-from-3-weeks-ago/211450 "2021-12-08T06:02:36Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![carlokok](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/carlokok/32/115951_2.png) [@carlokok](https://meta.discourse.org/u/carlokok)\
**Post date:** [8 בדצמבר,‏ 2021,‏ 6:02am UTC](https://meta.discourse.org/t/migration-failed-upgrading-to-latest-from-3-weeks-ago/211450/1 "2021-12-08T06:02:36Z")

</div>

1 migrations failed!

```plaintext
Failed to migrate default
#<StandardError: An error has occurred, all later migrations canceled:

PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_user_emails_on_email"
DETAIL: Key (lower(email::text))=(talk@remobjects.com<mailto:talk@remobjects.com) already exists.
>
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rack-mini-profiler-2.3.3/lib/patches/db/pg.rb:110:in `exec'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rack-mini-profiler-2.3.3/lib/patches/db/pg.rb:110:in `async_exec'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/activerecord-6.1.4.1/lib/active_record/connection_adapters/postgresql/database_st

== 20211201221028 MigrateEmailToNormalizedEmail: migrating ====================
-- execute("UPDATE user_emails\nSET normalized_email = REPLACE(REGEXP_REPLACE(email,'([+@].*)',''),'.','') || REGEXP_REPLACE(email, '[^@]*', '')\nWHERE (normalized_email IS NULL OR normalized_email <> (REPLACE(REGEXP_REPLACE(email,'([+@].*)',''),'.','') || REGEXP_REPLACE(email, '[^@]*', '')))\n AND (id >= -2 AND id < 7155)\n")
Migrating secondsite
Docker Manager: FAILED TO UPGRADE
#<RuntimeError: RuntimeError>

```

Does anyone know what I can do to get past this?

---

_[View the full topic](https://meta.discourse.org/t/migration-failed-upgrading-to-latest-from-3-weeks-ago/211450)._
