On 3/17/22 07:48, Shawn Heisey wrote:
You tried to start Solr as root. The start script detected this and
refused to start. As far as I know it won't be possible to start the
cloud example as root because a -force parameter on the main script
execution will not be transferred to the later calls that start the
individual Solr instances in the example.
Here's a diff for the bin/solr script that should allow it to start
examples as root as long as the -force parameter is provided. There's a
good chance that me sending this in the body of an email will screw up
some of the lines, but I think it should end up readable enough that you
could manually make the 3-line addition:
--- solr.old 2021-12-07 18:01:00.000000000 -0700
+++ solr 2022-03-17 08:07:11.101887149 -0600
@@ -1829,6 +1829,9 @@
# otherwise let this script proceed to process the user request
#
if [ -n "$EXAMPLE" ] && [ "$SCRIPT_CMD" == "start" ]; then
+ if [ "$FORCE" == "true" ]; then
+ PASS_TO_RUN_EXAMPLE = "$PASS_TO_RUN_EXAMPLE -force"
+ fi
run_tool run_example -e $EXAMPLE -d "$SOLR_SERVER_DIR" -urlScheme
$SOLR_URL_SCHEME $PASS_TO_RUN_EXAMPLE
exit $?
fi