4.2.8 - Any plugin i install throws this error, what am I missing? #19454
Replies: 2 comments
-
Hi @warriorsoul15, Thanks for reaching out — and sorry you’re having trouble getting plugins to work! Just a quick heads-up: this issue tracker is intended for bugs and feature requests related to the NetBox core. For help with plugin installation or configuration, we recommend using the Discussions section with the “Help wanted” tag - it’s a great place to get support from the community. That said, the error you’re seeing often happens when the plugin is not installed in the virtual environment that NetBox uses. To check this, activate your NetBox virtual environment and reinstall the plugin: source /opt/netbox/venv/bin/activate
pip install netbox-floorplan Also, make sure your configuration.py includes the plugin like this: Example for ACL PLUGINS = [
"netbox_acls"
]
PLUGINS_CONFIG = {
"netbox_acls": {
"top_level_menu": True,
},
} Once that’s done, restart your NetBox application server and you should be good to go. Hope this helps. Move this to Discussions for more in-depth troubleshooting. |
Beta Was this translation helpful? Give feedback.
-
converting this to a discussion. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Deployment Type
Self-hosted
NetBox Version
v4.2.8
Python Version
3.12
Steps to Reproduce
Ive tried a few plugins so i must be missing some step but for the life of me I cannot find it. Any plugin I put in throws this error for that plugin. What did I miss?
Expected Behavior
I expected the plugin to work lol
Observed Behavior
May 08 22:00:46 hostname.host.org uwsgi[183388]: Traceback (most recent call last):
May 08 22:00:46 hostname.host.org uwsgi[183388]: File "/opt/netbox-4.2.8/netbox/netbox/settings.py", line 812, in
May 08 22:00:46 hostname.host.org uwsgi[183388]: plugin_config: PluginConfig = plugin.config
May 08 22:00:46 hostname.host.org uwsgi[183388]: ^^^^^^^^^^^^^
May 08 22:00:46 hostname.host.org uwsgi[183388]: AttributeError: module 'netbox_floorplan' has no attribute 'config'
May 08 22:00:46 hostname.host.org uwsgi[183388]: During handling of the above exception, another exception occurred:
May 08 22:00:46 hostname.host.org uwsgi[183388]: Traceback (most recent call last):
May 08 22:00:46 hostname.host.org uwsgi[183388]: File "/opt/netbox-4.2.8/netbox/netbox/wsgi.py", line 7, in
May 08 22:00:46 hostname.host.org uwsgi[183388]: application = get_wsgi_application()
May 08 22:00:46 hostname.host.org uwsgi[183388]: ^^^^^^^^^^^^^^^^^^^^^^
May 08 22:00:46 hostname.host.org uwsgi[183388]: File "/opt/netbox-4.2.8/venv/lib64/python3.12/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
May 08 22:00:46 hostname.host.org uwsgi[183388]: django.setup(set_prefix=False)
May 08 22:00:46 hostname.host.org uwsgi[183388]: File "/opt/netbox-4.2.8/venv/lib64/python3.12/site-packages/django/init.py", line 19, in setup
May 08 22:00:46 hostname.host.org uwsgi[183388]: configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
May 08 22:00:46 hostname.host.org uwsgi[183388]: ^^^^^^^^^^^^^^^^^^^^^^^
May 08 22:00:46 hostname.host.org uwsgi[183388]: File "/opt/netbox-4.2.8/venv/lib64/python3.12/site-packages/django/conf/init.py", line 81, in getattr
May 08 22:00:46 hostname.host.org uwsgi[183388]: self._setup(name)
May 08 22:00:46 hostname.host.org uwsgi[183388]: File "/opt/netbox-4.2.8/venv/lib64/python3.12/site-packages/django/conf/init.py", line 68, in _setup
May 08 22:00:46 hostname.host.org uwsgi[183388]: self._wrapped = Settings(settings_module)
May 08 22:00:46 hostname.host.org uwsgi[183388]: ^^^^^^^^^^^^^^^^^^^^^^^^^
May 08 22:00:46 hostname.host.org uwsgi[183388]: File "/opt/netbox-4.2.8/venv/lib64/python3.12/site-packages/django/conf/init.py", line 166, in init
May 08 22:00:46 hostname.host.org uwsgi[183388]: mod = importlib.import_module(self.SETTINGS_MODULE)
May 08 22:00:46 hostname.host.org uwsgi[183388]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 08 22:00:46 hostname.host.org uwsgi[183388]: File "/usr/lib64/python3.12/importlib/init.py", line 90, in import_module
May 08 22:00:46 hostname.host.org uwsgi[183388]: return _bootstrap._gcd_import(name[level:], package, level)
May 08 22:00:46 hostname.host.org uwsgi[183388]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
May 08 22:00:46 hostname.host.org uwsgi[183388]: File "/opt/netbox-4.2.8/netbox/netbox/settings.py", line 814, in
May 08 22:00:46 hostname.host.org uwsgi[183388]: raise ImproperlyConfigured(
May 08 22:00:46 hostname.host.org uwsgi[183388]: django.core.exceptions.ImproperlyConfigured: Plugin netbox_floorplan does not provide a 'config' variable. This should be defined in the plugin's init.py file and point to the PluginConfig subclass.
Beta Was this translation helpful? Give feedback.
All reactions