# Waarom werkte mijn plugin na maanden niet meer?

**URL:** <https://meta.discourse.org/t/why-did-my-plugin-stop-working-after-months/216149>\
**Category:** Product Support\
**Created:** [27 januari 2022 om 00:27 UTC](https://meta.discourse.org/t/why-did-my-plugin-stop-working-after-months/216149 "2022-01-27T00:27:46Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![wilson29thid](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wilson29thid/32/173700_2.png) [@wilson29thid](https://meta.discourse.org/u/wilson29thid)\
**Post date:** [27 januari 2022 om 00:27 UTC](https://meta.discourse.org/t/why-did-my-plugin-stop-working-after-months/216149/1 "2022-01-27T00:27:46Z")

</div>

Hello, I wrote a [very basic plugin](https://github.com/29th/discourse-jwt-session) that adds a JWT token after a user logs in, and it’s been working fine for nearly a year. Today our forum went down because somehow the cert expired (which is curious in itself), so I tried a `./launcher app rebuild`, and the rebuild fails due to an error on the plugin.

```plaintext
I, [2022-01-27T00:16:48.616458 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
**PLUGIN FAILURE**

You are unable to build Discourse due to this error during plugin
initialization:

uninitialized constant Auth::DefaultCurrentUserProvider

/var/www/discourse/plugins/discourse-jwt-session/lib/jwt_current_user_provider.rb:3:in `<main>'

```

The relevant line in the plugin is just:

```ruby
class JwtCurrentUserProvider < Auth::DefaultCurrentUserProvider

```

I can’t imagine why this would suddenly stop working, as there don’t appear to be any relevant changes to `lib/auth/current_user_provider.rb` so that constant should very much still exist. Unless there was a change to the order in which libraries and plugins are loaded?

Commenting out the plugin in my `app.yaml` allows rebuild to complete successfully. Uncommenting it makes it fail again.

For context, we’re running on version 2.8.0beta4. Any idea what might be going on all of a sudden?

---

_[View the full topic](https://meta.discourse.org/t/why-did-my-plugin-stop-working-after-months/216149)._
