Multiple codespaces issues

I created a simple GitHub repo to test with.

When I first create the codespaces (through the code menu):

It gets stuck on this and there’s no change (the account notification is to sign in to Settings Sync).

When I refresh the page:

My extensions have clearly been installed from my Settings Sync profile, but my actual settings/preferences haven’t synced. The Settings Sync output:

[2020-09-13 19:15:39.279] [userDataSync.log] [info] Using settings sync service https://vscode-sync-insiders.trafficmanager.net/
[2020-09-13 19:15:39.302] [userDataSync.log] [info] Auto Sync is enabled.
[2020-09-13 19:15:39.326] [userDataSync.log] [info] Auto Sync: Suspended until auth token is available.

After logging in through the account button, I get:

[2020-09-13 19:15:39.279] [userDataSync.log] [info] Using settings sync service https://vscode-sync-insiders.trafficmanager.net/
[2020-09-13 19:15:39.302] [userDataSync.log] [info] Auto Sync is enabled.
[2020-09-13 19:15:39.326] [userDataSync.log] [info] Auto Sync: Suspended until auth token is available.
[2020-09-13 19:19:28.057] [userDataSync.log] [info] Auto Sync: Started
[2020-09-13 19:19:28.109] [userDataSync.log] [info] Auto Sync: Triggered by Interval
[2020-09-13 19:19:28.795] [userDataSync.log] [error] NoRef (UserDataSyncError) syncResource:unknown operationId:unknown: Server did not return the ref
    at I.read (https://nihaals-codespaces-test-2q34.github.dev/workbench-page/web-standalone/insider-e4256dd/out/vs/workbench/workbench.web.api.js:2925:794)
    at async e.readMachinesData (https://nihaals-codespaces-test-2q34.github.dev/workbench-page/web-standalone/insider-e4256dd/out/vs/workbench/workbench.web.api.js:2890:523)
    at async e.getMachines (https://nihaals-codespaces-test-2q34.github.dev/workbench-page/web-standalone/insider-e4256dd/out/vs/workbench/workbench.web.api.js:2889:149)
    at async y.doSync (https://nihaals-codespaces-test-2q34.github.dev/workbench-page/web-standalone/insider-e4256dd/out/vs/workbench/workbench.web.api.js:2902:813)
[2020-09-13 19:19:28.862] [userDataSync.log] [error] NoRef (UserDataSyncError) syncResource:unknown operationId:unknown: Server did not return the ref
    at I.read (https://nihaals-codespaces-test-2q34.github.dev/workbench-page/web-standalone/insider-e4256dd/out/vs/workbench/workbench.web.api.js:2925:794)
    at async e.readMachinesData (https://nihaals-codespaces-test-2q34.github.dev/workbench-page/web-standalone/insider-e4256dd/out/vs/workbench/workbench.web.api.js:2890:523)
    at async e.getMachines (https://nihaals-codespaces-test-2q34.github.dev/workbench-page/web-standalone/insider-e4256dd/out/vs/workbench/workbench.web.api.js:2889:149)
    at async y.doSync (https://nihaals-codespaces-test-2q34.github.dev/workbench-page/web-standalone/insider-e4256dd/out/vs/workbench/workbench.web.api.js:2902:813)
[2020-09-13 19:20:44.004] [userDataSync.log] [info] Auto Sync: Triggered by Activity
[2020-09-13 19:20:44.186] [userDataSync.log] [error] NoRef (UserDataSyncError) syncResource:unknown operationId:unknown: Server did not return the ref
    at I.read (https://nihaals-codespaces-test-2q34.github.dev/workbench-page/web-standalone/insider-e4256dd/out/vs/workbench/workbench.web.api.js:2925:794)
    at async e.readMachinesData (https://nihaals-codespaces-test-2q34.github.dev/workbench-page/web-standalone/insider-e4256dd/out/vs/workbench/workbench.web.api.js:2890:523)
    at async e.getMachines (https://nihaals-codespaces-test-2q34.github.dev/workbench-page/web-standalone/insider-e4256dd/out/vs/workbench/workbench.web.api.js:2889:149)
    at async y.doSync (https://nihaals-codespaces-test-2q34.github.dev/workbench-page/web-standalone/insider-e4256dd/out/vs/workbench/workbench.web.api.js:2902:813)
[2020-09-13 19:20:44.250] [userDataSync.log] [error] NoRef (UserDataSyncError) syncResource:unknown operationId:unknown: Server did not return the ref
    at I.read (https://nihaals-codespaces-test-2q34.github.dev/workbench-page/web-standalone/insider-e4256dd/out/vs/workbench/workbench.web.api.js:2925:794)
    at async e.readMachinesData (https://nihaals-codespaces-test-2q34.github.dev/workbench-page/web-standalone/insider-e4256dd/out/vs/workbench/workbench.web.api.js:2890:523)
    at async e.getMachines (https://nihaals-codespaces-test-2q34.github.dev/workbench-page/web-standalone/insider-e4256dd/out/vs/workbench/workbench.web.api.js:2889:149)
    at async y.doSync (https://nihaals-codespaces-test-2q34.github.dev/workbench-page/web-standalone/insider-e4256dd/out/vs/workbench/workbench.web.api.js:2902:813)
[2020-09-13 19:25:45.033] [userDataSync.log] [info] Auto Sync: Triggered by Interval
[2020-09-13 19:25:45.380] [userDataSync.log] [error] NoRef (UserDataSyncError) syncResource:unknown operationId:unknown: Server did not return the ref
    at I.read (https://nihaals-codespaces-test-2q34.github.dev/workbench-page/web-standalone/insider-e4256dd/out/vs/workbench/workbench.web.api.js:2925:794)
    at async e.readMachinesData (https://nihaals-codespaces-test-2q34.github.dev/workbench-page/web-standalone/insider-e4256dd/out/vs/workbench/workbench.web.api.js:2890:523)
    at async e.getMachines (https://nihaals-codespaces-test-2q34.github.dev/workbench-page/web-standalone/insider-e4256dd/out/vs/workbench/workbench.web.api.js:2889:149)
    at async y.doSync (https://nihaals-codespaces-test-2q34.github.dev/workbench-page/web-standalone/insider-e4256dd/out/vs/workbench/workbench.web.api.js:2902:813)
[2020-09-13 19:25:45.438] [userDataSync.log] [error] NoRef (UserDataSyncError) syncResource:unknown operationId:unknown: Server did not return the ref
    at I.read (https://nihaals-codespaces-test-2q34.github.dev/workbench-page/web-standalone/insider-e4256dd/out/vs/workbench/workbench.web.api.js:2925:794)
    at async e.readMachinesData (https://nihaals-codespaces-test-2q34.github.dev/workbench-page/web-standalone/insider-e4256dd/out/vs/workbench/workbench.web.api.js:2890:523)
    at async e.getMachines (https://nihaals-codespaces-test-2q34.github.dev/workbench-page/web-standalone/insider-e4256dd/out/vs/workbench/workbench.web.api.js:2889:149)
    at async y.doSync (https://nihaals-codespaces-test-2q34.github.dev/workbench-page/web-standalone/insider-e4256dd/out/vs/workbench/workbench.web.api.js:2902:813)
[2020-09-13 19:30:46.038] [userDataSync.log] [info] Auto Sync: Triggered by Interval
[2020-09-13 19:30:46.315] [userDataSync.log] [error] NoRef (UserDataSyncError) syncResource:unknown operationId:unknown: Server did not return the ref
    at I.read (https://nihaals-codespaces-test-2q34.github.dev/workbench-page/web-standalone/insider-e4256dd/out/vs/workbench/workbench.web.api.js:2925:794)
    at async e.readMachinesData (https://nihaals-codespaces-test-2q34.github.dev/workbench-page/web-standalone/insider-e4256dd/out/vs/workbench/workbench.web.api.js:2890:523)
    at async e.getMachines (https://nihaals-codespaces-test-2q34.github.dev/workbench-page/web-standalone/insider-e4256dd/out/vs/workbench/workbench.web.api.js:2889:149)
    at async y.doSync (https://nihaals-codespaces-test-2q34.github.dev/workbench-page/web-standalone/insider-e4256dd/out/vs/workbench/workbench.web.api.js:2902:813)
[2020-09-13 19:30:46.362] [userDataSync.log] [error] NoRef (UserDataSyncError) syncResource:unknown operationId:unknown: Server did not return the ref
    at I.read (https://nihaals-codespaces-test-2q34.github.dev/workbench-page/web-standalone/insider-e4256dd/out/vs/workbench/workbench.web.api.js:2925:794)
    at async e.readMachinesData (https://nihaals-codespaces-test-2q34.github.dev/workbench-page/web-standalone/insider-e4256dd/out/vs/workbench/workbench.web.api.js:2890:523)
    at async e.getMachines (https://nihaals-codespaces-test-2q34.github.dev/workbench-page/web-standalone/insider-e4256dd/out/vs/workbench/workbench.web.api.js:2889:149)
    at async y.doSync (https://nihaals-codespaces-test-2q34.github.dev/workbench-page/web-standalone/insider-e4256dd/out/vs/workbench/workbench.web.api.js:2902:813)

I haven’t managed to find a workaround for this.

When I open the terminal and run poetry run python app.py (which should just work), I get Creating virtualenv codespaces-test-tPoBDl2N-py3.8 in /home/user/.cache/pypoetry/virtualenvs, suggesting the postAttachCommand didn’t run.

I have tried multiple Linux distros but can’t seem to get a setup that works properly and what makes it even more strange is that it works fine locally using the dev container/remote container.

Hey! Thanks for reaching out. Codespaces doesn’t currently support the “postAttachCommand” property, and so that’s why you saw this behavior. We’re actually adding this right now, but in the meantime, would it work to change this to a “postCreateCommand” instead? Looking at your sample repo, I think this should work well, as a near-term workaround at least.

Regarding not seeing your settings sync: Codespaces is currently using VS Code Insiders, and so it only syncs settings with the Insiders version of VS Code on the desktop. Are you using the stable build of VS Code?

Codespaces doesn’t currently support the “postAttachCommand”

Ah, I just looked at the docs and I see the warning. It looks like create is actually what I was looking for anyway, thanks!

Are you using the stable build of VS Code?

I’m using Insiders on my desktop too. When I try to click on the “synced data” (on Codespaces web), I get Server did not return the ref, so the issue doesn’t seem to be a lack of synced data. When syncing new data from my desktop, the new sync entry shows up fine in the codespace sync log, just I can’t view it or actually sync.

Do you know what might be causing the initial error?

Failed to connect to the remote extension host server (Error: VSLSSocketTimeout)

@nihaals thanks for reporting the issues!

We are on top of both issues Settings Sync and Connection timeout isues and will deploy appropriate fixes in the next few days.