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

Unable to see saved connections in Restricted Mode #17535

Closed
krishanth3 opened this issue Oct 29, 2021 · 13 comments
Closed

Unable to see saved connections in Restricted Mode #17535

krishanth3 opened this issue Oct 29, 2021 · 13 comments

Comments

@krishanth3
Copy link

Issue Type: Bug

I am unable see saved sql server connections nor able to establish a new connection. Even recent connections are not available. All places just show "Loading..." text.

Azure Data Studio version: azuredatastudio 1.33.0 (6783aa6, 2021-10-26T17:28:15.782Z)
OS version: Windows_NT x64 10.0.19043
Restricted Mode: Yes

System Info
Item Value
CPUs Intel(R) Core(TM) i7-10610U CPU @ 1.80GHz (8 x 2304)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 31.61GB (15.61GB free)
Process Argv
Screen Reader no
VM 0%
Extensions: none
@krishanth3
Copy link
Author

image

@choelterati
Copy link

Can confirm I'm also experiencing this issue on Windows 10 since yesterday.

@github-actions
Copy link

We need more info to debug your particular 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.

There are two types of logs to collect:

Console Logs

  • Open Developer Tools (Help -> Toggle Developer Tools)
  • Click the Console tab
  • Click in the log area and select all text (CTRL+A)
  • Save this text into a file named console.log and attach it to this issue.

Application Logs

  • Open command palette (Click View -> Command Palette)
  • Run the command: Developer: Open Logs Folder
  • This will open the log folder locally. Please zip up this folder and attach it to the issue.

@kburtram
Copy link
Member

kburtram commented Oct 29, 2021

@choelterati @krishanth3 are you seeing any errors in the "Help->Toggle Developer Tools" Console? Are these all connections to SQL Server/Azure SQL DB? Also, could you please restart with extensions disabled and see if that helps?

@kburtram kburtram added this to the October 2021 Hotfix Release milestone Oct 29, 2021
@choelterati
Copy link

I'm not running any extensions, but I am seeing errors in the dev tools console log. Attached is an image and a txt log of them all.

image

azure data studio console errors.txt

@kburtram
Copy link
Member

kburtram commented Oct 29, 2021

@choelterati thanks for the additional context. This appears to be the same issue as #17530. You can try the workaround I suggested on that issue which may clear out some invalid state triggering this bug. Note the path in the other issue is for mac, for windows the corresponding location would be C:\Users[USERNAME]\AppData\Roaming\azuredatastudio.

We're continuing to investigate and get an internal repro. The callstack seems to be complaining about https://github.com/microsoft/azuredatastudio/blob/main/src/sql/workbench/services/connection/browser/connectionDialogService.ts#L308 but not clear why capabilities would be null there.

Please let us know if you can think of any other customization or configuration that may be helpful in determining what's going on.

@Charles-Gagnon
Copy link
Contributor

Charles-Gagnon commented Nov 1, 2021

@kburtram I wonder if this is something to do with the Workspace Trust? The behavior shown in the screenshot (everything showing as loading) is what happens when you don't "trust" a workspace (since it doesn't load any extensions when that happens...)

image

For people in the thread - do you see the "Restricted Mode is intended..." message at the top of the window? If you do and you click Manage then click Trust does that solve the issue?

@kburtram kburtram changed the title Unabe to see saved connections Unable to see saved connections in Restricted Mode Nov 1, 2021
@kburtram
Copy link
Member

kburtram commented Nov 1, 2021

I see in the original bug text that ADS is running in restricted mode, which would explain this behavior. I've updated the title to reflect this. We'll investigate how to improve this experience in Dec.

@kburtram
Copy link
Member

kburtram commented Nov 2, 2021

This issue should be resolved in today's insider build. Please let us know if you still experience this problem with those builds. We're discussing potentially pushing this change as a hotfix due to the confusion/inconvenience caused by this bug.

@rajeshka rajeshka unpinned this issue Nov 3, 2021
@goudstad
Copy link

goudstad commented Nov 4, 2021

Please deploy the fix. I am having the same issue after upgrading to version 1.33.0. I don't see that I am in the restricted mode, however. Also, is there a way to downgrade to the previous version/release? If so, where can I find the previous release?

Windows 10

@Charles-Gagnon
Copy link
Contributor

@goudstad Could you try out the latest insiders build and see if you're still seeing the issue there?

@goudstad
Copy link

goudstad commented Nov 5, 2021

I just upgraded to version 1.33.1. and I am no longer seeing the issue. Many thanks for fixing it.

@Charles-Gagnon
Copy link
Contributor

Closing this since the hotfix with the fix has been released, if anyone else is still encountering issues let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

6 participants