# Migrating a myBB forum to Discourse using Kubuntu in a VM

**URL:** <https://meta.discourse.org/t/migrating-a-mybb-forum-to-discourse-using-kubuntu-in-a-vm/266051>\
**Category:** Migration\
**Tags:** mybb\
**Created:** [April 7, 2023, 9:10pm UTC](https://meta.discourse.org/t/migrating-a-mybb-forum-to-discourse-using-kubuntu-in-a-vm/266051 "2023-04-07T21:10:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [April 7, 2023, 9:16pm UTC](https://meta.discourse.org/t/migrating-a-mybb-forum-to-discourse-using-kubuntu-in-a-vm/266051/2 "2023-04-07T21:16:28Z")

</div>

> [@silverdr](#):
>
> `undefined method `exists?'`

If I understand well, the method was deprecated then removed from current versions of Ruby:

[https://github.com/ruby/ruby/commit/bf97415c02b11a8949f715431aca9eeb6311add2](https://github.com/ruby/ruby/commit/bf97415c02b11a8949f715431aca9eeb6311add2)

The import script should be updated to reflect this change.

* * *

Maybe try replacing `exists` with `exist` without “s” here:

> <https://github.com/discourse/discourse/blob/main/script/import_scripts/mybb.rb#L96>

🙂

Ruby doc: [https://ruby-doc.org/3.2.2/File.html#method-c-exist-3F](https://ruby-doc.org/3.2.2/File.html#method-c-exist-3F)

---

_[View the full topic](https://meta.discourse.org/t/migrating-a-mybb-forum-to-discourse-using-kubuntu-in-a-vm/266051)._
