diff --git a/create_gae_bundle.sh b/create_gae_bundle.sh
index 6938e95..c701707 100755
--- a/create_gae_bundle.sh
+++ b/create_gae_bundle.sh
@@ -30,7 +30,7 @@ VE_PYTHON=${VE_PYTHON:=VE/bin/python}
# Create Google App Engine bundle directory.
rm -rf $BUNDLE_ROOT
-mkdir -p $BUNDLE_ROOT/$SUBDIR
+mkdir -p $BUNDLE_ROOT/$SUBDIR/server
touch $BUNDLE_ROOT/__init__.py
touch $BUNDLE_ROOT/$SUBDIR/__init__.py
@@ -40,14 +40,14 @@ mkdir -p "${BUNDLE_ROOT}/${SUBDIR}/server/static/app_out"
cp "${ROOT}/tmp/app.html" "${BUNDLE_ROOT}/${SUBDIR}/server/static/app_out"
# Symlink the shared settings file inside the app directory.
-ln -s ../$SRC_REL_PATH/settings.py $BUNDLE_ROOT/$SUBDIR/settings.py
+ln -sf ../$SRC_REL_PATH/settings.py $BUNDLE_ROOT/$SUBDIR/settings.py
# Symlink necessary files at the root of the bundle.
-ln -s $SERVER_REL_PATH/appengine_config.py $BUNDLE_ROOT/appengine_config.py
-ln -s $SERVER_REL_PATH/app.yaml $BUNDLE_ROOT/app.yaml
-ln -s $SERVER_REL_PATH/index.yaml $BUNDLE_ROOT/index.yaml
-ln -s $SERVER_REL_PATH/cron.yaml $BUNDLE_ROOT/cron.yaml
-ln -s $SERVER_REL_PATH/main.py $BUNDLE_ROOT/main.py
+ln -sf $SERVER_REL_PATH/appengine_config.py $BUNDLE_ROOT/appengine_config.py
+ln -sf $SERVER_REL_PATH/app.yaml $BUNDLE_ROOT/app.yaml
+ln -sf $SERVER_REL_PATH/index.yaml $BUNDLE_ROOT/index.yaml
+ln -sf $SERVER_REL_PATH/cron.yaml $BUNDLE_ROOT/cron.yaml
+ln -sf $SERVER_REL_PATH/main.py $BUNDLE_ROOT/main.py
# Create symlinks to python egg files.
if [ -d pyasn1-*.egg ]; then
@@ -60,4 +60,4 @@ fi
cd ${BUNDLE_ROOT} && ln -f -s ${VE_PATH}/lib/python2.7/site-packages/keyczar keyczar
# Update the app.yaml application value based on DOMAIN and SUBDOMAIN settings.
-cd ${ROOT} && sed -i "s/ENTER_APPID_HERE/$(PYTHONPATH=src/cauliflowervest/ $VE_PYTHON appid_generator.py)/" ${BUNDLE_ROOT}/app.yaml ${BUNDLE_ROOT}/cron.yaml
+cd ${ROOT} && sed -i '' "s/ENTER_APPID_HERE/$(PYTHONPATH=src/cauliflowervest/ $VE_PYTHON appid_generator.py)/" ${BUNDLE_ROOT}/app.yaml ${BUNDLE_ROOT}/cron.yaml
Traceback (most recent call last):
File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 240, in Handle
handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler
handler, path, err = LoadObject(self._handler)
File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 96, in LoadObject
__import__(cumulative_path)
ImportError: No module named server
tester-7038:~ tester$ /usr/local/bin/cauliflowervest
WARNING:root:Fetching XSRF token failed with (HTTP Error 500: Internal Server Error). Retrying ...
WARNING:root:Fetching XSRF token failed with (HTTP Error 500: Internal Server Error). Retrying ...
WARNING:root:Fetching XSRF token failed with (HTTP Error 500: Internal Server Error). Retrying ...
WARNING:root:Fetching XSRF token failed with (HTTP Error 500: Internal Server Error). Retrying ...
ERROR:root:Fetching XSRF token failed permanently.
Traceback (most recent call last):
File "/usr/local/cauliflowervest/cv/lib/python2.7/site-packages/cauliflowervest-0.10.2-py2.7.egg/cauliflowervest/client/base_client.py", line 183, in _RetryRequest
return self.opener.open(request)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 437, in open
response = meth(req, response)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 550, in http_response
'http', request, response, code, msg, hdrs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 475, in error
return self._call_chain(*args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain
result = func(*args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 558, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 500: Internal Server Error
ERROR:root:Encryption was enabled, but escrowing the recovery passphrase failed.
Please reboot, manually disable FileVault in System Preferences -> Security & Privacy, wait for decryption to complete, reboot again, and run CauliflowerVest again.
Traceback (most recent call last):
File "/usr/local/cauliflowervest/cv/lib/python2.7/site-packages/cauliflowervest-0.10.2-py2.7.egg/cauliflowervest/client/mac/tkinter.py", line 178, in _PlainVolumeAction
client_.UploadPassphrase(volume_uuid, recovery_token)
File "/usr/local/cauliflowervest/cv/lib/python2.7/site-packages/cauliflowervest-0.10.2-py2.7.egg/cauliflowervest/client/base_client.py", line 229, in UploadPassphrase
xsrf_token = self._FetchXsrfToken(base_settings.SET_PASSPHRASE_ACTION)
File "/usr/local/cauliflowervest/cv/lib/python2.7/site-packages/cauliflowervest-0.10.2-py2.7.egg/cauliflowervest/client/base_client.py", line 174, in _FetchXsrfToken
response = self._RetryRequest(request, 'Fetching XSRF token')
File "/usr/local/cauliflowervest/cv/lib/python2.7/site-packages/cauliflowervest-0.10.2-py2.7.egg/cauliflowervest/client/base_client.py", line 192, in _RetryRequest
'%s failed permanently: %%s' % description, str(e))
RequestError: ('Fetching XSRF token failed permanently: %s', 'HTTP Error 500: Internal Server Error')