webvirtmgr
webvirtmgr copied to clipboard
clean ubuntu 20.04.4 lts server Manage.py error
After in stalled a clean Ubuntu 20.04.4 lts server on a dedicated test machine i tried following the commands
sudo apt-get install git python3-pip python3-libvirt python-libxml2 novnc supervisor nginx runs fine installes all things it should
git clone https://github.com/retspen/webvirtmgr.git $ cd webvirtmgr $ sudo pip install -r requirements.txt run all fine as well
manage.py syncdb sipts out the following error
WARNING:root:No local_settings file found.
Traceback (most recent call last):
File "./manage.py", line 10, in
so i cant go further i also tried to chmod +x on manage.py also linked the python3 sudo ln -s /usr/bin/python3 /usr/bin/python so it detects the python env even in sudo it wont run
in file
webvirtmgr/webvirtmgr/utils/secret_key.py in line 60: Change
if oct(os.stat(key_file).st_mode & 0o777) != '0600':
to
if oct(os.stat(key_file).st_mode & 0o777) != '0o600':
and use:
$ sudo chmod 0600 webvirtmgr/webvirtmgr/local/.secret_key_store
`