# Unable to start Libretime Playout Service

**URL:** <https://discourse.libretime.org/t/unable-to-start-libretime-playout-service/919>\
**Category:** Get Help\
**Created:** [May 22, 2021, 3:53pm UTC](https://discourse.libretime.org/t/unable-to-start-libretime-playout-service/919 "2021-05-22T15:53:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![peppinoita](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.libretime.org/peppinoita/32/34_2.png) [@peppinoita](https://discourse.libretime.org/u/peppinoita)\
**Post date:** [May 22, 2021, 3:53pm UTC](https://discourse.libretime.org/t/unable-to-start-libretime-playout-service/919/1 "2021-05-22T15:53:46Z")

</div>

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:

```auto
# Set locale using systemds localectl
localectl set-locale LANG="en_US.utf8"

```

and

```auto
#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:

```auto
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.

```auto
● 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:

```auto
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

---

<div class="post-metadata">

**Author:** ![peppinoita](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.libretime.org/peppinoita/32/34_2.png) [@peppinoita](https://discourse.libretime.org/u/peppinoita)\
**Post date:** [May 22, 2021, 3:59pm UTC](https://discourse.libretime.org/t/unable-to-start-libretime-playout-service/919/2 "2021-05-22T15:59:31Z")

</div>

![image](https://canada1.discourse-cdn.com/flex036/uploads/libretime/original/1X/18d70b18827c0181891b2644ef67cfcfbb7e2c51.png)

---

<div class="post-metadata">

**Author:** ![stevewa](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@stevewa](https://discourse.libretime.org/u/stevewa)\
**Post date:** [June 19, 2021, 3:49am UTC](https://discourse.libretime.org/t/unable-to-start-libretime-playout-service/919/3 "2021-06-19T03:49:21Z")

</div>

I have similar issue on fresh install of Ubuntu desktop 18.04  
Have you tried looking at the journal?  
**sudo journalctl -u libretime-playout**

my error is…  
Jun 18 23:36:52 redubuntu18 airtime-playout[4892]: File “/usr/local/lib/python3.6/dist-packages/api\_clients-2.0.0-py3.6.egg/api\_clients/version2.py”, line 14, in   
Jun 18 23:36:52 redubuntu18 airtime-playout[4892]: from dateutil.parser import isoparse  
Jun 18 23:36:52 redubuntu18 airtime-playout[4892]: ImportError: cannot import name ‘isoparse’

I don’t know what to do next.
