Closed AtNkb closed 1 year ago
I am facing the same issue.
Several times, when I signed in on a new device or device I hadn't used in a while, VS Code "randomly" removed my profiles. (I say "randomly" because it seems profiles created right in VS Code and synced online will be kept, while profiles imported from local backup files will be deleted.)
As shown in the logs, three profiles, UI5
, Vue
, and Angular
, are deleted, while seconds before their deletion, they were still actively synced. And all three profiles are present on my current machine and all the other remote machines. The Angular
profile was still in use when it got removed. How should this even happen?
I can add that one of the remote machines had VS Code open when my current machine tried to sync. Could that be the cause?
Here's the log I got when I turned on my third synced machine (which were in perfect state before this syncing mess happened):
And I think it confirmed my suspicion that profiles created via importing backup files are treated differently from those synced online in the first place. Notice the line where it says:
2023-07-17 21:17:56.346 [error] Profile with id:-5422bcf4 and name: Angular does not exist locally to sync.
2023-07-17 21:18:32.727 [error] Profile with id:-3a9b0f31 and name: UI5 does not exist locally to sync.
2023-07-17 21:18:32.727 [error] Profile with id:c947a2d and name: Vue does not exist locally to sync.
And then I was put in a state where it looked like this (synced data and local selectable profiles are out of sync):
And then as soon as I reloaded the window, the three profiles (UI5
, Angular
, and Vue
) were gone.
Please take a look into this syncing issue. It's very annoying... Thank you.
/duplicate
https://github.com/microsoft/vscode-settings-sync-server/issues/796
Marking this as duplicate even though this is older because the other one has more information and also has the root cause.
Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.
Happy Coding!
Type: Bug
Suddenly I saw my profiles were gone so I tried to sync them again from remote. It synced the profiles and created them but then removed them. Each time I try to add them from sync data it creates them but then removes them. Here is the log:
2023-05-30 15:55:05.622 [info] Profiles: Created profile 'Ata001'. 2023-05-30 15:55:05.625 [info] Profiles: Created profile 'ECA'. 2023-05-30 15:55:05.628 [info] Profiles: Created profile 'Laravel'. 2023-05-30 15:55:05.842 [info] Profiles: Updated remote profiles. 2023-05-30 15:55:05.848 [info] Profiles: Updated last synchronized profiles. 2023-05-30 15:55:05.849 [info] Profiles: Finished resetting profiles. 2023-05-30 15:55:08.155 [info] Auto Sync: Triggered by Activity 2023-05-30 15:55:08.156 [info] Sync started. 2023-05-30 15:55:08.298 [info] Settings: No changes found during synchronizing settings. 2023-05-30 15:55:08.312 [info] Keybindings: No changes found during synchronizing keybindings. 2023-05-30 15:55:08.325 [info] Snippets: No changes found during synchronizing snippets. 2023-05-30 15:55:08.338 [info] Tasks: No changes found during synchronizing tasks. 2023-05-30 15:55:08.355 [info] GlobalState: No changes found during synchronizing ui state. 2023-05-30 15:55:08.509 [info] Extensions: No changes found during synchronizing extensions. 2023-05-30 15:55:08.511 [info] Profiles: No changes found during synchronizing profiles. 2023-05-30 15:55:08.515 [info] Syncing profile. Ata001 2023-05-30 15:55:08.517 [info] Settings (Ata001): Last sync resource does not exist locally. 2023-05-30 15:55:08.656 [info] Request failed {"url":"https://vscode-sync.trafficmanager.net/v1/collection/fcfaa647-7954-48ee-9bf9-7cfbf519dbe3/resource/settings/72a688a2-2e57-4baa-8d58-a4db0c721b83","status":405,"execution-id":"92638f77-a8b3-4885-9b4d-82482a7f261b","operation-id":"4853db8065594b8aa83f753c3b8deb71"} 2023-05-30 15:55:08.658 [error] MethodNotFound (UserDataSyncError) syncResource:unknown operationId:4853db8065594b8aa83f753c3b8deb71: GET request 'https://vscode-sync.trafficmanager.net/v1/collection/fcfaa647-7954-48ee-9bf9-7cfbf519dbe3/resource/settings/72a688a2-2e57-4baa-8d58-a4db0c721b83' failed because the requested endpoint is not found (405). Cannot modify non-existent collection at e.UserDataSyncStoreService.z (/usr/share/code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:87:149668) at async e.UserDataSyncStoreService.resolveResourceContent (/usr/share/code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:87:144494) at async e.SettingsSynchroniser.getLastSyncUserData (/usr/share/code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:87:29567) at async e.SettingsSynchroniser.Q (/usr/share/code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:87:22506) at async e.SettingsSynchroniser.sync (/usr/share/code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:87:21866) at async o.sync (/usr/share/code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:87:130575) at async e.UserDataSyncService.M (/usr/share/code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:87:122906) at async e.UserDataSyncService.J (/usr/share/code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:87:122376) at async e.UserDataSyncService.I (/usr/share/code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:87:121987) 2023-05-30 15:55:08.658 [info] Auto Sync: Client is making invalid requests. Cleaning up data... 2023-05-30 15:55:08.939 [info] Updating remote profiles with invalid collections on server 2023-05-30 15:55:09.098 [info] Updated remote profiles on server 2023-05-30 15:55:09.098 [info] Auto Sync: Retrying sync... 2023-05-30 15:55:09.098 [info] Sync started. 2023-05-30 15:55:09.242 [info] Settings: No changes found during synchronizing settings. 2023-05-30 15:55:09.254 [info] Keybindings: No changes found during synchronizing keybindings. 2023-05-30 15:55:09.264 [info] Snippets: No changes found during synchronizing snippets. 2023-05-30 15:55:09.269 [info] Tasks: No changes found during synchronizing tasks. 2023-05-30 15:55:09.274 [info] GlobalState: No changes found during synchronizing ui state. 2023-05-30 15:55:09.360 [info] Extensions: No changes found during synchronizing extensions. 2023-05-30 15:55:09.507 [info] Profiles: Removed profile 'Ata001'. 2023-05-30 15:55:09.507 [info] Profiles: Removed profile 'ECA'. 2023-05-30 15:55:09.508 [info] Profiles: Removed profile 'Laravel'. 2023-05-30 15:55:09.535 [info] Profiles: Updated last synchronized profiles. 2023-05-30 15:55:09.554 [info] Sync done. Took 457ms 2023-05-30 16:00:09.555 [info] Auto Sync: Triggered by Interval 2023-05-30 16:00:09.555 [info] Sync started. 2023-05-30 16:00:09.976 [info] Settings: No changes found during synchronizing settings. 2023-05-30 16:00:09.986 [info] Keybindings: No changes found during synchronizing keybindings. 2023-05-30 16:00:09.996 [info] Snippets: No changes found during synchronizing snippets. 2023-05-30 16:00:10.004 [info] Tasks: No changes found during synchronizing tasks. 2023-05-30 16:00:10.015 [info] GlobalState: No changes found during synchronizing ui state. 2023-05-30 16:00:10.146 [info] Extensions: No changes found during synchronizing extensions. 2023-05-30 16:00:10.149 [info] Profiles: No changes found during synchronizing profiles. 2023-05-30 16:00:10.151 [info] Sync done. Took 596ms
VS Code version: Code 1.78.2 (b3e4e68a0bc097f0ae7907b217c1119af9e03435, 2023-05-10T14:47:05.613Z) OS version: Linux x64 5.19.0-42-generic Modes: Sandboxed: Yes
System Info
|Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz (4 x 3399)| |GPU Status|2d_canvas: enabledcanvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|1, 1, 1| |Memory (System)|5.69GB (1.60GB free)| |Process Argv|--unity-launch --crash-reporter-id 03f1e86e-63d5-475a-8d9d-61186fca6d61| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|ubuntu-xorg| |XDG_CURRENT_DESKTOP|Unity| |XDG_SESSION_DESKTOP|ubuntu-xorg| |XDG_SESSION_TYPE|x11|
Extensions (28)
Extension|Author (truncated)|Version ---|---|--- better-comments|aar|3.0.2 Bookmarks|ale|13.3.1 project-manager|ale|12.7.0 prestashop-snippets|apa|0.4.0 smarty-template-support|asw|2.1.0 vscode-intelephense-client|bme|1.9.5 tpl|cdp|1.0.1 jquerysnippets|don|0.0.1 gitlens|eam|13.6.0 vscode-html-css|ecm|1.13.1 prettier-vscode|esb|9.13.0 chatgpt-vscode|gen|0.0.8 todo-tree|Gru|0.0.226 twig-language-2|mbl|0.9.2 phpstorm-parameter-hints-in-vscode|MrC|1.1.0 vscode-apache|mrm|1.2.0 vsliveshare|ms-|1.0.5864 color-highlight|nau|2.5.0 php-docblocker|nei|2.7.0 material-icon-theme|PKi|4.27.0 format-html-in-php|rif|1.7.0 code-sftp|sat|1.18.0 swdc-vscode|sof|2.7.0 tabnine-vscode|Tab|3.6.51 vscode-wakatime|Wak|24.0.10 php-debug|xde|1.32.1 material-theme|zhu|3.15.14 html-css-class-completion|Zig|1.20.0A/B Experiments
``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vsdfh931cf:30280410 vshan820:30294714 vstes263:30335439 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593cf:30376535 pythonvs932:30410667 cppdebug:30492333 vsclangdc:30486549 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyone:30548225 vsccc:30610678 3biah626:30602489 pyind779:30671433 89544117:30613380 pythonsymbol12:30671437 a9j8j154:30646983 showlangstatbar:30737416 vsctsb:30748421 pythonms35:30701012 pythonfmttext:30731395 fixhidewlkth:30730051 pythongtdpathcf:30739705 ```