On 8/16/2017 9:55 PM, Eddie Trejo wrote: > Not sure if this is the right channel to report a possible bug, but I think > there is a syntax error on lines 280 - 281 > > find "$SOLR_INSTALL_DIR" -type d -print0 | xargs -0 chmod 0755 > find "$SOLR_INSTALL_DIR" -type f -print0 | xargs -0 chmod 0644 > > The below is printed on screen during the execution of the script: > > chmod: missing operand after ‘0750’ > Try 'chmod --help' for more information. > chmod: missing operand after ‘0640’ > Try 'chmod --help' for more information.
These commands are correct, assuming that the rest of the script works correctly. The find command on the first line locates directories and the find command on the second line locates files. Then each one pipes its null-separated list through the "xargs" command with the desired chmod command as arguments. The man page for xargs starts with this: xargs - build and execute command lines from standard input Check the man page for xargs on your own system for more detail about what it does. Getting those particular errors on both of those lines is only going to happen if something goes wrong. One possible thing that might be wrong is that your system has an incompatible version of one or more of the dependencies (bash, tar, find, xargs, etc) installed, or that it doesn't have one of the dependencies installed at all. Whatever is wrong has resulted in zero file/directory arguments being generated, as if the location in $SOLR_INSTALL_DIR either doesn't exist or isn't readable by the user running the script. General thought: Are you running the service install script as root? That's going to be required. I have used the service installer script in a few of the 6.x versions, including 6.6.0, without any problems. I don't think the Solr scripts are compatible with cygwin, or with some of the genetic UNIX flavors like Solaris. The full-blown operating systems with strong GNU roots will work fine, such as Linux or FreeBSD. Thanks, Shawn