Centova Technologies Forum

Centova Cast v3 => Bugs and issues => Topic started by: pax on January 21, 2014, 07:05:52 am

Title: Problem updating media library
Post by: pax on January 21, 2014, 07:05:52 am
I'm running V3 and some of the stations are having problems updating their media libraries.    I know it is automatic when files are uploaded using the standard methods, but we have some common files that are uploaded outside of Centovacast - so manual updates are needed.

Is there a log I can look at to see which file is causing the problem?   In the past this has been a problem with file permissions but I've checked that..
Title: Re: Problem updating media library
Post by: handris on January 21, 2014, 07:17:53 am
do you get any error message?  and which version that your centovacast?
Title: Re: Problem updating media library
Post by: DJFire_CFR on January 21, 2014, 07:18:40 am
You can always try running:

Code: [Select]
/usr/local/centovacast/bin/ccmanage reindex username --updateall

Using SSH as root

(replace username with the actual username)

Depending on how much music there is, it could take a bit.
Title: Re: Problem updating media library
Post by: handris on January 21, 2014, 07:25:11 am
Im agree with DJ Fire. But dont forget to fixperms first :

Code: [Select]
/usr/local/centovacast/sbin/fixperms
Title: Re: Problem updating media library
Post by: pax on January 22, 2014, 07:15:36 am
Hmm, the error seems to be in the ID3 tags (?) -  I presume there is a problem with the Russian character set?

[INF] Total disk usage: 116608.28 MB
[INF] Preparing for full update
[INF] Processing /usr/local/centovacast/var/vhosts/rudder/var/spool/media/General_6/I-47_12) Schola Cantorum of Saint Peter the Apostle - Carpatho-rusyn Plainchant ~ St, Symeon’s Prayer and Trisagion .mp3
[INF] Processing /usr/local/centovacast/var/vhosts/rudder/var/spool/media/MR J25 Byz Chant Arabic /02 Troparion Of Pentacost.mp3
===============================================================================
Error:   Could not execute query
File:   /usr/local/centovacast/system/class_TrackManager.php:599
Query:   SELECT ident,id FROM track_artists WHERE ident IN ("ХорМосковскогоХрамавчестьиконы"ВсехСкорбящихРадость"наБольшойОрдынкеп/уНиколаяМАТВЕЕВА","chamberchoirlegeartisborisabalyan","choiraxios") AND accountid=36
Reason:   You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ВсехСкорбящихРадость"наБольшойОрдынкеп/уН' at line 1
Call:   $SQL->select_query()
===============================================================================
Title: Re: Problem updating media library
Post by: pax on January 22, 2014, 07:48:08 am
hmm... the log continued after above error...  so I guess that wasn't fatal.

However, it does fail on this:


Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 40787613 bytes) in /usr/local/centovacast/system/albumds/includes/itunes.php on line 1073741857
Title: Re: Problem updating media library
Post by: pax on January 24, 2014, 09:40:22 am
Anyone have any suggestions?  I've checked /etc/php5/cli/php.ini and it is set to unlimited (-1)   
Title: Re: Problem updating media library
Post by: DJFire_CFR on January 24, 2014, 06:32:42 pm
create a new file and save it as info.php

add this to it:

Code: [Select]
<?
phpinfo();
?>

upload the file to your server.

Then goto the page via a web browser and look for the following line:

Code: [Select]
Loaded Configuration File

Make sure that line specifically states
/etc/php5/cli/php.ini

To be sure that, that is the correct php.ini file that your server is using.. As you may be editting the wrong php.ini file.
Title: Re: Problem updating media library
Post by: javier on January 24, 2014, 06:50:24 pm
Hi,

lest try something simple first.
access the account via FTP and rename the media folder with another name.
create a new media folder
upload a mp3 file that you know that play well in centova cast. (if you can re-encode the test file with audacity better)
then fix the permissions via SSH  /usr/local/centovacast/sbin/fixperms

then go to that account and try to update the media library and see if updates with just that file that you just uploaded.

if updates that means the old media folder have some files that are corrupted and is interrupting the update.
if does not update at least you know that are not the files.


ALSO I DONT KNOW IF YOU SAW THIS
http://www.centova.com/en/faq/cast2/troubleshooting/media_library_update_does_not_complete_or_stops_with_error