You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[netbox 6/6] RUN DEBUG="true" SECRET_KEY="dummydummydummydummydummydummydummydummydummydummy" /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic --no-input:
0.589 🧬 loaded config '/etc/netbox/config/configuration.py'
0.589 🧬 loaded config '/etc/netbox/config/extra.py'
0.589 🧬 loaded config '/etc/netbox/config/logging.py'
0.589 🧬 loaded config '/etc/netbox/config/plugins.py'
0.589 Traceback (most recent call last):
0.589 File "/opt/netbox/venv/lib/python3.12/site-packages/django/core/management/init.py", line 255, in fetch_command
0.589 app_name = commands[subcommand]
0.589 ~~~~~~~~^^^^^^^^^^^^
0.589 KeyError: 'collectstatic'
0.589
0.589 During handling of the above exception, another exception occurred:
0.589
0.589 Traceback (most recent call last):
0.589 File "/opt/netbox/netbox/netbox/settings.py", line 795, in
0.590 plugin = importlib.import_module(plugin_name)
0.590 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0.590 File "/usr/lib/python3.12/importlib/init.py", line 90, in import_module
0.590 return _bootstrap._gcd_import(name[level:], package, level)
0.590 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0.590 File "", line 1387, in _gcd_import
0.590 File "", line 1360, in _find_and_load
0.590 File "", line 1324, in _find_and_load_unlocked
0.590 ModuleNotFoundError: No module named 'netbox-topology-views'
0.591
0.591 During handling of the above exception, another exception occurred:
0.591
0.591 Traceback (most recent call last):
0.591 File "/opt/netbox/netbox/manage.py", line 10, in
0.591 execute_from_command_line(sys.argv)
0.591 File "/opt/netbox/venv/lib/python3.12/site-packages/django/core/management/init.py", line 442, in execute_from_command_line
0.591 utility.execute()
0.591 File "/opt/netbox/venv/lib/python3.12/site-packages/django/core/management/init.py", line 436, in execute
0.591 self.fetch_command(subcommand).run_from_argv(self.argv)
0.591 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0.591 File "/opt/netbox/venv/lib/python3.12/site-packages/django/core/management/init.py", line 262, in fetch_command
0.591 settings.INSTALLED_APPS
0.591 File "/opt/netbox/venv/lib/python3.12/site-packages/django/conf/init.py", line 81, in getattr
0.591 self._setup(name)
0.591 File "/opt/netbox/venv/lib/python3.12/site-packages/django/conf/init.py", line 68, in _setup
0.591 self._wrapped = Settings(settings_module)
0.591 ^^^^^^^^^^^^^^^^^^^^^^^^^
0.591 File "/opt/netbox/venv/lib/python3.12/site-packages/django/conf/init.py", line 166, in init
0.592 mod = importlib.import_module(self.SETTINGS_MODULE)
0.592 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0.592 File "/usr/lib/python3.12/importlib/init.py", line 90, in import_module
0.592 return _bootstrap._gcd_import(name[level:], package, level)
0.592 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0.592 File "", line 1387, in _gcd_import
0.592 File "", line 1360, in _find_and_load
0.592 File "", line 1331, in _find_and_load_unlocked
0.592 File "", line 935, in _load_unlocked
0.592 File "", line 995, in exec_module
0.592 File "", line 488, in _call_with_frames_removed
0.592 File "/opt/netbox/netbox/netbox/settings.py", line 798, in
0.592 raise ImproperlyConfigured(
0.593 django.core.exceptions.ImproperlyConfigured: Unable to import plugin netbox-topology-views: Module not found. Check that the plugin module has been installed within the correct Python environment.
Can someone who had successfully installed this plugin give me pointers about what am I doing wrong? These are the contents of the files:
plugin_requirements.txt:
netbox-topology-views
plugins.py:
PLUGINS = ["netbox-topology-views"]
PLUGINS_CONFIG = {
"netbox-topology-views": {
}
}
docker-compose.override.yml:
services:
netbox:
image: netbox:latest-plugins
pull_policy: never
ports:
- 8000:8080
build:
context: .
dockerfile: Dockerfile-Plugins
netbox-worker:
image: netbox:latest-plugins
pull_policy: never
netbox-housekeeping:
image: netbox:latest-plugins
pull_policy: never
Dockerfile-Plugins:
FROM netboxcommunity/netbox:latest
COPY ./plugin_requirements.txt /opt/netbox/
RUN /usr/local/bin/uv pip install -r /opt/netbox/plugin_requirements.txt
These lines are only required if your plugin has its own static files.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I'm trying to install this plugin following the steps from this guide: https://github.com/netbox-community/netbox-docker/wiki/Using-Netbox-Plugins but when I reach to this step:
docker compose build --no-cache
it breaks giving me these error messages:rfreddy@comet:~/netbox-docker$ docker compose build --no-cache
[+] Building 1.7s (10/10) FINISHED docker:default
=> [netbox internal] load build definition from Dockerfile-Plugins 0.0s
=> => transferring dockerfile: 569B 0.0s
=> [netbox internal] load metadata for docker.io/netboxcommunity/netbox:latest 0.3s
=> [netbox internal] load .dockerignore 0.0s
=> => transferring context: 234B 0.0s
=> CACHED [netbox 1/6] FROM docker.io/netboxcommunity/netbox:latest@sha256:0150ac8e573ba5bf9a32003baf4cf4e6bf99772a6d0a9fc2bab68531f2952f72 0.0s
=> [netbox internal] load build context 0.0s
=> => transferring context: 172B 0.0s
=> [netbox 2/6] COPY ./plugin_requirements.txt /opt/netbox/ 0.0s
=> [netbox 3/6] RUN /usr/local/bin/uv pip install -r /opt/netbox/plugin_requirements.txt 0.5s
=> [netbox 4/6] COPY configuration/configuration.py /etc/netbox/config/configuration.py 0.0s
=> [netbox 5/6] COPY configuration/plugins.py /etc/netbox/config/plugins.py 0.0s
=> ERROR [netbox 6/6] RUN DEBUG="true" SECRET_KEY="dummydummydummydummydummydummydummydummydummydummy" /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py 0.7s
Can someone who had successfully installed this plugin give me pointers about what am I doing wrong? These are the contents of the files:
plugin_requirements.txt:
netbox-topology-views
plugins.py:
PLUGINS = ["netbox-topology-views"]
PLUGINS_CONFIG = {
"netbox-topology-views": {
}
}
docker-compose.override.yml:
services:
netbox:
image: netbox:latest-plugins
pull_policy: never
ports:
- 8000:8080
build:
context: .
dockerfile: Dockerfile-Plugins
netbox-worker:
image: netbox:latest-plugins
pull_policy: never
netbox-housekeeping:
image: netbox:latest-plugins
pull_policy: never
Dockerfile-Plugins:
FROM netboxcommunity/netbox:latest
COPY ./plugin_requirements.txt /opt/netbox/
RUN /usr/local/bin/uv pip install -r /opt/netbox/plugin_requirements.txt
These lines are only required if your plugin has its own static files.
COPY configuration/configuration.py /etc/netbox/config/configuration.py
COPY configuration/plugins.py /etc/netbox/config/plugins.py
RUN DEBUG="true" SECRET_KEY="dummydummydummydummydummydummydummydummydummydummy" /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic --no-input
Thank you very much!
Beta Was this translation helpful? Give feedback.
All reactions