I bump into this error earlier and for the longest time trying to figure out why this is happening.
After can't get it to start .... i restarted my computer and ran the installation until it crashed and get this beautiful message.
Then i edited my script to force it to continue......... Same scripts just small change. Please have a look at Line 49. Re-execute the same script again. Good luck. You might have to restart your computer a couple of times in case SOLR don't like you so much.