Your error is reported on the last line: The SECRET_KEY setting must not be empty
https://netbox.readthedocs.io/en/stable/installation/2-netbox/#secret_key
/Henrik
--
You received this message because you are subscribed to the Google Groups "NetBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discus...@googlegroups.com.
To post to this group, send email to netbox-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/7034c07f-6e12-46ff-af53-e293b6f31447%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/6386f855-2cd0-40b9-a319-7e7a107c5d37%40googlegroups.com.
Simon,
As the instructions suggest, you can either come up with a 50-character key yourself (my cats have walked across my keyboard often enough, that could work), or you could use the suggested/included tool as per the instructions
Let’s assume your netbox install directory is “/opt/netbox”
- Log in to your netbox server
- cd /opt/netbox
- cd netbox (no leading slash “/”, this puts you in /opt/netbox/netbox)
- ./generate_secret_key.py (that executes the key generator in the current directory. And yes, the command is dot-slash-generate…)
- Copy the key that’s shown to you
- cd netbox (again, yes, that puts you in /opt/netbox/netbox/netbox, which is where the configuration file is)
- edit the file “configuration.py” At or near line 27, where it says “SECRET_KEY”, edit it to reflect your previously generated secret key
For example, if your key is “1234abcd”, the line should read
SECRET_KEY = ‘1234abcd’
Of course, the key should be 50 characters long.
The section of the instructions that starts where it tells you to edit “configuration.py” (https://netbox.readthedocs.io/en/stable/installation/2-netbox/#configuration) and the following paragraphs are quite important and need to be closely followed.
Hope that helped,
Frank
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/D779910E-4635-4191-B45C-802711D76C8D%40gmail.com.
netbox/generate_secret_key.py to generate a suitable key.” says it right in that page u sentIt's not 100% clear in the documentation, but SECRET_KEY is just another setting in configuration.pyYou put any very long random string in there. The instructions show how to run a utility which can generate a random string for you. Then you find the SECRET_KEY = '' line in configuration.py, and you paste the random value between the quotes.
--
You received this message because you are subscribed to the Google Groups "NetBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discus...@googlegroups.com.
To post to this group, send email to netbox-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/c81f839d-a492-4a64-b4e9-def4396b790c%40googlegroups.com.