# ActionController::Routing Error when adding official plugins

**URL:** https://meta.discourse.org/t/actioncontroller-routing-error-when-adding-official-plugins/244940
**Category:** Development
**Created:** [November 8, 2022, 11:14pm UTC](https://meta.discourse.org/t/actioncontroller-routing-error-when-adding-official-plugins/244940 "2022-11-08T23:14:46Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![hyphalos](https://avatars.discourse-cdn.com/v4/letter/h/3ab097/32.png) [@hyphalos](https://meta.discourse.org/u/hyphalos)
#### Post date: [November 8, 2022, 11:14pm UTC](https://meta.discourse.org/t/actioncontroller-routing-error-when-adding-official-plugins/244940/1 "2022-11-08T23:14:46Z")

</div>

Hello!

I’m running 2.9.0.beta11 on Ubuntu (developer environment) and I get the following errors about these plugins. It works perfectly fine without them. What do I need to do to get these plugins working?

```plaintext
ActionController::RoutingError (No route matches [GET] "/assets/plugins/discourse-adplugin.js")
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/missing_avatars.rb:23:in `call'
lib/middleware/turbo_dev.rb:34:in `call'
ActionController::RoutingError (No route matches [GET] "/assets/plugins/discourse-canned-replies.js")
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/missing_avatars.rb:23:in `call'
lib/middleware/turbo_dev.rb:34:in `call'
ActionController::RoutingError (No route matches [GET] "/assets/plugins/discourse-cakeday.js")
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/missing_avatars.rb:23:in `call'
lib/middleware/turbo_dev.rb:34:in `call'
ActionController::RoutingError (No route matches [GET] "/assets/plugins/discourse-checklist.js")
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/missing_avatars.rb:23:in `call'
lib/middleware/turbo_dev.rb:34:in `call'
ActionController::RoutingError (No route matches [GET] "/assets/plugins/discourse-solved.js")
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/missing_avatars.rb:23:in `call'
lib/middleware/turbo_dev.rb:34:in `call'
ActionController::RoutingError (No route matches [GET] "/assets/plugins/discourse-spoiler-alert.js")
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/missing_avatars.rb:23:in `call'
lib/middleware/turbo_dev.rb:34:in `call'
ActionController::RoutingError (No route matches [GET] "/assets/plugins/docker_manager.js")
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/missing_avatars.rb:23:in `call'
lib/middleware/turbo_dev.rb:34:in `call' 

```

---

<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: [November 17, 2022, 3:42pm UTC](https://meta.discourse.org/t/actioncontroller-routing-error-when-adding-official-plugins/244940/2 "2022-11-17T15:42:44Z")

</div>

Working on a very similar issue too, in dev.

Did you find a solution?

It looks like for some reason, this code is not firing or files are ending up in the wrong place.

> <https://github.com/discourse/discourse/blob/9bf95d472d7160a3d4f983447fe61d6f77fc3867/app/assets/javascripts/discourse-plugins/index.js#L151>

That in turn _looks_ like Ember CLI has not successfully built.

> <https://github.com/discourse/discourse/blob/ac7bf98ad10e529b02a9cddce4367ecb9428b5e1/app/assets/javascripts/discourse/ember-cli-build.js#L163>

And yet I’ve got `Build successful (70398ms) – Serving on http: ...`

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [November 17, 2022, 3:53pm UTC](https://meta.discourse.org/t/actioncontroller-routing-error-when-adding-official-plugins/244940/3 "2022-11-17T15:53:38Z")

</div>

How are you starting your development servers? Are you 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: [November 17, 2022, 3:54pm UTC](https://meta.discourse.org/t/actioncontroller-routing-error-when-adding-official-plugins/244940/4 "2022-11-17T15:54:19Z")

</div>

Yes. It’s a non-standard dev install though, I’m running ember-cli on a separate container, sharing a volume with the rails server (investigating if this is the problem)

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [November 17, 2022, 3:58pm UTC](https://meta.discourse.org/t/actioncontroller-routing-error-when-adding-official-plugins/244940/5 "2022-11-17T15:58:42Z")

</div>

My main question is: why are you doing that? 😛

Things to check:

- Does the ember-cli process have access to the plugins directory?

- What does your shared volume include? The whole Discourse directory? In particular, I’m thinking of `public/assets` and `app/assets/javascripts/discourse/dist`

- Where are your HTTP requests going? Ember-cli’s proxy? Or straight to the Rails app? (either can work, but knowing which way round you’re doing it may help debug)

---

<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: [November 17, 2022, 4:00pm UTC](https://meta.discourse.org/t/actioncontroller-routing-error-when-adding-official-plugins/244940/6 "2022-11-17T16:00:05Z")

</div>

> [@david](#):
>
> What does your shared volume include? The whole Discourse directory? In particular, I’m thinking of `public/assets` and `app/assets/javascripts/discourse/dist`

Thats my current config, but checking

> [@david](#):
>
> Where are your HTTP requests going? Ember-cli’s proxy? Or straight to the Rails app? (either can work, but knowing which way round you’re doing it may help debug)

They are going to Ember, and it’s proxying to the rails port.

> [@david](#):
>
> My main question is: why are you doing that? 😛

Don’t ask 😅 (educational stuff though debugging the pipeline!).

Useful avenues to check. Was just curious how the OP got on.

I will report my findings for the benefit of others doing crazy configs.

**Update** :

> [@david](#):
>
> - Does the ember-cli process have access to the plugins directory?

Ooops, this is where I think I’ve messed up!!

I forgot to add the additional plugins to both containers…

---

<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: [November 17, 2022, 4:12pm UTC](https://meta.discourse.org/t/actioncontroller-routing-error-when-adding-official-plugins/244940/7 "2022-11-17T16:12:00Z")

</div>

> [@david](#):
>
> - Does the ember-cli process have access to the plugins directory?

@david that was the issue. I’d added a load of ‘local’ volume plugin mappings and forgot to add all of them to both containers 🤦‍♂️

so presumably it had all the nice Ruby on Rails, but none of the Javascript on tap …

It’s now working 🍻

@hyphalos let us know if you are still struggling and we might be able to help …
