# Migrating from mybb

**URL:** https://meta.discourse.org/t/migrating-from-mybb/25563
**Category:** Support
**Created:** [February 23, 2015, 11:12am UTC](https://meta.discourse.org/t/migrating-from-mybb/25563 "2015-02-23T11:12:46Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![dandv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dandv/32/169779_2.png) [@dandv](https://meta.discourse.org/u/dandv)
#### Post date: [February 23, 2015, 11:12am UTC](https://meta.discourse.org/t/migrating-from-mybb/25563/1 "2015-02-23T11:12:46Z")

</div>

I’m trying to migrate a MyBB instance and haven’t found a walk-through, so hopefully this can become one.

I’m also new to Rails and Docker.

So far I’ve installed the Discourse Docker image, launched a local MySQL server and populated it with the data from MyBB.

The [migration script](https://github.com/discourse/discourse/blob/master/script/import_scripts/mybb.rb) only says it should be called like this:

```
RAILS_ENV=production bundle exec ruby script/import_scripts/mybb.rb

```

That assumes you have cloned the discourse repo itself (not the Docker). So you have to first

```
mkdir /var/discourse.src
git clone https://github.com/discourse/discourse.git /var/discourse.src
cd /var/discourse.src

```

You also need to run

```
apt-get install bundler

```

After that, I’m out of my depth. `bundle install` says “You are running an old version of bundler, please update by running: gem install bundler” but after I run `gem install bundler` (which gets bundler-1.8.2) and re-run `bundle install`, I get the same warning.

Anyway, the blocker is

```
Gem::InstallError: better_errors requires Ruby version >= 2.0.0.

```

Do I just go ahead and [install Ruby 2.1.5](https://gorails.com/setup/ubuntu/14.04)? How do I do that inside the Docker container? Is Discourse compatible with Ruby 2? If so, should the Docker image be updated?

I gave a try to installing Ruby 2.1.5, but I still get the error about Ruby \>= 2.0.0. being required:

```plaintext
root@...:/var/discosrc# RAILS_ENV=production bundle exec ruby script/import_scripts/mybb.rb
Could not find rake-10.4.2 in any of the sources
Run `bundle install` to install missing gems.
root@...:/var/discosrc# bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.
Fetching gem metadata from https://rubygems.org/.......
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies...
Using rake 10.4.2
Using 6to5-source 3.3.7
Using execjs 2.2.2
Using 6to5 0.5.0
Using CFPropertyList 2.2.8
Using i18n 0.6.11
Using json 1.8.2
Using minitest 5.5.1
Using thread_safe 0.3.4
Using tzinfo 1.2.2
Using activesupport 4.1.8
Using builder 3.2.2
Using erubis 2.7.0
Using actionview 4.1.8
Using rack 1.5.2
Using rack-test 0.6.2
Using actionpack 4.1.8
Using mime-types 1.25.1
Using polyglot 0.3.5
Using treetop 1.4.15
Using mail 2.5.4
Using actionmailer 4.1.8
Using actionpack-action_caching 1.1.1
Using activemodel 4.1.8
Using active_model_serializers 0.8.2
Using arel 5.0.1.20140414130214
Using activerecord 4.1.8
Using annotate 2.6.5
Using handlebars-source 2.0.0
Using ember-source 1.9.0.beta.4
Using barber 0.5.0
Using coderay 1.1.0

Gem::InstallError: better_errors requires Ruby version >= 2.0.0.
An error occurred while installing better_errors (2.1.1), and Bundler cannot continue.
Make sure that `gem install better_errors -v '2.1.1'` succeeds before bundling.

```

PS: no “migration” tag?

---

_[View the full topic](https://meta.discourse.org/t/migrating-from-mybb/25563)._
