Error in migrating a MyBB to Discourse

Hi
I followed all the instructions in this link but when I ran the migration script, the following output appeared. I have a few questions:
1. Was the migration completed successfully
2. . If the report below indicates an issue, is there a way to determine the exact cause of problem?

Beginning of the log

root@root:~/discourse$ bundle exec ruby script/import_scripts/mybb.rb
Loading existing groups…
Loading existing users…
Loading existing categories…
Loading existing posts…
Loading existing topics…

creating users
875 / 1668 ( 52.5%) [454 items/min] Failed to create user id: 894, username: shahed, email: sh-----@yahoo.com
user errors: [“Primary email has already been taken”]
1415 / 1668 ( 84.8%) [485 items/min] Failed to create user id: 1442, username: haqiqi.1410, email: h-----@gmail.com
user errors: [“Primary email has already been taken”]
1576 / 1668 ( 94.5%) [497 items/min] Failed to create user id: 1603, username: 6530091424, email: j-----@yahoo.com
user errors: [“Primary email has already been taken”]
97 / 97 (100.0%) [702 items/min] n]
creating topics and posts
2481 / 11705 ( 21.2%) [620 items/min] Warning: probably incorrect quote in post 2659
7699 / 11705 ( 65.8%) [567 items/min] Warning: probably incorrect quote in post 8554
10133 / 11705 ( 86.6%) [583 items/min] Warning: probably incorrect quote in post 11160
10323 / 11705 ( 88.2%) [583 items/min] Warning: probably incorrect quote in post 11584
10548 / 11705 ( 90.1%) [582 items/min]
private messages are not implemented

Creating redirects…

Users…

 1660 / 1660 (100.0%)  [7757 items/min]  

Categories…

  101 / 101 (100.0%)  [4056 items/min]

Topics…

Posts…
3753 / 10652 ( 35.2%) [3111 items/min]
banned users are not implemented

Updating topic status

Updating bumped_at on topics

Updating last posted at on users

Updating last seen at on users

Updating first_post_created_at…

Updating user post_count…

Updating user topic_count…

Updating user digest_attempted_at…

Updating topic users

Updating post timings

Updating featured topic users

Updating featured topics in categories
101 / 101 (100.0%) [1875 items/min] n]
Resetting topic counters
End of the log

Thanks.

Mostly? Open the site in your browser and look around.

It’s unclear from your logs whether it did all of the topics and posts or not.

The “primary email” error means that you created a user on this discourse site with the same email address as an imported user. This will (probably) mean that the user’s posts won’t belong to them. The easiest solution is to wipe the database and start over without creating any users.

3 Likes

Thank you very much pfaffman
the number of posts is immense. it difficult to determine if all of posts has migrated. To ensure everything is correct I deleted the database and re-ran the migration script. The bundle exec rails server command has been running for a day , but has not finished yet. Is this normal?

Is this on a development instance?

It’s expected that bundle exec rails server will run forever. You should point your browser to your server and see what happened. You also need to bin/ember-cli and point your browser to http://localhost:4200

3 Likes

Excellent. I appreciate your guidance.