We've installed airtime using the 'full-installation' script and despite that all going OK, we're having problems getting liquidsoap running. airtime-check-system shows that liquidsoap is not running despite all the other services checking out OK;
<code>sudo airtime-check-system AIRTIME_STATUS_URL = http://localhost:8442/api/status/format/json/api_key/%%api_key%% AIRTIME_SERVER_RESPONDING = OK KERNEL_VERSION = 3.2.0-70-generic MACHINE_ARCHITECTURE = x86_64 TOTAL_MEMORY_MBYTES = 16118052 TOTAL_SWAP_MBYTES = 33553332 AIRTIME_VERSION = 2.5.1 OS = Ubuntu 12.04.5 LTS x86_64 CPU = Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz WEB_SERVER = Apache/2.2.22 (Ubuntu) PLAYOUT_ENGINE_PROCESS_ID = 909 PLAYOUT_ENGINE_RUNNING_SECONDS = 2997 PLAYOUT_ENGINE_MEM_PERC = 0.0% PLAYOUT_ENGINE_CPU_PERC = 0.0% 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 = 4508 MEDIA_MONITOR_RUNNING_SECONDS = 1927 MEDIA_MONITOR_MEM_PERC = 0.0% MEDIA_MONITOR_CPU_PERC = 0.0% -- There appears to be a problem with your Airtime installation. -- Please visit http://wiki.sourcefabric.org/x/HABQ</code>
When we try re/starting liquidsoap manually, there's an odd error about the '-f' switch not being recognised. I've looked through the configs and can't find where the '-f' is being passed to liquidsoap.
<code> sudo invoke-rc.d airtime-liquidsoap start-with-monit Starting Liquidsoap Playout Engine: no more csLADSPA plugins /usr/bin/airtime-liquidsoap: unknown option `-f'. Usage : liquidsoap [OPTION, SCRIPT or EXPR]... - SCRIPT for evaluating a liquidsoap script file; - EXPR for evaluating a scripting expression; - OPTION is one of the options listed below:</code>
...it then lists the config options for liquidsoap and natually '-f' is not listed amongst them. Anyone have an idea why we're getting this error ?
I found where the -f switch was coming from.. nano /usr/lib/airtime/pypo/bin/airtime-liquidsoap
Removing it didn't help though :)
sudo invoke-rc.d airtime-liquidsoap start-with-monit Starting Liquidsoap Playout Engine: no more csLADSPA plugins File "library/pervasives.liq", line 1, char 21 before "\"utils.liq\"": Unknown error. Fatal error: exception Sys_error("utils.liq: No such file or directory") Raised at file "pervasives.ml", line 284, characters 20-46 Called from file "parsing.ml", line 129, characters 24-38 Called from file "parsing.ml", line 160, characters 4-28 Re-raised at file "parsing.ml", line 179, characters 14-17 Called from file "", line 0, characters 0-0 Done.
I removed and reinstalled airtime from scratch and I'm still not able to restart/start airtime-liquidsoap.. Although just to add, restarting the service causes a different error;
Thanks for the suggestion. You're right that icecast isn't running, but I'm using shoutcast instead of icecast. I have successfully a) connected to the shoutcast instance using the DSP plugin for winamp with the same credentials and b) successfully used the same configuration in a VM instance. The problem arises when I try to use the same setup on our production server...
In the airtime > system > streams tab, all I get is "Getting information from the server..." despite being able to connect to the same from a source other than airtime.
Hi Roger, that was because I was initially trying to use a non-standard port and as such changed the config files to suit (as I had successfully done with the install on the VM). When I removed and reinstalled airtime I used the default ports and have the same errors. Here's the check system run again showing port 80;
# sudo airtime-check-system AIRTIME_STATUS_URL = http://localhost:80/api/status/format/json/api_key/%%api_key%% AIRTIME_SERVER_RESPONDING = OK KERNEL_VERSION = 3.2.0-75-generic MACHINE_ARCHITECTURE = x86_64 TOTAL_MEMORY_MBYTES = 16118080 TOTAL_SWAP_MBYTES = 33553332 AIRTIME_VERSION = 2.5.1 OS = Ubuntu 12.04.5 LTS x86_64 CPU = Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz WEB_SERVER = Apache/2.2.22 (Ubuntu) PLAYOUT_ENGINE_PROCESS_ID = 3352 PLAYOUT_ENGINE_RUNNING_SECONDS = 587948 PLAYOUT_ENGINE_MEM_PERC = 0.0% PLAYOUT_ENGINE_CPU_PERC = 0.0% 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 = 3466 MEDIA_MONITOR_RUNNING_SECONDS = 587939 MEDIA_MONITOR_MEM_PERC = 0.0% MEDIA_MONITOR_CPU_PERC = 0.0% -- There appears to be a problem with your Airtime installation. -- Please visit http://wiki.sourcefabric.org/x/HABQ
Ok, I finally worked out what was causing the problem. Posting this in the hope it might help someone else. I found a long forgotten version of liquidsoap compiled from source on the server in;
/usr/local/bin/liquidsoap
that was overriding the version installed from the repositories. Now it's been removed, the version from the repo is reported correctly by which;
# which liquidsoap /usr/bin/liquidsoap
and liquidsoap is connecting to the shoutcast streams as it should (cue slow hand-clap).