1.9.0 upgrade problems
  • I just upgraded from 1.8.2 to 1.9.0 manually and the install generated some errors:

    sudo ./airtime-install
    
    ******************************** Install Begin *********************************
    
    *** Creating Virtualenv for Airtime ***
    cp: cannot create regular file `/usr/share/python-virtualenv/': Is a directory
    Running virtualenv with interpreter /usr/bin/python2.6
    New python executable in /usr/lib/airtime/airtime_virtualenv/bin/python2.6
    Also creating executable in /usr/lib/airtime/airtime_virtualenv/bin/python
    Installing distribute..................................................................................................................................................................................done.
    
      Complete output from command /usr/lib/airtime/airtime_virtu...on2.6 /usr/lib/airtime/airtime_virtu...stall pip:
      Searching for pip
    Reading http://pypi.python.org/simple/pip/
    Download error: [Errno -2] Name or service not known -- Some packages may not be found!
    Reading http://pypi.python.org/simple/pip/
    Download error: [Errno -2] Name or service not known -- Some packages may not be found!
    Couldn't find index page for 'pip' (maybe misspelled?)
    Scanning index of all packages (this may take a while)
    Reading http://pypi.python.org/simple/
    Reading http://pypi.python.org/simple/pip/
    Reading http://www.pip-installer.org
    Reading http://pip.openplans.org
    Download error: [Errno -2] Name or service not known -- Some packages may not be found!
    Reading http://pip.openplans.org
    Best match: pip 1.0.2
    Downloading http://pypi.python.org/packages/source/p/pip/pip-1.0.2.tar.gz#md5=47ec6ff3f6d962696fe08d4c8264ad49
    error: Download error for http://pypi.python.org/packages/source/p/pip/pip-1.0.2.tar.gz: [Errno 101] Network is unreachable
    ----------------------------------------
    Traceback (most recent call last):
      File "/usr/lib/pymodules/python2.6/virtualenv.py", line 1495, in <module>
        main()
      File "/usr/lib/pymodules/python2.6/virtualenv.py", line 537, in main
        use_setuptools=options.use_setuptools)
      File "/usr/lib/pymodules/python2.6/virtualenv.py", line 630, in create_environment
        install_pip(py_executable)
      File "/usr/lib/pymodules/python2.6/virtualenv.py", line 390, in install_pip
        filter_stdout=_filter_setup)
      File "/usr/lib/pymodules/python2.6/virtualenv.py", line 598, in call_subprocess
        % (cmd_desc, proc.returncode))
    OSError: Command /usr/lib/airtime/airtime_virtu...on2.6 /usr/lib/airtime/airtime_virtu...stall pip failed with error code 1
    
    *** Installing Python Libraries ***
    sudo: /usr/lib/airtime/airtime_virtualenv/bin/pip: command not found
    
    *** Patching Python Libraries ***
    
       ---Applying Patches for mutagen---
    patching file /usr/lib/airtime/airtime_virtualenv/lib/python2.6/site-packages/mutagen/mp3.py
    Hunk #1 FAILED at 209.
    1 out of 1 hunk FAILED -- saving rejects to file /usr/lib/airtime/airtime_virtualenv/lib/python2.6/site-packages/mutagen/mp3.py.rej
    patching file /usr/lib/airtime/airtime_virtualenv/lib/python2.6/site-packages/mutagen/mp3.py
    Hunk #1 FAILED at 151.
    Hunk #2 FAILED at 172.
    2 out of 2 hunks FAILED -- saving rejects to file /usr/lib/airtime/airtime_virtualenv/lib/python2.6/site-packages/mutagen/mp3.py.rej
    ./airtime-install: line 42: /usr/lib/airtime/airtime_virtualenv/bin/activate: No such file or directory
    
    *** Creating Pypo User ***
    Checking for user pypo
    User already exists.
    Airtime version 1.8.2 found.
    * Connected to database
    ******************************** Update Begin *********************************
    * Creating logs directory /var/log/airtime
    Removing /usr/bin/airtime-pypo-start
    Removing /usr/bin/airtime-pypo-stop
    Removing /usr/bin/airtime-show-recorder-start
    Removing /usr/bin/airtime-show-recorder-stop
    Removing /usr/bin/airtime-media-monitor-start
    Removing /usr/bin/airtime-media-monitor-stop
    Removing /etc/service/pypo
    Removing /etc/service/pypo-liquidsoap
    Removing /etc/service/media-monitor
    Removing /etc/service/recorder
    Removing /var/log/airtime/pypo/main
    Removing /var/log/airtime/pypo-liquidsoap/main
    Removing /var/log/airtime/show-recorder/main
    * Installing PHP code to /var/www/airtime
    * Removing Airtime binaries from /usr/lib/airtime
    * Installing binaries to /usr/lib/airtime
                                                                          
                        Airtime 1.9.0 Database Upgrade                    
                                                                          
    
    Migrating up to 20110713161043 from 20110406182005
    
      ++ migrating 20110629143017
    
         -> CREATE TABLE cc_music_dirs (id SERIAL NOT NULL, type VARCHAR(255) NOT NULL, directory TEXT NOT NULL, PRIMARY KEY(id))
    
      ++ migrated (1.1s)
    
      ++ migrating 20110711161043
    
         -> INSERT INTO cc_music_dirs (type, directory) VALUES ('stor', '/srv/airtime/stor/');
         -> INSERT INTO cc_music_dirs (type, directory) VALUES ('link', '');
         -> ALTER TABLE cc_files ADD directory INT DEFAULT NULL
         -> ALTER TABLE cc_files ADD CONSTRAINT cc_music_dirs_folder_fkey FOREIGN KEY (directory) REFERENCES cc_music_dirs(id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE
         -> CREATE INDEX cc_files_directory_idx ON cc_files (directory)
         -> ALTER TABLE cc_schedule ADD CONSTRAINT cc_files_folder_fkey FOREIGN KEY (file_id) REFERENCES cc_files(id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE
         -> CREATE INDEX cc_schedule_file_id_idx ON cc_schedule (file_id)
    
      ++ migrated (1.22s)
    
      ++ migrating 20110713161043
    
         -> CREATE TABLE cc_country (isocode VARCHAR(3) NOT NULL, name VARCHAR(255) NOT NULL, PRIMARY KEY(isocode))
    
      ++ migrated (1.07s)
    
      ------------------------
    
      ++ finished in 3.39
      ++ 3 migrations executed
      ++ 9 sql queries
    * Inserting data into country table
    * Creating /usr/bin symlinks
    * Installing airtime-import
    * Installing airtime-update-db-settings
    * Installing airtime-check-system
    Save DbMd to File
    * Inserting stor directory location /media/airtime/srv/airtime/stor/ into music_dirs table
    Creating media-monitor log file
    Reorganizing files in stor directory
    Array
    (
        [0] => [["/srv/airtime/stor/b97/b97cfb3780512c8c3fd670a9a1e0cf7d.mp3", "/srv/airtime/stor/b97/b97cfb3780512c8c3fd670a9a1e0cf7d.mp3"], ["/srv/airtime/stor/2b7/2b71ea51956a004a837b9d44c6ff94ce.mp3", "/srv/airtime/stor/2b7/2b71ea51956a004a837b9d44c6ff94ce.mp3"], ["/srv/airtime/stor/e09/e09aa9fa6d5b1c852de2f1cb62be1af1.mp3", "/srv/airtime/stor/e09/e09aa9fa6d5b1c852de2f1cb62be1af1.mp3"], ["/srv/airtime/stor/89a/89a701811e6b5a66b612806411ce0154.mp3", "/srv/airtime/stor/89a/89a701811e6b5a66b612806411ce0154.mp3"], ["/srv/airtime/stor/ef5/ef52f2bc15c59178aa80edd50635a645.mp3", "/srv/airtime/stor/ef5/ef52f2bc15c59178aa80edd50635a645.mp3"]]
    )
    UPDATE cc_files SET filepath = '512c8c3fd670a9a1e0cf7d.mp3', directory=1 WHERE filepath = '/srv/airtime/stor/b97/b97cfb3780512c8c3fd670a9a1e0cf7d.mp3'
    UPDATE cc_files SET filepath = '6a004a837b9d44c6ff94ce.mp3', directory=1 WHERE filepath = '/srv/airtime/stor/2b7/2b71ea51956a004a837b9d44c6ff94ce.mp3'
    UPDATE cc_files SET filepath = '5b1c852de2f1cb62be1af1.mp3', directory=1 WHERE filepath = '/srv/airtime/stor/e09/e09aa9fa6d5b1c852de2f1cb62be1af1.mp3'
    UPDATE cc_files SET filepath = '6b5a66b612806411ce0154.mp3', directory=1 WHERE filepath = '/srv/airtime/stor/89a/89a701811e6b5a66b612806411ce0154.mp3'
    UPDATE cc_files SET filepath = 'c59178aa80edd50635a645.mp3', directory=1 WHERE filepath = '/srv/airtime/stor/ef5/ef52f2bc15c59178aa80edd50635a645.mp3'
    Upgrading Linked Files
    
    Removed Missing File: 
    
    Removed Missing File: 
    
    Removed Missing File: 
    
    Removed Missing File: 
    
    Removed Missing File: 
    
    Removed Missing File: 
    Backing up /etc/airtime/airtime.conf to /etc/airtime/airtime.conf20110811043656-1.9.0.bak
    Backing up /etc/airtime/pypo.cfg to /etc/airtime/pypo.cfg20110811043656-1.9.0.bak
    Backing up /etc/airtime/recorder.cfg to /etc/airtime/recorder.cfg20110811043656-1.9.0.bak
    Backing up /etc/airtime/liquidsoap.cfg to /etc/airtime/liquidsoap.cfg20110811043656-1.9.0.bak
    
    *** Updating Api Client ***
    Copying directory /home/james/Downloads/airtime-1.9.0/python_apps/api_clients to /usr/lib/airtime/api_clients
    
    *** Updating Pypo ***
    Starting Airtime Playout: Done.
    Creating directory /usr/lib/airtime/pypo/bin
    Installing 32-bit liquidsoap binary
    Copying directory /home/james/Downloads/airtime-1.9.0/python_apps/pypo to /usr/lib/airtime/pypo/bin
    Setting permissions
    Installing pypo daemon
    Waiting for processes to start...
    
    *** Updating Recorder ***
    Starting Airtime Show Recorder: Done.
    Creating temporary media storage directory
    Creating log directories
    Copying directory /home/james/Downloads/airtime-1.9.0/python_apps/show-recorder to /usr/lib/airtime/show-recorder
    Setting permissions
    Installing show-recorder daemon
    Waiting for processes to start...
    
    *** Updating Media Monitor ***
    Starting Airtime Media Monitor: Done.
    Creating log directories
    Copying directory /home/james/Downloads/airtime-1.9.0/python_apps/media-monitor to /usr/lib/airtime/media-monitor
    Setting permissions
    Installing media-monitor daemon
    Waiting for processes to start...
    CPU                            = AMD Athlon(tm) XP 2400+
    Total RAM                      = 1544080 kB
    Free RAM                       = 334532 kB
    OS                             = Ubuntu 10.04.3 LTS Intel 80386
    AIRTIME_CONFIG_FILES           = OK
    POSTGRESQL_DATABASE            = OK
    sh: /usr/lib/airtime/airtime_virtualenv/bin/pip: not found
    PYTHON_KOMBU_VERSION           = FAILED
    sh: /usr/lib/airtime/airtime_virtualenv/bin/pip: not found
    PYTHON_POSTER_VERSION          = FAILED
    sh: /usr/lib/airtime/airtime_virtualenv/bin/pip: not found
    PYTHON_MUTAGEN_VERSION         = FAILED
    sh: /usr/lib/airtime/airtime_virtualenv/bin/pip: not found
    PYTHON_PYINOTIFY_VERSION       = FAILED
    RABBITMQ_SERVER                = OK
    AIRTIME_VERSION_URL            = http://localhost:80/api/version/api_key/%%api_key%%
    APACHE_CONFIGURED              = YES
    AIRTIME_VERSION                = 1.9.0
    PLAYOUT_ENGINE_PROCESS_ID      = 
    PLAYOUT_ENGINE_RUNNING_SECONDS = 0
      -- WARNING! It looks like the playout engine is continually restarting.
    LIQUIDSOAP_PROCESS_ID          = 
    LIQUIDSOAP_RUNNING_SECONDS     = 0
      -- WARNING! It looks like the Liquidsoap engine is continually restarting.
      -- 2011/08/11 16:34:13 [stor:3] Prepared "/media/airtime/srv/airtime/stor/2b7/2b71ea51956a004a837b9d44c6ff94ce.mp3" (RID 2).
      -- 2011/08/11 16:36:40 [main:3] Shutdown started!
      -- 2011/08/11 16:36:40 [main:3] Waiting for threads to terminate...
      -- 2011/08/11 16:36:40 [threads:3] Thread "output(dot)alsa" terminated (1 remaining).
      -- 2011/08/11 16:36:40 [airtime(dot)mp3:3] Closing connection...
      -- 2011/08/11 16:36:40 [stor:3] Finished with "/media/airtime/srv/airtime/stor/2b7/2b71ea51956a004a837b9d44c6ff94ce.mp3".
      -- 2011/08/11 16:36:40 [clock.wallclock_alsa:3] Streaming loop stopped.
      -- 2011/08/11 16:36:40 [threads:3] Thread "wallclock_alsa" terminated (0 remaining).
      -- 2011/08/11 16:36:40 [main:3] Cleaning downloaded files...
      -- 2011/08/11 16:36:40 >>> LOG END
    MEDIA_MONITOR_PROCESS_ID       = 
    MEDIA_MONITOR_RUNNING_SECONDS  = 0
      -- WARNING! It looks like the Media Monitor engine is continually restarting.
      -- 2011-08-11 16:36:55,962 INFO - [mediamonitorcommon.py : organize_new_file() : line 248] - Organizing new file: /srv/airtime/stor/89a/89a701811e6b5a66b612806411ce0154.mp3
      -- 2011-08-11 16:36:55,962 INFO - [airtimemetadata.py : get_md_from_file() : line 122] - getting info from filepath /srv/airtime/stor/89a/89a701811e6b5a66b612806411ce0154.mp3
      -- 2011-08-11 16:36:56,068 ERROR - [airtimemetadata.py : get_md_from_file() : line 132] - failed getting metadata from /srv/airtime/stor/89a/89a701811e6b5a66b612806411ce0154.mp3
      -- 2011-08-11 16:36:56,068 ERROR - [airtimemetadata.py : get_md_from_file() : line 133] - Exception File() got an unexpected keyword argument 'easy'
      -- 2011-08-11 16:36:56,069 WARNING - [mediamonitorcommon.py : organize_new_file() : line 258] - File /srv/airtime/stor/89a/89a701811e6b5a66b612806411ce0154.mp3, has invalid metadata
      -- 2011-08-11 16:36:56,069 INFO - [mediamonitorcommon.py : organize_new_file() : line 248] - Organizing new file: /srv/airtime/stor/ef5/ef52f2bc15c59178aa80edd50635a645.mp3
      -- 2011-08-11 16:36:56,070 INFO - [airtimemetadata.py : get_md_from_file() : line 122] - getting info from filepath /srv/airtime/stor/ef5/ef52f2bc15c59178aa80edd50635a645.mp3
      -- 2011-08-11 16:36:56,087 ERROR - [airtimemetadata.py : get_md_from_file() : line 132] - failed getting metadata from /srv/airtime/stor/ef5/ef52f2bc15c59178aa80edd50635a645.mp3
      -- 2011-08-11 16:36:56,087 ERROR - [airtimemetadata.py : get_md_from_file() : line 133] - Exception File() got an unexpected keyword argument 'easy'
      -- 2011-08-11 16:36:56,087 WARNING - [mediamonitorcommon.py : organize_new_file() : line 258] - File /srv/airtime/stor/ef5/ef52f2bc15c59178aa80edd50635a645.mp3, has invalid metadata
    SHOW_RECORDER_PROCESS_ID       = 
    SHOW_RECORDER_RUNNING_SECONDS  = 0
      -- WARNING! It looks like the Show Recorder engine is continually restarting.
    ICECAST_PROCESS_ID             = 8211
    
      -- There appears to be problems with your setup. Please visit
      -- http://wiki.sourcefabric.org/x/HABQ for troubleshooting info.


    I can log in to the airtime server, but the time is wrong (it says 11:57:29 EDT, whereas the current time is 16:57 BST).

    Also, there are numerous other errors including Liquidsoap restarting. Luckily this isn't the production machine!! But I would like to upgrade the production machine - any idea what is wrong here?

    James
  • 9 Comments sorted by
  • Hi James,

    Do you have virtualenv installed?

    Please refer to out manual install page:
    http://wiki.sourcefabric.org/display/CC/Manual+Install

    If you are using ubuntu, you can just run auto install script that is under install_full dir.
  • Hi James,
    please confirm you've followed all the steps in the wiki
    and all dependencies were install.
  • Hi guys,

    I followed the instructions here on the wiki:

    http://wiki.sourcefabric.org/display/CC/Upgrading+to+Airtime +1.9.0

    I just copied and pasted the commands so it should have installed python-virtualenv... just checking synaptic package manager and it says I have python-virtualenv 1.4.5-1ubuntu1 installed so I assume this is ok?

    James
  • Can you please uninstall version 1.9
    (sudo ./airtime-uninstall)
    and go through the wiki again?
    It's hard to understand your server state at this point.

    You can also try the install_full/ubuntu

    When you install the dependencies, please keep your eyes out for any errors with the 3rd party installations.
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    a good way to do this :

    your command >> logfile.txt

    and after the process finished, look the logfile.txt ( with "less" for example )

    less logfile.txt
  • Ok I tried completely removing airtime and then installing 1.9.0 manually from the instructions here:

    http://wiki.sourcefabric.org/display/CC/Manual+Install

    No errors were reported in the install process, however the server time still says EDT. I have the following errors in /var/log/airtime/pypo/pypo.log:

    2011-08-12 10:37:19,170 ERROR - [pypofetch.py : check_matching_timezones() : line 96] - ERROR: Airtime server and pypo timezone offsets do not match. Audio playback will not start when expected!!!
    2011-08-12 10:37:19,171 ERROR - [pypofetch.py : check_matching_timezones() : line 97] -   * Server timezone offset: -0400
    2011-08-12 10:37:19,171 ERROR - [pypofetch.py : check_matching_timezones() : line 98] -   * Pypo timezone offset: +0100
    2011-08-12 10:37:19,171 ERROR - [pypofetch.py : check_matching_timezones() : line 99] -   * To fix this, you need to set the 'date.timezone' value in your php.ini file and restart apache.
    2011-08-12 10:37:19,171 ERROR - [pypofetch.py : check_matching_timezones() : line 100] -   * See this page for more info (v1.7): http://wiki.sourcefabric.org/x/BQBF
    2011-08-12 10:37:19,172 ERROR - [pypofetch.py : check_matching_timezones() : line 101] -   * and also the 'FAQ and Support' page underneath it.


    /etc/php/apache2/php.ini is set to:
    date.timezone = "Europe/London"
    and has not been changed.

    Also, I just scheduled a show to record and the web ui says it is recording but no show appears in the database or in /var/tmp/airtime/show-recorder. There is also no ecasound process running when I check
    ps ax | grep ecasound


    thanks

    James

  • Vote Up0Vote Down NaomiNaomi
    Posts: 228Member
    Sorry, that error message show have been changed in 1.9.0.

    You must now set your timezone in

    PHP_DIR/public/.htaccess

    Airtime isn't looking at php.ini in 1.9.0
  • Ok thanks, that fixed the time and recording issues. Is there a new command to replace airtime-pypo-stop and airtime-pypo-start?
    Or, how do I restart liquidsoap after changing the settings in /etc/airtime/liquidsoap.cfg without rebooting?

    thanks

    James
  • Vote Up0Vote Down NaomiNaomi
    Posts: 228Member
    They're using init.d now so something like this...

    sudo service airtime-playout start|stop|restart|status
    sudo service airtime-media-monitor ...
    sudo service airtime-show-recorder ...