Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parking Sensor (Databricks) deployment fails due to change in behaviour of workspace startup #630

Open
devlace opened this issue Mar 30, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@devlace
Copy link
Contributor

devlace commented Mar 30, 2023

Description

Deployment fails with parse error: Invalid numeric literal at line 1, column 6".

++ DATABRICKS_HOST=https://adb-<workspace_id>.xx.azuredatabricks.net
++ bash -c 'databricks tokens create --comment '\''deployment'\'''
++ jq -r .token_value
parse error: Invalid numeric literal at line 1, column 6
+ databricks_token=

Root Cause:
The error message is a generic error that hides the real error message of "Error: Authorization failed. Your token may be expired or lack the valid scope".

This appears to be a cold start problem with the Azure Databricks workspace. When deploying an Azure Databricks workspace, the workspace needs to be manually launched first in the Azure portal before the API calls are permitted.

Workaround:

When you encounter the error, manually launch the Databricks workspace, then re-run the deployment script (deploy.sh). Ensure you have set the DEPLOYMENT_ID environment variable. The script is designed to be idempotent to each deployment determined by the DEPLOYMENT_ID.

Note, if you don't set the DEPLOYMENT_ID variable, the deploy.sh script will simply create a fresh deployment with an random deployment_id which will fail instead of targeting your previous deployment.

Expected Behavior

Parking Sensor (databricks) deploys successfully.

Reproduce

Deploy the Parking Sensor Databricks as per instructions.

Additional Context

  • If applicable: Add any other context about the problem here; for example: doc changes, screenshots, logs, links, etc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant