----FORM REQUESTED —
Describe the problem
A clear and concise description of what the problem is:
INCOMPLETE INSTALLATION.
INSTALLATION FAILS AT THE DATABASE SETUP STAGE.
Expected behavior
After the installation, we ran the command for migration (database setup)
sudo -u libretime libretime-api migrate
Relevant log output or error messages
------------------------------------------------------begin screen log
root@vps91840:/etc/libretime# sudo -u libretime libretime-api migrate
Traceback (most recent call last):
File “/usr/local/bin/libretime-api”, line 8, in
sys.exit(main())
File “/usr/local/lib/python3.9/dist-packages/libretime_api/manage.py”, line 20, in main
execute_from_command_line(sys.argv)
File “/usr/local/lib/python3.9/dist-packages/django/core/management/init.py”, line 419, in execute_from_command_line
utility.execute()
File “/usr/local/lib/python3.9/dist-packages/django/core/management/init.py”, line 363, in execute
settings.INSTALLED_APPS
File “/usr/local/lib/python3.9/dist-packages/django/conf/init.py”, line 82, in getattr
self._setup(name)
File “/usr/local/lib/python3.9/dist-packages/django/conf/init.py”, line 69, in _setup
self._wrapped = Settings(settings_module)
File “/usr/local/lib/python3.9/dist-packages/django/conf/init.py”, line 170, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File “/usr/lib/python3.9/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1030, in _gcd_import
File “”, line 1007, in _find_and_load
File “”, line 986, in _find_and_load_unlocked
File “”, line 680, in _load_unlocked
File “”, line 790, in exec_module
File “”, line 228, in _call_with_frames_removed
File “/usr/local/lib/python3.9/dist-packages/libretime_api/settings/prod.py”, line 25, in
CONFIG = Config(LIBRETIME_CONFIG_FILEPATH)
File “/usr/local/lib/python3.9/dist-packages/libretime_shared/config/_base.py”, line 43, in init
_self._load_file_values(_filepath),
File “/usr/local/lib/python3.9/dist-packages/libretime_shared/config/_base.py”, line 66, in _load_file_values
return safe_load(filepath.read_text(encoding=“utf-8”))
File “/usr/lib/python3.9/pathlib.py”, line 1255, in read_text
with self.open(mode=‘r’, encoding=encoding, errors=errors) as f:
File “/usr/lib/python3.9/pathlib.py”, line 1241, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File “/usr/lib/python3.9/pathlib.py”, line 1109, in _opener
return self._accessor.open(self, flags, mode)
PermissionError: [Errno 13] Permission denied: ‘/etc/libretime/config.yml’
root@vps91840:/etc/libretime# ^C
root@vps91840:/etc/libretime# ^C
root@vps91840:/etc/libretime# sudo systemctl restart libretime.target
Failed to restart libretime.target: Unit libretime.target not found.
root@vps91840:/etc/libretime# sudo -u libretime libretime-api migrate
Traceback (most recent call last):
File “/usr/local/bin/libretime-api”, line 8, in
sys.exit(main())
File “/usr/local/lib/python3.9/dist-packages/libretime_api/manage.py”, line 20, in main
execute_from_command_line(sys.argv)
File “/usr/local/lib/python3.9/dist-packages/django/core/management/init.py”, line 419, in execute_from_command_line
utility.execute()
File “/usr/local/lib/python3.9/dist-packages/django/core/management/init.py”, line 363, in execute
settings.INSTALLED_APPS
File “/usr/local/lib/python3.9/dist-packages/django/conf/init.py”, line 82, in getattr
self._setup(name)
File “/usr/local/lib/python3.9/dist-packages/django/conf/init.py”, line 69, in _setup
self._wrapped = Settings(settings_module)
File “/usr/local/lib/python3.9/dist-packages/django/conf/init.py”, line 170, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File “/usr/lib/python3.9/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1030, in _gcd_import
File “”, line 1007, in _find_and_load
File “”, line 986, in _find_and_load_unlocked
File “”, line 680, in _load_unlocked
File “”, line 790, in exec_module
File “”, line 228, in _call_with_frames_removed
File “/usr/local/lib/python3.9/dist-packages/libretime_api/settings/prod.py”, line 25, in
CONFIG = Config(LIBRETIME_CONFIG_FILEPATH)
File “/usr/local/lib/python3.9/dist-packages/libretime_shared/config/_base.py”, line 43, in init
_self._load_file_values(_filepath),
File “/usr/local/lib/python3.9/dist-packages/libretime_shared/config/_base.py”, line 66, in _load_file_values
return safe_load(filepath.read_text(encoding=“utf-8”))
File “/usr/lib/python3.9/pathlib.py”, line 1255, in read_text
with self.open(mode=‘r’, encoding=encoding, errors=errors) as f:
File “/usr/lib/python3.9/pathlib.py”, line 1241, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File “/usr/lib/python3.9/pathlib.py”, line 1109, in _opener
return self._accessor.open(self, flags, mode)
PermissionError: [Errno 13] Permission denied: ‘/etc/libretime/config.yml’
root@vps91840:/etc/libretime#
------------------------------------------------------End log
LibreTime version
THE INSTALLATION IS NOT COMPLETED
LibreTime version: libretime-3.0.1
Installation method and OS / Environment
The method used to install and the operating system / environment your installation is running on.
Operating system: (e.g. Ubuntu Focal or Debian Bullseye)
root@vps91840:~# cat /etc/os-release
PRETTY_NAME=“Debian GNU/Linux 11 (bullseye)”
NAME=“Debian GNU/Linux”
VERSION_ID=“11”
VERSION=“11 (bullseye)”
VERSION_CODENAME=bullseye
ID=debian
Method: (e.g. Installer script or Docker compose)
wget LINK TO libretime-3.0.1.tar.gz
tar -xvf libretime-3.0.1.tar.gz && cd libretime
sudo
./install
–listen-port 8080
–no-setup-postgresql
LINK TO voixdukouilou DOT net