Replies: 4 comments
-
No no no... don't go installing random packages into your global system, you'll just create a mess. Python installs all its packages into a virtualenv, and you have to "activate" it in your shell before you can run any Netbox utilities:
(you can use a single dot It is documented here as part of the "Create Superuser" step. However this isn't persistent, it just affects the current shell, so whenever you open a new shell you have to activate the environment within that shell.
That's because you haven't finished following the installation instructions. That part is here. |
Beta Was this translation helpful? Give feedback.
-
I'm also experiencing issues with the Netbox installation. I belief a django installation step was missing configuration steps. Is there a way of determining from a working Netbox deployment ? |
Beta Was this translation helpful? Give feedback.
-
Performed the Netbox installation again. This is the console dialog when attempting to run the (venv) root@Netbox:/opt/netbox/netbox# python3 manage.py runserver 0.0.0.0:8000 --insecure System check identified no issues (0 silenced). During handling of the above exception, another exception occurred: Traceback (most recent call last): Appreciate any guidance. Thanks |
Beta Was this translation helpful? Give feedback.
-
I was able to figure this out after watching the instillation video. The Netbox writeup is missing the following: After the following command is entered: python3 ../generate_secret_key.py The Key needs to be copied to the configuration.py in the previous step |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Everyone,
I'm trying to get NetBox up and running on a Ubuntu 20.04 LTS Server. I have followed the documentation found here on readthedocks.io. When I get to the stage of launching the development server, I'm running into trouble.
Returned:
So I ran:
The same situation repeated:
So I ran
sudo pip install psycopg2
Which gave
ModuleNoptFoundError: No module named 'corsheader'
So I ran
sudo pip install django-cors-headers
Which gave
ModuleNoptFoundError: No module named 'debug_toolbar'
This continued with the next four modules:
Which eventually landed me at:
I had confirmed that the
requirements.txt
line had been run from within theupdate.sh
. I even re-ran it withphp install -r requirements.txt
, but I'm still stuck at the same point.Can any one provide some guidance on what might be going wrong?
Notably - at the end of the
upgrade.sh
script, there is an instruction to restartnetbox
andnetbox-rq
viasystemctl
, however there are no systemd units found.I have checked and triple checked to ensure I didn't skip any steps - even repeating through the steps to no avail.
Looking forward to your advice.
Beta Was this translation helpful? Give feedback.
All reactions