streaming is OFF
  • Hi,

    today I apt-get update/upgrade on my ubuntu 11.04 and rebooted system afterwards, now my airtime seems to be broken, "On Air" is gray and status page of icecast doesn't load, and here is the airtime-check:

    AIRTIME_STATUS_URL = http://localhost:8443/api/status/format/json/api_key/%%api_key%%
    AIRTIME_SERVER_RESPONDING = OK
    KERNEL_VERSION = 2.6.38-8-generic
    MACHINE_ARCHITECTURE = x86_64
    TOTAL_MEMORY_MBYTES = 1016028
    TOTAL_SWAP_MBYTES = 0
    AIRTIME_VERSION = 2.1.3
    OS = Ubuntu 11.04 x86_64
    CPU = Intel(R) Xeon(R) CPU E5606 @ 2.13GHz
    WEB_SERVER = A
    PLAYOUT_ENGINE_PROCESS_ID = FAILED
    PLAYOUT_ENGINE_RUNNING_SECONDS = -1
    PLAYOUT_ENGINE_MEM_PERC = 0%
    PLAYOUT_ENGINE_CPU_PERC = 0%
    LIQUIDSOAP_PROCESS_ID = FAILED
    LIQUIDSOAP_RUNNING_SECONDS = -1
    LIQUIDSOAP_MEM_PERC = 0%
    LIQUIDSOAP_CPU_PERC = 0%
    MEDIA_MONITOR_PROCESS_ID = FAILED
    MEDIA_MONITOR_RUNNING_SECONDS = -1
    MEDIA_MONITOR_MEM_PERC = 0%
    MEDIA_MONITOR_CPU_PERC = 0%
    RABBITMQ_PROCESS_ID = 714
    RABBITMQ_RUNNING_SECONDS = 1160
    RABBITMQ_MEM_PERC = 2.9%
    RABBITMQ_CPU_PERC = 0.0%

    and when I: sudo service airtime-playout restart

    this is what I get:

    /var/log/icecast2$ sudo service airtime-playout restart
    Restarting Airtime Playout: start-stop-daemon: warning: failed to kill 12134: No such process
    ('Error loading config file: %s', error(111, 'Connection refused'))
    start-stop-daemon: warning: failed to kill 12137: No such process
    chown: cannot access `/etc/airtime/liquidsoap.cfg': No such file or directory

    so I really appreciate a help right now

    PS: icecast2 on port: 8000 and airtime on port: 8443 and it was working fine since about two months.

    Post edited by Giga at 2012-10-11 15:35:03
  • 27 Comments sorted by
  • Vote Up0Vote Down Cliff WangCliff Wang
    Posts: 339Member, Sourcefabric Team
    Please try sudo service airtime-playout start
    Cloud Radio -> http://airtime.pro
  • same as restart:

    sudo service airtime-playout start
    Starting Airtime Playout: chown: cannot access `/etc/airtime/liquidsoap.cfg': No such file or directory
    Done.

  • Vote Up0Vote Down Cliff WangCliff Wang
    Posts: 339Member, Sourcefabric Team
    Try ps -ef | grep liquidsoap, and kill liquidsoap process then start airtime-playout service.
    Cloud Radio -> http://airtime.pro
  • did I do it right?

    sudo ps -ef | grep liquidsoap
    fring 22671 21870 0 22:59 pts/2 00:00:00 grep --color=auto liquidsoap
     fring@stream:~$ kill 22671
    -bash: kill: (22671) - No such process
     fring@stream:~$ kill 21870
    fring@stream:~$ sudo service airtime-playout start
    Starting Airtime Playout: chown: cannot access `/etc/airtime/liquidsoap.cfg': No such file or directory
    Done.

  • Vote Up0Vote Down Cliff WangCliff Wang
    Posts: 339Member, Sourcefabric Team
    OIC, you dont have liquidsoap running, hmmm, how about the output of "sudo monit status"
    Cloud Radio -> http://airtime.pro
  • sudo monit status
    The Monit daemon 5.2.1 uptime: 1h 12m

    Process 'rabbitmq-server'
    status running
    monitoring status monitored
    pid 714
    parent pid 1
    uptime 1h 12m
    children 3
    memory kilobytes 28480
    memory kilobytes total 29816
    memory percent 2.8%
    memory percent total 2.9%
    cpu percent 0.0%
    cpu percent total 0.0%
    data collected Thu Oct 11 23:13:28 2012

    Process 'airtime-playout'
    status not monitored
    monitoring status not monitored
    data collected Thu Oct 11 23:13:23 2012

    Process 'airtime-media-monitor'
    status Does not exist
    monitoring status monitored
    data collected Thu Oct 11 23:13:23 2012

    Process 'airtime-liquidsoap'
    status Execution failed
    monitoring status monitored
    data collected Thu Oct 11 23:13:28 2012

    System 'system_stream'
    status running
    monitoring status monitored
    load average [0.51] [0.29] [0.19]
    cpu 1.8%us 0.7%sy 0.0%wa
    memory usage 409772 kB [40.3%]
    swap usage 0 kB [0.0%]
    data collected Thu Oct 11 23:13:28 2012
  • Vote Up0Vote Down Cliff WangCliff Wang
    Posts: 339Member, Sourcefabric Team
    Please try:
    sudo /usr/lib/airtime/pypo/bin/liquidsoap_bin/liquidsoap /usr/lib/airtime/pypo/bin/liquidsoap_scripts/ls_script.liq 
    Cloud Radio -> http://airtime.pro
  • I've gut a command not found, are you sure about the command?

    appreciate your help Cliff

  • Vote Up0Vote Down Cliff WangCliff Wang
    Posts: 339Member, Sourcefabric Team
    Should be correct, I just run it on my test machine.

    Could you please try to find these files by "ls -l", for example:
    ls -l /usr/lib/airtime/pypo/bin/liquidsoap_bin/liquidsoap
    1323 x 246 - 62K
    Post edited by Cliff Wang at 2012-10-11 16:48:41
    Cloud Radio -> http://airtime.pro
  • here is what files are in this directory: 
    /usr/lib/airtime/pypo/bin/liquidsoap_scripts

    fring@stream:/usr/lib/airtime/pypo/bin/liquidsoap_scripts$ ls

    airtime-liquidsoap.logrotate liquidsoap_auth.py ls_script.liq
    generate_liquidsoap_cfg.py liquidsoap_prepare_terminate.py notify.sh

    library ls_lib.liq


    I hope this helps

  • Vote Up0Vote Down Cliff WangCliff Wang
    Posts: 339Member, Sourcefabric Team
    yes,now we know the 2nd file exists. Then please follow the steps as the screenshot in my last reply and print the output
    Cloud Radio -> http://airtime.pro
  • fring@stream:/usr/lib/airtime/pypo/bin/liquidsoap_scripts$ ls -l ls_script.liq -rw-r--r-- 1 pypo pypo 10781 2012-07-13 04:29 ls_script.liq

    fring@stream:/usr/lib/airtime/pypo/bin/liquidsoap_scripts$ sudo: ls_script.liq: command not found

    and please note that python is one of the updated packages today...


    Post edited by Giga at 2012-10-11 18:04:39
  • Vote Up0Vote Down Cliff WangCliff Wang
    Posts: 339Member, Sourcefabric Team
    Hey, Giga, 
    the complete cmd is "sudo /usr/lib/airtime/pypo/bin/liquidsoap_bin/liquidsoap /usr/lib/airtime/pypo/bin/liquidsoap_scripts/ls_script.liq"
    Post edited by Cliff Wang at 2012-10-11 18:14:18
    Cloud Radio -> http://airtime.pro
  • fring@stream:~$ sudo /usr/lib/airtime/pypo/bin/liquidsoap_bin/liquidsoap /usr/lib/airtime/pypo/bin/liquidsoap_scripts/ls_script.liq

    sudo: /usr/lib/airtime/pypo/bin/liquidsoap_bin/liquidsoap: command not found



  • Vote Up0Vote Down Cliff WangCliff Wang
    Posts: 339Member, Sourcefabric Team
    hmmm, how about the output of "ls -l /usr/lib/airtime/pypo/bin/liquidsoap_bin/liquidsoap"
    Cloud Radio -> http://airtime.pro
  • fring@stream:~$ ls -l /usr/lib/airtime/pypo/bin/liquidsoap_bin/liquidsoap
    ls: cannot access /usr/lib/airtime/pypo/bin/liquidsoap_bin/liquidsoap: No such file or directory
  • there is no airtime/ in /usr/lib/
  • Vote Up0Vote Down Cliff WangCliff Wang
    Posts: 339Member, Sourcefabric Team
    Strange, but you said you have ls_scripts.liq:
    "
    fring@stream:/usr/lib/airtime/pypo/bin/liquidsoap_scripts$ ls -l ls_script.liq -rw-r--r-- 1 pypo pypo 10781 2012-07-13 04:29 ls_script.liq 
    "
    Cloud Radio -> http://airtime.pro
  • sorry, there seems to be a mistake somewhere, my bad....

    there isn't a /liquidsoap_bin in /bin here is an ls for 
    /usr/lib/airtime/pypo/bin

    fring@stream:/usr/lib/airtime/pypo/bin$ ls
    airtime-liquidsoap logging.cfg pypofetch.pyc pypopush.pyc
    airtime-playout monit-airtime-liquidsoap.cfg pypofile.py recorder.py
    airtime-playout-init-d monit-airtime-playout.cfg pypofile.pyc recorder.pyc
    AUTHORS notify_logging.cfg pypomessagehandler.py test
    __init__.py pypo.cfg pypomessagehandler.pyc
    install pypocli.py pyponotify.py
    liquidsoap_scripts pypofetch.py pypopush.py

  • is it normal to have the liquidsoap.cfg file missing?
    Post edited by Giga at 2012-10-11 19:20:48
  • here is the /var/log/airtime/pypo/pypo.log 

    2012-10-11 19:11:37,177 DEBUG - [pypopush.py : get_next_schedule_chain() : line 321] - tnow 2012-10-11 16:11:35.363712, chain_start 2012-10-11 16:03:14
    2012-10-11 19:11:37,177 DEBUG - [pypopush.py : main() : line 95] - Next schedule chain: None
    2012-10-11 19:11:37,177 DEBUG - [pypopush.py : main() : line 106] - Blocking indefinitely since no show scheduled
    2012-10-11 19:32:33,836 INFO - [pypofetch.py : handle_message() : line 78] - Received event from Pypo Message Handler: {"stream_format":"0","event_type":"update_stream_format"}
    2012-10-11 19:32:33,837 INFO - [pypofetch.py : handle_message() : line 82] - Handling command: update_stream_format
    2012-10-11 19:32:33,837 INFO - [pypofetch.py : handle_message() : line 91] - Updating stream format...
    2012-10-11 19:32:33,837 INFO - [pypofetch.py : update_liquidsoap_stream_format() : line 353] - vars.stream_metadata_type 0

    2012-10-11 19:32:33,840 INFO - [pypofetch.py : handle_message() : line 113] - New timeout: 541.518551111
    2012-10-11 19:32:33,840 INFO - [pypofetch.py : main() : line 479] - Loop #3018
    2012-10-11 19:32:33,904 INFO - [pypofetch.py : handle_message() : line 78] - Received event from Pypo Message Handler: {"transition_fade":"00.000000","event_type":"update_transition_fade"}
    2012-10-11 19:32:33,905 INFO - [pypofetch.py : handle_message() : line 82] - Handling command: update_transition_fade
    2012-10-11 19:32:33,905 INFO - [pypofetch.py : handle_message() : line 97] - Updating transition_fade...
    2012-10-11 19:32:33,905 INFO - [pypofetch.py : update_liquidsoap_transition_fade() : line 369] - vars.default_dj_fade 00.000000

    2012-10-11 19:32:33,908 INFO - [pypofetch.py : handle_message() : line 113] - New timeout: 541.450273991
    2012-10-11 19:32:33,908 INFO - [pypofetch.py : main() : line 479] - Loop #3019
    2012-10-11 19:32:34,073 INFO - [pypofetch.py : handle_message() : line 78] - Received event from Pypo Message Handler: {"setting":{"0":{"keyname":"output_sound_device","0":"output_sound_device","valu$
    2012-10-11 19:32:34,074 INFO - [pypofetch.py : handle_message() : line 82] - Handling command: update_stream_setting
    2012-10-11 19:32:34,075 INFO - [pypofetch.py : handle_message() : line 88] - Updating stream setting...
    2012-10-11 19:32:34,075 INFO - [pypofetch.py : regenerateLiquidsoapConf() : line 223] - Reading existing config...
    2012-10-11 19:32:34,092 INFO - [pypofetch.py : regenerateLiquidsoapConf() : line 257] - Looking for changes...
    2012-10-11 19:32:34,093 INFO - [pypofetch.py : regenerateLiquidsoapConf() : line 291] - Change:{u's3': False, u's2': False, u's1': False}, State_Change:{u'sound_device': False, u's3': True, u's2': Tr$
    2012-10-11 19:32:34,093 INFO - [pypofetch.py : regenerateLiquidsoapConf() : line 303] - No change detected in setting...
    2012-10-11 19:32:34,097 INFO - [pypofetch.py : update_liquidsoap_connection_status() : line 336] - ['1:true', '2:true', '3:true']
    2012-10-11 19:32:34,705 INFO - [pypofetch.py : handle_message() : line 113] - New timeout: 540.653409004
    2012-10-11 19:32:34,706 INFO - [pypofetch.py : main() : line 479] - Loop #3020

  • Vote Up0Vote Down Cliff WangCliff Wang
    Posts: 339Member, Sourcefabric Team
    Actually, I doubt liquidsoap.cfg is missed, you can run "ls -l /etc/airtime/liquidsoap.cfg" to check. I think the problem could be cause by the missed liquidsoap execution file, aka "/usr/lib/airtime/pypo/bin/liquidsoap_bin/liquidsoap"

    Cloud Radio -> http://airtime.pro
  • apparently both are missing, how can I restore liquidsoap, and thank you very much cliff for the help...
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    try sudo apt-get install --reinstall airtime
  • Vote Up0Vote Down Cliff WangCliff Wang
    Posts: 339Member, Sourcefabric Team
    Yes, please reinstall airtime. 
    Cloud Radio -> http://airtime.pro
  • this save the day, reinstalling solved it, had to manually re-enable site on apache, but it worked, let me know if you need some data for documentation, thanks folks
  • Is /usr/lib/airtime/pypo/bin/liquidsoap_bin/liquidsoap supposed to be there in version 2.4?
    Because my stream wasn't running because of a liquidsoap error of 'Connection refused in write()' and I thought it was because of that file been missing.
    I've just done a re install and the file is still missing. I think it was all working before the upgrade to 2.4.

    Cheers,
    Jamie
    Connection refused in write()
    /usr/lib/airtime/pypo/bin/liquidsoap_bin/liquidsoap
    - See more at:
    http://forum.sourcefabric.org/discussion/14642/streaming-is-off/p1?post#Form_Body