Airtime error /var/www/api not existing
  • My Installation an lamp server was running fine until i installed airtime. My apache log is giving out loads of [error] [client 127.0.0.1] File does not exist: /var/www/api.

    Tried reinstalling the server disable and enabling modules in apache to no avail. Having the same problem with the git install.

    Any advice would be helpfull

    much obliged
    Radioa6
  • 24 Comments sorted by
  • Hi,

    We are in the process of making the installation process smoother for final release. In the meantime you will need to follow these instructions:
    http://wiki.sourcefabric.org/display/CC/Installing+Airtime+f rom+Source+(v1.6)

    For your specific problem look at section "5. Apache Config File", to set the document root of apache to the public directory of your airtime directory, but you will need to follow all steps to actually play sound.
    Airtime Pro Hosting: http://airtime.pro
  • Thanx for the fast reply
    Those are exactly what i followed.
    Server and Apache where running fine after the setup of apache

    After step 8 things went bad. I did the php install and after that the problems occurred. Even deleting the virtual server didn't work. So my big question what other service is using Apache, or is it one of the python scripts like pypo that is messing up things ?



  • Please post your /etc/apache2/sites-available/airtime file.
    Airtime Pro Hosting: http://airtime.pro
  • This is my config file, installed into another directory this time so thats why the different path then the instructions

    <VirtualHost *:80>
    ServerAdmin foo@bar.org[/email]
    DocumentRoot /var/www/airtime/public

    SetEnv APPLICATION_ENV "development"

    <Directory /var/www/airtime/public>
    DirectoryIndex index.php
    AllowOverride all
    Order allow,deny
    Allow from all
    </Directory>
    </VirtualHost>


    After some testing of my own, it seems its indeed pypo thats asking for that path ( which does not exist in the whole directory root ) is the API path stated in config file in the pypo directory
  • Radia6 are you still having this problem? We could not recreate this in the office.

    For the line:
    [error] [client 127.0.0.1] File does not exist: /var/www/api

    This indicates to me that PHP is not installed properly, buts its hard to say.

    What happens if you type in http://localhost/ into your browser? Do you get a log-in screen?
    Airtime Pro Hosting: http://airtime.pro
  • I thought i posted a reply already, but think its gone missing.

    After some more testing it became clear there was something going wrong with the rewrite module in apache after the install. After reinstalling the module and enabling it again. Things are working like a charm

    Only thing im still trying to figure out still is how to set the time inAirtime as it seems to not use my local time settings

    mutch obliged for all the support btw !
  • For your timezone settings, we just updated the installation guide. Take a look at section 5 of the link I posted earlier.
    Airtime Pro Hosting: http://airtime.pro
  • Vote Up0Vote Down Paul BaranowskiPaul Baranowski
    Posts: 389Member, Administrator, Sourcefabric Team
    We fixed the time problem already, that fix will be in the release on feb 14.

    Sent from my iPhone

    On Feb 5, 2011, at 5:04 AM, radioa6 <airtime-support@lists.sourcefabric.org> wrote:

    >
    > I thought i posted a reply already, but think its gone missing.
    >
    > After some more testing it became clear there was something going wrong with the rewrite module in apache after the install. After reinstalling the module and enabling it again. Things are working like a charm
    >
    > Only thing im still trying to figure out still is how to set the time inAirtime as it seems to not use my local time settings
    >
    > mutch obliged for all the support btw !
    >

  • Radia6, I forgot to mention that this fix is in the git repository. If you are comfortable you can download the latest version from there, or wait for the February 14th release as Paul just mentioned.
    Airtime Pro Hosting: http://airtime.pro
  • Cheers for all the help, im back to my original problem, because i had to reconfigure the whole setup on another server. Time is working fine now on the other server btw.

    Two questions come to mind:
    1) Im using ubuntu 10.10, have not tried the 10.4 yet. Maybe there some different settings.

    2)Im using apt-get to install liquidsoap and i did not compile it from source. Would that make a difference ? ( worked perfectly the first time when i solved the rewrite module problem )

    Much obliged
    Radio A6

    Its not a problem to wait till the 14 feb release. Im quite happy with youre product and the support you guys are providing.
  • Vote Up0Vote Down Paul BaranowskiPaul Baranowski
    Posts: 389Member, Administrator, Sourcefabric Team
    You cannot use the liquidsoap from apt-get, it will not work. We are using
    features from it that are newer than the apt version. However, we include
    the required liquidsoap binary with the ZIP file.

    Paul Baranowski
    CTO, Sourcefabric, http://sourcefabric.org

    +1 (416) 832-6436 (Cell)
    Skype: paulbaranowski
    720 Bathurst St. / Suite 203 / Toronto / ON / M5S 2R4 / Canada

  • Are you running a 32-bit version of Ubuntu? We recently found some issues, please check my post here:

    http://forum.sourcefabric.org/index.php/mv/msg/3278/9215/#ms g_9215
    Airtime Pro Hosting: http://airtime.pro
  • Thnx, then i'm going to do a full blank reinstall on the server again, with newest git and fall back to 10.4 to see if it make a difference. If needed i can also test on 10.10 while im at it.

  • First of all latest changes really make the workflow smoother ( both the addition to the install manual as to the program itself ) One question that pops to mind though. Can a show be added by selecting the time and date in the calendar instead of having to filling it manually when the coding of Airtime interface is done ?

    Okay, a full reinstall on which i noted my steps this time.
    Almost everything is working fine now. except two things that confused me.

    I followed every step to the letter.

    1) In the configuring of the Apache server a second virtual server gets created with the specified configuration ( other then the default server ) But airtime is not seen as the document root because of the default server. I had to set my default server to the airtime directory root manually.

    2) After 3 times installing liquidsoap ( used the one out of the zip, build one from source and used the package manager to install the 1.0.0beta from the liquidsoap instructions )
    i still get the following error when trying to test it:

    liquidsoap 'output.icecast(%vorbis, mount="test.ogg", sine())'
    gives as output :

    ERROR: Failed to load plugin /usr/lib/ao/plugins-4/libnas.so => dlopen() failed Line 1, char 17 before "%": Parse error.


    But the shows play fine and Airtime does whats its supposed to do

    Again thnx for all the help,
    Im really enjoying youre work !



  • We have identified some linking issues on one of our 32-bit dev machines. We will definitely look into this before release.
    Airtime Pro Hosting: http://airtime.pro
  • Radia6,

    Could you take a look at this thread to see if it can help you solve your issues?

    http://forum.sourcefabric.org/index.php/t/3278/

    The link to compiling your own liquidsoap can be found here:
    http://wiki.sourcefabric.org/display/CC/Building+Liquidsoap+ from+SVN

    This is only a temporary solution until Mondays release.

    Martin
    Airtime Pro Hosting: http://airtime.pro
  • After some fiddling and using the liquidsoap howto for installing the latest version, everything is in working order. The libnas error seemed to be a dependancy failure and i installed the package that provided the support.

    All things considered everything is working like a charm. I have some workflow questions though. Im missing a good way to schedule events like jingles station headers etc.

    Also some features questions( which might or might not be included in the monday release )

    1) scheduling a repeating show does not show anything in the calendar view.

    2) Is there a way to cancel the current running show or skip a song in the now playing that you don't wanna play ?

    3) Also kinda missing time based weighted playlist and random playlist ( so like more jazz in the evening ). Would be great if there was an event system that could change the playlist and play jingles..( Take a look at radiodj for windows to get a feel what i mean )

    Anyway thx a lot for the current support. If i get some more time after launching my station i hope i contribute something to either code or manual.
  • 1) Have you rerun the airtime-install.php script lately? The database schema was slightly changed for repeating shows, this could be your problem

    2) Currently there isnt a way to cancel/modify the current show.

    3) The point of our 1.6 release was to get a basic working product. Tickets for your requests have been created for version 2.0, which will be much more fully featured. For this we are aiming for a March 18th beta release Smile

    http://dev.sourcefabric.org/browse/CC-1925
    http://dev.sourcefabric.org/browse/CC-1926
    Airtime Pro Hosting: http://airtime.pro
  • Nope, ill rerun the script again.

    Ofc i understand going for a working product first. Thnx for adding the suggestions to the feature list. There mutch needed and welcomed.

    Cheers
    RadioA6
  • Rerunning the script solved the problem. Can't delete the shows though now Wink

    Was wondering why the schedule menu does not have a show overview option, that just list the scheduled shows as well so you can edit them or delete em, without having to search for the show in the calendar ?

    Btw think i already read it somewhere but would it possible to schedule playlists instead of shows as well ? As it would be horrid to create a show for a repeating playlist. It would mean to create a show, put it on repeat and then fill every instance of the show with the same playlist or a random one

    Keep up the good work !

    Btw should these questions about work flow go here or into the development forum ?
  • Radia6, your questions fit fine in this forum Smile
    Airtime Pro Hosting: http://airtime.pro
  • We've talked about allowing scheduling of playlists, and not just shows, I also like the display all shows without a calendar option. We will look into these for future releases, as you can see we still have a lot of work to do Smile.
    Airtime Pro Hosting: http://airtime.pro
  • Well I have to congratulate you on the Feb 14 release. It looks and works mutch more stable as the versions before. Glad you like the ideas. Its what i run into when working with airtime on professional basis.

    My setup so far is:


    Studio Server:
    Airtime for Scheduling playlists when there no shows.
    Live Show input transmitted through darkice(linux) or edcast on windows pc.


    Streaming server / website:

    Not Using airtime on this one ( it would if airtime would be able to pick up streams from other sources and if the fallback could be configured )
    so instead im using liquidsoap for recieving the Airtime stream and Live stream when its on.
    When both fail it uses a 1 hour local playlist, with a warning that there technical difficulties, in a loop.

    The webserver is running Newscoop to display the site. Its verry usefull in our workflow. Editors make the articles for our shows, the show's host can then publish them after they have been read on the air. So the site gets updated while the show is running.

    Still sorting a lot of stuff out. Hope i have some time shortly to write a synopsis about the configuration and setup of the station, so others can benefit of it as well
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi Martin,

    > We've talked about allowing scheduling of playlists, and not just shows

    I can think of a reason not to allow that - if a playlist is played out
    without being part of a show, it won't have any top-level metadata, such
    as presenter name. This could be a problem for proof of broadcast logs,
    which might then contain empty fields.

    One way around this would be to have a default set of show metadata
    which was applied to automated content, such as smart playlists. For
    example - Presenter: Funky Robot

    Or, the default show metadata could be based on the login account that
    scheduled the playlist criteria. User feedback seems to be that smart
    playlists are needed to fill schedule gaps, but creating playlists
    manually is not very popular. It's as much work as doing a live show,
    but not as much fun :-)

    Cheers!

    Daniel