# Crash when remapping domain name

**URL:** https://meta.discourse.org/t/crash-when-remapping-domain-name/43181
**Category:** Support
**Created:** [April 25, 2016, 1:33pm UTC](https://meta.discourse.org/t/crash-when-remapping-domain-name/43181 "2016-04-25T13:33:33Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![twicedd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/twicedd/32/121201_2.png) [@twicedd](https://meta.discourse.org/u/twicedd)
#### Post date: [April 25, 2016, 1:33pm UTC](https://meta.discourse.org/t/crash-when-remapping-domain-name/43181/1 "2016-04-25T13:33:33Z")

</div>

Hey there,

While trying to remap upload URLs since we changed of domain [as mentioned in this thread](https://meta.discourse.org/t/file-urls-broken-after-moving-to-a-different-domain/35502/3), I get the following error:

```bash
/var/www/discourse# script/discourse remap forum.ucoin.io forum.duniter.org

```

I get:

```bash
/usr/local/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- thor (LoadError)
        from /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from script/discourse:3:in `<main>'

```

So I cannot perform the remap.

Am I missing something?

Edit: yes I am missing the fact I could run `discourse remap forum.ucoin.io forum.duniter.org` instead.

---

<div class="post-metadata">

### Author: ![michaeld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michaeld/32/1594_2.png) [@michaeld](https://meta.discourse.org/u/michaeld)
#### Post date: [April 25, 2016, 3:44pm UTC](https://meta.discourse.org/t/crash-when-remapping-domain-name/43181/2 "2016-04-25T15:44:12Z")

</div>

`gem install thor` solves this.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 8, 2024, 12:45pm UTC](https://meta.discourse.org/t/crash-when-remapping-domain-name/43181/3 "2024-06-08T12:45:47Z")

</div>

This topic was automatically closed after 2965 days. New replies are no longer allowed.
