question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Plugin Load Failure

See original GitHub issue

Environment

  • Python version: 3.8.5
  • Nautobot version: 1.0.0b1

Steps to Reproduce

  1. pip install nautobot-netbox-importer
  2. Enable the plugin in nautobot_config.py: PLUGINS = ["nautobot_netbox_importer"]
  3. sudo systemctl restart nautobot
  4. Browse to the nautobot web User Interface

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.

(nautobot) nautobot@ubuntu-20-04:~$ sudo journalctl -eu nautobot.service
Mar 05 11:52:52 ubuntu-20-04 gunicorn[25549]:   File "/opt/nautobot/lib/python3.8/site-packages/django/core/handlers/wsgi.py", line 133, in __call__
Mar 05 11:52:52 ubuntu-20-04 gunicorn[25549]:     response = self.get_response(request)
Mar 05 11:52:52 ubuntu-20-04 gunicorn[25549]:   File "/opt/nautobot/lib/python3.8/site-packages/django/core/handlers/base.py", line 130, in get_response
Mar 05 11:52:52 ubuntu-20-04 gunicorn[25549]:     response = self._middleware_chain(request)
Mar 05 11:52:52 ubuntu-20-04 gunicorn[25549]:   File "/opt/nautobot/lib/python3.8/site-packages/django/core/handlers/exception.py", line 49, in inner
Mar 05 11:52:52 ubuntu-20-04 gunicorn[25549]:     response = response_for_exception(request, exc)
Mar 05 11:52:52 ubuntu-20-04 gunicorn[25549]:   File "/opt/nautobot/lib/python3.8/site-packages/django/core/handlers/exception.py", line 103, in response_for_exception
Mar 05 11:52:52 ubuntu-20-04 gunicorn[25549]:     response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
Mar 05 11:52:52 ubuntu-20-04 gunicorn[25549]:   File "/opt/nautobot/lib/python3.8/site-packages/django/core/handlers/exception.py", line 141, in handle_uncaught_exception
Mar 05 11:52:52 ubuntu-20-04 gunicorn[25549]:     callback, param_dict = resolver.resolve_error_handler(500)
Mar 05 11:52:52 ubuntu-20-04 gunicorn[25549]:   File "/opt/nautobot/lib/python3.8/site-packages/django/urls/resolvers.py", line 602, in resolve_error_handler
Mar 05 11:52:52 ubuntu-20-04 gunicorn[25549]:     callback = getattr(self.urlconf_module, 'handler%s' % view_type, None)
Mar 05 11:52:52 ubuntu-20-04 gunicorn[25549]:   File "/opt/nautobot/lib/python3.8/site-packages/django/utils/functional.py", line 48, in __get__
Mar 05 11:52:52 ubuntu-20-04 gunicorn[25549]:     res = instance.__dict__[self.name] = self.func(instance)
Mar 05 11:52:52 ubuntu-20-04 gunicorn[25549]:   File "/opt/nautobot/lib/python3.8/site-packages/django/urls/resolvers.py", line 582, in urlconf_module
Mar 05 11:52:52 ubuntu-20-04 gunicorn[25549]:     return import_module(self.urlconf_name)
Mar 05 11:52:52 ubuntu-20-04 gunicorn[25549]:   File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
Mar 05 11:52:52 ubuntu-20-04 gunicorn[25549]:     return _bootstrap._gcd_import(name[level:], package, level)
Mar 05 11:52:52 ubuntu-20-04 gunicorn[25549]:   File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
Mar 05 11:52:52 ubuntu-20-04 gunicorn[25549]:   File "<frozen importlib._bootstrap>", line 991, in _find_and_load
Mar 05 11:52:52 ubuntu-20-04 gunicorn[25549]:   File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
Mar 05 11:52:52 ubuntu-20-04 gunicorn[25549]:   File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
Mar 05 11:52:52 ubuntu-20-04 gunicorn[25549]:   File "<frozen importlib._bootstrap_external>", line 783, in exec_module
Mar 05 11:52:52 ubuntu-20-04 gunicorn[25549]:   File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
Mar 05 11:52:52 ubuntu-20-04 gunicorn[25549]:   File "/opt/nautobot/lib/python3.8/site-packages/nautobot/core/urls.py", line 12, in <module>
Mar 05 11:52:52 ubuntu-20-04 gunicorn[25549]:     from nautobot.extras.plugins.urls import (
Mar 05 11:52:52 ubuntu-20-04 gunicorn[25549]:   File "/opt/nautobot/lib/python3.8/site-packages/nautobot/extras/plugins/urls.py", line 32, in <module>
Mar 05 11:52:52 ubuntu-20-04 gunicorn[25549]:     app = apps.get_app_config(plugin_name)
Mar 05 11:52:52 ubuntu-20-04 gunicorn[25549]:   File "/opt/nautobot/lib/python3.8/site-packages/django/apps/registry.py", line 163, in get_app_config
Mar 05 11:52:52 ubuntu-20-04 gunicorn[25549]:     raise LookupError(message)
Mar 05 11:52:52 ubuntu-20-04 gunicorn[25549]: LookupError: No installed app with label 'nautobot_netbox_importer'.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jathanismcommented, Mar 11, 2021

@pke11y Great, thanks! That means we’ve successfully worked around this issue for now while creating new ones. 😃

1reaction
pke11ycommented, Mar 11, 2021

@jathanism tried b2 version w/ uWSGI and loaded the nautobot_netbox_importer. Install went well and plugin loaded. Nice job!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to load plugin from - how to solve related issues - Opster
This guide will help you check for common problems that cause the log ” Failed to load plugin from ” to appear. To...
Read more >
How to Fix 'Plugins Failed to Load' Error in OBS Studio?
Several customers encountering the “Plugins Failed to Load” error reported that the problem was ultimately fixed after installing both the x86 ...
Read more >
Plugin Load Failed using UXP Developer Tool
The plugin itself works in XD, but I'm getting an error when trying to load the plugin. I've followed the steps here but...
Read more >
How to Fix "Plugin Load Error" on OBS - Followchain
To fix “Plugin Load Error”, you need to downgrade OBS. ... After you've downgraded OBS to an older version, your plugins will be...
Read more >
Failed to load plugin - WordPress.org
I have this problem on two sites but can't locate the second one. The error message I'm seeing is: Failed to load plugin:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found