Great silence on the stream

From @rallep71 on Sun Sep 17 2017 10:36:28 GMT+0000 (UTC)

Ubuntu 14.04, 16.04, Great silence on the stream…

/var/log/airtime/pypo/pypo.log
017-09-17 12:28:40,930 [main] [INFO ] New locale set to: en_US.UTF-8
2017-09-17 12:28:40,931 [main] [INFO ] ###########################################
2017-09-17 12:28:40,931 [main] [INFO ] # *** pypo *** #
2017-09-17 12:28:40,932 [main] [INFO ] # Liquidsoap Scheduled Playout System #
2017-09-17 12:28:40,932 [main] [INFO ] ###########################################
2017-09-17 12:28:40,932 [main] [INFO ] Timezone: (‘CET’, ‘CEST’)
2017-09-17 12:28:40,932 [main] [INFO ] UTC time: 2017-09-17 10:28:40.932253
2017-09-17 12:28:40,935 [api_client] [INFO ] Unable to get Airtime API version number.

2017-09-17 12:28:46,064 [api_client] [INFO ] Airtime API version found: 1.1
2017-09-17 12:28:46,064 [api_client] [INFO ] pypo is only compatible with API version: 1.1
2017-09-17 12:28:46,107 [main] [ERROR] HTTP Error 500: Internal Server Error
2017-09-17 12:28:56,156 [main] [ERROR] HTTP Error 500: Internal Server Error
2017-09-17 12:29:06,205 [main] [ERROR] HTTP Error 500: Internal Server Error
2017-09-17 12:29:16,258 [main] [ERROR] HTTP Error 500: Internal Server Error
2017-09-17 12:29:26,299 [main] [ERROR] HTTP Error 500: Internal Server Error
2017-09-17 12:29:36,341 [main] [ERROR] HTTP Error 500: Internal Server Error
2017-09-17 12:29:46,400 [main] [ERROR] HTTP Error 500: Internal Server Error
2017-09-17 12:29:56,444 [main] [ERROR] HTTP Error 500: Internal Server Error
2017-09-17 12:30:06,492 [main] [ERROR] HTTP Error 500: Internal Server Error
2017-09-17 12:30:16,545 [main] [ERROR] HTTP Error 500: Internal Server Error
2017-09-17 12:30:26,584 [main] [ERROR] HTTP Error 500: Internal Server Error
2017-09-17 12:30:36,625 [main] [ERROR] HTTP Error 500: Internal Server Error
2017-09-17 12:30:46,686 [main] [ERROR] HTTP Error 500: Internal Server Error

/var/log/airtime/pypo-liquidsoap/ls_script.log
2017/09/17 12:28:47 [dynamic.loader:2] Loaded plugin file /usr/lib/liquidsoap/1.1.1/plugins/ao.cmxs.
2017/09/17 12:28:47 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz master.
2017/09/17 12:28:47 [frame:3] Frame size must be a multiple of 1764 ticks = 1764 audio samples = 1 video samples.
2017/09/17 12:28:47 [frame:3] Targetting ‘frame.duration’: 0.04s = 1764 audio samples = 1764 ticks.
2017/09/17 12:28:47 [frame:3] Frames last 0.04s = 1764 audio samples = 1 video samples = 1764 ticks.
2017/09/17 12:28:47 [lang:3] timeout --signal=KILL 45 pyponotify --liquidsoap-started &
2017/09/17 12:28:47 [threads:3] Created thread “generic queue #1”.
2017/09/17 12:28:47 [threads:3] Created thread “generic queue #2”.
2017/09/17 12:28:47 [threads:3] Created thread “non-blocking queue #1”.
2017/09/17 12:28:47 [threads:3] Created thread “non-blocking queue #2”.
2017/09/17 12:28:47 [harbor:3] Adding mountpoint ‘/master’ on port 8001
2017/09/17 12:28:47 [harbor:3] Adding mountpoint ‘/show’ on port 8002
2017/09/17 12:28:47 [threads:3] Created thread “http polling” (1 total).
2017/09/17 12:28:47 [live:3] Connecting mount live for sd1live@sd1.webjab.de
2017/09/17 12:28:47 [live:3] Connection setup was successful.
2017/09/17 12:28:47 [lang:3] timeout --signal=KILL 45 pyponotify --connect --stream-id=1 --time=1505644127.11 &
2017/09/17 12:28:47 [threads:3] Created thread “wallclock_main” (2 total).
2017/09/17 12:28:47 [clock.wallclock_main:3] Streaming loop starts, synchronized with wallclock.
2017/09/17 12:28:47 [dummy:3] Source failed (no more tracks) stopping output…
2017/09/17 12:28:47 [dummy(dot)1:3] Source failed (no more tracks) stopping output…
2017/09/17 12:28:47 [dummy(dot)2:3] Source failed (no more tracks) stopping output…
2017/09/17 12:28:47 [dummy(dot)3:3] Source failed (no more tracks) stopping output…
2017/09/17 12:28:47 [dummy(dot)4:3] Source failed (no more tracks) stopping output…
2017/09/17 12:28:47 [map_metadata_5637:3] Inserting missing metadata.
2017/09/17 12:28:47 [master_show_schedule_noise_switch:3] Switch to show_schedule_noise_switch.
2017/09/17 12:28:47 [show_schedule_noise_switch:3] Switch to schedule_noise_switch.
2017/09/17 12:28:47 [schedule_noise_switch:3] Switch to map_metadata_5637.

