Bug #5712
closed
illegal option chmod error during Kepler startup
Added by Derik Barseghian about 12 years ago.
Updated about 12 years ago.
Description
Today during startup of trunk I started noticing this message on mac 10.8.1:
[run] Building Kars...
[run] start of workflow-scheduler-gui module initializing
[run] <OS>Mac OS X</OS>
[run] ### chmod: illegal option -- -
[run] usage: chmod [-fhv] [-R [-H | -L | -P]] [-a | +a | =a [i][# [ n]]] mode|entry file ...
[run] chmod [-fhv] [-R [-H | -L | -P]] [-E | -C | -N | -i | -I] file ...
In org.kepler.ssh.LocalExec, copyFile() calls chmod --reference. This option does not exist on Mac. I bet this method is now being called after removing the duplicate file copy code.
Yes, this is caused by the call on line 104 of tagging/src/org/kepler/module/tagging/Initialize.java.
I updated LocalExec.copyFile() to no longer call chmod --reference on Mac.
To reproduce, remove $HOME/.kepler/cache-2.4/modules/tagging/ontology_catalog.xml, and start Kepler with a suite that includes tagging.
I still get this error message when starting e.g. the sensor-view suite on trunk head.
Fixed at r30991. sensor-view-utils-1.0.jar in sensor-view suite needed to be updated to include change to LocalExec.
Original Bugzilla ID was 5712
Also available in: Atom
PDF