Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django SECRET_KEY error #45

Open
AlanCodega opened this issue Apr 20, 2023 · 1 comment
Open

Django SECRET_KEY error #45

AlanCodega opened this issue Apr 20, 2023 · 1 comment

Comments

@AlanCodega
Copy link

Docker composer image not working anymore leading to this error about SECRET_KEY:

JMeterControlCenter | File "/usr/local/lib/python3.6/site-packages/django/conf/init.py", line 79, in getattr
JMeterControlCenter | self._setup(name)
JMeterControlCenter | File "/usr/local/lib/python3.6/site-packages/django/conf/init.py", line 66, in _setup
JMeterControlCenter | self._wrapped = Settings(settings_module)
JMeterControlCenter | File "/usr/local/lib/python3.6/site-packages/django/conf/init.py", line 176, in init
JMeterControlCenter | raise ImproperlyConfigured("The SECRET_KEY setting must not be empty.")
JMeterControlCenter | django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty.
JMeterControlCenter exited with code 1

After spending few hours in copying paste SECRET_KEY from django to env - yml file and try everythings, i found a temporary solution:

workaround Quick & Dirty:

as suggested in:
arcmedia/JmeterControlCenter#3

modify this line inside DockerFile:


RUN apt-get update && \
	git clone https://github.com/innogames/JMeter-Control-Center.git
to this:
RUN apt-get update && \
	git clone https://github.com/innogames/JMeter-Control-Center.git && \
	cd JMeter-Control-Center && \
	git reset --hard 683ec5893b380e109c8971765374076406cef3f9 && \
	cd ..

Long-term fix
the maintainer of https://github.com/arcmedia/JmeterControlCenter it's not working anymore for innogames:

Should be nice if someone from Innogames can gently take a look at that.

Many thanks in advance!

@chinmayroy
Copy link

To find a proper long-term fix, you should try to identify the root cause of the problem. Check the configuration files of your Django application and see if the SECRET_KEY setting is properly set. You can also check if any recent changes in the application code or dependencies might have caused this issue.

Let me know what's going on........

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants