There's honestly a tonne of errors in the server.sh file, but the specific one that's causing this is because of how find and xargs handles whitespace causing chgrp to fail because some file in your data folder has a space in it.
you can fix it by giving find the -print0 argument xargs the -0 argument on line 73
find "${DATAPATH}" -user "${ME}" -print0 | xargs -0 chgrp "${GROUPNAME}" > /dev/null 2>&1 || { echo "Fatal! ${ME} failed to adjust data privileges. Aborting." >&2; exit 1; }