No songs available in playlist builder
  • Hello there and thank you for a great broadcasting platform! :)
    I've installed airtime 1.9.5 but I'm having slight problems...I uploaded an mp3 file via add media and it seems to be uploaded normally (I can see that via SSH too, it's at the folder /srv/airtime/stor/organize). BUT when I go to playlist builder, there's nothing on the list! The storage folder is obviously the default, and also I haven't added any watched folders (since the default storage folder is already being watched).

    Everything seems to be working normally except this part (I can even see the station streaming at icecast, playing...well silence since no playlist is available!), and at the media monitor log I get tons of the following error:
    2012-01-13 01:23:27,119 ERROR - [MainThread] [api_client.py : setup_media_monitor()] : LINE 400 - Exception: No JSON object could be decoded

    Also the apache error log has many lines like this:
    [Fri Jan 13 12:41:29 2012] [error] [client 127.0.0.1] File does not exist: /var/www/api

    Note here that I changed the default 80 port to 8181. Have done the changes to the api_client.cfg and airtime.conf (and ran an airtime-db-update with successfull build).

    My airtime-vhost is like this:

    <VirtualHost *:8181>
          ServerName airtime.danioliptes.gr
          #ServerAlias www.example.com

          ServerAdmin -server admin email hidden-

          DocumentRoot /usr/share/airtime/public
          DirectoryIndex index.php

          SetEnv APPLICATION_ENV "production"

          <Directory /usr/share/airtime/public>
                  Options -Indexes FollowSymLinks MultiViews
                  AllowOverride All
                  Order allow,deny
                  Allow from all
          </Directory>
    </VirtualHost>

    I must be missing something...but what??? It's really frustrating, been searching all over the internet for a solution for 2 days now :S
  • 16 Comments sorted by
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    please run /usr/lib/airtime/utils/airtime-check-system
  • airtime-check-system gives the following output:

    CPU                            = Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
    Total RAM                      = 16383360 kB
    Free RAM                       = 13873008 kB
    OS                             = 6.0.3 x86-64
    AIRTIME_CONFIG_FILES           = OK
    POSTGRESQL_DATABASE            = OK
    PYTHON_KOMBU_VERSION           = 1.2.0
    PYTHON_POSTER_VERSION          = 0.8.1
    PYTHON_MUTAGEN_VERSION         = 1.20
    PYTHON_PYINOTIFY_VERSION       = 0.9.2
    RABBITMQ_SERVER                = OK
    AIRTIME_VERSION_URL            = http://localhost:8181/api/version/api_key/%%api_key%%
    APACHE_CONFIGURED              = YES
    AIRTIME_VERSION                = 1.9.5
    PLAYOUT_ENGINE_PROCESS_ID      = 2561
    PLAYOUT_ENGINE_RUNNING_SECONDS = 119276
    LIQUIDSOAP_PROCESS_ID          = 2565
    LIQUIDSOAP_RUNNING_SECONDS     = 119276
    MEDIA_MONITOR_PROCESS_ID       = 2609
    MEDIA_MONITOR_RUNNING_SECONDS  = 119276
    SHOW_RECORDER_PROCESS_ID       = 2586
    SHOW_RECORDER_RUNNING_SECONDS  = 119276
    ICECAST_PROCESS_ID             = 2233

      -- System setup looks OK!
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    hmm, then I don't understand why there are erros like File does not exist: /var/www/api

    ok, add into apache virtual conf file ServerAlias localhost (after ServerName) and reload apache
  • Ok I changed it into
    <VirtualHost *:8181>
          ServerName airtime.danioliptes.gr
          ServerAlias localhost

          ServerAdmin nksglns@gmail.com

          DocumentRoot /usr/share/airtime/public
          DirectoryIndex index.php

          SetEnv APPLICATION_ENV "production"

          <Directory /usr/share/airtime/public>
                  Options -Indexes FollowSymLinks MultiViews
                  AllowOverride All
                  Order allow,deny
                  Allow from all
          </Directory>
    </VirtualHost>

    Still getting the File does not exist: /var/www/api lines though :/
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    could you
     - try to upload another tracks
     - check this issue in case using of 80 apache port


  • tried uploading other tracks as well (in various formats, mp3, ogg) but still nothing!

    What do you mean by "check this issue in case using of 80 apache port?" 80 port is being used by the site of a company (which will have the radio station managed with airtime). What should I check?
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    yes, return airtime conf file to 80 port.  It's not a problem to use different sites on same ports. Just specify different name than your primary site is using (ServerName) but leave ServerAlias localhost

  • Kinda messes up the whole configuration, since the main domain vhost (danioliptes.gr) takes up every subdomain (it's *.danioliptes.gr). I tried setting it like danioliptes.gr/airtime but then i get a  redirect to danioliptes.gr/airtime/Login and a 404 error! What's the role of the base_url anyway? Should it be localhost or something like danioliptes.gr (or the server ip)?

    PS> I'm also using ISPConfig 3 control panel for the domains/email setting up, just setup the airtime vhost myself.
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    Airtime doesn't support subfolder installation. So, you need to define in your primary site all used names in ServerAlias instead of using *.danioliptes.gr. After then you can use airtime.danioliptes.gr
  • Hm works like a charm on port 80 as airtime.danioliptes.gr...but still, what was I missing for the port change? Isn't it possible to change the default port?
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    did you restarted airtime-playout and airtime-media-monitor services after changing port in conf files?
  • I did a full server reboot after making the changes, suppose that covers that doesn't it? But it was really strange cause everything else worked fine, the problem was just with the playlist editor...anyway now it's working normally on port 80 so I guess that's ok ;)
  • same problem. but changing to port 80 doesn't solve the problem.

    any help?
  • Are you still having this problem lephio?
    Airtime Pro Hosting: http://airtime.pro
  • I'm having this problem now too. I'm on 1.9.5.

  • Just updated to 2.0 and I was still having this problem. However once I logged out of my desktop then logged back in the files appeared in Airtime