[FIXED]EC2 Ubuntu 10.04LTS 64bit, 2.1 Beta Dev 5/6 Attempt
  • Vote Up0Vote Down StephenStephen
    Posts: 43Member

    Martin,  here is my attempt with git dev branch.

    added prior to install. http://apt.sourcefabric.org/pool/main/p/python-virtualenv/python-virtualenv_1.4.9-3_all.deb,  then apt-get update, dist-upgrade.

    checked out source per your instructions in last post.

    Installed finished fine, airtime-check passed all tests, logged in as admin

    Added 1 file, uploaded fine.  but the Playlist shows "No Data available"

    Media Monitor Log

    2012-05-06 11:34:33,815 WARNING - [MainThread] [mediamonitorcommon.py : is_user_readable()] : LINE 65 - File does not have correct permissions: '/srv/airtime/stor/organize/Kalimba.mp3'

    Permissions for /srv/airtime/stor
    drwxrws--- 2 www-data root 4096 2012-05-06 11:34 organize
    -rw-r--r-- 1 www-data www-data 8414449 2012-05-06 11:34 Kalimba.mp3

    What pernissions should these have?

    Thanks.

    Stephen

    Post edited by Stephen at 2012-05-08 11:15:43
  • 18 Comments sorted by
  • Vote Up0Vote Down StephenStephen
    Posts: 43Member

    for grins, just chmod -r 777 airtime directory, and restarted media monitor....  files are now in playlist.  but adding content to show still just shows "Adding 1 item". just like B5.

    Any hints on where i should look to debug.

    thanks again

    stephen

     

  • Could you post the following files:

    /var/log/airtime/media-monitor/media-monitor.log
    /var/log/airtime/zendphp.log
    /var/log/apache2/error.log
    Airtime Pro Hosting: http://airtime.pro
  • Are you still getting

    2012-05-04T22:23:23-04:00 INFO (6): Unable to execute SELECT statement [SELECT cc_schedule.ID, cc_schedule.STARTS, cc_sched                     ule.ENDS, cc_schedule.FILE_ID, cc_schedule.CLIP_LENGTH, cc_schedule.FADE_IN, cc_schedule.FADE_OUT, cc_schedule.CUE_IN, cc_s                     chedule.CUE_OUT, cc_schedule.MEDIA_ITEM_PLAYED, cc_schedule.INSTANCE_ID, cc_schedule.PLAYOUT_STATUS FROM cc_schedule WHERE                      cc_schedule.INSTANCE_ID=:p1 AND cc_schedule.ENDS>:p2] [wrapped: SQLSTATE[22007]: Invalid datetime format: 7 ERROR:  invalid                      input syntax for type timestamp: ""] 

    in zendphp.log?
    Airtime Pro Hosting: http://airtime.pro
  • Ok I've found the cause of your problem. It appears to only happen Ubuntu 10.04 which ships with an older version of PHP (PHP 5.3.2).

    The problem should be fixed now, please do a "git pull origin devel" and then reinstall Airtime :)

    Martin
    Post edited by Martin Konecny at 2012-05-06 15:38:37
    Airtime Pro Hosting: http://airtime.pro
  • I am also in the process of testing 12.04 LTS server and will pull the git source to test it. However, I'm installing the i386 (x32) version on one server and the x64 version on another server. I have several goals here and not all of them directly relate to Airtime, but I will distinguish between them so you understand what I'm doing.

    First, I wanted to test the upgrade process from 10.04 to 12.04. This has not gone well and I've found multiple problems that caused me to determine that upgrading is not a good solution. Second, I want to check the stability of the core functions of 12.04 especially as they relate to Airtime. I'm doing fresh installs of both the i386 and x64 versions of 12.04. Finally, I want to help with finding problems in 2.1.0 so I decided to pull the git source using:

    sudo apt-get install git
    cd ~
    git clone https://github.com/sourcefabric/Airtime.git airtime
    cd ~/airtime
    git checkout devel
    get submodule init
    git submodule update
    cd install_full/ubuntu
    sudo ./airtime-full-install

  • "First, I wanted to test the upgrade process from 10.04 to 12.04."

    Do you mean Airtime didn't work after the upgrade, or just the overall Ubuntu upgrade process went poorly?
    Airtime Pro Hosting: http://airtime.pro
  • Vote Up0Vote Down StephenStephen
    Posts: 43Member

    Martin, thanks for the help, i will try what you suggest and report back, thanks again.

    regards,

    Stephen

  • Vote Up0Vote Down StephenStephen
    Posts: 43Member
    I pulled the changes, and then ran airtime-full-install, but it stopped since it found "Same version Already Installed" already.

    Do i need to uninstall, and run again? not sure what the command is for this, i'll look thru forums to see.

    Stephen
  • Try 

    sudo ./airtime-install -r

    from install_minimal dir
    Airtime Pro Hosting: http://airtime.pro
  • Also forgot about this one:

    is_user_readable()] : LINE 65 - File does not have correct permissions: 

    This is a small regression and will be fixed soon :)
    Airtime Pro Hosting: http://airtime.pro
  • Vote Up0Vote Down StephenStephen
    Posts: 43Member

    Martin,  thanks, i just copied over the new Scheduler.php, and it started working :)

    thanks for telling me how to remove, and reinstall....    now that i can add shows, i'll work on testing the rest of system and multiple sources in liquidsoap, , and keeping this server up on dev, to report any issues we have to you guys progress.

    It took me a little bit to understand the concept of selecting cursors, before adding to timeline. I finally understand now.

    regards,

    Stephen

     

     

  • "First, I wanted to test the upgrade process from 10.04 to 12.04."


    Do you mean Airtime didn't work after the upgrade, or just the overall Ubuntu upgrade process went poorly?


    Both - the upgrade process produced several Ubuntu runtime errors including a major problem with the rabbitmq-server which made Airtime unusable.
  • The Ubuntu 12.04 i386 server installation went perfectly - no errors. The git pull and Airtime install also worked correctly. I then added 4GB of media files - this took about 30 minutes - and created a show. When I tried to add content to the show I found no files in the Playlist Builder. The files exist in /srv/airtime/stor/organize so I know that Add Media put them in the right place. I looked in the media-monitor log and see instances of

    2012-05-06 21:36:59,755 WARNING - [MainThread] [mediamonitorcommon.py : is_user_readable()] : LINE 65 - File does not have correct permissions: '/srv/airtime/stor/organize/3-04 Good Captain Clack (Mono).mp3'

    I checked the permissions on the file using 'ls -al' and see:
    -rw-r--r-- 1 www-data www-data 1862710 May  6 20:05 /srv/airtime/stor/organize/3-04 Good Captain Clack (Mono).mp3

    This looks good to me, so I don't understand what the problem could be. Is Add Media not setting the file permissions correctly, e.g. does it need to be 744 rather than 644 (so it has execute privileges)?


    Post edited by Wade Eilrich at 2012-05-07 00:56:41
  • It's a temporary regression that we will fix asap :).
    Airtime Pro Hosting: http://airtime.pro
  • Thanks, Martin - let me know when I should pull the latest origin to continue testing.
  • Ok everything in this thread should be fixed :). We'll have a new beta tonight.

    Airtime Pro Hosting: http://airtime.pro
  • Awesome news - I'll just wait until tonight and get new beta :)
  • Vote Up0Vote Down StephenStephen
    Posts: 43Member
    Great, im up and running with the scheduler.php change, will pull the new airtime beta in next day.    Im working with liquidsoap, trying to get freeswitch to send icecast stream to master source.