# Rake users:merge on former admin account throws error

**URL:** <https://meta.discourse.org/t/rake-users-merge-on-former-admin-account-throws-error/108716>\
**Category:** Product Support\
**Tags:** merge-user\
**Created:** [2월 8, 2019, 8:53오후 UTC](https://meta.discourse.org/t/rake-users-merge-on-former-admin-account-throws-error/108716 "2019-02-08T20:53:57Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Jim.Morrison](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jim.morrison/32/162161_2.png) [@Jim.Morrison](https://meta.discourse.org/u/Jim.Morrison)\
**Post date:** [2월 8, 2019, 8:53오후 UTC](https://meta.discourse.org/t/rake-users-merge-on-former-admin-account-throws-error/108716/1 "2019-02-08T20:53:57Z")

</div>

A former admin has left the company and I am trying to merge his old account into his personal account and encountering errors:

```
rake users:merge['source','target']

rake aborted!

ArgumentError: ArgumentError

/var/www/discourse/app/services/post_owner_changer.rb:10:in `initialize'
/var/www/discourse/app/services/user_merger.rb:60:in `new'
/var/www/discourse/app/services/user_merger.rb:60:in `change_post_owner'
/var/www/discourse/app/services/user_merger.rb:48:in `block in move_posts'
/var/www/discourse/app/services/user_merger.rb:46:in `each'
/var/www/discourse/app/services/user_merger.rb:46:in `move_posts'
/var/www/discourse/app/services/user_merger.rb:11:in `merge!'
/var/www/discourse/lib/tasks/users.rake:48:in `block in <top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'

Tasks: TOP => users:merge
(See full trace by running task with --trace)

```

---

_[View the full topic](https://meta.discourse.org/t/rake-users-merge-on-former-admin-account-throws-error/108716)._
