[campcaster-dev] xml-rpc: md5 sum localhost vs remote
  • Hi,

    I have another problem: as described in my last email, I'm able to
    upload a ogg/mp3 file via xml-rpc. Unfortunately this does not work from
    a remote machine:

    mic@demogorgon:~/daemon$ ./campcaster-upload.pl test.mp3 tralalalalala
    1186335000

    Where "test.mp3" is the to be uploaded file, "tralalalalala" is the name
    of the playlist and "1186335000" is the unix timestamp of the startdate
    when campcaster should schedule it.

    The error message is:

    Fault returned from XML RPC Server, fault code 805:
    xr_storeAudioClipClose: BasicStor::bsClosePut: md5sum does not match
    (token=0e2c350a157397f9)
    [2a35ee853cd5e49a60c7ec58b1450663/d41d8cd98f00b204e9800998ecf8427e]

    In fact, "2a35ee853cd5e49a60c7ec58b1450663" is the md5 sum of the file:

    mic@demogorgon:~/daemon$ md5sum test.mp3
    2a35ee853cd5e49a60c7ec58b1450663 test.mp3

    If I upload that file from localhost, everything works fine. If I then
    try to upload it again from remote, campcaster says:

    Fault returned from XML RPC Server, fault code 888:
    xr_storeAudioClipOpen: LocStor::storeAudioClipOpen: Duplicate file -
    Matched MD5 (2a35ee853cd5e49a60c7ec58b1450663) against 'test.mp3'

    Why is this happening?

    Thanks for your help,
    Mic

    PS: Installed packages on Ubuntu server:
    ii campcaster-libs 1.2.0-1 A
    radio program automation and support tool.
    ii campcaster-station 1.2.0-1 A
    radio program automation and support tool.
    ii campcaster-studio 1.2.0-1 A
    radio program automation and support tool.

    --
    strg.at design development server
    http://strg.at office@strg.at
    liniengasse 20/12, 1060 wien
    tel +43 1 526 56 29 fax +43 1 526 56 49