Andrey Podshivalov said:
Right then, using Andor's HowTo I installed pound, and it does indeed provide a pretty cool SSL wrapper (which I decided to leave on regardless of whether Airtime works or not) - thanks for that !
http://pierdelacabeza.com/maruja/2012/10/protecting-airtime-web-admin-with-ssl/
Afterwards I installed Airtime from scratch, alas, it failed to stream to ShoutCast. It simply doesn't see the server - neither the built-in IceCast server nor my own ShoutCast server (which otherwise works perfectly in combination with other streaming software).
The Airtime Check comes up with LiquidSoap failures. So any hints on how to verify its setup welcome.
By the way...
apt-get update
apt-get upgrade and
apt-get dist-upgrade
all completed successfully.
Here's my airtime sources.list:
In /var/log/airtime/pypo/pypo.log
these errors appear every second:
2013-05-05 15:49:17,505 DEBUG - [pypocli.py : liquidsoap_running_test() : line 129] - Checking to see if Liquidsoap is running
2013-05-05 15:49:17,506 ERROR - [pypocli.py : liquidsoap_running_test() : line 139] - [Errno 111] Connection refused
2013-05-05 15:49:17,507 WARNING - [pypocli.py : <module>() : line 172] - Liquidsoap not started yet. Sleeping one second and trying again
Tried both Liquidsoap versions currently available in Debian...
root@aptosid:/var/log/airtime/pypo# apt-get install liquidsoap=1.0.1~squeeze~sfo-4
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
festival mplayer
Recommended packages:
mp3gain vorbisgain
The following packages will be DOWNGRADED:
liquidsoap
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 65 not upgraded.
Need to get 0 B/1,934 kB of archives.
After this operation, 1,066 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: warning: downgrading liquidsoap from 1.0.1+repack1-1.1 to 1.0.1~squeeze~sfo-4
(Reading database ... 298347 files and directories currently installed.)
Preparing to replace liquidsoap 1.0.1+repack1-1.1 (using .../liquidsoap_1.0.1~squeeze~sfo-4_amd64.deb) ...
Stopping liquidsoap channels: no script found in /etc/liquidsoap
Unpacking replacement liquidsoap ...
Processing triggers for man-db ...
Setting up liquidsoap (1.0.1~squeeze~sfo-4) ...
Starting liquidsoap channels: no script found in /etc/liquidsoap
root@aptosid:/var/log/airtime/pypo# service airtime-liquidsoap restart
Restarting Liquidsoap: ('Error loading config file: %s', error(111, 'Connection refused'))
Done.
root@aptosid:/var/log/airtime/pypo#
#########################################
# *** pypo *** #
# pypo notification gateway #
#########################################
root@aptosid:/var/log/airtime/pypo# apt-get install liquidsoap=1.0.1+repack1-1.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
festival mplayer liguidsoap liquidsoap-plugin-samplerate liquidsoap-plugin-xmlplaylist
Recommended packages:
mp3gain vorbisgain liquidsoap-plugin-mad liquidsoap-plugin-lame liquidsoap-plugin-taglib liquidsoap-plugin-vorbis liquidsoap-plugin-flac
liquidsoap-plugin-voaacenc liquidsoap-plugin-icecast liquidsoap-plugin-faad liquidsoap-plugin-pulseaudio
The following packages will be upgraded:
liquidsoap
1 upgraded, 0 newly installed, 0 to remove and 65 not upgraded.
Need to get 0 B/1,845 kB of archives.
After this operation, 1,066 kB disk space will be freed.
(Reading database ... 298343 files and directories currently installed.)
Preparing to replace liquidsoap 1.0.1~squeeze~sfo-4 (using .../liquidsoap_1.0.1+repack1-1.1_amd64.deb) ...
Stopping liquidsoap channels: no script found in /etc/liquidsoap
Unpacking replacement liquidsoap ...
Processing triggers for man-db ...
Setting up liquidsoap (1.0.1+repack1-1.1) ...
Starting liquidsoap channels: no script found in /etc/liquidsoap
root@aptosid:/var/log/airtime/pypo# service airtime-liquidsoap restart
Restarting Liquidsoap: ('Error loading config file: %s', error(111, 'Connection refused'))
start-stop-daemon: warning: failed to kill 14209: No such process
At /usr/lib/airtime/pypo/bin/liquidsoap_scripts/ls_lib.liq, line 260, char 49:
the variable output.shoutcast used here has not been previously defined.
By the way... Airtime WebGUIs stream config shows a message stuck at the top:
Getting information from the server...
Same result as above.
I think at first it wasn't there.
So I made a file with that name to avoid the error mentioned above.
But it's not being written:
root@aptosid:/var/log/airtime/pypo# cd /var/log/airtime/pypo-liquidsoap
root@aptosid:/var/log/airtime/pypo-liquidsoap# ls -la
total 8
drwxr-xr-x 2 pypo pypo 4096 May 5 17:10 .
drwxr-xr-x 5 www-data www-data 4096 May 5 15:32 ..
-rw-r--r-- 1 root root 0 May 5 17:10 ls_script.log
root@aptosid:/var/log/airtime/pypo-liquidsoap# cat ls_script.log
Tried chown:
root@aptosid:/var/log/airtime/pypo-liquidsoap# chown pypo:pypo ls_script.log
root@aptosid:/var/log/airtime/pypo-liquidsoap# ls -la
total 8
drwxr-xr-x 2 pypo pypo 4096 May 5 17:10 .
drwxr-xr-x 5 www-data www-data 4096 May 5 15:32 ..
-rw-r--r-- 1 pypo pypo 0 May 5 17:10 ls_script.log
root@aptosid:/var/log/airtime/pypo-liquidsoap# airtime-check-system
AIRTIME_STATUS_URL = http://localhost:8888/api/status/format/json/api_key/%%api_key%%
AIRTIME_SERVER_RESPONDING = OK
KERNEL_VERSION = 3.8-7.slh.2-aptosid-amd64
MACHINE_ARCHITECTURE = x86_64
TOTAL_MEMORY_MBYTES = 4055316
TOTAL_SWAP_MBYTES = 0
AIRTIME_VERSION = 2.3.1
OS = Debian GNU/Linux 7.0 (wheezy) x86_64
CPU = AMD Phenom(tm) 9950 Quad-Core Processor
WEB_SERVER = Apache/2.2.22 (Debian)
PLAYOUT_ENGINE_PROCESS_ID = FAILED
PLAYOUT_ENGINE_RUNNING_SECONDS = 0
PLAYOUT_ENGINE_MEM_PERC = 0%
PLAYOUT_ENGINE_CPU_PERC = 0%
-- Displaying log file /var/log/airtime/pypo/pypo.log
-- 2013-05-06 19:12:46,415 ERROR - [pypocli.py : liquidsoap_running_test() : line 139] - [Errno 111] Connection refused
-- 2013-05-06 19:12:46,416 WARNING - [pypocli.py : <module>() : line 172] - Liquidsoap not started yet. Sleeping one second and trying again
-- 2013-05-06 19:12:47,417 DEBUG - [pypocli.py : liquidsoap_running_test() : line 129] - Checking to see if Liquidsoap is running
-- 2013-05-06 19:12:47,418 ERROR - [pypocli.py : liquidsoap_running_test() : line 139] - [Errno 111] Connection refused
-- 2013-05-06 19:12:47,418 WARNING - [pypocli.py : <module>() : line 172] - Liquidsoap not started yet. Sleeping one second and trying again
--
--
LIQUIDSOAP_PROCESS_ID = FAILED
LIQUIDSOAP_RUNNING_SECONDS = 0
LIQUIDSOAP_MEM_PERC = 0%
LIQUIDSOAP_CPU_PERC = 0%
-- Displaying log file /var/log/airtime/pypo-liquidsoap/ls_script.log
--
--
MEDIA_MONITOR_PROCESS_ID = 2234
MEDIA_MONITOR_RUNNING_SECONDS = 99437
MEDIA_MONITOR_MEM_PERC = 0.3%
MEDIA_MONITOR_CPU_PERC = 0.0%
-- There appears to be a problem with your Airtime installation.
-- Please visit http://wiki.sourcefabric.org/x/HABQ
root@aptosid:/var/log/airtime/pypo-liquidsoap# service airtime-liquidsoap restart
Restarting Liquidsoap: ('Error loading config file: %s', error(111, 'Connection refused'))
At /usr/lib/airtime/pypo/bin/liquidsoap_scripts/ls_lib.liq, line 260, char 49:
the variable output.shoutcast used here has not been previously defined.
Done.
Looks like a syntax error in the script:
root@aptosid:~# sudo -u pypo /usr/lib/airtime/pypo/bin/airtime-liquidsoap
At /usr/lib/airtime/pypo/bin/liquidsoap_scripts/ls_lib.liq, line 260, char 49:
the variable output.shoutcast used here has not been previously defined.
::
:: Line ~260 onwards ...
::
output.shoutcast_mono = output.shoutcast(id = "shoutcast_stream_#{stream}",
host = host,
port = port,
password = pass,
fallible = true,
url = url,
genre = genre,
name = description,
user = !user_ref,
on_error = on_error,
on_connect = on_connect)
output.shoutcast_stereo = output.shoutcast(id = "shoutcast_stream_#{stream}",
host = host,
port = port,
password = pass,
fallible = true,
url = url,
genre = genre,
name = description,
user = !user_ref,
on_error = on_error,
on_connect = on_connect)
::
yep
root@aptosid:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 7.0 (wheezy)
Release: 7.0
Codename: wheezy
LS version info was already mentioned above... right now it's
root@aptosid:~# dpkg -l | grep liq
ii liquidsoap 1.0.1+repack1-1.1 amd64 audio streaming language
My sources.list info is also above, if there is a different LS version I should be using I'd need to know what to include to apt-get it.
deb http://apt.sourcefabric.org/ squeeze main
deb http://backports.debian.org/debian-backports squeeze-backports main
deb http://www.deb-multimedia.org squeeze main non-free
root@aptosid:~# dpkg -l | grep liq
ii liquidsoap 1.0.1+repack1-1.1 amd64 audio streaming language
ii liquidsoap-plugin-faad 1.0.1+repack1-1.1 amd64 audio streaming language -- FAAD plugin
ii liquidsoap-plugin-flac 1.0.1+repack1-1.1 amd64 audio streaming language -- FLAC plugin
ii liquidsoap-plugin-icecast 1.0.1+repack1-1.1 amd64 audio streaming language -- Icecast plugin
ii liquidsoap-plugin-lame 1.0.1+repack1-1.1 amd64 audio streaming language -- Lame plugin
ii liquidsoap-plugin-mad 1.0.1+repack1-1.1 amd64 audio streaming language -- Mad plugin
ii liquidsoap-plugin-ogg 1.0.1+repack1-1.1 amd64 audio streaming language -- Ogg plugin
ii liquidsoap-plugin-pulseaudio 1.0.1+repack1-1.1 amd64 audio streaming language -- Pulseaudio plugin
ii liquidsoap-plugin-taglib 1.0.1+repack1-1.1 amd64 audio streaming language -- Taglib plugin
ii liquidsoap-plugin-voaacenc 1.0.1+repack1-1.1 amd64 audio streaming language -- Voaacenc plugin
ii liquidsoap-plugin-vorbis 1.0.1+repack1-1.1 amd64 audio streaming language -- Vorbis plugin
root@aptosid:~# service airtime-liquidsoap restart
Restarting Liquidsoap: Done.
root@aptosid:~#
#########################################
# *** pypo *** #
# pypo notification gateway #
#########################################
root@aptosid:~# airtime-check-system
AIRTIME_STATUS_URL = http://localhost:8888/api/status/format/json/api_key/%%api_key%%
AIRTIME_SERVER_RESPONDING = OK
KERNEL_VERSION = 3.8-7.slh.2-aptosid-amd64
MACHINE_ARCHITECTURE = x86_64
TOTAL_MEMORY_MBYTES = 4055316
TOTAL_SWAP_MBYTES = 0
AIRTIME_VERSION = 2.3.1
OS = Debian GNU/Linux unstable (sid) x86_64
CPU = AMD Phenom(tm) 9950 Quad-Core Processor
WEB_SERVER = Apache/2.2.22 (Debian)
PLAYOUT_ENGINE_PROCESS_ID = 25557
PLAYOUT_ENGINE_RUNNING_SECONDS = 72374
PLAYOUT_ENGINE_MEM_PERC = 0.3%
PLAYOUT_ENGINE_CPU_PERC = 0.0%
LIQUIDSOAP_PROCESS_ID = 22823
LIQUIDSOAP_RUNNING_SECONDS = 30
LIQUIDSOAP_MEM_PERC = 0.4%
LIQUIDSOAP_CPU_PERC = 3.7%
MEDIA_MONITOR_PROCESS_ID = 2234
MEDIA_MONITOR_RUNNING_SECONDS = 110153
MEDIA_MONITOR_MEM_PERC = 0.3%
MEDIA_MONITOR_CPU_PERC = 0.0%
-- Your installation of Airtime looks OK!
It looks like you're new here. If you want to get involved, click one of these buttons!