# Problema nel fondere account utente, interfaccia web e console Rake

**URL:** <https://meta.discourse.org/t/issue-merging-user-accounts-web-interace-and-rake-console/293938>\
**Category:** Product Support\
**Tags:** merge-user\
**Created:** [2 Febbraio 2024, 5:12pm UTC](https://meta.discourse.org/t/issue-merging-user-accounts-web-interace-and-rake-console/293938 "2024-02-02T17:12:25Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![cmahns](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cmahns/32/329271_2.png) [@cmahns](https://meta.discourse.org/u/cmahns)\
**Post date:** [2 Aprile 2025, 4:53pm UTC](https://meta.discourse.org/t/issue-merging-user-accounts-web-interace-and-rake-console/293938/5 "2025-04-02T16:53:31Z")

</div>

Mi dispiace disturbare di nuovo, ma sta succedendo a un altro utente sulla mia istanza. Log degli errori qui sotto:

> **Log degli errori durante l'esecuzione di rake users:merge**
>
> root@forum-app:/var/www/discourse# rake users:merge[‘NikS’,‘NikS1’] --trace  
> Plugin name is ‘discourse-user-notes’, but plugin directory is named ‘discourse-staff-notes’  
> \*\* Invoke users:merge (first\_time)  
> \*\* Invoke environment (first\_time)  
> \*\* Execute environment  
> \*\* Execute users:merge  
> rake aborted!  
> ArgumentError: topic (ArgumentError)
> 
> ```
> raise ArgumentError.new(arg) if self.instance_variable_get("@#{arg}").blank?
> ^^^^^^^^^^^^^^^^^^^^^^
> 
> ```
> 
> /var/www/discourse/app/services/post\_owner\_changer.rb:12:in `block in initialize' /var/www/discourse/app/services/post_owner_changer.rb:11:in `each’  
> /var/www/discourse/app/services/post\_owner\_changer.rb:11:in `initialize' /var/www/discourse/app/services/user_merger.rb:84:in `new’  
> /var/www/discourse/app/services/user\_merger.rb:84:in `change_post_owner' /var/www/discourse/app/services/user_merger.rb:72:in `block in move\_posts’  
> /var/www/discourse/app/services/user\_merger.rb:70:in `each' /var/www/discourse/app/services/user_merger.rb:70:in `move\_posts’  
> /var/www/discourse/app/services/user\_merger.rb:14:in `merge!' /var/www/discourse/lib/tasks/users.rake:57:in `block in ’  
> /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:279:in `block in execute' /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:279:in `each’  
> /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:279:in `execute' /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:219:in `block in invoke\_with\_call\_chain’  
> /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:199:in `synchronize' /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:199:in `invoke\_with\_call\_chain’  
> /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:188:in `invoke' /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:188:in `invoke\_task’  
> /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:138:in `block (2 levels) in top_level' /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:138:in `each’  
> /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:138:in `block in top_level' /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:147:in `run\_with\_threads’  
> /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:132:in `top_level' /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:83:in `block in run’  
> /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:214:in `standard_exception_handling' /var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/application.rb:80:in `run’  
> bin/rake:13:in `<top (required)>' /usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/lib/bundler/cli/exec.rb:58:in `load’  
> /usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/lib/bundler/cli/exec.rb:58:in `kernel_load' /usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/lib/bundler/cli/exec.rb:23:in `run’  
> /usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/lib/bundler/cli.rb:455:in `exec' /usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/lib/bundler/vendor/thor/lib/thor/command.rb:28:in `run’  
> /usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command' /usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/lib/bundler/vendor/thor/lib/thor.rb:527:in `dispatch’  
> /usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/lib/bundler/cli.rb:35:in `dispatch' /usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/lib/bundler/vendor/thor/lib/thor/base.rb:584:in `start’  
> /usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/lib/bundler/cli.rb:29:in `start' /usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/exe/bundle:28:in `block in \<top (required)\>’  
> /usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/lib/bundler/friendly\_errors.rb:117:in `with_friendly_errors' /usr/local/lib/ruby/gems/3.3.0/gems/bundler-2.5.18/exe/bundle:20:in `\<top (required)\>’  
> /usr/local/bin/bundle:25:in `load' /usr/local/bin/bundle:25:in `’  
> Tasks: TOP =\> users:merge

Non sono sicuro se ci sia qualcos’altro che devo fare per utenti come questo, l’utente di origine è un account di 7 anni con 834 post effettuati, l’utente di destinazione ha 162 post.

---

_[View the full topic](https://meta.discourse.org/t/issue-merging-user-accounts-web-interace-and-rake-console/293938)._
