[campcaster-support] problems uploading and deleting files
  • I have not successfully been able to delete a file from the database.
    This post
    makes
    me think perhaps it is not possible to delete files?

    Also, when uploading files, some files will not upload, claiming they
    are duplicates or are already in the database. They have never been
    uploaded before. I have gotten this error with the import script as well
    as with the upload button in the master console.

    This is the packaged version 1.2.0 with Ubuntu Dapper installed with
    Synaptic.

    -john
  • 14 Comments sorted by
  • John Harrison wrote on 06/11/2007 02:13 AM:
    > I have not successfully been able to delete a file from the database.
    > This post
    > makes
    > me think perhaps it is not possible to delete files?

    Yes, there are some problems with deleting files; see here:
    http://code.campware.org/projects/campcaster/ticket/2218


    > Also, when uploading files, some files will not upload, claiming they
    > are duplicates or are already in the database. They have never been
    > uploaded before. I have gotten this error with the import script as well
    > as with the upload button in the master console.

    Are these files refused as duplicates even when the database is empty?
    To reset the database, use Synaptic to "Completely Remove" the
    campcaster packages, and then reinstall them.

    Ferenc
  • I'll could try deleting the database...but I only uploaded 2 files when
    I had this problem of CampCaster claiming duplicates on files it had
    never seen before. If I were using this in a production setting and had
    100s of files, deleting the database would not be an option. What would
    I do in such a case?

    My real goal here is to evaluate the use of CampCaster for a production
    setting. If I can't delete files and I can't upload some files without
    deleting the entire database, either is a showstopper for me. I also
    couldn't find a way in CampCaster to update the now-playing info for
    Internet streams. Is there a way that I haven't found or does that
    feature not yet exist?

    -John

    Ferenc Gerlits wrote:
    > John Harrison wrote on 06/11/2007 02:13 AM:
    >> I have not successfully been able to delete a file from the database.
    >> This post
    >>
    >> makes me think perhaps it is not possible to delete files?
    >
    > Yes, there are some problems with deleting files; see here:
    > http://code.campware.org/projects/campcaster/ticket/2218
    >
    >
    >> Also, when uploading files, some files will not upload, claiming they
    >> are duplicates or are already in the database. They have never been
    >> uploaded before. I have gotten this error with the import script as
    >> well as with the upload button in the master console.
    >
    > Are these files refused as duplicates even when the database is empty?
    > To reset the database, use Synaptic to "Completely Remove" the
    > campcaster packages, and then reinstall them.
    >
    > Ferenc
    >
  • Hi John,

    The best thing to do before deleting an entire Campcaster database with
    hundreds or perhaps thousands of files is to back it up using the backup
    feature. You'll find this under Options -> Backup. This will make a backup
    file with all of the files you specify (it uses a search-based backup; if
    you leave the search fields blank, this will back up everything).

    Then, once you have the files backed up, you can wipe the Campcaster
    install completely and reinstall; to import, just go to 'Upload File' and
    point it to the backup file. It will then import everything.

    As for now-playing info for internet streams, it is something we would
    like to have as well.

    I keep repeating this point on the support list, but Campcaster is a
    community-powered open source project. We don't have the resources of a
    major broadcaster to fund these efforts. When you do identify what is a
    showstopper for you, we (speaking on behalf of the Campcaster community)
    would greatly appreciate your help in solving it. Chances are, if it's a
    showstopper for you, it's a showstopper for others.

    Our goal, obviously, is to get as many of these showstoppers fixed. But
    these problems simply won't fix themselves. We must all do our part.

    That said, if you're interested in getting involved in solving them, we'll
    be more than happy to point you to technical resources that will help you
    on your way.




    Hope this helps,


    douglas


    =============================================
    Media Development Loan Fund
    =============================================
    Douglas Arellanes
    Head of Research and Development
    Center for Advanced Media--Prague (CAMP)
    Na vinicnich horach 24a/1834, 160 00 Prague 6
    Czech Republic
    Tel: + 420 2 3333 5356, Fax: +420 2 2431 5419
    Mobile: +420 724 073 364
    http://www.mdlf-camp.net
    http://www.campware.org
    =============================================
    http://www.mdlf.org
    =============================================




    John Harrison
    Sent by: campcaster-support-bounces@netfinity-4.mdlf.org
    06/11/2007 02:20 PM
    Please respond to Support mailing list for the Campcaster software project


    To: Support mailing list for the Campcaster software project

    cc:
    Subject: Re: [campcaster-support] problems uploading and deleting files


    I'll could try deleting the database...but I only uploaded 2 files when
    I had this problem of CampCaster claiming duplicates on files it had
    never seen before. If I were using this in a production setting and had
    100s of files, deleting the database would not be an option. What would
    I do in such a case?

    My real goal here is to evaluate the use of CampCaster for a production
    setting. If I can't delete files and I can't upload some files without
    deleting the entire database, either is a showstopper for me. I also
    couldn't find a way in CampCaster to update the now-playing info for
    Internet streams. Is there a way that I haven't found or does that
    feature not yet exist?

    -John

    Ferenc Gerlits wrote:
    > John Harrison wrote on 06/11/2007 02:13 AM:
    >> I have not successfully been able to delete a file from the database.
    >> This post
    >>
    >> makes me think perhaps it is not possible to delete files?
    >
    > Yes, there are some problems with deleting files; see here:
    > http://code.campware.org/projects/campcaster/ticket/2218
    >
    >
    >> Also, when uploading files, some files will not upload, claiming they
    >> are duplicates or are already in the database. They have never been
    >> uploaded before. I have gotten this error with the import script as
    >> well as with the upload button in the master console.
    >
    > Are these files refused as duplicates even when the database is empty?
    > To reset the database, use Synaptic to "Completely Remove" the
    > campcaster packages, and then reinstall them.
    >
    > Ferenc
    >
  • John Harrison wrote on 06/11/2007 02:20 PM:
    > I'll could try deleting the database...but I only uploaded 2 files when
    > I had this problem of CampCaster claiming duplicates on files it had
    > never seen before. If I were using this in a production setting and had
    > 100s of files, deleting the database would not be an option. What would
    > I do in such a case?

    I did not suggest wiping the database as a solution to the problem, I'm
    just trying to pin down what the cause of the problem might be. If you
    have a file which can not be uploaded even to an empty database, because
    Campcaster claims it's a duplicate, please upload it to this ticket:
    http://code.campware.org/projects/campcaster/ticket/2218

    If you can give us any other kind of info about the circumstances when
    this bug happens, please add a comment to the same ticket. This would
    be a huge help for us to find the bug, and eventually fix it.

    To add comments or upload files to the ticket, you need to log in first;
    the user name is "guest", the password is "campware".

    Ferenc
  • hey john!
    I solved in this way:
    edit conf.php with su user privileges:
    sudo gedit /etc/campcaster/archiveServer/conf.php

    on line 58 you find this:
    'useTrash' => TRUE,
    change with:
    'useTrash' => FALSE,
    save and close the file, now you can delete files permanently,
    that's all!
    Giulio
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team

    Hi Giulio,

    Thanks for the tip :-)

    > I solved in this way:
    > edit conf.php with su user privileges:
    > sudo gedit /etc/campcaster/archiveServer/conf.php
    >
    > on line 58 you find this:
    > 'useTrash' => TRUE,
    > change with:
    > 'useTrash' => FALSE,
    > save and close the file, now you can delete files permanently,
    > that's all!

    The default is:

    'useTrash' => FALSE,

    in 1.4.1. Which version of Campcaster are you running?

    Cheers!

    Daniel
  • hey Daniel!
    yes i have test CC 1.4.0 release!
  • I have the same problem with uploading using campcaster-import -c /<path>/<to>/<your>/<files>

    It imports some of the files but says others are Duplicates."Function split() is deprecated in /usr/share/campcaster/www/storageServer/var/Playlist.php on line 782"

    how might I fix.

    Thanks folks
    J

    DUPLICATE: /home/johder/Desktop/NEWYEARS/JAN 1st/012100satnight.mp3
    DUPLICATE: /home/johder/Desktop/NEWYEARS/JAN 1st/011700dylan.mp3
    DUPLICATE: /home/johder/Desktop/NEWYEARS/JAN 1st/011200eclectic.mp3
    DUPLICATE: /home/johder/Desktop/NEWYEARS/JAN 1st/011100nash.mp3
    DUPLICATE: /home/johder/Desktop/NEWYEARS/JAN 1st/011900africa.mp3
    DUPLICATE: /home/johder/Desktop/NEWYEARS/JAN 1st/011300idir.mp3
    DUPLICATE: /home/johder/Desktop/NEWYEARS/JAN 1st/011500squeeze.mp3
    DUPLICATE: /home/johder/Desktop/NEWYEARS/JAN 1st/011400teenage.mp3
    Importing: [00001] /home/johder/Desktop/NEWYEARS/JAN 1st/012000electrics.mp3
    PHP Deprecated: Function split() is deprecated in /usr/share/campcaster/www/storageServer/var/Playlist.php on line 782
    Importing: [00002] /home/johder/Desktop/NEWYEARS/DEC 31st/311300differentlives.mp3
    PHP Deprecated: Function split() is deprecated in /usr/share/campcaster/www/storageServer/var/Playlist.php on line 782
    DUPLICATE: /home/johder/Desktop/NEWYEARS/DEC 31st/311530oneworld.mp3
    Importing: [00003] /home/johder/Desktop/NEWYEARS/DEC 31st/311200eclectic.mp3
    PHP Deprecated: Function split() is deprecated in /usr/share/campcaster/www/storageServer/var/Playlist.php on line 782
    Importing: [00004] /home/johder/Desktop/NEWYEARS/DEC 31st/312200easy.mp3
    PHP Deprecated: Function split() is deprecated in /usr/share/campcaster/www/storageServer/var/Playlist.php on line 782
    DUPLICATE: /home/johder/Desktop/NEWYEARS/DEC 31st/311630community.mp3
    Importing: [00005] /home/johder/Desktop/NEWYEARS/DEC 31st/311900rhyme.mp3
    PHP Deprecated: Function split() is deprecated in /usr/share/campcaster/www/storageServer/var/Playlist.php on line 782
    Importing: [00006] /home/johder/Desktop/NEWYEARS/DEC 31st/311600musical.mp3
    PHP Deprecated: Function split() is deprecated in /usr/share/campcaster/www/storageServer/var/Playlist.php on line 782
    DUPLICATE: /home/johder/Desktop/NEWYEARS/DEC 31st/311430brain.mp3
    DUPLICATE: /home/johder/Desktop/NEWYEARS/DEC 31st/312200eclectic.mp3
    DUPLICATE: /home/johder/Desktop/NEWYEARS/DEC 31st/311700regatta.mp3
    Importing: [00007] /home/johder/Desktop/NEWYEARS/DEC 31st/311100nash.mp3
    PHP Deprecated: Function split() is deprecated in /usr/share/campcaster/www/storageServer/var/Playlist.php on line 782
    Importing: [00008] /home/johder/Desktop/NEWYEARS/DEC 31st/311830filmbuffs.mp3
    PHP Deprecated: Function split() is deprecated in /usr/share/campcaster/www/storageServer/var/Playlist.php on line 782
    Importing: [00009] /home/johder/Desktop/NEWYEARS/DEC 31st/311930jazz.mp3
    PHP Deprecated: Function split() is deprecated in /usr/share/campcaster/www/storageServer/var/Playlist.php on line 782
    DUPLICATE: /home/johder/Desktop/NEWYEARS/DEC 31st/311400jackman.mp3
    ============================================================ ==============
    *** Import mode: copy
    *** Files imported: 9
    *** Duplicate files (not imported): 14
    *** Total: 23 files in 20 seconds = 1.2 files/second.
  • Vote Up0Vote Down Paul BaranowskiPaul Baranowski
    Posts: 389Member, Administrator, Sourcefabric Team
    The "deprecated" warning you can ignore, it wont affect anything. The files
    are already in your database if it is saying they are duplicates.

    Paul Baranowski
    CTO, Sourcefabric, http://sourcefabric.org

    +1 (416) 832-6436 (Cell)
    Skype: paulbaranowski
    720 Bathurst St. / Suite 203 / Toronto / ON / M5S 2R4 / Canada



    On Wed, Dec 22, 2010 at 2:46 PM, johngough <
    campcaster-support@lists.sourcefabric.org> wrote:

    > I have the same problem with uploading using campcaster-import -c
    > /<path>/<to>/<your>/<files>
    >
    > It imports some of the files but says others are Duplicates."Function
    > split() is deprecated in
    > /usr/share/campcaster/www/storageServer/var/Playlist.php on line 782"
    >
    > how might I fix.
    >
    > Thanks folks
    > J
    >
    > DUPLICATE: /home/johder/Desktop/NEWYEARS/JAN 1st/012100satnight.mp3
    > DUPLICATE: /home/johder/Desktop/NEWYEARS/JAN 1st/011700dylan.mp3
    > DUPLICATE: /home/johder/Desktop/NEWYEARS/JAN 1st/011200eclectic.mp3
    > DUPLICATE: /home/johder/Desktop/NEWYEARS/JAN 1st/011100nash.mp3
    > DUPLICATE: /home/johder/Desktop/NEWYEARS/JAN 1st/011900africa.mp3
    > DUPLICATE: /home/johder/Desktop/NEWYEARS/JAN 1st/011300idir.mp3
    > DUPLICATE: /home/johder/Desktop/NEWYEARS/JAN 1st/011500squeeze.mp3
    > DUPLICATE: /home/johder/Desktop/NEWYEARS/JAN 1st/011400teenage.mp3
    > Importing: [00001] /home/johder/Desktop/NEWYEARS/JAN
    > 1st/012000electrics.mp3
    > PHP Deprecated: Function split() is deprecated in
    > /usr/share/campcaster/www/storageServer/var/Playlist.php on line 782
    > Importing: [00002] /home/johder/Desktop/NEWYEARS/DEC
    > 31st/311300differentlives.mp3
    > PHP Deprecated: Function split() is deprecated in
    > /usr/share/campcaster/www/storageServer/var/Playlist.php on line 782
    > DUPLICATE: /home/johder/Desktop/NEWYEARS/DEC 31st/311530oneworld.mp3
    > Importing: [00003] /home/johder/Desktop/NEWYEARS/DEC
    > 31st/311200eclectic.mp3
    > PHP Deprecated: Function split() is deprecated in
    > /usr/share/campcaster/www/storageServer/var/Playlist.php on line 782
    > Importing: [00004] /home/johder/Desktop/NEWYEARS/DEC 31st/312200easy.mp3
    > PHP Deprecated: Function split() is deprecated in
    > /usr/share/campcaster/www/storageServer/var/Playlist.php on line 782
    > DUPLICATE: /home/johder/Desktop/NEWYEARS/DEC 31st/311630community.mp3
    > Importing: [00005] /home/johder/Desktop/NEWYEARS/DEC 31st/311900rhyme.mp3
    > PHP Deprecated: Function split() is deprecated in
    > /usr/share/campcaster/www/storageServer/var/Playlist.php on line 782
    > Importing: [00006] /home/johder/Desktop/NEWYEARS/DEC 31st/311600musical.mp3
    > PHP Deprecated: Function split() is deprecated in
    > /usr/share/campcaster/www/storageServer/var/Playlist.php on line 782
    > DUPLICATE: /home/johder/Desktop/NEWYEARS/DEC 31st/311430brain.mp3
    > DUPLICATE: /home/johder/Desktop/NEWYEARS/DEC 31st/312200eclectic.mp3
    > DUPLICATE: /home/johder/Desktop/NEWYEARS/DEC 31st/311700regatta.mp3
    > Importing: [00007] /home/johder/Desktop/NEWYEARS/DEC 31st/311100nash.mp3
    > PHP Deprecated: Function split() is deprecated in
    > /usr/share/campcaster/www/storageServer/var/Playlist.php on line 782
    > Importing: [00008] /home/johder/Desktop/NEWYEARS/DEC
    > 31st/311830filmbuffs.mp3
    > PHP Deprecated: Function split() is deprecated in
    > /usr/share/campcaster/www/storageServer/var/Playlist.php on line 782
    > Importing: [00009] /home/johder/Desktop/NEWYEARS/DEC 31st/311930jazz.mp3
    > PHP Deprecated: Function split() is deprecated in
    > /usr/share/campcaster/www/storageServer/var/Playlist.php on line 782
    > DUPLICATE: /home/johder/Desktop/NEWYEARS/DEC 31st/311400jackman.mp3
    > ============================================================ ==============
    > *** Import mode: copy
    > *** Files imported: 9
    > *** Duplicate files (not imported): 14
    > *** Total: 23 files in 20 seconds = 1.2 files/second.
    >
    >

  • yes, except when I search in the database I only find some of the files e.g none of these files appear when I search for them -

    DUPLICATE: /home/johder/Desktop/NEWYEARS/JAN 1st/012100satnight.mp3
    > DUPLICATE: /home/johder/Desktop/NEWYEARS/JAN 1st/011700dylan.mp3
    > DUPLICATE: /home/johder/Desktop/NEWYEARS/JAN 1st/011200eclectic.mp3
    > DUPLICATE: /home/johder/Desktop/NEWYEARS/JAN 1st/011100nash.mp3
    > DUPLICATE: /home/johder/Desktop/NEWYEARS/JAN 1st/011900africa.mp3
    > DUPLICATE: /home/johder/Desktop/NEWYEARS/JAN 1st/011300idir.mp3
    > DUPLICATE: /home/johder/Desktop/NEWYEARS/JAN 1st/011500squeeze.mp3
    > DUPLICATE: /home/johder/Desktop/NEWYEARS/JAN 1st/011400teenage.mp3

    http://i229.photobucket.com/albums/ee31/johngough1/ccsearch.jpg
  • for solve warning message you can change split() in preg_split()
  • Thanks giulio,

    I'll try that tomorrow. I'm away from my CC machine now. I'm sorry to bug you but do I just replace where it says split() to preg_split() in the Playist.php file??
    i'm kind of new to to this.

    Any idea for the Duplicate problem?

    j
  • no Sad eny idea for duplicate
    yes!
    open plyist file:
    /usr/share/campcaster/www/storageServer/var/Playlist.php
    edit "split" in "preg_split" on line 782
  • Thanks giulio.

    No prob on duplicate hopefully someone will help Wink