Could you please execute the following command sequence:
sudo chmod +x ./node_modules/bcryptjs/bin/bcrypt
passwd=$(node ./node_modules/bcryptjs/bin/bcrypt NEWPASSWORD)
&& sudo sed -i "s/pass\:\s*\".*\"/pass: \"$passwd\"/g" server.js && passwd=''
Please mind the spaces before the command, as they will make the command not be registered in the history, and therefore will keep your password secure.
sudo /opt/bitnami/ctlscript.sh restart parse
Is there anything else that we can help you with?