# Discourse Ember CLI Proxy Error

**URL:** https://meta.discourse.org/t/discourse-ember-cli-proxy-error/375220
**Category:** Support
**Created:** [July 22, 2025, 10:29am UTC](https://meta.discourse.org/t/discourse-ember-cli-proxy-error/375220 "2025-07-22T10:29:39Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Wilson\_Wang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wilson_wang/32/498333_2.png) [@Wilson\_Wang](https://meta.discourse.org/u/Wilson_Wang)
#### Post date: [July 22, 2025, 10:29am UTC](https://meta.discourse.org/t/discourse-ember-cli-proxy-error/375220/1 "2025-07-22T10:29:39Z")

</div>

> # Discourse Ember CLI Proxy Error
> 
> ```plaintext
> FetchError: request to http://127.0.0.1:3000/ failed, reason: connect ECONNREFUSED 127.0.0.1:3000
> at ClientRequest. (file:///home/xxx/discourse/node_modules/.pnpm/node-fetch@3.3.2/node_modules/node-fetch/src/index.js:108:11)
> at ClientRequest.emit (node:events:524:28)
> at emitErrorEvent (node:_http_client:101:11)
> at Socket.socketErrorListener (node:_http_client:504:5)
> at Socket.emit (node:events:524:28)
> at emitErrorNT (node:internal/streams/destroy:169:8)
> at emitErrorCloseNT (node:internal/streams/destroy:128:3)
> at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
> 
> ```

How to fix the error?

Thanks

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [July 22, 2025, 10:38am UTC](https://meta.discourse.org/t/discourse-ember-cli-proxy-error/375220/2 "2025-07-22T10:38:39Z")

</div>

Is this a [standard install](https://meta.discourse.org/t/142537?silent=true)? A development install?

---

<div class="post-metadata">

### Author: ![Wilson\_Wang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wilson_wang/32/498333_2.png) [@Wilson\_Wang](https://meta.discourse.org/u/Wilson_Wang)
#### Post date: [July 22, 2025, 10:48am UTC](https://meta.discourse.org/t/discourse-ember-cli-proxy-error/375220/3 "2025-07-22T10:48:02Z")

</div>

Follow the guide [Install Discourse on Ubuntu or Debian for Development](https://meta.discourse.org/t/install-discourse-on-ubuntu-or-debian-for-development/14727/1)

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [July 22, 2025, 10:54am UTC](https://meta.discourse.org/t/discourse-ember-cli-proxy-error/375220/4 "2025-07-22T10:54:49Z")

</div>

You need to have the rails server running.

Or you can use `-u` to run both.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [July 22, 2025, 10:55am UTC](https://meta.discourse.org/t/discourse-ember-cli-proxy-error/375220/5 "2025-07-22T10:55:10Z")

</div>

Consider [Developing Discourse using a Dev Container](https://meta.discourse.org/t/developing-discourse-using-a-dev-container/336366). Say more about what you did. Did you start rails?

---

<div class="post-metadata">

### Author: ![Wilson\_Wang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wilson_wang/32/498333_2.png) [@Wilson\_Wang](https://meta.discourse.org/u/Wilson_Wang)
#### Post date: [July 22, 2025, 11:04am UTC](https://meta.discourse.org/t/discourse-ember-cli-proxy-error/375220/6 "2025-07-22T11:04:02Z")

</div>

> I, [2025-07-22T11:01:04.131140 #169405] INFO – : listening on addr=127.0.0.1:3000 fd=28  
> [ember-cli] …[@embroider/webpack]  
> #\<Thread:0x00007f3f66f43c18 /home/xxx/discourse/lib/discourse.rb:1189 run\> terminated with exception (report\_on\_exception is true):  
> /home/xxx/discourse/lib/letter\_avatar.rb:112:in ‘Kernel#`': No such file or directory - magick (Errno::ENOENT) from /home/xxx/discourse/lib/letter_avatar.rb:112:in 'LetterAvatar.image_magick_version' from /home/xxx/discourse/lib/discourse.rb:1189:in 'block in Discourse.preload_rails!' E, [2025-07-22T11:01:14.236992 #169405] ERROR -- : No such file or directory - magick (Errno::ENOENT) /home/xxx/discourse/lib/letter_avatar.rb:112:in 'Kernel#`’  
> /home/xxx/discourse/lib/letter\_avatar.rb:112:in ‘LetterAvatar.image\_magick\_version’  
> /home/xxx/discourse/lib/discourse.rb:1189:in ‘block in Discourse.preload\_rails!’  
> [bin/ember-cli] unicorn process stopped. Terminating ember-cli.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [July 22, 2025, 11:07am UTC](https://meta.discourse.org/t/discourse-ember-cli-proxy-error/375220/7 "2025-07-22T11:07:29Z")

</div>

Did you do something like:

```plaintext
cd ~/discourse
./bin/rails s

```

You need to do that in another terminal before running `./bin/ember-cli`

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [July 22, 2025, 11:15am UTC](https://meta.discourse.org/t/discourse-ember-cli-proxy-error/375220/8 "2025-07-22T11:15:59Z")

</div>

Make sure the right version of imagemagick is installed.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [July 22, 2025, 2:56pm UTC](https://meta.discourse.org/t/discourse-ember-cli-proxy-error/375220/9 "2025-07-22T14:56:19Z")

</div>

Looks like good advice. Here’s how I do that. It assumes you’ve got `asdf` and docker.

```plaintext
  IMAGE_MAGICK_VERSION=$(docker run discourse/base:release bash -c 'magick --version'|head -1|cut -d' ' -f3)
  echo "Got IMAGE_MAGICK_VERSION: $IMAGE_MAGICK_VERSION"
  asdf install imagemagick $IMAGE_MAGICK_VERSION 2>&1 |grep -v "already"
  echo "installed imagemagic, now set global"
  asdf global imagemagick $IMAGE_MAGICK_VERSION 2>&1 |grep -v "already"
  echo "global done."

```
