Quantcast
Channel: Airtime Support Discussions on Sourcefabric Forum
Viewing all articles
Browse latest Browse all 1390

1.9.0 upgrade problems

$
0
0
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

Viewing all articles
Browse latest Browse all 1390

Trending Articles