# Error Trying to Start Import Process - Xenforo to Discourse

**URL:** <https://meta.discourse.org/t/error-trying-to-start-import-process-xenforo-to-discourse/43258>\
**Category:** Migration\
**Created:** [26 أبريل 2016، 5:35م UTC](https://meta.discourse.org/t/error-trying-to-start-import-process-xenforo-to-discourse/43258 "2016-04-26T17:35:11Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [27 أبريل 2016، 3:55ص UTC](https://meta.discourse.org/t/error-trying-to-start-import-process-xenforo-to-discourse/43258/9 "2016-04-27T03:55:03Z")

</div>

Try this:

```
(cd /var/www/discourse && RAILS_ENV=production sudo -H -E -u discourse bundle exec ruby script/import_scripts/xenforo.rb)

```

based off [discourse\_docker/templates/web.template.yml at master · discourse/discourse\_docker · GitHub](https://github.com/discourse/discourse_docker/blob/master/templates/web.template.yml#L168)

---

_[View the full topic](https://meta.discourse.org/t/error-trying-to-start-import-process-xenforo-to-discourse/43258)._
