# Error al importar XenForo (config/application.rb:2)

**URL:** <https://meta.discourse.org/t/xenforo-import-failing-config-application-rb-2/50049>\
**Category:** Product Support\
**Created:** [12 Septiembre, 2016 23:47 UTC](https://meta.discourse.org/t/xenforo-import-failing-config-application-rb-2/50049 "2016-09-12T23:47:35Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Padraig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/padraig/32/121553_2.png) [@Padraig](https://meta.discourse.org/u/Padraig)\
**Post date:** [12 Septiembre, 2016 23:47 UTC](https://meta.discourse.org/t/xenforo-import-failing-config-application-rb-2/50049/1 "2016-09-12T23:47:35Z")

</div>

Hi everyone.

Just got Discourse set up and now I am attempting to import my content from my XenForo Database

Follow this guide, I get to Step 11 - [Migrate a XenForo forum to Discourse](https://meta.discourse.org/t/importing-xenforo-to-discourse/45232)

> You are set to go now, run the importer:  
> `bundle exec script/import_scripts/xenforo.rb`

and I get the following:

```plaintext
root@titan-app:/var/www/discourse > RAILS_ENV=production bundle exec ruby script/import_scripts/xenforo.rb
/var/www/discourse/config/application.rb:2:in `require': cannot load such file -- rails/all (LoadError)
        from /var/www/discourse/config/application.rb:2:in `<top (required)>'
        from /var/www/discourse/config/environment.rb:2:in `require'
        from /var/www/discourse/config/environment.rb:2:in `<top (required)>'
        from /var/www/discourse/script/import_scripts/base.rb:14:in `require_relative'
        from /var/www/discourse/script/import_scripts/base.rb:14:in `<top (required)>'
        from script/import_scripts/xenforo.rb:3:in `require'
        from script/import_scripts/xenforo.rb:3:in `<main>'

```

It looks to be the same error as this thread: [Error Trying to Start Import Process - Xenforo to Discourse](https://meta.discourse.org/t/error-trying-to-start-import-process-xenforo-to-discourse/43258) but it devolves into nothing.

Can anyone shed some light as to what I might be doing wrong or is there any issue with the import script for XF?

Kind regards,

---

_[View the full topic](https://meta.discourse.org/t/xenforo-import-failing-config-application-rb-2/50049)._