/var/log/airtime/airtime_analyzer.log
2017-09-17 12:28:40,892 [message_listener] [ERROR] Connection to message queue failed.
2017-09-17 12:28:40,892 [message_listener] [ERROR] 1
2017-09-17 12:28:40,893 [message_listener] [INFO ] Retrying in 5 seconds…
2017-09-17 12:28:45,942 [message_listener] [INFO ] Listening for messages…

Copied from original issue: https://github.com/LibreTime/libretime/issues/299

From @rallep71 on Sun Sep 17 2017 16:15:42 GMT+0000 (UTC)

Musste die host Datei noch bearbeiten…keine Ahnung warum…
127.0.0.1 localhost
85.214.xxx.xxx xxx.xxx.de xxx
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

Auto-generated hostname. Please do not remove this comment.

85.214.xxx.xxx xxx.stratoserver.net xxxx
danach geht es perfekt, Mercy :wink:
Closed Issue

From @hairmare on Mon Sep 18 2017 17:29:42 GMT+0000 (UTC)

I’m not sure why you needed to hack your /etc/hosts. In most cases the URL used in airtime.conf should resolve properly using an external DNS.

From @Robbt on Tue Sep 19 2017 20:51:05 GMT+0000 (UTC)

Actually I think the lack of a /etc/hosts pointing to the local IP has caused my station some issues as well but mainly because we are using a OpenVPN connection to allow access to our server without modifying the firewall where our transmitter is located. Sometimes there are brief outages and because the DNS attempts to resolve to an external IP and then access itself via the OpenVPN IP it then causes issues with scheduling etc for Pypo. So for our libretime box located at our transmitter we have had to add the hostname pointing at 127.0.0.1 so that it will bypass any DNS resolution lookup failures.

From @squiggleuk on Sat Oct 07 2017 17:42:06 GMT+0000 (UTC)

I’m seeing a very similar issue on a LibreTime install that I started on today…

  • On air light is not red, but tracks show as playing to the left of it.
  • Icecast stream shows the offline metadata text
  • pypo log is showing HTTP 500 error on requests to ‘/api/register-component/format/json/api_key/#############/component/pypo’
  • airtime_anaylzer.log is showing ‘[message_listener] [ERROR] Connection to message queue failed’ and retrying every 5 sec.

I’m not really sure where to start debugging this. OS is Ubuntu 16.04LTS.

Checking my hosts file, I have ‘127.0.0.1 localhost servername’ so a ping to servername or localhost resolves to 127.0.0.1

Any help appreciated!

From @squiggleuk on Sat Oct 07 2017 18:16:33 GMT+0000 (UTC)

Typical, you spend ages trying to figure something out, eventually reach out for help, then figure it moments later!!

It was the same issue with hosts file. I had
127.0.0.1 localhost servername

What I needed was
127.0.0.1 locahost servername servername.domain.tld

Clues about name resolution were in /var/log/airtime/pypo/notify.log for others ending up poking around here in future!

From @Robbt on Sat Oct 07 2017 18:17:10 GMT+0000 (UTC)

Hey SquiggleUK I commented out your API key because that shouldn’t be publically posted for security reasons.

Glad you figured it out.

From @squiggleuk on Sat Oct 07 2017 18:17:32 GMT+0000 (UTC)

Ah, cheers for that :wink: