Record and Rebroadcast missing files
  • Hi,

    I've just installed an Airtime server but think I have a problem with the 'Record and Rebroadcast' feature.

    I added a show to the calendar and it started recording at the required time. Doing a 'ps -Af' showed that a file was being recorded. Then after it finished recording it disappeared.

    The show recorder log show this:
    2011-09-06 09:19:59,135 DEBUG - [recorder.py : get_time_till_next_show() : line 234] - Next show 2011-09-06 09:20:00
    2011-09-06 09:19:59,136 DEBUG - [recorder.py : get_time_till_next_show() : line 235] - Now 2011-09-06 09:19:59.135640
    2011-09-06 09:19:59,136 DEBUG - [recorder.py : start_record() : line 245] - sleeping 0 seconds until show
    2011-09-06 09:19:59,140 INFO - [recorder.py : record_show() : line 81] - starting record
    2011-09-06 09:19:59,141 INFO - [recorder.py : run() : line 289] - Loop #7
    2011-09-06 09:19:59,141 INFO - [recorder.py : record_show() : line 82] - command ecasound -f:16,2,44100 -i alsa -o /var/tmp/airtime/show-recorder/2011-09-06-09:20:00.mp3,256000 -t:300.0
    2011-09-06 09:25:00,134 INFO - [recorder.py : record_show() : line 90] - finishing record, return code 0
    2011-09-06 09:25:00,135 INFO - [recorder.py : run() : line 152] - Preparing to upload /var/tmp/airtime/show-recorder/2011-09-06-09:20:00.mp3
    2011-09-06 09:25:00,135 INFO - [recorder.py : set_metadata_and_save() : line 131] - time: 09-20-00
    2011-09-06 09:25:00,293 DEBUG - [api_client.py : upload_recorded_show() : line 354] - http://localhost:80/api/upload-file/format/json/api_key/%%api_key%%
    2011-09-06 09:25:00,294 DEBUG - [api_client.py : upload_recorded_show() : line 356] - http://localhost:80/api/upload-file/format/json/api_key/68D2JT6Z6D6ZMAFN4M42
    2011-09-06 09:25:00,294 DEBUG - [api_client.py : upload_recorded_show() : line 359] - Upload attempt: 1
    2011-09-06 09:25:00,806 INFO - [api_client.py : upload_recorded_show() : line 365] - uploaded show result {"jsonrpc" : "2.0", "error" : {"code": 103, "message": "Failed to move uploaded file."}, "id" : "id"}
    


    Where should it be moving it to? My only deviation from a vanilla manual install is that my /srv/airtime/ is on a separate XFS formatted partition.

    Everything else appears to work perfectly. Here's my system settings:
    CPU                            = AMD Athlon(tm) 64 X2 Dual Core Processor 5200+
    Total RAM                      = 1005504 kB
    Free RAM                       = 351752 kB
    OS                             = Ubuntu 10.04.3 LTS 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:80/api/version/api_key/%%api_key%%
    APACHE_CONFIGURED              = YES
    AIRTIME_VERSION                = 1.9.3
    PLAYOUT_ENGINE_PROCESS_ID      = 1510
    PLAYOUT_ENGINE_RUNNING_SECONDS = 1877
    LIQUIDSOAP_PROCESS_ID          = 1079
    LIQUIDSOAP_RUNNING_SECONDS     = 1879
    MEDIA_MONITOR_PROCESS_ID       = 1065
    MEDIA_MONITOR_RUNNING_SECONDS  = 1879
    SHOW_RECORDER_PROCESS_ID       = 1087
    SHOW_RECORDER_RUNNING_SECONDS  = 1879
    ICECAST_PROCESS_ID             = 1088
    
      -- System setup looks OK!
    
    


    Thanks for your help!

    Kev
  • 2 Comments sorted by
  • Hi, it looks like an error with copying the file to your stor directory.

    Where is your stor directory pointing to?
    Can you upload songs using the Add Media and see them on the playlist builder?

    Please verify the folder you chose has the right permissions.
  • Uploading songs via the Add Media pages worked perfectly so I thought that the folders were configured correctly.

    I'm not at the computer at the moment but I will double check the permissions on the stor folder tomorrow when I'm back infront of it.

    Thanks for the help Smile

    Kev