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

[BUG] Synchronization of Databricks hangs IN_PROGRESS. Can't load .env file. #919

Open
shackeru-345 opened this issue Oct 27, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@shackeru-345
Copy link

Describe the bug
After connecting a cluster and starting a full synchronization, the Databricks extension hangs with a particular terminal output. The extension output states "message: "ENOENT: no such file or directory, open 'g:\My Drive\.env'","

To Reproduce

  1. Install VSCode and Databricks extension.
  2. Authenticate and connect to Databricks instance.
  3. Open Command Palette and run "Databricks: Start synchronization: full sync".
  4. See output in terminal (screenshot below)

Screenshots
image
image

System information:

  1. Help: About.
    Version: 1.83.1 (user setup)
    Commit: f1b07bd25dfad64b0167beb15359ae573aecd2cc
    Date: 2023-10-10T23:48:05.904Z
    Electron: 25.8.4
    ElectronBuildId: 24154031
    Chromium: 114.0.5735.289
    Node.js: 18.15.0
    V8: 11.4.183.29-electron.0
    OS: Windows_NT x64 10.0.19045
  2. Databricks Extension Version: v1.2.2.

Databricks Extension Logs
output.txt

@shackeru-345 shackeru-345 added the bug Something isn't working label Oct 27, 2023
@kartikgupta-db
Copy link
Contributor

Hi @shackeru-345, this error is unrelated to sync and is a known error which is intentionally emitted. To debug your issue we will need some more information from the cli logs. You need to enable databricks.bricks.verboseMode setting and then send us the "bricks-logs.json" file.
https://docs.databricks.com/en/dev-tools/vscode-ext/troubleshooting.html#send-usage-logs-to-databricks

@kartikgupta-db kartikgupta-db self-assigned this Oct 30, 2023
@shackeru-345
Copy link
Author

Hi @kartikgupta-db, that's good to know, thank you. I have attached the two log files. Let me know if there is anything else that would be helpful.

sdk-and-extension-logs.json
databricks-cli-logs.json

@cyaris
Copy link

cyaris commented Nov 2, 2023

Same error for me.

@cyaris
Copy link

cyaris commented Nov 2, 2023

Can only fix by copying the .databricks folder and titling it .env.

@shackeru-345
Copy link
Author

@cyaris, thanks for the hint. It's no longer saying it can't find it, but it is saying it can't load it:

{"error":{"code":"EINVAL","errno":-4071,"message":"EINVAL:` invalid argument, read","stack":"Error: EINVAL: invalid argument, read","syscall":"read"},"level":"error","logger":"Extension","message":"Can't load .env file","timestamp":1699267177954}

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

3 participants