# 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:** 8

<div class="post-metadata">

**Author:** ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)\
**Post date:** [13 Septiembre, 2016 10:11 UTC](https://meta.discourse.org/t/xenforo-import-failing-config-application-rb-2/50049/8 "2016-09-13T10:11:28Z")

</div>

> [@Padraig](#):
>
> Should I be running this as the root user within the container or the discourse user?

As `discourse`. The console output you pasted says it nice and clearly, too:

```
Don't run Bundler as root.

```

> [@Padraig](#):
>
> it says to run `echo "gem 'mysql2'" >Gemfile`

Hmm, yeah, that’s never going to end well. Fixed the howto.

> [@Padraig](#):
>
> `bundler: not executable: script/import_scripts/xenforo.rb`

Unfortunately, `chmod +x` won’t work because the file doesn’t have a “shebang” (`#!/usr/bin/ruby` or similar) to tell the system what language it’s in. I’ve just changed the howto to run ruby explicitly; if you do that, it’ll work better (or at least break _differently_).

---

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