liquidsoap restart each second
  • Hi everybody,

    I just installed (manually) Airtime 1.8.1 and then updated to 1.8.2.

    Icecast2 works fine. tested with VLC.

    Liquidtools (manual test)

    "./liquidsoap 'output.icecast(%vorbis, mount="test.ogg", password ="source", sine())' "


    works fine. Ear the "booooop".

    But, I notice on the logs that liquidsoap restart each second. Any ideas? (log attached).

    Thank you very much.

  • 24 Comments sorted by
  • Hi,

    Are you using Airtime to output to a sound card, or just using Airtime for web streaming?
    Airtime Pro Hosting: http://airtime.pro
  • Hi thnks for the quick answer,

    I am using it for both,

    but for the moment can't hear nothind and airtime doesn't go "on Air".

  • Hi,

    Try this line please:

    "./liquidsoap 'out(sine())'"

    This will test whether output to your soundcard is working.
    Airtime Pro Hosting: http://airtime.pro
  • Did it already,

    but "strange" answer:

    "/usr/lib/airtime/pypo/bin/liquidsoap$ ./liquidsoap 'out(sine())'"
    At line 1, char 4: the variable out is used but was not previously defined.

    p.s.

    Audio is working with audio applications like vlc, mplayer ecc...

  • Ok out is just a shortcut to output.alsa.

    Try this instead:

    "./liquidsoap 'output.alsa(sine())'"
    Airtime Pro Hosting: http://airtime.pro
  • Sorry I didn't know.

    Ok, it works. (buuuuuuup).
  • Ok when you are typing those commands, you are using the liquidsoap binary we've provided (are you in /usr/lib/airtime/pypo/bin/liquidsoap directory)?
    Airtime Pro Hosting: http://airtime.pro
  • Yes,

    here is the versioning


    /usr/lib/airtime/pypo/bin/liquidsoap$ ./liquidsoap --version
    Liquidsoap 1.0.0-beta+svn (default@e712df4d96c0:20110502:175204).
    Copyright (c) 2003-2010 Savonet team
    Liquidsoap is open-source software, released under GNU General Public License.
    See <http://savonet.sf.net> for more information.
    gianni@zigest:/usr/lib/airtime/pypo/bin/liquidsoap$

    (I tried also to recompile a "liquidsoap" from "mercury" following you guidelines, but it doesn't work too, same LOG, in fact it looks the same version. Any way now I have your "liquidsoap".).
  • I just tryied this:


    sudo airtime-check-system
    OS = Ubuntu 10.04.2 LTS
    AIRTIME_CONFIG_FILES = OK
    POSTGRESQL_DATABASE = OK
    PYTHON_KOMBU_VERSION = 1.1.3
    PYTHON_POSTER_VERSION = 0.8.1
    RABBITMQ_SERVER = OK
    AIRTIME_VERSION_URL = http://localhost:80/api/version/api_key/%%api_key%%
    APACHE_CONFIGURED = YES
    AIRTIME_VERSION = 1.8.2
    PLAYOUT_ENGINE_PROCESS_ID = 1877
    PLAYOUT_ENGINE_RUNNING_SECONDS = 51
    LIQUIDSOAP_PROCESS_ID = 3435
    LIQUIDSOAP_RUNNING_SECONDS = 0
    -- WARNING! It looks like liquidsoap is continually restarting.
    -- /etc/service/pypo-liquidsoap: up (pid 3435) 0 seconds
    -- @400000004ddfd31f0ef5c7d4 # pypo notification gateway #
    -- @400000004ddfd31f0ef5cbbc #########################################
    -- @400000004ddfd31f0ef5cbbc NOTICE: 'media_id' command-line argument not given.
    -- @400000004ddfd31f183f6b9c 2011/05/27 18:36:37 [airtime(dot)mp3:3] Closing connection...
    -- @400000004ddfd31f18e8f5f4 2011/05/27 18:36:37 [airtime(dot)ogg:3] Closing connection...
    -- @400000004ddfd31f18f67ae4 2011/05/27 18:36:37 [clock.wallclock_alsa:3] Streaming loop stopped.
    -- @400000004ddfd31f18f778cc 2011/05/27 18:36:37 [threads:3] Thread "wallclock_alsa" terminated (0 remaining).
    -- @400000004ddfd31f1908ab24 2011/05/27 18:36:37 [main:3] Cleaning downloaded files...
    -- @400000004ddfd31f1908af0c 2011/05/27 18:36:37 >>> LOG END
    -- @400000004ddfd31f1f382a24 *** Daemontools: starting liquidsoap
    ICECAST_PROCESS_ID = 1432

    -- There appears to be problems with your setup. Please visit
    -- http://wiki.sourcefabric.org/x/HABQ for troubleshooting info.


    Does it help?

    It looks like a sort of "wrong wrapping" of "liquidsoap". no? maybe the ls_script.liq.
  • Please try this:

    sudo apt-get install tar gzip unzip apache2 php5-pgsql libapache2-mod-php5 \
    php-pear php5-gd postgresql odbc-postgresql python python-configobj poc-streamer \
    lame daemontools daemontools-run python-mutagen libsoundtouch-ocaml sudo \
    libtaglib-ocaml libao-ocaml libmad-ocaml libesd0 icecast2 oggvideotools \
    libportaudio2 libsamplerate0 libcamomile-ocaml-dev ecasound php5-curl mpg123 \
    python-setuptools python-pip rabbitmq-server libvorbis-ocaml-dev libmp3lame-dev


    (from the 1.8.2 wiki install guide)

    This is just to double check if you have all the required 1.8.2 packages.
    Airtime Pro Hosting: http://airtime.pro
  • One more thing if that does not work.

    Please try

    svc -u /etc/service/pypo
    svc -u /etc/service/pypo/log
    svc -u /etc/service/pypo-liquidsoap
    svc -u /etc/service/pypo-liquidsoap/log
    


    We found a bug in the 1.8.2-RC release that these commands should fix.
    Airtime Pro Hosting: http://airtime.pro
  • ok, I did it,

    and I have everything installed with this message:


    mp3gain vorbisgain rtkit libgavl1 libsox-fmt-base sox libsox-fmt-alsa libsox1a no more needed

  • gianni@zigest:~$ svc -u /etc/service/pypo
    svc: warning: unable to control /etc/service/pypo: access denied
    gianni@zigest:~$ svc -u /etc/service/pypo/log
    svc: warning: unable to control /etc/service/pypo/log: access denied
    gianni@zigest:~$ svc -u /etc/service/pypo-liquidsoap
    svc: warning: unable to control /etc/service/pypo-liquidsoap: access denied
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    sudo svc ....
  • Woo sorry,

    ok did it, but nothing changes, still looping each second.

    Do I have to restart something or reboot?
  • Hi Gianni,

    Ok so we've verified that your liquidsoap can output to the soundcard, and that you have the required packages. Lets try reinstalling liquidsoap. Go to airtime/python_apps/pypo/install/ and type

    sudo python pypo-uninstall.py
    sudo python pypo-install.py


    And then post the log file again.
    Airtime Pro Hosting: http://airtime.pro
  • Ok,

    done it. But as soon as the re-installation finish... restart the loop...

    Attached the Log.
  • Hi would you consider upgrading to 1.8.2-RC? We are releasing the RC2 version of this patch this week, and if I can verify your problem exists on the latest version, I can see if we can get in a patch.
    Airtime Pro Hosting: http://airtime.pro
  • Well sure I will.

    Thank you very much for the support and for this amazing software!

    Let me know if need some testing in my "strange" enviroment, I'll do it.

    G.
  • Vote Up0Vote Down Micz FlorMicz Flor
    Posts: 184Administrator
    before you upgrade, please make a proper backup with databasedump. i am not saying,,, i am just saying Smile
  • Hi,

    I am also having a similar problem trying to install 1.8.2-RC. I've tried running the commands above including reinstalling pypo-install.py but to no avail. I still get the following error:

    *** Verifying Correct System Environment ***
    OS = Ubuntu 10.04.2 LTS
    AIRTIME_CONFIG_FILES = OK
    POSTGRESQL_DATABASE = OK
    PYTHON_KOMBU_VERSION = 1.1.3
    PYTHON_POSTER_VERSION = 0.8.1
    RABBITMQ_SERVER = OK
    AIRTIME_VERSION_URL = http://localhost:80/api/version/api_key/%%api_key%%
    APACHE_CONFIGURED = NO
    AIRTIME_VERSION = Could not contact server
    PLAYOUT_ENGINE_PROCESS_ID = 23418
    PLAYOUT_ENGINE_RUNNING_SECONDS = 1
    -- WARNING! It looks like the playout engine is continually restarting.
    -- /etc/service/pypo: up (pid 23418) 1 seconds
    -- @400000004de3dd5d0c0cfbdc Traceback (most recent call last):
    -- @400000004de3dd5d0c0e151c File "/usr/lib/airtime/pypo/bin/pypo-cli.py", line 118, in <module>
    -- @400000004de3dd5d0c0fab5c if not g.selfcheck():
    -- @400000004de3dd5d0c108234 File "/usr/lib/airtime/pypo/bin/pypo-cli.py", line 62, in selfcheck
    -- @400000004de3dd5d0c40a66c return self.api_client.is_server_compatible()
    -- @400000004de3dd5d0c4238c4 File "/usr/lib/airtime/pypo/api_clients/api_client.py", line 193, in is_server_compatible
    -- @400000004de3dd5d0c43cf04 version = self.__get_airtime_version(verbose)
    -- @400000004de3dd5d0c4482b4 File "/usr/lib/airtime/pypo/api_clients/api_client.py", line 156, in __get_airtime_version
    -- @400000004de3dd5d0c45c6ec if e[1] == 401:
    -- @400000004de3dd5d0c46d474 IndexError: tuple index out of range
    LIQUIDSOAP_PROCESS_ID = 22946
    LIQUIDSOAP_RUNNING_SECONDS = 19
    ICECAST_PROCESS_ID = 1209

    -- There appears to be problems with your setup. Please visit
    -- http://wiki.sourcefabric.org/x/HABQ for troubleshooting info.

    Can anyone help?

    thanks

    James
  • James,

    Please make sure you followed all steps in section #4 properly from this URL:
    http://wiki.sourcefabric.org/x/DoBr

    Make sure you restart apache2 after
    sudo service apache2 restart

    Airtime Pro Hosting: http://airtime.pro
  • Quote:

    sudo service apache2 restart



    great, that's sorted it thanks!
  • Gianni Codevico wrote on Mon, 30 May 2011 14:33
    Ok,

    done it. But as soon as the re-installation finish... restart the loop...

    Attached the Log.


    Gianni, we managed to track down your problem for the 1.8.2-RC4 release (which will be announced today or tomorrow). Please let us know if it works for you.
    Airtime Pro Hosting: http://airtime.pro