# Migration failed: relation "user\_required\_fields\_versions" already exists

**URL:** <https://meta.discourse.org/t/migration-failed-relation-user-required-fields-versions-already-exists/325378>\
**Category:** Self-hosting\
**Tags:** unsupported-install\
**Created:** [September 6, 2024, 9:16pm UTC](https://meta.discourse.org/t/migration-failed-relation-user-required-fields-versions-already-exists/325378 "2024-09-06T21:16:58Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![Clo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/clo/32/372138_2.png) [@Clo](https://meta.discourse.org/u/Clo)\
**Post date:** [September 8, 2024, 6:20pm UTC](https://meta.discourse.org/t/migration-failed-relation-user-required-fields-versions-already-exists/325378/18 "2024-09-08T18:20:35Z")

</div>

Yes it does.

I ended up destroying my backup dev site and reinstalling Discourse. It worked fine as the basic installation.

I then installed the plugins and it suddenly gave me the Bad Gateway error again.  
I then started manually uninstalling the plugins to see if one of them might be causing the issue, but this is the error I get:

```plaintext
735:C 08 Sep 2024 18:08:02.491 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=735, just started
735:C 08 Sep 2024 18:08:02.492 # Configuration loaded
735:M 08 Sep 2024 18:08:02.492 * monotonic clock: POSIX clock_gettime
735:M 08 Sep 2024 18:08:02.493 # Warning: Could not create server TCP listening socket *:6379: bind: Address already in use
735:M 08 Sep 2024 18:08:02.493 # Failed listening on port 6379 (TCP), aborting.
I, [2024-09-08T18:08:12.483662 #1] INFO -- : 
I, [2024-09-08T18:08:12.484827 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
rake aborted!
Errno::EPIPE: Broken pipe @ rb_io_flush_raw - <STDOUT> (Errno::EPIPE)

```

It looks like the moment I try to install any plugin, it gives this error and I can’t undo it just by uninstalling the plugin.

Any idea what I should do?

---

_[View the full topic](https://meta.discourse.org/t/migration-failed-relation-user-required-fields-versions-already-exists/325378)._
