[GH-ISSUE #285] Insecure key file permissions #226

Closed
opened 2026-02-27 16:38:29 +03:00 by kerem · 2 comments
Owner

Originally created by @amarc on GitHub (Apr 17, 2014).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/285

Hello,

durring install process I hang on ./manage.py collectstatic with following error:

WARNING:root:No local_settings file found.
Traceback (most recent call last):
File "./manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/usr/lib64/python3.3/site-packages/django/core/management/init.py", line 453, in execute_from_command_line
utility.execute()
File "/usr/lib64/python3.3/site-packages/django/core/management/init.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib64/python3.3/site-packages/django/core/management/init.py", line 263, in fetch_command
app_name = get_commands()[subcommand]
File "/usr/lib64/python3.3/site-packages/django/core/management/init.py", line 109, in get_commands
apps = settings.INSTALLED_APPS
File "/usr/lib64/python3.3/site-packages/django/conf/init.py", line 53, in getattr
self._setup(name)
File "/usr/lib64/python3.3/site-packages/django/conf/init.py", line 48, in _setup
self._wrapped = Settings(settings_module)
File "/usr/lib64/python3.3/site-packages/django/conf/init.py", line 132, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib64/python3.3/site-packages/django/utils/importlib.py", line 35, in import_module
import(name)
File "/var/www/webvirt/webvirtmgr/webvirtmgr/settings.py", line 163, in
'.secret_key_store'))
File "/var/www/webvirt/webvirtmgr/webvirtmgr/utils/secret_key.py", line 61, in generate_or_read_from_file
raise FilePermissionError("Insecure key file permissions!")
webvirtmgr.utils.secret_key.FilePermissionError: Insecure key file permissions!

While distro is not Red Hat/ Ubuntu all required packages are installed. Can you give me a hint what might cause this error ?

ty.

Originally created by @amarc on GitHub (Apr 17, 2014). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/285 Hello, durring install process I hang on ./manage.py collectstatic with following error: WARNING:root:No local_settings file found. Traceback (most recent call last): File "./manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "/usr/lib64/python3.3/site-packages/django/core/management/**init**.py", line 453, in execute_from_command_line utility.execute() File "/usr/lib64/python3.3/site-packages/django/core/management/**init**.py", line 392, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/lib64/python3.3/site-packages/django/core/management/**init**.py", line 263, in fetch_command app_name = get_commands()[subcommand] File "/usr/lib64/python3.3/site-packages/django/core/management/**init**.py", line 109, in get_commands apps = settings.INSTALLED_APPS File "/usr/lib64/python3.3/site-packages/django/conf/**init**.py", line 53, in **getattr** self._setup(name) File "/usr/lib64/python3.3/site-packages/django/conf/__init__.py", line 48, in _setup self._wrapped = Settings(settings_module) File "/usr/lib64/python3.3/site-packages/django/conf/__init__.py", line 132, in **init** mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/lib64/python3.3/site-packages/django/utils/importlib.py", line 35, in import_module **import**(name) File "/var/www/webvirt/webvirtmgr/webvirtmgr/settings.py", line 163, in <module> '.secret_key_store')) File "/var/www/webvirt/webvirtmgr/webvirtmgr/utils/secret_key.py", line 61, in generate_or_read_from_file raise FilePermissionError("Insecure key file permissions!") webvirtmgr.utils.secret_key.FilePermissionError: Insecure key file permissions! While distro is not Red Hat/ Ubuntu all required packages are installed. Can you give me a hint what might cause this error ? ty.
kerem closed this issue 2026-02-27 16:38:29 +03:00
Author
Owner

@schmitch commented on GitHub (Apr 17, 2014):

Currently I don't fix this. Since Python3 isn't supported anyways.

Just use Python2

<!-- gh-comment-id:40731641 --> @schmitch commented on GitHub (Apr 17, 2014): Currently I don't fix this. Since Python3 isn't supported anyways. Just use Python2
Author
Owner

@amarc commented on GitHub (Apr 18, 2014):

Hi,

that would be great thank you.

A.

<!-- gh-comment-id:40791537 --> @amarc commented on GitHub (Apr 18, 2014): Hi, that would be great thank you. A.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtmgr#226
No description provided.