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

Error when deploying DAB #2363

Open
japhyf opened this issue Feb 20, 2025 · 1 comment
Open

Error when deploying DAB #2363

japhyf opened this issue Feb 20, 2025 · 1 comment
Labels
Bug Something isn't working DABs DABs related issues Response Requested Stale

Comments

@japhyf
Copy link

japhyf commented Feb 20, 2025

Describe the issue

Getting unexpected error message when trying to deploy DAB:
Failed to read remote state file: invalid character '<' looking for genning of object key string

Code deployed successfully this morning, no change in our code between then and now.

Steps to reproduce the behavior

Please list the steps required to reproduce the issue, for example:

  1. Run databricks bundle deploy -t dev
  2. See error

Expected Behavior

Deployment successful!

Actual Behavior

Error message: Failed to read remote state file: invalid character '<' looking for genning of object key string

OS and CLI version

CLI version 0.241.2

Is this a regression?

This worked this morning on 0.240, but then also failed on 0.240. We updated to try and fix the issue, but it persisted.

Debug Logs

13:53:18 Debug: GET /api/2.0/workspace/export?direct_download=true&path=/Workspace/Users/USERNAME/MDP/.bundle/mdp_bundle/dev/state/terraform.tfstate
< HTTP/2.0 200 OK
< pid=14472 mutator=seq mutator=deploy mutator=seq mutator=seq mutator=deferred mutator=seq mutator=terraform:state-pull sdk=true

13:53:18 Debug: Error: failed to read remote state file: invalid character '<' looking for beginning of object key string pid=14472 mutator=seq mutator=deploy mutator=seq mutator=seq mutator=deferred mutator=seq mutator=terraform:state-pull

13:53:18 Debug: Error: failed to read remote state file: invalid character '<' looking for beginning of object key string pid=14472 mutator=seq mutator=deploy mutator=seq mutator=seq mutator=deferred mutator=seq

13:53:18 Debug: Apply pid=14472 mutator=seq mutator=deploy mutator=seq mutator=seq mutator=deferred mutator=lock:release

13:53:18 Info: Skipping; locking is disabled pid=14472 mutator=seq mutator=deploy mutator=seq mutator=seq mutator=deferred mutator=lock:release

13:53:18 Debug: Error: failed to read remote state file: invalid character '<' looking for beginning of object key string pid=14472 mutator=seq mutator=deploy mutator=seq mutator=seq mutator=deferred

13:53:18 Debug: Error: failed to read remote state file: invalid character '<' looking for beginning of object key string pid=14472 mutator=seq mutator=deploy mutator=seq mutator=seq

13:53:18 Debug: Error: failed to read remote state file: invalid character '<' looking for beginning of object key string pid=14472 mutator=seq mutator=deploy mutator=seq

13:53:18 Debug: Error: failed to read remote state file: invalid character '<' looking for beginning of object key string pid=14472 mutator=seq mutator=deploy

13:53:18 Debug: Error: failed to read remote state file: invalid character '<' looking for beginning of object key string pid=14472 mutator=seq

Error: failed to read remote state file: invalid character '<' looking for beginning of object key string

@japhyf japhyf added the DABs DABs related issues label Feb 20, 2025
@pietern pietern added the Bug Something isn't working label Feb 24, 2025
@pietern
Copy link
Contributor

pietern commented Feb 24, 2025

Thanks for reporting the issue.

Do you recall earlier errors? This error suggests that the state has been corrupted and no longer contains JSON. Could you examine the contents of the file and report what it contains?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working DABs DABs related issues Response Requested Stale
Projects
None yet
Development

No branches or pull requests

3 participants