Kaltura video and audio allways converting

18 replies [Last post]
Joined: 10/27/2009
Points: 18
problem screenshot

I can't see my media in the entries zone... when i look in the server -> entries in process i can see my media (audio an video) allways converting... but this process never ends....

Joined: 08/12/2009
Points: 40

Do you have any logs in your entries?

Maybe you can try to restart your batches.

Joined: 10/27/2009
Points: 18

i did restart my batches but it didn't work... i guess is a problem with the ffmpeg encoder.... but i'm not sure...

Joined: 10/27/2009
Points: 18


Warning: require_once(/../config/sfrootdir.php): failed to open stream: No such file or directory in /var/www/html/kalturaCE/kaltura/alpha/batch/runBatch.php on line 2


Fatal error: require_once(): Failed opening required '/../config/sfrootdir.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/kalturaCE/kaltura/alpha/batch/runBatch.php on line 2


Warning: require_once(/../config/sfrootdir.php): failed to open stream: No such file or directory in /var/www/html/kalturaCE/kaltura/alpha/batch/runBatch.php on line 2


Fatal error: require_once(): Failed opening required '/../config/sfrootdir.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/kalturaCE/kaltura/alpha/batch/runBatch.php on line 2

Joined: 08/12/2009
Points: 40

Hmm it seems you have a problem with your kaltura installation.
Can you check you actually have the file sfrootdir.php at the right place? It should be in /var/www/html/kalturaCE/kaltura/alpha/config/sfrootdir.php
By the way, that's curious that php tells you the file is missing /../config/sfrootdir.php. It should say /var/www/html/kalturaCE/kaltura/alpha/batch/../config/sfrootdir.php. It's like realpath(dirname(__FILE__)) returns "/" on your configuration.

Joined: 10/27/2009
Points: 18

i have that file in this path:

/var/www/html/kalturaCE/kaltura/alpha/config/sfrootdir.php

so is fine... but i don't know why is miss for PhP

Joined: 08/12/2009
Points: 40

Can you try a php test page with the functions we talked about?
Something like :

<?php
echo 'file: '.__FILE__.'<br />';
echo 'dirname: '.dirname(__FILE__).'<br />';
echo 'realpath: '.realpath(dirname(__FILE__));
?>
Joined: 10/27/2009
Points: 18


file: /var/www/html/kalturaCE/prueba.php
dirname: /var/www/html/kalturaCE
realpath: /var/www/html/kalturaCE

on batch path:


file: /var/www/html/kalturaCE/kaltura/alpha/batch/prueba.php
dirname: /var/www/html/kalturaCE/kaltura/alpha/batch
realpath: /var/www/html/kalturaCE/kaltura/alpha/batch

Joined: 08/12/2009
Points: 40

That's really odd then. I don't understand why it fails to include the file.
Maybe the problem is with the sh files, what happens if you try a "./runBatch.sh restart" in your batch directory? You may have already tried.

Joined: 10/27/2009
Points: 18


[root@localhost batch]# ./runBatch.sh restart
PHP Warning: PHP Startup: fileinfo: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
/var/www/html/kalturaCE/kaltura/alpha/batch/kaltura_env.sh
restarting batch batchBulkUpload
restarting batch batchDownloadVideoServer
restarting batch batchEmailServer
restarting batch batchImportServer
restarting batch batchNotificationServer
PHP Warning: PHP Startup: fileinfo: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
restarting batch newBatchConvertClient
restarting batch newBatchConvertServer
PHP Warning: PHP Startup: fileinfo: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: fileinfo: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: fileinfo: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
[root@localhost batch]# PHP Warning: PHP Startup: fileinfo: Unable to initializ e module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: fileinfo: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: fileinfo: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
[root@localhost batch]#

after that i did go to edit kaltura_env.sh and modified


export PHP_PATH=php

to


export PHP_PATH=php5

and run the command


./runBatch.sh restart

and now is working but i'm not sure if is normal see all the process in status down.... if that is normal i guess all is fixed...i'm gonna try kaltura and look for other problems

AttachmentSize
statusDown.jpg166.4 KB
Joined: 10/27/2009
Points: 18

i have the same problem again.... i can see all Process but is not converting...

aaa.jpg when i see the video in entries in process
batches.jpg when i see the system status
bbb.jpg when i try to restart all batches

AttachmentSize
bbbb.jpg187.4 KB
aaa.jpg226.24 KB
batches.jpg170.85 KB
Joined: 08/12/2009
Points: 40

You have a php binary that's not a link to your php5 binary?

Joined: 10/27/2009
Points: 18

sorry... i don't understand what you wanna say.. i have a realy bad english :(

Joined: 08/12/2009
Points: 40

On my server (which is a debian lenny), I have a php binary, but it's just a symbolic link.

18:52 fenx@avalon ~% ls -l /usr/bin/php
lrwxrwxrwx 1 root root 21 2007-12-04 22:30 /usr/bin/php -> /etc/alternatives/php
18:52 fenx@avalon ~% ls -l /etc/alternatives/php
lrwxrwxrwx 1 root root 13 2009-06-05 19:06 /etc/alternatives/php -> /usr/bin/php5

As you can see, php and php5 are actually the same binary. What about you?

Joined: 10/27/2009
Points: 18


[root@localhost /]# ls -l /usr/bin/php
-rwxr-xr-x 1 root root 2864992 oct 7 08:40 /usr/bin/php
[root@localhost /]# ls -l /etc/alternatives/php
ls: /etc/alternatives/php: No existe el fichero o el directorio
[root@localhost /]#

how can i make a symbolic link?

sorry i'm realy new in linux lol

Joined: 08/12/2009
Points: 40

Symbolic links are made with the "ln -s" command, but I do not recommend you to play with your /usr/bin content. What distribution do you use?
What does "php -version" returns in your case?
If it's not a php 5 version, can you try to have only one php version installed?

Joined: 10/27/2009
Points: 18

i'm using centOS 4.7... php 5.2.11

Joined: 08/12/2009
Points: 40

That's curious. I don't know why it works with one of your php binary and not with the other if they're the same.
I think there's a misconfiguration somewhere in the system (otherwise it shouldn't work even with the php5 binary), but I don't know what.

Joined: 10/27/2009
Points: 18

i switch my centos to linux red hat linux 5.... ready like a baby