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 open workspace on Desktop #6853

Closed
beep-boop-remo opened this issue Nov 23, 2021 · 14 comments
Closed

Unable to open workspace on Desktop #6853

beep-boop-remo opened this issue Nov 23, 2021 · 14 comments
Labels
editor: code (desktop) meta: stale This issue/PR is stale and will be closed soon os: Windows 10 team: IDE type: bug Something isn't working

Comments

@beep-boop-remo
Copy link

Bug description

When I chose the Open in VSCode option in the browser workspace, it doesn't open the workspace on the desktop. It instead just loads infinitely
image

Steps to reproduce

  1. Chose the Open in VSCode option in a browser workspace

Workspace affected

No response

Expected behavior

My local VSCode opens the workspace

Example repository

No response

Anything else?

[11/23/2021, 11:59:12 AM] open workspace window: vscode://gitpod.gitpod-desktop/workspace/remo-conference?%7B%22instanceId%22%3A%226ba5f120-7b6e-43e3-a6ef-de76d4b1bc54%22%2C%22workspaceId%22%3A%22coffee-firefly-5qlgrp6h%22%2C%22gitpodHost%22%3A%22https%3A%2F%2Fgitpod.io%22%7D
[11/23/2021, 11:59:12 AM] acquiring lock: gitpod.io
[11/23/2021, 11:59:12 AM] acquired lock: gitpod.io
[11/23/2021, 11:59:12 AM] fetching the local app from https://gitpod.io/static/bin/gitpod-local-companion-windows.exe
[11/23/2021, 11:59:13 AM] the local app is outdated, upgrading: {
  "installation": {
    "path": "C:\\Users\\Boris\\AppData\\Local\\Temp\\gitpod-local-companion-15652-rJcrvZFFVu2D-.exe",
    "etag": "\"r2tc04ae5mo\""
  },
  "upgrade": {
    "etag": "\"r2zdvtae22o\"",
    "url": "https://gitpod.io/static/bin/gitpod-local-companion-windows.exe"
  }
}
[11/23/2021, 11:59:13 AM] installing the local app to C:\Users\Boris\AppData\Local\Temp\gitpod-local-companion-27656-ikttN0O4t98g-.exe
[11/23/2021, 11:59:24 AM] installing the local app: {
  "path": "C:\\Users\\Boris\\AppData\\Local\\Temp\\gitpod-local-companion-27656-ikttN0O4t98g-.exe",
  "etag": "\"r2zdvtae22o\""
}
[11/23/2021, 11:59:24 AM] starting the local app with the config: {
  "gitpodHost": "https://gitpod.io",
  "configFile": "file:///c%3A/Users/Boris/AppData/Local/Temp/gitpod_ssh_config-27656-URwOSiNjnwnF",
  "apiPort": 63799
}
[11/23/2021, 11:59:25 AM] the local app has been stared: {
  "pid": 38460,
  "log": "file:///c%3A/Users/Boris/AppData/Local/Temp/gitpod-local-companion-27656-ikttN0O4t98g-.log"
}
[11/23/2021, 11:59:25 AM] released lock: gitpod.io
[11/23/2021, 11:59:25 AM] the local app (pid: 38460) is running, but the api endpoint is not ready: Error: Response closed without headers
[11/23/2021, 11:59:25 AM] retying again after 1s delay...
[11/23/2021, 11:59:27 AM] failed to access the local app: Error: workspace ssh tunnel not configured
[11/23/2021, 11:59:27 AM] failed to op
```

```time="2021-11-23T11:59:25-05:00" level=info msg="writing workspace ssh_config file" ssh_config="C:\\Users\\Boris\\AppData\\Local\\Temp\\gitpod_ssh_config-27656-URwOSiNjnwnF"
time="2021-11-23T11:59:27-05:00" level=info msg="instance update" workspace="&{6ba5f120-7b6e-43e3-a6ef-de76d4b1bc54 coffee-firefly-5qlgrp6h running  https://coffee-firefly-5qlgrp6h.ws-us17.gitpod.io <nil> <nil> {{0 0} 0 0 0 0} map[] true <nil> <nil>   0xc0000c2080 0x80ec40 0xc0000862a0 false}"
time="2021-11-23T11:59:27-05:00" level=info msg="tunnel: trying to connect ssh client..." workspace=coffee-firefly-5qlgrp6h
time="2021-11-23T11:59:27-05:00" level=info msg="supervisor: listening on 127.0.0.1:63803..." workspace=coffee-firefly-5qlgrp6h
time="2021-11-23T11:59:30-05:00" level=info msg="tunnel: ssh client connected" id=2f0d2253-5203-447b-b064-a08d9004eca3 workspace=coffee-firefly-5qlgrp6h
time="2021-11-23T11:59:42-05:00" level=info msg="ssh: listening on 127.0.0.1:63812..." workspace=coffee-firefly-5qlgrp6h
time="2021-11-23T11:59:42-05:00" level=info msg="instance update" workspace="&{6ba5f120-7b6e-43e3-a6ef-de76d4b1bc54 coffee-firefly-5qlgrp6h running gtPR9eVn5OZ8A8mopRO3b7qc72_gYtcq https://coffee-firefly-5qlgrp6h.ws-us17.gitpod.io 0xc0000c2140 0xc0000b6700 {{0 0} 0 0 0 0} map[] true <nil> 0xc00051cdc0 C:\\Users\\Boris\\AppData\\Local\\Temp\\gitpod_6ba5f120-7b6e-43e3-a6ef-de76d4b1bc54_id_rsa ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDpzSGLsGX8LWCJXfDRvg2emrq5twAdUkkfihQkrtvyIMH7BZsGGqhgRVvdnhi5RdE1r0lOndmcaz0mpFaLBSqYl9oq/DLxLKA2pUZI+7T9aFVhCkrkhjice9j0XjMr7wuz9zKJrElCMiydIs10TJaE9oIKlPryMjddZo8RkHEvNXz9aUQMlWbjIxgJ3eCAtJytjiXA91LCkFWt6RB96GnxQNECv/vjilWEgwBh+W+9dF3cNElhDdkKo42EcGn1hvaB9QYLrbM+UUsqNIOX+owtiVofArxXXmaIsJvwvSBwE7d3V4GxydjUKMZVA+nbQI7xhdDWy86Ep8mj/yglyXKn\n 0xc0000c2080 0x80ec40 0xc0000862a0 true}"
time="2021-11-23T11:59:42-05:00" level=info msg="instance update" workspace="&{6ba5f120-7b6e-43e3-a6ef-de76d4b1bc54 coffee-firefly-5qlgrp6h running gtPR9eVn5OZ8A8mopRO3b7qc72_gYtcq https://coffee-firefly-5qlgrp6h.ws-us17.gitpod.io 0xc0000c2140 0xc0000b6700 {{0 0} 0 0 0 0} map[] true <nil> 0xc00051cdc0 C:\\Users\\Boris\\AppData\\Local\\Temp\\gitpod_6ba5f120-7b6e-43e3-a6ef-de76d4b1bc54_id_rsa ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDpzSGLsGX8LWCJXfDRvg2emrq5twAdUkkfihQkrtvyIMH7BZsGGqhgRVvdnhi5RdE1r0lOndmcaz0mpFaLBSqYl9oq/DLxLKA2pUZI+7T9aFVhCkrkhjice9j0XjMr7wuz9zKJrElCMiydIs10TJaE9oIKlPryMjddZo8RkHEvNXz9aUQMlWbjIxgJ3eCAtJytjiXA91LCkFWt6RB96GnxQNECv/vjilWEgwBh+W+9dF3cNElhDdkKo42EcGn1hvaB9QYLrbM+UUsqNIOX+owtiVofArxXXmaIsJvwvSBwE7d3V4GxydjUKMZVA+nbQI7xhdDWy86Ep8mj/yglyXKn\n 0xc0000c2080 0x80ec40 0xc0000862a0 true}"
```
@akosyakov
Copy link
Member

If you press cancel and then try again without quitting VS Code. It does not help?

@borisyordanov
Copy link

@akosyakov It fails too quickly, i'm not able to press Cancel

3sqTOHdHvL.mp4

@akosyakov
Copy link
Member

@borisyordanov from messages it looks like a token is invalid. Could you try following:

  • stop VS Code
  • stop all processes with gitpod in name
  • remove gitpod token from the system keychain
  • and then try again

We should work on better handling in such cases. It could be that you switched accounts on Gitpod for instance? Hope to prioritize some bug fixing for VS Code desktop in Q1.

@borisyordanov
Copy link

borisyordanov commented Dec 14, 2021

It wasn't very clear how to follow your instructions @akosyakov. Here's what I tried (I use Windows):

  • I opened Task Manager and stopped all instances of VSCode and gitpod(there weren't any)
  • Deleted all gitpod files from C:\Users\Boris\AppData\Local\Temp
  • Tried to open VSCode from a gitpod workspace in my browser
  • It failed again with the following error:
[12/14/2021, 8:37:51 AM] open workspace window: vscode://gitpod.gitpod-desktop/workspace/remo-conference?%7B%22instanceId%22%3A%22ff51b5ff-1a37-443c-96b4-adbd76b57db0%22%2C%22workspaceId%22%3A%22tan-rabbit-ore50ghe%22%2C%22gitpodHost%22%3A%22https%3A%2F%2Fgitpod.io%22%7D
[12/14/2021, 8:37:51 AM] acquiring lock: gitpod.io
[12/14/2021, 8:37:51 AM] acquired lock: gitpod.io
[12/14/2021, 8:37:51 AM] fetching the local app from https://gitpod.io/static/bin/gitpod-local-companion-windows.exe
[12/14/2021, 8:37:51 AM] released lock: gitpod.io
[12/14/2021, 8:37:51 AM] failed to access the local app: Error: workspace not found
[12/14/2021, 8:37:51 AM] failed to open uri: Error: workspace not found

I also noticed that Windows Defender is flagging gitpod executables as Trojans. I excluded gitpod from the virus protection settings, but it still doesn't work.

@akosyakov
Copy link
Member

There should be credential manager on windows which store tokens. It is important that you remove gitpod token from there, and then stop the local companion processes they usually prefixed with gitpod-local-companion to make sure that old credential are not stored anywhere. The error in first video was indicating that you don't have access rights to access the workspace.

@borisyordanov
Copy link

borisyordanov commented Dec 16, 2021

@akosyakov I appreciate you trying to help, but I really need clearer instructions on what to do. Here are some clarifying questions:

There should be credential manager on windows which store tokens.

What tokens are you referring to?

It is important that you remove gitpod token from there,

How?

then stop the local companion processes

How?

@akosyakov
Copy link
Member

@filiptronicek Could you help here please? I don't have windows machine unfortunately.

@filiptronicek
Copy link
Member

I just booted up my Windows 11 PC and everything works fine (although I needed to do it twice because at first, I got a SSH tunnel not configured error). @borisyordanov as @akosyakov mentioned, could you please remove all Gitpod credentials from the system keychain?

To get there, do the following:

  1. Open the Control Panel
  2. On the top right, instead of Category, select Large Icons (Small Icons will work as well)
  3. Select Credential manager (top left)
  4. Choose Windows Credentials

After that, in the Generic credentials section please select each one containing Gitpod in the name and remove it

@akosyakov
Copy link
Member

@filiptronicek Could you elaborate on how to find and kill processes with gitpod in name? :)

@filiptronicek
Copy link
Member

filiptronicek commented Dec 17, 2021

Sure thing, it's easy as pie, just open Powershell, and execute this command:

taskkill /FI "IMAGENAME eq gitpod*" /F

And if you're a bit more skeptical about killing processes on your system, you can inspect the processes that would be killed by the command above by running:

tasklist /fi "IMAGENAME eq gitpod*"

You can also stop them one-by-one with Task manager if you fancy

@borisyordanov
Copy link

@filiptronicek @akosyakov

Thank you very much for the detailed instructions!

I can confirm the issue is resolved, I'm able to open workspaces in VSCode Desktop

@borisyordanov
Copy link

borisyordanov commented Jan 7, 2022

@filiptronicek @akosyakov I wanted to follow up on this and explain my experience thus far.

I basically have to repeat the helpful debugging steps you provided every time I open a workspace. It appears to be impossible to have more than one workspace configured. It's possible to open the same workspace multiple times, but it's not possible to open two different workspaces at the same time, or in succession. My colleagues are experiencing the same issue.

If a workspace had previously been open and a different one is opened, this error is displayed.
image

logs

[1/7/2022, 1:21:48 PM] open workspace window: vscode://gitpod.gitpod-desktop/workspace/remo-conference?%7B%22instanceId%22%3A%225f1a67df-b986-4cd9-9be4-0a5e2d57e998%22%2C%22workspaceId%22%3A%22green-beaver-j232quvm%22%2C%22gitpodHost%22%3A%22https%3A%2F%2Fgitpod.io%22%7D
[1/7/2022, 1:21:48 PM] acquiring lock: gitpod.io
[1/7/2022, 1:21:48 PM] acquired lock: gitpod.io
[1/7/2022, 1:21:48 PM] fetching the local app from https://gitpod.io/static/bin/gitpod-local-companion-windows.exe
[1/7/2022, 1:21:48 PM] released lock: gitpod.io
[1/7/2022, 1:23:58 PM] open workspace window: vscode://gitpod.gitpod-desktop/workspace/remo-conference?%7B%22instanceId%22%3A%22a972605b-5d73-4bc1-a217-f09bda12f0d4%22%2C%22workspaceId%22%3A%22violet-mackerel-l4gohtkm%22%2C%22gitpodHost%22%3A%22https%3A%2F%2Fgitpod.io%22%7D
[1/7/2022, 1:23:58 PM] acquiring lock: gitpod.io
[1/7/2022, 1:23:58 PM] acquired lock: gitpod.io
[1/7/2022, 1:23:58 PM] fetching the local app from https://gitpod.io/static/bin/gitpod-local-companion-windows.exe
[1/7/2022, 1:23:59 PM] released lock: gitpod.io
[1/7/2022, 1:23:59 PM] failed to access the local app: Error: workspace ssh tunnel not configured
[1/7/2022, 1:23:59 PM] failed to open uri: Error: workspace ssh tunnel not configured

@akosyakov akosyakov reopened this Jan 11, 2022
@loujaybee
Copy link
Member

Thanks for the patience as we worked to get this fixed @borisyordanov 🙏

We'll be updating the connection method from desktop to Gitpod as part of:

Which hopefully should resolve this issue for good.

Removing issue from inbox for now.

@stale
Copy link

stale bot commented May 25, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the meta: stale This issue/PR is stale and will be closed soon label May 25, 2022
@stale stale bot closed this as completed Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor: code (desktop) meta: stale This issue/PR is stale and will be closed soon os: Windows 10 team: IDE type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants