# Migrate a NodeBB forum with MongoDB to Discourse

**URL:** https://meta.discourse.org/t/migrate-a-nodebb-forum-with-mongodb-to-discourse/126553
**Category:** Sysadmins
**Tags:** how-to
**Created:** [August 22, 2019, 5:33pm UTC](https://meta.discourse.org/t/migrate-a-nodebb-forum-with-mongodb-to-discourse/126553 "2019-08-22T17:33:06Z")
**Posts on this page:** 1
**Showing post:** 20

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [March 1, 2026, 6:35pm UTC](https://meta.discourse.org/t/migrate-a-nodebb-forum-with-mongodb-to-discourse/126553/20 "2026-03-01T18:35:51Z")

</div>

> [@Twissell](#):
>
> Users seems imported correctly according to script output, see above.

Then the issue has to do with it not reading the post data.

My guess is that it’s here and for some reason it’s not finding the posts.

```plaintext
    def posts(offset = 0, page_size = 2000)
      post_keys = mongo.find(_key: "posts:pid").skip(offset).limit(page_size).pluck(:value)

      post_keys.map { |post_key| post(post_key) }
    end

```

> [@Twissell](#):
>
> Sorry, are you alive person or just smart enough AI-assistant?

I’m a live person who has made a living supporting Discourse for a decade and has written a bunch of importers and imported over a hundred forums from various other platforms.

If you want help from an AI assistant, see [https://ask.discourse.com/](https://ask.discourse.com/)

---

_[View the full topic](https://meta.discourse.org/t/migrate-a-nodebb-forum-with-mongodb-to-discourse/126553)._
