Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugins not loaded with Gunicorn #5592

Closed
itdependsnetworks opened this issue Apr 18, 2024 · 1 comment · Fixed by #5593
Closed

Plugins not loaded with Gunicorn #5592

itdependsnetworks opened this issue Apr 18, 2024 · 1 comment · Fixed by #5593
Assignees
Labels
emergent Unplanned work that is brought into a sprint after it's started. ms type: bug Something isn't working as expected

Comments

@itdependsnetworks
Copy link
Contributor

Environment

  • Nautobot version (Docker tag too if applicable): 2.2.1
  • Python version: 3.11
  • Database platform, version: psql
  • Middleware(s):

Steps to Reproduce

  1. Use systemd
  2. With gunicorn 21.2.0 or 22.0.0

Expected Behavior

All applications to show

Observed Behavior

We attempted to upgrade our dev environment from 2.1.9 to 2.2.1 but are hitting a weird issue where our plugins are reported as missing. We are only loading 1 or 2 basic plugins right now while we work on updating all our other plugins for 2.x. Oddly we are only seeing this issue on 1 out of 3 identical servers with identical Nautobot installs.

This looks very much like this issue from 2021: Plugin Load Failure · Issue #95 · nautobot/nautobot (github.com)

@itdependsnetworks itdependsnetworks added type: bug Something isn't working as expected triage This issue is new and has not been reviewed. ms labels Apr 18, 2024
@gsnider2195 gsnider2195 added emergent Unplanned work that is brought into a sprint after it's started. and removed triage This issue is new and has not been reviewed. labels Apr 18, 2024
@gsnider2195
Copy link
Contributor

Re-adding the nautobot.setup() call to nautobot/core/wsgi.py here resolves this issue. @glennmatthews do you see any problems with making this change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emergent Unplanned work that is brought into a sprint after it's started. ms type: bug Something isn't working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants