Christoph Jobst
unread,Mar 7, 2016, 5:19:20 AM3/7/16Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Matterhorn, Matterho...@opencast.org, Matte...@opencast.org, matterho...@opencastprojects.org, matte...@opencastprojects.org
Hi,
the best solution would be to use the "retrackt recording" workflow in your archive. But i think, this won't free much space on your servers.
An not very beautiful yet efficient alternative would be:
1. Get the Mediapackage-ID from the recording in question (e.g. from the URL in Engage)
2. Remove the recording from the distribution/stream/search-index. You may use the following script (place it somewhere on your engage or change the URL, change the digest-passphrase) provided by Adam McKenzie some time ago:
#!/bin/bash
if [ "$1" == ]
then
echo "... need the ID as a parameter"
exit 1
else
echo "Retracting Download Distribution ..........."
echo "$(curl --digest -u matterhorn_system_account:CHANGE_ME -H 'X-Requested-Auth: Digest' -F mediapackageId=$1
http://localhost:8080/distribution/download/retract)"
echo "Done Retracting Download Distribution ..........."
echo
echo "Retracting Stream Distribution ..........."
echo "$(curl --digest -u matterhorn_system_account:CHANGE_ME -H 'X-Requested-Auth: Digest' -F mediapackageId=$1
http://localhost:8080/distribution/streaming/retract)"
echo "Done Retracting Stream Distribution ..........."
echo
echo "Removing mediaPackage from Search index ..........."
echo "$(curl --digest -u matterhorn_system_account:CHANGE_ME -H 'X-Requested-Auth: Digest' -X DELETE
http://localhost:8080/search/$1)"
echo "Done Removing mediaPackage from Search index ..........."
echo
fi
3. Delete the recording and belonging files from your filesystem. We use a shared NFS for our cluster. The folders to look for are usualy "download"/"static" and "streams". Just navigate to your folder and execute:
find -name [Mediapackage-ID]
and after doublechecking the results delete the entries:
find -name [Mediapackage-ID] -exec rm -rf {} \;
Other places to free space are the failed.zips and - in special cases - the archive.
Best Regards,
Christoph