airtime 1.6.1 error
  • Hi,

    i just installed the newly released airtime 1.6.1. I did the regular 1.6 install and got the following in the /etc/service/pypo-liquidsoap/log/main/current:

    @400000004d6cb9141d5be844 *** Daemontools: starting liquidsoap
    @400000004d6cb9141e3208ac exec sudo -u pypo /opt/pypo/bin/liquidsoap/liquidsoap /opt/pypo/bin/scripts/ls_script.liq
    @400000004d6cb91420eb48c4 Fatal error: exception Sys_error("/usr/share/camomile/database/general_category.mar: No such file or directory")

    Obviously there is no camomile tea in my /usr/share dir. Where could this have come from?
    Thanks for your support and great airtime package.

    Ed
  • 9 Comments sorted by
  • Ed,

    We slightly modified the install procedure for 1.6.1. An additional package is required.

    Try the following:

    sudo apt-get install libcamomile-ocaml-dev
    Airtime Pro Hosting: http://airtime.pro
  • Well, that was quick. Sorry, but there is still something wrong. The push and fetch logs give the usual 404 errors. Before installing libcamomile-ocaml-dev i uninstalled. After that i re-installed. This is the output:

    ******************************** Install Begin *********************************
    *** Database Installation ***
    * User airtime created.
    * Database 'airtime' created.
    * Connected to database
    * Installing Postgres scripting language
    * Creating database tables
    *** Directory Setup ***
    * Skipping directory already exists: /var/www/clients/client1/web2/web/airtime/files
    * Directory /var/www/clients/client1/web2/web/airtime/files/stor created
    * Setting dir permissions...
    * Importing sample audio clips
    liquidsoap: no process found
    Cannot find user pypo
    /usr/sbin/deluser: The user `pypo' does not exist.
    Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
    Starting daemontool script pypo-fetch
    Starting daemontool script pypo-push
    Starting daemontool script pypo-liquidsoap
    /var/www/clients/client1/web2/web/airtime/pypo/install
    Checking and removing any existing pypo processes
    Checking for user pypo
    Creating user pypo
    Creating log directories
    Creating directory /var/log/pypo
    Creating directory /opt/pypo/
    Creating directory /opt/pypo/bin
    Creating directory /opt/pypo/cache
    Creating directory /opt/pypo/files
    Creating directory /opt/pypo/tmp
    Creating directory /opt/pypo/files/basic
    Creating directory /opt/pypo/files/fallback
    Creating directory /opt/pypo/files/jingles
    Creating directory /opt/pypo/archive
    Copying pypo files
    Installing 32-bit liquidsoap binary
    Removing old directory /opt/pypo/bin/
    Copying directory /var/www/clients/client1/web2/web/airtime/pypo/install/.. to /opt/pypo/bin/
    Setting permissions
    Installing daemontool script pypo-fetch
    Creating directory /etc/service/pypo-fetch
    Creating directory /etc/service/pypo-fetch/log
    Installing daemontool script pypo-push
    Creating directory /etc/service/pypo-push
    Creating directory /etc/service/pypo-push/log
    Installing daemontool script pypo-liquidsoap
    Creating directory /etc/service/pypo-liquidsoap
    Creating directory /etc/service/pypo-liquidsoap/log
    Waiting for processes to start...
    /var/www/clients/client1/web2/web/airtime/pypo/install
    /etc/service/pypo-fetch: up (pid 14325) 1 seconds

    /etc/service/pypo-push: up (pid 14326) 1 seconds

    /etc/service/pypo-liquidsoap: up (pid 14259) 5 seconds

    ******************************* Install Complete *******************************


    In /etc/service/pypo-liquidsoap/log/main/current i now see:


    @400000004d6cbc0900d3633c 2011/03/01 10:27:27 >>> LOG START
    @400000004d6cbc09158525cc 2011/03/01 10:27:26 [protocols.external:3] Didn't find "ufetch".
    @400000004d6cbc0915853184 2011/03/01 10:27:26 [protocols.external:3] Found "/usr/bin/wget".
    @400000004d6cbc091585356c 2011/03/01 10:27:26 [main:3] Liquidsoap 1.0.0-beta+svn (trunk/liquidsoap@rev8214)
    @400000004d6cbc0915853954 2011/03/01 10:27:26 [main:3] Using: pcre=6.0.1 dtools=0.2.2 duppy=0.4.0
    @400000004d6cbc0915854124 0.4.0 duppy.syntax=0.4.0
    @400000004d6cbc091585450c 0.4.0 cry=0.1.6 mm=0.1.0 xmlplaylist=0.1.2 ogg=0.4.1 vorbis=0.5.1 mad=0.4.0 lame=0.2.4 alsa=0.2.1 samplerate=0.1.1 taglib=0.1.4 camomile=0.7.1 soundtouch=0.1.5 portaudio=@VERSION ladspa=0.1.2
    @400000004d6cbc0915857bbc 2011/03/01 10:27:26 [main:2]
    @400000004d6cbc0915857fa4 2011/03/01 10:27:26 [main:2] DISCLAIMER: This version of Liquidsoap has been
    @400000004d6cbc091585838c 2011/03/01 10:27:26 [main:2] compiled from a snapshot of the development code.
    @400000004d6cbc0915858774 2011/03/01 10:27:26 [main:2] As such, it should not be used in production
    @400000004d6cbc0915859afc 2011/03/01 10:27:26 [main:2] unless you know what you are doing!
    @400000004d6cbc0915859ee4 2011/03/01 10:27:26 [main:2]
    @400000004d6cbc091585a2cc 2011/03/01 10:27:26 [main:2] We are, however, very interested in any feedback
    @400000004d6cbc091585a6b4 2011/03/01 10:27:26 [main:2] about our development code and committed to fix
    @400000004d6cbc091585aa9c 2011/03/01 10:27:26 [main:2] issues as soon as possible.
    @400000004d6cbc091585d1ac 2011/03/01 10:27:26 [main:2]
    @400000004d6cbc091585d594 2011/03/01 10:27:26 [main:2] If you are interested in collaborating to
    @400000004d6cbc091585d97c 2011/03/01 10:27:26 [main:2] the development of Liquidsoap, feel free to
    @400000004d6cbc091585dd64 2011/03/01 10:27:26 [main:2] drop us a mail at <savonet-devl@lists.sf.net>
    @400000004d6cbc091585e14c 2011/03/01 10:27:26 [main:2] or to join the #savonet IRC channel on Freenode.
    @400000004d6cbc091585f4d4 2011/03/01 10:27:26 [main:2]
    @400000004d6cbc091585f8bc 2011/03/01 10:27:26 [main:2] Please send any bug report or feature request
    @400000004d6cbc091585fca4 2011/03/01 10:27:26 [main:2] using our trac <http://savonet.rastageeks.org>.
    @400000004d6cbc091586008c 2011/03/01 10:27:26 [main:2]
    @400000004d6cbc0915860474 2011/03/01 10:27:26 [main:2] We hope you enjoy this snapshot build of Liquidsoap!
    @400000004d6cbc0915861414 2011/03/01 10:27:26 [main:2]
    @400000004d6cbc09158617fc 2011/03/01 10:27:26 [lang:3] Did not find flac binary: flac decoder disabled.
    @400000004d6cbc0915861fcc 2011/03/01 10:27:26 [lang:3] Did not find metaflac binary: flac metadata resolver disabled.
    @400000004d6cbc09158623b4 2011/03/01 10:27:26 [lang:3] Did not find faad binary: faad decoder disabled.
    @400000004d6cbc091586279c 2011/03/01 10:27:26 [lang:3] Lastfm/audioscrobbler support was not compiled.
    @400000004d6cbc091586373c 2011/03/01 10:27:26 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz master.
    @400000004d6cbc0915865e4c 2011/03/01 10:27:26 [frame:3] Frame size must be a multiple of 1764 ticks = 1764 audio samples = 1 video samples.
    @400000004d6cbc091586661c 2011/03/01 10:27:26 [frame:3] Targetting 'frame.duration': 0.04s = 1764 audio samples = 1764 ticks.
    @400000004d6cbc0915866a04 2011/03/01 10:27:26 [frame:3] Frames last 0.04s = 1764 audio samples = 1 video samples = 1764 ticks.
    @400000004d6cbc0915866dec 2011/03/01 10:27:26 [decoder:3] Method "MP3/LIBMAD" accepted "/opt/pypo/files/basic/silence.mp3".
    @400000004d6cbc0915868174 2011/03/01 10:27:27 [single:3] "/opt/pypo/files/basic/silence.mp3" is static, resolving once for all...
    @400000004d6cbc091586855c 2011/03/01 10:27:27 [threads:3] Created thread "generic queue #1".
    @400000004d6cbc0915868944 2011/03/01 10:27:27 [threads:3] Created thread "non-blocking queue #1".
    @400000004d6cbc0915869114 2011/03/01 10:27:27 [airtime(dot)mp3:3] Connecting mount airtime.mp3 for source@127.0.0.1...
    @400000004d6cbc091a6681bc 2011/03/01 10:27:27 [airtime(dot)mp3:3] Connection setup was successful.
    @400000004d6cbc091afa3e0c 2011/03/01 10:27:27 [airtime(dot)ogg:3] Connecting mount airtime.ogg for source@127.0.0.1...
    @400000004d6cbc09335fa25c 2011/03/01 10:27:27 [airtime(dot)ogg:3] Connection setup was successful.
    @400000004d6cbc09335fae14 2011/03/01 10:27:27 [threads:3] Created thread "wallclock_main" (1 total).
    @400000004d6cbc0933a3a09c 2011/03/01 10:27:27 [clock.wallclock_main:3] Streaming loop starts, synchronized with wallclock.
    @400000004d6cbc093667d564 2011/03/01 10:27:27 [single_4381:3] Prepared "/opt/pypo/files/basic/silence.mp3" (RID 0).
    @400000004d6cbc093667dd34 2011/03/01 10:27:27 [fallback_4385:3] Switch to src_4383.
    @400000004d6cbc09395b76cc ./notify.sh --data='0' --media-id=
    @400000004d6cbc0a09c9ce54
    @400000004d6cbc0a09c9d624 #########################################
    @400000004d6cbc0a09c9da0c # *** pypo *** #
    @400000004d6cbc0a09c9ddf4 # pypo notification gateway #
    @400000004d6cbc0a09c9e1dc #########################################
    @400000004d6cbc0a09c9e5c4 NOTICE: 'media_id' command-line argument not given.


    Any suggestions?

    Thanks again.
    Ed
  • What do you mean by the usual 404 errors?

    I don't see anything unusual in your logs.
    Airtime Pro Hosting: http://airtime.pro
  • OK. Sorry about me presuming things. This is what i meant:


    @400000004d6cc49533861234 *** Daemontools: starting daemon
    @400000004d6cc4960783e594
    @400000004d6cc49607cbb84c ###########################################
    @400000004d6cc49607ccb24c # *** pypo *** #
    @400000004d6cc49607cd9cac # Liquidsoap + External Scheduler #
    @400000004d6cc49607ce7f3c # Playout System #
    @400000004d6cc49607cf65b4 ###########################################
    @400000004d6cc49607d04844
    @400000004d6cc49607d0d8cc
    @400000004d6cc49607d56cac 2011-03-01 11:03:56,131 DEBUG - [api_client.py : __get_airtime_version() : line 117] - Trying to contact http://airtime.localdomain.jig/api/version/api_key/YFEL8FX1T I8MAPJMLTP9
    @400000004d6cc4960848d78c 2011-03-01 11:03:56,138 DEBUG - [api_client.py : __get_airtime_version() : line 120] - Data: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    @400000004d6cc4960848e344 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    @400000004d6cc4960848e72c <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    @400000004d6cc4960848eb14 <head>
    @400000004d6cc4960848eefc <title>ERROR 404 - Not Found!</title>


    I have seen this before in both the /etc/service/pypo-fetch/log/main/current and /etc/service/pypo-push/log/main/current. The api_key can't be found and therefore it states a 404 - not found error.

    Ed
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    looks like your local site isn't prepared. Check for http://airtime.localdomain.jig/
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi Andrey,

    > looks like your local site isn't prepared. Check for
    > http://airtime.localdomain.jig/

    I'm not sure what you mean, could you be more explicit?

    Cheers!

    Daniel
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi Martin,

    > We slightly modified the install procedure for 1.6.1. An additional
    > package is required.
    >
    > Try the following:
    >
    > sudo apt-get install libcamomile-ocaml-dev

    Thanks for the tip, I have added this dependency to the manual. Does
    this mean an uninstall and reinstall of Airtime is required, after
    libcamomile-ocaml-dev is installed?

    Cheers!

    Daniel
  • I got it working now. There was an error in the /etc/apache/sites-available/enabled file. I corrected it and did an apache reload.
    It has to do with ISPConfig. I mentioned it earlier in this thread and will explain the solution there:
    http://forum.sourcefabric.org/index.php/t/3371/

    Thanks.
    Ed
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi Ed,

    > I got it working now. There was an error in the
    > /etc/apache/sites-available/enabled file. I corrected it and did an
    > apache reload.
    > It has to do with ISPConfig. I mentioned it earlier in this thread and
    > will explain the solution there:
    > http://forum.sourcefabric.org/index.php/t/3371/

    Thanks for the tip! In the forthcoming Debian package we set up an entry
    in sites-available automatically.

    Also you can use the a2ensite command instead of copying the file
    manually to sites-enabled, it's much more convenient.

    Cheers!

    Daniel