NETBOX Installation proccess - SECRET_KEY must be at least 50 characters in length #15549
Replies: 2 comments 5 replies
-
Netbox version? The secret key needs to be 50 characters in length, and the generated one should be fine (+1 for newline here):
You might have put it in the wrong place. It's possible you've made one too many nested "netbox" subdirectories, because my system has By the same token, the file which is normally at If this is the problem, you'll make life easier for yourself if you stick to the default installation location of |
Beta Was this translation helpful? Give feedback.
-
You haven't shown what you have directly under /opt/netbox. I think you will have a single directory, netbox - I.e. /opt/netbox/netbox. If so, you can follow the procedure I showed before.
There will be other nested 'netbox' directories beneath those, that's fine, don't move anything else. But when you're finished, make sure your configuration file is /opt/netbox/netbox/netbox/configuration.py
…On 3 April 2024 18:48:09 BST, Vlad Dodin ***@***.***> wrote:
The thing is, that I have 2 sub directories under opt/netbox
```
netbox-ng: /opt/netbox/netbox$ ls
base_requirements.txt contrib docs media netbox pyproject.toml reports scripts upgrade.sh
CHANGELOG.md CONTRIBUTING.md LICENSE.txt mkdocs.yml NOTICE README.md requirements.txt SECURITY.md venv
```
and
```
@netbox-ng:/opt/netbox/netbox/netbox$ ls
account core extras ipam media project-static scripts tenancy users virtualization wireless
circuits dcim generate_secret_key.py manage.py netbox reports templates translations utilities vpn
```
Should I move all the files from both to only opt/netbox and then run upgarde.sh?
--
Reply to this email directly or view it on GitHub:
#15549 (reply in thread)
You are receiving this because you commented.
Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello there,
I'm pretty new to Netbox. Trying to install it on Linux Ubuntu 22.04.3 LTS. I'm using this method : https://github.com/netbox-community/netbox/blob/develop/docs/installation/3-netbox.md
Under the section of SECRET_KEY, I generated a key using this: python3
/opt/netbox/netbox/netbox/generate_secret_key.py
and put it into
/opt/netbox/netbox/netbox/netbox/configuration.py
under SECRET_KEY, right after Redis section in that file.After updating the file, I run sudo /opt/netbox/upgrade.sh where I receive this at the end:
Tried different options to generate the key in different generators, also manually. What do I miss?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions