Importing bbPress into Discourse

AI-generated summary

The discussion centers around importing bbPress forums into Discourse, with dkobia sharing a forked and updated version of a plugin originally by Wayne Graham, now compatible with bbPress as a WordPress plugin. The plugin is available at GitHub. erlend_sh praises the work and suggests moving the topic to the Plugins category, also recommending dkobia contact michaeld regarding migration services. michaeld expresses interest in testing the plugin. jorgtron reports success importing content locally but encounters errors when trying to restore backups or migrate via pg_restore, even when restoring locally — suggesting version mismatches or structural conflicts. michaeld asks if forum versions match; jorgtron confirms mismatches and that even same-environment restores fail. treb0r asks beginner questions about running the import script inside a Docker container, wondering about persistence and mailcatcher use; later treb0r follows up with more specific Docker and script execution questions. hamzahali confirms interest in compatibility with bbPress as a WordPress plugin. tonninseteli seeks real-world success or horror stories to prepare for their own migration. lead4good links to a guide on using the bbPress import script with MySQL dependencies. The thread highlights community interest, technical hurdles, and the need for clearer Docker/backup guidance.

I forked GitHub - waynegraham/discourse-import-bbpress: bbPress importer for Discourse · GitHub which offered support for only bbPress as a standalone. The bbPress standalone has been deprecated for some time now so Wayne’s plugin couldn’t help me. My updated version works with bbPress installed as a plugin for Wordpress.

You can find my plugin here: GitHub - dkobia/discourse-import-bbpress-plugin: bbPress (plugin) importer for Discourse · GitHub

8 Likes

Wow, I don’t follow support much so I completely missed this. You should ask to have this moved to the Plugins category.

Thank you so much! This is absolutely critical for my community to move over to Discourse.

Also, you should get in touch with @michaeld, because:

2 Likes

I never spotted this one either. Going to play around with it!

@dkobia: Great plugin - it has probably saved me a ton of time. However, I’m having some issues.

I have the database with the old forum posts on my localhost. Using the plugin I’ve got all the content into discourse, running locally. So my next thought was to use the backup function in the admin panel to transfer the content from localhost to my digitalocean docker production server. However, when I try to restore a backup I get lots of different errors (“hstore not found”, “TABLE already exists etc.”).

Have you or anyone else tested if a bbpress converted database can be successfully backed up?

As an alternative, I tried just exporting the entire database using pgAdmin, and then importing it using pg_restore on the command line in the docker app. Which seems to work, but the app just shows an empty white page afterwards. So something is very broken, but I can’t quite figure out what. Frustrating. :slight_smile:

Any tips are appreciated :smiley:

Are your forums on the exact same version?

@michaeld: The local and production forums might be off by 0.0.1 or so.

However, I’ve tried creating a backup locally and then importing the same backup locally in the very same forum, which fails with the same errors I mentioned - so even that doesn’t work. :confused:

I have just installed discourse using docker (impressed!), and I have an old BBpress forum that I would like to try to import.

I am very new to this, and reading through the instructions here:

https://github.com/dkobia/discourse-import-bbpress-plugin

I have a simple question - how should I ‘Head over to the discourse directory’ given that it is running in a docker container? SSH?

How do I then run ‘rake import:bbpress’?

Sorry for basic questions, this is my first experience of both Discourse and Docker.

Okay, sorry for the n00b question above.

I’ve seen this thread:

…and now I’m wondering how to go about running the BBPress script.

The instructions say:

"After reviewing and modifying, to run the bbPress import script you will do:

cd path/to/your/discourse_folder
ruby script/import_scripts/bbpress.rb"

In my case this will be from inside the Docker container. If I can get it to run, am I correct in thinking that the database lives outside the container and that any content I manage to import will persist if I destry and rebuild the container?

Also, can I run mailcatcher from inside the container? I would like to avoid spamming my users as I tinker with the import process.

Any hints or tips gratefully received! Anybody looking for some paid consulting work?

Does it work with bbpress as wordpress plugin?

I would really like to hear some success, and even better, horror stories about bbpress import as I might have to take up this task at some point and am curious to see what sort of trouble people have bumped into.

I posted on how to import bbpress into discourse

1 Like