Hi All. I was trying to install libretime in ubuntu 18.04 on a OVH VPS.
I followed all the documents but the libretime-playout
does not start
I followed all the info I found on the github like:
# Set locale using systemds localectl
localectl set-locale LANG="en_US.utf8"
and
#Purge all locales but en_US.UTF-8
sudo locale-gen --purge en_US.UTF-8
#Populate LANGUAGE=
sudo update-locale LANGUAGE="en_US.UTF-8"
but nothing worked.
my locale are:
ubuntu@radio:~/libretime$ locale
LANG=en_US.utf8
LANGUAGE=en_US.UTF-8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=
and this is the status of the service.
● libretime-playout.service - Libretime Playout Service
Loaded: loaded (/etc/systemd/system/libretime-playout.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2021-05-22 17:35:56 CEST; 1min 38s ago
Process: 5759 ExecStart=/usr/bin/airtime-playout (code=exited, status=1/FAILURE)
Main PID: 5759 (code=exited, status=1/FAILURE)
May 22 17:35:56 radio.skidrow.it systemd[1]: libretime-playout.service: Main process exited, code=exited, status=1/FAILURE
May 22 17:35:56 radio.skidrow.it systemd[1]: libretime-playout.service: Failed with result 'exit-code'.
May 22 17:35:56 radio.skidrow.it systemd[1]: libretime-playout.service: Service hold-off time over, scheduling restart.
May 22 17:35:56 radio.skidrow.it systemd[1]: libretime-playout.service: Scheduled restart job, restart counter is at 5.
May 22 17:35:56 radio.skidrow.it systemd[1]: Stopped Libretime Playout Service.
May 22 17:35:56 radio.skidrow.it systemd[1]: libretime-playout.service: Start request repeated too quickly.
May 22 17:35:56 radio.skidrow.it systemd[1]: libretime-playout.service: Failed with result 'exit-code'.
May 22 17:35:56 radio.skidrow.it systemd[1]: Failed to start Libretime Playout Service.
I tried 4 times to install but I get the same result.
In the logs (/var/log/airtime/pypo/notify.log) I found:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/api_clients-2.0.0-py3.6.egg/api_clients/version1.py", line 365, in notify_source_status
status=status).retry(5)
File "/usr/local/lib/python3.6/dist-packages/api_clients-2.0.0-py3.6.egg/api_clients/utils.py", line 111, in retry
time.sleep(delay)
NameError: name 'time' is not defined
2021-05-22 17:50:51,148 [pyponotify] [INFO ] #################################################
2021-05-22 17:50:51,152 [pyponotify] [INFO ] # Calling server to update liquidsoap status #
2021-05-22 17:50:51,153 [pyponotify] [INFO ] #################################################
2021-05-22 17:50:51,153 [pyponotify] [INFO ] msg = OK
2021-05-22 17:50:51,265 [pyponotify] [INFO ] Response: null
2021-05-22 17:50:51,318 [version1] [ERROR] Extra data: line 1 column 119 (char 118)
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/api_clients-2.0.0-py3.6.egg/api_clients/version1.py", line 129, in notify_liquidsoap_started
self.services.notify_liquidsoap_started()
File "/usr/local/lib/python3.6/dist-packages/api_clients-2.0.0-py3.6.egg/api_clients/utils.py", line 94, in __call__
return response.json()
File "/usr/lib/python3/dist-packages/requests/models.py", line 884, in json
self.content.decode(encoding), **kwargs
File "/usr/lib/python3.6/json/__init__.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.6/json/decoder.py", line 342, in decode
raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 119 (char 118)
It seems a json is not well formatted.
Do you have any suggestion for me?
Thank you