# Discourse installation fails on database migration

**URL:** https://meta.discourse.org/t/discourse-installation-fails-on-database-migration/194867
**Category:** Self-hosting
**Created:** [June 24, 2021, 5:07am UTC](https://meta.discourse.org/t/discourse-installation-fails-on-database-migration/194867 "2021-06-24T05:07:08Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![mihco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mihco/32/199774_2.png) [@mihco](https://meta.discourse.org/u/mihco)
#### Post date: [June 24, 2021, 5:07am UTC](https://meta.discourse.org/t/discourse-installation-fails-on-database-migration/194867/1 "2021-06-24T05:07:08Z")

</div>

Hello, I’m attempting to install Discourse for development on my PC, however running bundle exec rake db:migrate causes this error to appear:

```plaintext
ArgumentError: wrong number of arguments (given 1, expected 0; required keywords: site_setting_name, title, raw)
/home/mihco/discourse/lib/seed_data/topics.rb:126:in `create_topic'
/home/mihco/discourse/lib/seed_data/topics.rb:16:in `block (2 levels) in create'
/home/mihco/discourse/lib/seed_data/topics.rb:15:in `each'
/home/mihco/discourse/lib/seed_data/topics.rb:15:in `block in create'
/home/mihco/discourse/lib/seed_data/topics.rb:14:in `create'
(eval):14:in `block (2 levels) in run_file'
/home/mihco/discourse/lib/tasks/db.rake:222:in `block in <main>'
/home/mihco/.rbenv/versions/3.0.1/bin/bundle:23:in `load'
/home/mihco/.rbenv/versions/3.0.1/bin/bundle:23:in `<main>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)

```

It is an issue with the create\_topic function, but I am unable to figure out how to change the parameters being passed as the migration is happening. What can I do about the extra arguments being passed?

---

<div class="post-metadata">

### Author: ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)
#### Post date: [June 24, 2021, 1:53pm UTC](https://meta.discourse.org/t/discourse-installation-fails-on-database-migration/194867/2 "2021-06-24T13:53:11Z")

</div>

Hello Michal 👋🏾

Which of the #dev-install guides did you follow to do this install?

---

<div class="post-metadata">

### Author: ![mihco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mihco/32/199774_2.png) [@mihco](https://meta.discourse.org/u/mihco)
#### Post date: [June 25, 2021, 2:43pm UTC](https://meta.discourse.org/t/discourse-installation-fails-on-database-migration/194867/3 "2021-06-25T14:43:36Z")

</div>

Beginners guide to install Discourse on Windows 10 for Development. I’m using WSL2 with Ubuntu 2 for the installation. The installation went smoothly at first and I was able to run the server successfully when I installed Discourse about 2 weeks ago but now it started to show me that error

---

<div class="post-metadata">

### Author: ![shafou](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shafou/32/212599_2.png) [@shafou](https://meta.discourse.org/u/shafou)
#### Post date: [June 27, 2021, 2:01pm UTC](https://meta.discourse.org/t/discourse-installation-fails-on-database-migration/194867/4 "2021-06-27T14:01:02Z")

</div>

I had a similiar problem. Downgrading ruby from 3.0.0 to 2.7.2 solved it for me.

---

<div class="post-metadata">

### Author: ![mihco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mihco/32/199774_2.png) [@mihco](https://meta.discourse.org/u/mihco)
#### Post date: [June 28, 2021, 7:05pm UTC](https://meta.discourse.org/t/discourse-installation-fails-on-database-migration/194867/5 "2021-06-28T19:05:00Z")

</div>

Downgrading worked, thanks!

---

<div class="post-metadata">

### Author: ![mrj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mrj/32/226422_2.png) [@mrj](https://meta.discourse.org/u/mrj)
#### Post date: [July 1, 2021, 3:24pm UTC](https://meta.discourse.org/t/discourse-installation-fails-on-database-migration/194867/6 "2021-07-01T15:24:10Z")

</div>

Yes, Discourse master isn’t yet compatible with Ruby 3. I got past the seeding errors by adding two double-splats to [topics.rb](https://github.com/discourse/discourse/blob/master/lib/seed_data/topics.rb), but then get _Job exception: wrong number of arguments_ errors when starting the server.

The [README](https://github.com/discourse/discourse/blob/master/README.md) currently asks for “Ruby 2.7+”, so it should be changed.

---

<div class="post-metadata">

### Author: ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)
#### Post date: [July 2, 2021, 9:11am UTC](https://meta.discourse.org/t/discourse-installation-fails-on-database-migration/194867/7 "2021-07-02T09:11:17Z")

</div>


