Replies: 2 comments 2 replies
-
Hi, it's not easy to guess the problem since you mixed some steps with and without sudo and some error output is missing. You could try an alternative installation method:
This is usually done when upgrading NetBox, but it's safe to run this as often as you like. The script removes and creates a new venv, checks required packages and migrates the database if necessary. Plugins will be upgraded (if newer version is available) or installed, if they exist in local_requirements.txt. If the upgrade script fails, post the complete output. |
Beta Was this translation helpful? Give feedback.
2 replies
-
I am performing a few tests, and if they work, I will mark it resolved.
Thank you for your guidance on resolving this.
…On Mon, Mar 25, 2024 at 12:08 PM Mario ***@***.***> wrote:
The upgrade script however does appear to have run, and I am now seeing
the plugin in the interface as it should be.
So the issue can be marked as resolved?
I think the initial problem was a permissions issue and using sudo with
pip3 probably made it worse. I usually become root with "su -" which in
your case would be a "sudo -i". After that I usually run the upgrade script
or activate a venv in order to use pip3 or other things.
—
Reply to this email directly, view it on GitHub
<#470 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BHHH34BON4XIKPIBXUON4MTY2BDZLAVCNFSM6AAAAABFDQC75WVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DSMBUG42TM>
.
You are receiving this because you authored the thread.Message ID:
<netbox-community/netbox-topology-views/repo-discussions/470/comments/8904756
@github.com>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Starting state:
Ubuntu 22.04.4 LTS
Netbox 3.7.3
Installed using instructions on Netbox page.
Python 3.10.12
django 5.0.3
Postgres SQL 14.11
Process:
Started virtual environ (source /opt/netbox/venv/bin/activate)
ran install command (pip install netbox-topology-views)
Should be noted no apparent directory was made for the plugin in /opt/netbox/netbox/static
--ERROR access denied--
re-ran with sudo, reports installed
deactivated virtual env
added 'netbox-topology-views' to local_requirements.txt with vi
saved and verified additions were saved
added "netbox_topology_views" to PLUGINS in config.py
saved and verified entries were saved
restarted virtual env
Ran:
cd /opt/netbox/netbox
pip3 install netbox-topology-views (failed) (Reported using cached package on retry with sudo)
python3 manage.py migrate netbox_topology_views (failed)
python3 manage.py collectstatic --no-input (failed)
Attempted to uninstall (pip uninstall netbox-topology-views)
Says module not installed.
Was a step missed in the readme about actual installation? I accept I am not a *nix person, so I rely on the instructions provided, but obviously something went wrong. The main install works fine, and we have been entering data into it, and we wish to add this plugin to it
Beta Was this translation helpful? Give feedback.
All reactions