Conversions stuck in queue

6 replies [Last post]
Joined: 09/21/2009
Points: 7

After the install, I was able to upload a video and have it play back on my wordpress site fine. Since the first uploaded video, all subsequent videos I have uploaded have been sitting in the "newBatchConvertClient" process queue. I have tried to restart the queue with no change. This is what is in the newBatchConvertClient.log

21/09 12:57:43.345 {1784520} CC 3: ----------------- Initializing DB -------------------
21/09 12:57:43.351 {1989984} CC 3: [0] indicator in directory [D:\xampp\htdocs\upload\content\new_preconvert]
21/09 12:57:43.351 {1987224} CC 3: [0] indicator in directory [D:\xampp\htdocs\upload\conversions\postconvert_res]
21/09 12:57:43.351 {1985464} CC 3: Ended conversion. sleeping for a while (5 seconds). Will write to the log in (180) seconds
21/09 13:00:43.347 {1990464} CC 3: [0] indicator in directory [D:\xampp\htdocs\upload\content\new_preconvert]
21/09 13:00:43.347 {1987392} CC 3: [0] indicator in directory [D:\xampp\htdocs\upload\conversions\postconvert_res]
21/09 13:00:43.347 {1985504} CC 3: Ended conversion. sleeping for a while (5 seconds). Will write to the log in (180) seconds
21/09 13:03:43.344 {1990320} CC 3: [0] indicator in directory [D:\xampp\htdocs\upload\content\new_preconvert]
21/09 13:03:43.344 {1987248} CC 3: [0] indicator in directory [D:\xampp\htdocs\upload\conversions\postconvert_res]
21/09 13:03:43.344 {1985360} CC 3: Ended conversion. sleeping for a while (5 seconds). Will write to the log in (180) seconds
21/09 13:06:43.340 {1990176} CC 3: [0] indicator in directory [D:\xampp\htdocs\upload\content\new_preconvert]
21/09 13:06:43.340 {1987104} CC 3: [0] indicator in directory [D:\xampp\htdocs\upload\conversions\postconvert_res]
21/09 13:06:43.340 {1985216} CC 3: Ended conversion. sleeping for a while (5 seconds). Will write to the log in (180) seconds
21/09 13:09:43.337 {1990032} CC 3: [0] indicator in directory [D:\xampp\htdocs\upload\content\new_preconvert]
21/09 13:09:43.337 {1986960} CC 3: [0] indicator in directory [D:\xampp\htdocs\upload\conversions\postconvert_res]
21/09 13:09:43.337 {1985072} CC 3: Ended conversion. sleeping for a while (5 seconds). Will write to the log in (180) seconds
21/09 13:10:13.337 {1989888} CC 3: [1] indicator in directory [D:\xampp\htdocs\upload\content\new_preconvert]
21/09 13:10:13.439 {6418776} CC 3: Archiving file [D:\xampp\htdocs\upload\content\new_preconvert/cj2r91tin4.wmv] to dir [D:\xampp\htdocs\upload//archive/data/]}
21/09 13:10:13.442 {6439504} CC 3: Found entry for file_name [D:\xampp\htdocs\upload\content\new_preconvert/cj2r91tin4.wmv] -> entry_id [cj2r91tin4]
21/09 13:10:13.444 {6438520} CC 3: Archiving file [D:\xampp\htdocs\upload\content\new_preconvert/cj2r91tin4.wmv] to [D:\xampp\htdocs\upload//archive/data//0/0/cj2r91tin4.wmv]}
21/09 13:10:13.472 {7819128} CC 3: ConversionProfile: ConversionProfile Object
(
    [id:protected] => 2
    [partner_id:protected] => 0
    [enabled:protected] => 1
    [name:protected] => med
    [profile_type:protected] => med
    [commercial_transcoder:protected] => 0
    [width:protected] => 0
    [height:protected] => 0
    [aspect_ratio:protected] => 2
    [bypass_flv:protected] => 0
    [use_with_bulk:protected] =>
    [created_at:protected] => 1233865387
    [updated_at:protected] => 1233865495
    [profile_type_suffix:protected] => edit
    [alreadyInSave:protected] =>
    [alreadyInValidation:protected] =>
    [validationFailures:protected] => Array
        (
        )

    [_new:private] =>
    [_deleted:private] =>
    [modifiedColumns:protected] => Array
        (
        )

)

21/09 13:10:13.481 {8284904} CC 3: ConversionParams chosen by fallback_mode [Array
(
    [mode] => 1
    [partner_id] => 0
    [profile_type] => mededit
)
]
21/09 13:10:13.495 {8800024} CC 3: Setting ConversionCommand for file [cj2r91tin4.wmv]
kConversionCommand Object
(
    [source_file] => D:\xampp\htdocs\upload//archive/data//0/0/cj2r91tin4.wmv
    [target_file] => D:\xampp\htdocs\upload//content/entry/data/0/0/cj2r91tin4_100000.flv
    [log_file] => D:\xampp\htdocs\upload//content/entry/data/0/0/cj2r91tin4_100000.flv.log
    [result_path] => D:\xampp\htdocs\upload\conversions\postconvert_res
    [conversion_params_list] => Array
        (
            [0] => kConversionParams Object
                (
                    [id] =>
                    [enabled] => 1
                    [name] =>
                    [width] => 0
                    [height] => 0
                    [aspect_ratio] => 2
                    [gop_size] => 100
                    [bitrate] => 800
                    [qscale] => 0
                    [video] => 1
                    [audio] =>
                    [file_suffix] =>
                    [ffmpeg_params] =>
                    [mencoder_params] =>
                    [flix_params] =>
                    [desired_converter] =>
                    [comercial_transcoder] => 0
                    [framerate] => 25
                    [audio_bitrate] =>
                    [audio_sampling_rate] => 22050
                    [audio_channels] => 2
                    [enable] => 1
                )

            [1] => kConversionParams Object
                (
                    [id] =>
                    [enabled] => 1
                    [name] =>
                    [width] => 0
                    [height] => 0
                    [aspect_ratio] => 2
                    [gop_size] => 5
                    [bitrate] => 800
                    [qscale] => 0
                    [video] => 1
                    [audio] =>
                    [file_suffix] => _edit
                    [ffmpeg_params] =>
                    [mencoder_params] =>
                    [flix_params] =>
                    [desired_converter] =>
                    [comercial_transcoder] => 0
                    [framerate] => 25
                    [audio_bitrate] =>
                    [audio_sampling_rate] => 22050
                    [audio_channels] => 2
                    [enable] => 1
                )

        )

    [entry_id] => cj2r91tin4
    [commercial_transcoder] => 0
)

21/09 13:10:13.495 {8798408} CC 3: Setting file [D:\xampp\htdocs\upload\conversions\preconvert_cmd/cj2r91tin4.wmv] indicator [1]
21/09 13:10:13.500 {8797752} CC 3: Set ConversionCommand for file [cj2r91tin4.wmv] in [D:\xampp\htdocs\upload\conversions\preconvert_cmd/cj2r91tin4.wmv]
21/09 13:11:28.499 {8795344} CC 3: [1] indicator in directory [D:\xampp\htdocs\upload\conversions\postconvert_res]
21/09 13:11:28.499 {8794408} CC 3: Updating entry [cj2r91tin4]
21/09 13:11:28.533 {8824760} CC 3: kConversionResult Object
(
    [status_ok] => 1
    [conv_cmd] => kConversionCommand Object
        (
            [source_file] => D:\xampp\htdocs\upload//archive/data//0/0/cj2r91tin4.wmv
            [target_file] => D:\xampp\htdocs\upload//content/entry/data/0/0/cj2r91tin4_100000.flv
            [log_file] => D:\xampp\htdocs\upload//content/entry/data/0/0/cj2r91tin4_100000.flv.log
            [result_path] => D:\xampp\htdocs\upload\conversions\postconvert_res
            [conversion_params_list] => Array
                (
                    [0] => kConversionParams Object
                        (
                            [id] =>
                            [enabled] => 1
                            [name] =>
                            [width] => -1
                            [height] => -1
                            [aspect_ratio] => 2
                            [gop_size] => 100
                            [bitrate] => 800
                            [qscale] => 0
                            [video] => 1
                            [audio] => 1
                            [file_suffix] =>
                            [ffmpeg_params] =>
                            [mencoder_params] =>
                            [flix_params] =>
                            [desired_converter] =>
                            [comercial_transcoder] => 0
                            [framerate] => 25
                            [audio_bitrate] =>
                            [audio_sampling_rate] => 22050
                            [audio_channels] => 2
                            [enable] => 1
                        )

                    [1] => kConversionParams Object
                        (
                            [id] =>
                            [enabled] => 1
                            [name] =>
                            [width] => -1
                            [height] => -1
                            [aspect_ratio] => 2
                            [gop_size] => 5
                            [bitrate] => 800
                            [qscale] => 0
                            [video] => 1
                            [audio] => 1
                            [file_suffix] => _edit
                            [ffmpeg_params] =>
                            [mencoder_params] =>
                            [flix_params] =>
                            [desired_converter] =>
                            [comercial_transcoder] => 0
                            [framerate] => 25
                            [audio_bitrate] =>
                            [audio_sampling_rate] => 22050
                            [audio_channels] => 2
                            [enable] => 1
                        )

                )

            [entry_id] => cj2r91tin4
            [commercial_transcoder] => 0
        )

    [result_str:private] => ffmpeg: D:\xampp\htdocs\upload\kaltura\alpha/../bin/ffmpeg/ffmpeg -i "D:\xampp\htdocs\upload//archive/data//0/0/cj2r91tin4.wmv" -r 25 -b 800k -g 100 -ar 22050 -ac 2    -y  "D:\xampp\htdocs\upload//content/entry/data/0/0/cj2r91tin4_100000.flv"  2>>"D:\xampp\htdocs\upload//content/entry/data/0/0/cj2r91tin4_100000.flv.log"
ffmpeg: [1]
mencoder: D:\xampp\htdocs\upload\kaltura\alpha/../bin/mencoder/mencoder "D:\xampp\htdocs\upload//archive/data//0/0/cj2r91tin4.wmv" -of lavf  -ofps 25 -oac mp3lame  -srate 22050 -ovc lavc  -lavcopts vcodec=flv:vbitrate=800:mbd=2:mv0:trell:v4mv:cbp:last_pred=3:keyint=100 -o "D:\xampp\htdocs\upload//content/entry/data/0/0/cj2r91tin4_100000.flv" 2>>"D:\xampp\htdocs\upload//content/entry/data/0/0/cj2r91tin4_100000.flv.log"
mencoder: [0]
mencoder: D:\xampp\htdocs\upload\kaltura\alpha/../bin/mencoder/mencoder "D:\xampp\htdocs\upload//archive/data//0/0/cj2r91tin4.wmv" -of lavf  -ofps 25 -oac mp3lame  -srate 22050 -ovc lavc  -lavcopts vcodec=flv:vbitrate=800:mbd=2:mv0:trell:v4mv:cbp:last_pred=3:keyint=5 -o "D:\xampp\htdocs\upload//content/entry/data/0/0/cj2r91tin4_100000_edit.flv" 2>>"D:\xampp\htdocs\upload//content/entry/data/0/0/cj2r91tin4_100000.flv_edit.log"
mencoder: [0]

    [result_info:private] => Array
        (
            [0] => kConvResInfo Object
                (
                    [engine] => ffmpeg
                    [target] => D:\xampp\htdocs\upload//content/entry/data/0/0/cj2r91tin4_100000.flv
                    [conv_str] =>  -r 25 -b 800k -g 100 -ar 22050 -ac 2    -y
                    [res] => 1
                   

=> 0
                    [duration] => 10.0214049816
                    [conv_params_name] =>
                )

            [1] => kConvResInfo Object
                (
                    [engine] => mencoder
                    [target] => D:\xampp\htdocs\upload//content/entry/data/0/0/cj2r91tin4_100000.flv
                    [conv_str] =>  -of lavf  -ofps 25 -oac mp3lame  -srate 22050 -ovc lavc  -lavcopts vcodec=flv:vbitrate=800:mbd=2:mv0:trell:v4mv:cbp:last_pred=3:keyint=100
                    [res] => 0
                   

=> 0
                    [duration] => 37.8856551647
                    [conv_params_name] =>
                )

            [2] => kConvResInfo Object
                (
                    [engine] => mencoder
                    [target] => D:\xampp\htdocs\upload//content/entry/data/0/0/cj2r91tin4_100000_edit.flv
                    [conv_str] =>  -of lavf  -ofps 25 -oac mp3lame  -srate 22050 -ovc lavc  -lavcopts vcodec=flv:vbitrate=800:mbd=2:mv0:trell:v4mv:cbp:last_pred=3:keyint=5
                    [res] => 0
                   

=> 1
                    [duration] => 25.9807641506
                    [conv_params_name] =>
                )

        )

)

21/09 13:11:31.533 {8821576} CC 3: File [D:\xampp\htdocs\upload//archive/data//0/0/cj2r91tin4.wmv] converted OK to [D:\xampp\htdocs\upload//content/entry/data/0/0/cj2r91tin4_100000.flv]
21/09 13:11:31.545 {9098264} CC 3: Entry id [cj2r91tin4] setting duration
21/09 13:11:31.554 {9621360} CC 3: Entry id [cj2r91tin4] duration [74736]
21/09 13:11:31.555 {9621312} CC 3: Entry id [cj2r91tin4] Thumb offset: [3]
21/09 13:11:32.86 {12968992} CC 3: Entry id [cj2r91tin4] dimensions: [640x480]
21/09 13:12:47.96 {13436440} CC 3: [0] indicator in directory [D:\xampp\htdocs\upload\content\new_preconvert]
21/09 13:12:47.96 {13433368} CC 3: [0] indicator in directory [D:\xampp\htdocs\upload\conversions\postconvert_res]
21/09 13:12:47.96 {13431480} CC 3: Ended conversion. sleeping for a while (5 seconds). Will write to the log in (180) seconds
21/09 13:15:47.93 {13436296} CC 3: [0] indicator in directory [D:\xampp\htdocs\upload\content\new_preconvert]
21/09 13:15:47.93 {13433224} CC 3: [0] indicator in directory [D:\xampp\htdocs\upload\conversions\postconvert_res]
21/09 13:15:47.93 {13431336} CC 3: Ended conversion. sleeping for a while (5 seconds). Will write to the log in (180) seconds
another batch of type newBatchConvertClient.php is already running... exiting.another batch of type newBatchConvertClient.php is already running... exiting.another batch of type newBatchConvertClient.php is already running... exiting.

1. Why are my videos stuck in the queue?
2. How do I get them out?
3. How do I keep this from happening again?

I am using the xampp 1.7.1 install on Windows Server 2003

Thanks.

Joined: 09/24/2009
Points: 15

I've got a similar problem...

I'm just using the KMC at the moment for my uploads.

xampp 1.7.1 on 2K3

Is there anybody out there? JK, should I give up on Windows and try Linux?

I can upload pics fine (haven't tried the other features). Videos are just sitting in the que. 0 in process at the moment.

Joined: 09/24/2009
Points: 15

Aight, I never heard from anyone, but I gave up on Windows for the time being.

It took me two days because of my lack of LInux experience, but I am up and running. Videos are being converted and I am pleased.

Ubuntu 9.04
Xampp 1.7.1

Joined: 09/21/2009
Points: 7

You are lucky. I have no Linux experience, so it would be nice if someone would answer my question about my problem in windows.

Joined: 09/24/2009
Points: 15

Yes, it would be nice. I wish I could contribute more around here, but I have about 1 week experience with Kaltura, so I can't help much. If you want here is a rough-outline of what I did if you want to try it.

Downloaded Ubuntu 9.04 Desktop edition, burn to CD, install to a server with 1, 1TB hard drive. Install was very easy.

Got Ubuntu completely up-to-date

Download xampp-linux-1.7.1.tar.gz, kalturaCE_v1.5_linux386.tgz
Extracted those files to the desktop.
Using the command line as sudo, copied them to /opt. It looked like this when I had moved lampp then kaltura:
/opt/lampp/htdocs/kalturaCE. I just googled how to do this and it was easy. Copy and paste did not work because of permissions. I had to move the files using command line.

If you just google, install xampp on ubuntu, you'll find good guides. So, don't stress about that.

Started xampp using the command prompt /opt/lampp/lampp start... mysql did not start. It turned out to be file permissions.... chmod -R 777 on /opt/lampp/mysql IIRC (this was yesterday, sorry). Got all lampp services running after getting permissions correct. I googled how to have lampp start automatically and found an easy way to do it on the ubuntu forums. I haven't rebooted the box yet, so I don't know if it worked :)

The rest, you should be good with if you got xampp, phpmyadmin, kaltura, all that stuff working on your Windows box. You'll have some file permissions to fix, but the installer tells you a script to run that fixes all of that.

Joined: 02/22/2009
Points: 97

Seems like you might have a zomby process or something like this.

in kalturaCE/batchwatch you should find a file with a name like newBatchConvertClient.#####
if you find such file, it indicates that you have a running process of the batch client or the process is not running but the indicator file is still there which might prevent new instances of the batch to start.

try to delete this file, and if you can't it is probably is use by the process - so you'll have to locate the process and kill it before trying to start the batch again.

We didn't test CE with Server2003, we will try to add windows 2003 testing in future releases.

Joined: 09/21/2009
Points: 7

I have deleted the newBatchConvertClient.##### files and it seems to be converting again. The file that was trying to be converted was an mp3. Should an mp3 be getting converted? If so, why would an mp3 need to be converted to flash? Is there a way to exclude mp3's from being converted?
Thanks for your help.