-
Notifications
You must be signed in to change notification settings - Fork 263
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
Plugin Load Failure #95
Comments
Also tried with plugin |
Just for some context, was troubleshooting this last night with @jvanderaa and we isolated it to be directly related to Gunicorn for "some" reason. |
Mirroring the comment here from #88 for those with vested interest: This addresses the issue with #95 by circumventing it entirely, but it does not fix the underlying issue with WHY the plugins are not being loaded correctly. That will take more time, but this will alleviate the problem for the near term by launching uWSGI from within the server utility instead of the other way around, with Gunicorn/uWSGI invoking the application. |
@pke11y I still intend to track this to get to the bottom of this issue, but can you please give v1.0.0b2 a shot w/ the revised install instructions to use uWSGI over Gunicorn and let me know how it goes for you? Thanks! |
@jathanism no probs. Will try it this evening. |
@jathanism tried b2 version w/ uWSGI and loaded the |
@pke11y Great, thanks! That means we've successfully worked around this issue for now while creating new ones. :) |
This updates `nautobot.extras.plugins.utils.load_plugins` to only update or extend `INSTALLED_APPS` and `MIDDLEWARE` if the plugins in question haven't already been applied. In my testing this appears to have alleviated the bug in plugins not being correctly loaded within the WSGI application for both Gunicorn and uWSGI.
This updates `nautobot.extras.plugins.utils.load_plugins` to only update or extend `INSTALLED_APPS` and `MIDDLEWARE` if the plugins in question haven't already been applied. In my testing this appears to have alleviated the bug in plugins not being correctly loaded within the WSGI application for both Gunicorn and uWSGI.
Environment
Steps to Reproduce
pip install nautobot-netbox-importer
nautobot_config.py
:PLUGINS = ["nautobot_netbox_importer"]
sudo systemctl restart nautobot
Expected Behavior
Expected to see the nautobot landing page on the UI
Observed Behavior
Internal Server Error displayed on UI
Gunicorn reports errors in the nautobot logs.
The text was updated successfully, but these errors were encountered: