If you encounter a registry-related error after executing the prepareserver.sh or prepareanalytics.sh scripts, try running the initenv.sh script first.
In general, any network problems that occur while the prepareserver.sh or prepareanalytics.sh scripts are running could cause processing to hang and then fail.
First, run the initenv.sh script again to log in to the container registry on Bluemix®. Then, rerun the script that previously failed.