# Bug - Duplicate Users After Migration from 2.8.2 to 3.21.1

**URL:** <https://discussions.eramba.org/t/bug-duplicate-users-after-migration-from-2-8-2-to-3-21-1/3641>\
**Category:** Forum - Software\
**Tags:** community, bug\
**Created:** [October 3, 2023, 4:52pm UTC](https://discussions.eramba.org/t/bug-duplicate-users-after-migration-from-2-8-2-to-3-21-1/3641 "2023-10-03T16:52:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![7fwvdf7](https://discussions.eramba.org/letter_avatar_proxy/v4/letter/7/e495f1/32.png) [@7fwvdf7](https://discussions.eramba.org/u/7fwvdf7)\
**Post date:** [October 3, 2023, 4:52pm UTC](https://discussions.eramba.org/t/bug-duplicate-users-after-migration-from-2-8-2-to-3-21-1/3641/1 "2023-10-03T16:52:26Z")

</div>

Migration from Eramba Community 2.8.2 (Db schema c2.8.2) to Docker install:

App Version  
3.21.1

DB Schema Version  
20230712135759

Across all module and in all fields that had a user assigned e.g. Owner, Guardian, Reviewer, etc. now show two duplicates e.g.

Owner: Foo Bar (User), Foo Bar (User), Foo Bar (User)

This also shows up in CSV exports of pages.

However, in the edit view there is no duplication. The only way to get rid of those two duplicates in the page views and CSV exports is to assign a different user or group and then re-assign to the original user.

This behaviour does not occur where groups have been assigned.

---

<div class="post-metadata">

**Author:** ![sam](https://discussions.eramba.org/letter_avatar_proxy/v4/letter/s/5f9b8f/32.png) [@sam](https://discussions.eramba.org/u/sam)\
**Post date:** [October 5, 2023, 7:59am UTC](https://discussions.eramba.org/t/bug-duplicate-users-after-migration-from-2-8-2-to-3-21-1/3641/2 "2023-10-05T07:59:47Z")

</div>

Hello,

Please try to run this command from eramba/app/upgrade folder.  
`bin/cake user_fields sync_objects`
