Skip to content

Django SECRET_KEY error #45

@AlanCodega

Description

@AlanCodega

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions