azuredatastudio icon indicating copy to clipboard operation
azuredatastudio copied to clipboard

Socket hang up when trying to login to my Azure account

Open davidshen84 opened this issue 1 year ago • 3 comments

  • Azure Data Studio Version:
Version: 1.48.1 (user setup)
Commit: 8825ec21e67a34ede00e4f02a4afc692eb6cab61
Date: 2024-06-13T21:07:19.253Z
VS Code: 1.82.0
Electron: 25.9.8
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.19045
  • OS Version: Windows 10 22H2, B19045.4529

Steps to Reproduce:

  1. Install Azure Data Studio
  2. Login with my Azure account

After I selected my account from the browser, I got a message saying "socket hang up" on the browser and in the Data Studio.

I have tried to re-install the application and delete AppData/Roaming/azuredatastudio folder.

In the browser, the URL looks like:

http://127.0.0.1:56969/callback?code=...&state=...&session_state=...

The port number changes every time I restart the Data Studio.

Does this issue occur when all extensions are disabled?: Yes

davidshen84 avatar Jun 26 '24 23:06 davidshen84

Hi @davidshen84 can you please attach logs and also check if there are any errors in the Developer Tools Console of ADS? (F12 -> Console)

cssuh avatar Jul 11 '24 15:07 cssuh

We need more info to debug your Microsoft Entra ID issue. If you could attach your logs to the issue (ensure no private data is in them), it would help us fix the issue much faster.

  • In the settings menu, find the setting titled Azure: Logging Level and select the Verbose option
  • Restart Azure Data Studio
  • Run the process that produces your error
  • Open command palette (Click View -> Command Palette)
  • Run the command: Developer: Open Logs Folder
  • Follow this path to find the Azure Accounts log file: [default log folder]/window1/exthost/output_logging_[earliest timestamp]/#-Azure Accounts.log
  • Please attach the Azure-Accounts.log file to the issue.

Additionally, please review known issues and their resolutions that could be helpful: Common Azure Authentication Issues

github-actions[bot] avatar Jul 11 '24 15:07 github-actions[bot]

@cssuh , sorry for the late reply.

F12 does nothing for me. So I tried the Toggle Developer Tools from the Help menu. It has tons of warning messages. When I try to do the login, I got only one error message.

ERR Error while adding account: Error: socket hang up

The Azure Accounts.log file content is almost the same thing.

I also tried to reinstall the app, but not helping.

Version: 1.49.1 (user setup)
Commit: 2f696aa95a13ccabd7e0a4431d1d759e3a7b8cfd
Date: 2024-08-13T18:12:38.831Z
VS Code: 1.82.0
Electron: 25.9.8
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.19045

image 1-Azure Accounts.log

davidshen84 avatar Sep 10 '24 01:09 davidshen84