Xsanity Sanity for Apple's Xsan and Final Cut Server.
  
Monday, May 20 2013 @ 05:27 PM EDT
Topics
Storage (39)
People (1)
Xsan (103)
How To (26)
User Functions
Username:

Password:

Don't have an account yet? Sign up as a New User
Who's Online
Guest Users: 12
Sponsorship

Xsanity is proudly sponsored by:

Tekserve
The Old Reliable Mac Shop

Final Cut Server
Reinstalling Compressor/Qmaster on a running Final Cut Server

Apple has issued Pro Applications Update 2008-003, which updates both Compressor and Qmaster to 3.0.4.

However, some of our clients were reporting more qmaster unresponsiveness than before the update, sometimes rendering qmaster irreparably unresponsive (say that three times fast).

Below then is a script that can completely wipe your install of Qmaster/Compressor. You can then reinstall from scratch the AppleQmasterNode.mpkg from the Final Cut Server installation disk, and then use Software Update to get it back to 3.0.4. All this without disturbing a running Final Cut Server. (Obviously, qmaster processes will fail during the reinstall, but if you're at this juncture, your qmaster is probably not working anyway.)




#!/bin/sh

cwd=`dirname "$0"`
cd "${cwd}"
id=`whoami`
trap 'exit' 2 EXIT

echo "Running on `date`, by ${id}@`hostname`" | tee RemoveQmaster.log

echo "Shutting down Qmaster Processes"
if [ -e /usr/sbin/qmasterprefs ]; then
        qmasterprefs -stopSharing | tee -a RemoveQmaster.log
fi
sleep 5
if [ -e /Library/LaunchDaemons/com.apple.qmaster.qmasterd.plist ]; then
	echo "Unloading qmasterd launchd plist..." | tee -a RemoveQmaster.log
	sudo chmod 644 /Library/LaunchDaemons/com.apple.qmaster.qmasterd.plist
	sudo launchctl unload /Library/LaunchDaemons/com.apple.qmaster.qmasterd.plist
fi
echo "" | tee -a RemoveQmaster.log
echo "==========================================================================" | tee -a RemoveQmaster.log
echo "Removing Compressor and Qmaster..." | tee -a RemoveQmaster.log
sudo killall -9 qmasterd qmastercc qmasterca qmasterqd qmastertaskd compressord QmasterStatusMenu

echo "" | tee -a RemoveQmaster.log
for i in \
	"/Applications/Utilities/Batch Monitor.app" \
	"/Applications/Shake Qadministrator.app" \
	"/Applications/Apple Qadministrator.app" \
	"/Applications/Shake Qmaster.app" \
	"/Applications/Apple Qmaster.app" \
	"/Applications/Compressor.app" \
	"/etc/qmaster" \
	"/Library/Application Support/Apple Qmaster" \
	"/Library/Application Support/Shake Qmaster" \
	"/Library/PreferencePanes/Shake Qmaster.prefPane" \
	"/Library/PreferencePanes/Apple Qmaster.prefPane" \
	"/Library/StartupItems/Qmaster" \
	"/usr/sbin/qmasterprefs" \
	"/usr/sbin/qmasterqd" \
	"/usr/sbin/qmasterd" \
	"/usr/sbin/qmasterca" \
	"/Library/Frameworks/AECore.framework" \
	"/Library/Frameworks/Compressor.framework" \
	"/Library/Frameworks/MediaServerAPI.framework" \
	"/Library/Frameworks/Qmaster.framework" \
	"/Library/LaunchDaemons/com.apple.qmaster.qmasterd.plist" \
	"~/Application Support/Apple Qmaster" \
	"~/Application Support/Compressor" \
	"~/Library/Preferences/com.apple.AppleQmaster.plist" \
	"~/Library/Preferences/com.apple.Qadministrator.plist" \
	"~/Library/Preferences/com.apple.BatchMonitor.plist" \
	"~/Library/Preferences/com.apple.compressor.Compressor.plist" \
	"~/Library/Preferences/com.apple.Compressor.CompressorSharedService.plist" \
	"/Library/Receipts/Compressor.pkg" \
	"/Library/Receipts/Qmaster_Applications.pkg" \
	"/Library/Receipts/Qmaster_Services.pkg" \
	"/Library/Receipts/BatchMonitor.pkg" \
	"/Library/Receipts/Qmaster_Plugins.pkg" \
	"/Library/Receipts/Qmaster_Frameworks.pkg" \
	"/Library/Receipts/Swamp.pkg" \
	"/Library/Receipts/Qmaster.pkg" \
	"/Library/Receipts/Compressor.pkg" \
	"/Library/Receipts/QmasterUpdate2.3.pkg" \
	"/Library/Receipts/CompressorUpdate2.3.pkg" \
	"/Library/Receipts/Compressor3.0.2Update.pkg" \
	"/Library/Receipts/Compressor3.0.3Update.pkg" \
	"/Library/Receipts/Compressor3.0.4Update.pkg" \
	"/Library/Receipts/TranscoderX.pkg" \
	"/Library/Receipts/CompressorHelp.pkg" \
	"/Library/Receipts/QmasterHelp.pkg" \
	"/Library/Receipts/QadministratorHelp.pkg" \
	"/Library/Receipts/BatchMonitorHelp.pkg" \
	"/Library/Receipts/DSPPublishing.pkg" \
	"/var/run/jobcontroller:com.apple.qmaster.cluster.admin.pid" \
	"/var/run/jobcontroller:com.apple.compressor.cluster.admin.pid" \
	"/var/run/qmasterd.pid" \
	"/var/run/requestprocessor:com.apple.qmaster.contentcontroller.pid" \
	"/var/run/servicecontroller:com.apple.qmaster.executor.pid" \
	"/var/run/servicecontroller:com.apple.qmaster.stomp.transcoderx.pid" \
	"/var/run/servicecontroller:com.apple.stomp.transcoderx.pid" \
	"/var/run/servicecontroller:com.apple.qmaster.stomp.transcoderx.stomp.pid" \
	"/var/spool/qmaster"

do
        if [ -e "${i}" ]
        then
        sudo rm -rf "${i}"
        echo "REMOVED: "${i}"" | tee -a RemoveQmaster.log

#       else
#       echo "${i} not present, skipping!"
        fi

done
echo "============================================================================" | tee -a RemoveQmaster.log
echo "Done!" | tee -a RemoveQmaster.log
echo "Please reinstall applications from your Final Cut Studio installation discs." | tee -a RemoveQmaster.log
echo "============================================================================" | tee -a RemoveQmaster.log
sudo chmod 666 RemoveQmaster.log


Reinstalling Compressor/Qmaster on a running Final Cut Server | 3 comments | Create New Account
The following comments are owned by whomever posted them.
Reinstalling Compressor/Qmaster on a running Final Cut Server
Authored by: csummers on Friday, September 26 2008 @ 12:37 AM EDT
Matt,

Thanks so much for this. I cobbled together a script based off the Apple document
describing the reinstallation of compressor.

This looks a better as I've noticed you kill the pid's as well.

I just finished a deployment on top of an Xsan and setup Qmaster - when it is fast
it totally rocks, but still unreliable. Having to reinstall every couple of days.

This seems to be a common problem with Compressor in general.

Let's hold thumbs they fix that bug.

Cheers.
[ Reply to This ]
Reinstalling Compressor/Qmaster on a running Final Cut Server
Authored by: MattG on Friday, September 26 2008 @ 01:17 AM EDT
So what I think might be happening with systems that are still unstable after the 3.0.4 update is probably one or more of the following:

• A corrupt plist file is _not_ erased during the upgrade.

This gets fixed with the script above since all gets wiped and then you can install fresh.

• en0 is not being selected in the "Use Network Interface" pop-up in the Advanced Tab of the Qmaster Preference Pane.

Especially in Xsan or multi-port GigE servers, using All Interfaces "confuses" Final Cut Server as to how to contact the qmaster cluster, even though its on the same machine. This should be set to en0 or Ethernet 1 (the public LAN).

• /var/spool/qmaster, the default path for the cluster's spool location, is too small, especially on xserves that have 80GB hard drives.

Files are copied here temporarily when they are being worked on. If the file fills up the spool (and therefore the whole FCS hard drive) that can cause obvious issues throughout the system. Workarounds are to get another HD and path the spool location there. Pathing to Xsan is fine as long as you realize that qmaster, upon reboot, might try to establish its spool on that path before the Xsan Volume mounts, which will result in a ghost mount record.

---
Matt Geller
Meta Media™ Creative Technologies
Consulting & Integration | Proactive & Reactive Maintenance
Xsan Integration Specialists

[ Reply to This ]
Reinstalling Compressor/Qmaster on a running Final Cut Server
Authored by: Curt Friesen on Friday, October 17 2008 @ 12:48 PM EDT
I'm experiencing the problems noted, but I don't have a clue how to run the
script you've been so kind to make available. I tried to copy and paste into
Terminal with no positive results. How can I get this to work? Thank you.

Curt Friesen



[ Reply to This ]
Story Options
Best Viewed on a Mac | Suggested Browser: Whatever floats yer boat.