René's URL Explorer Experiment


Title: Installing extensions at system level (user: `root`, built-in location) throws an error · Issue #7042 · coder/code-server · GitHub

Open Graph Title: Installing extensions at system level (user: `root`, built-in location) throws an error · Issue #7042 · coder/code-server

X Title: Installing extensions at system level (user: `root`, built-in location) throws an error · Issue #7042 · coder/code-server

Description: Is there an existing issue for this? I have searched the existing issues OS/Web Information Web Browser: Safari v18.0.1 (20619.1.26.31.7) Local OS: macOS 15.0.1 (24A348) Remote OS: Debian 12 (bookworm) Remote Architecture: x86_64 code-se...

Open Graph Description: Is there an existing issue for this? I have searched the existing issues OS/Web Information Web Browser: Safari v18.0.1 (20619.1.26.31.7) Local OS: macOS 15.0.1 (24A348) Remote OS: Debian 12 (bookw...

X Description: Is there an existing issue for this? I have searched the existing issues OS/Web Information Web Browser: Safari v18.0.1 (20619.1.26.31.7) Local OS: macOS 15.0.1 (24A348) Remote OS: Debian 12 (bookw...

Opengraph URL: https://github.com/coder/code-server/issues/7042

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Installing extensions at system level (user: `root`, built-in location) throws an error","articleBody":"### Is there an existing issue for this?\n\n- [x] I have searched the existing issues\n\n### OS/Web Information\n\n- Web Browser: Safari v18.0.1 (20619.1.26.31.7)\n- Local OS: macOS 15.0.1 (24A348)\n- Remote OS: Debian 12 (bookworm)\n- Remote Architecture: x86_64\n- `code-server --version`: 4.94.2-rc.1 dd2e9fce277ff4f8699d9b4d9b41526943385e17 with Code 1.94.2\n\n\n### Steps to Reproduce\n\n1. Start container:\n\n    ```bash\n    docker run --rm -ti \\\n      -u root \\\n      -e NB_USER=root \\\n      -e NB_UID=0 \\\n      -e NB_GID=0 \\\n      glcr.b-data.ch/jupyterlab/python/base:3.12.7-code-server-4.94.2-rc.1-linux-amd64 \\\n      bash\n    ```\n2. Install extension:\n\n    ```bash\n    code-server \\\n      --extensions-dir /opt/code-server/lib/vscode/extensions \\\n      --install-extension ms-python.python\n    ```\n\n\n### Expected\n\n```\nInstalling extensions...\nInstalling extension 'ms-python.python'...\nExtension 'ms-python.debugpy' v2024.12.0 was successfully installed.\nExtension 'ms-python.python' v2024.16.1 was successfully installed.\n```\n\n### Actual\n\n```\nInstalling extensions...\nInstalling extensions...\nInstalling extension 'ms-python.python'...\nInstalling extension 'ms-python.python'...\n[2024-10-19T05:53:53.402Z] error parent:77 Uncaught exception: ENOTEMPTY: directory not empty, rename '/opt/code-server/lib/vscode/extensions/.4361a9d7-c95f-49fb-a7cf-6f4ae4201a3c' -> '/opt/code-server/lib/vscode/extensions/ms-python.debugpy-2024.12.0-linux-x64'\n[2024-10-19T05:53:53.403Z] error parent:77 Error: ENOTEMPTY: directory not empty, rename '/opt/code-server/lib/vscode/extensions/.4361a9d7-c95f-49fb-a7cf-6f4ae4201a3c' -> '/opt/code-server/lib/vscode/extensions/ms-python.debugpy-2024.12.0-linux-x64'\n    at async Object.rename (node:internal/fs/promises:782:10)\n    at async Object.nE (file:///opt/code-server/lib/vscode/out/vs/server/node/server.main.js:45:5381)\n    at async yf.G (file:///opt/code-server/lib/vscode/out/vs/server/node/server.main.js:54:24201)\n    at async yf.extractUserExtension (file:///opt/code-server/lib/vscode/out/vs/server/node/server.main.js:54:21240)\n    at async zc.rb (file:///opt/code-server/lib/vscode/out/vs/server/node/server.main.js:54:14468)\n[2024-10-19T05:53:53.962Z] error parent:77 Uncaught exception: ENOTEMPTY: directory not empty, rename '/opt/code-server/lib/vscode/extensions/.0c81ab66-e49a-4744-af2d-3a7ca1755d35' -> '/opt/code-server/lib/vscode/extensions/ms-python.python-2024.16.1-universal'\n[2024-10-19T05:53:53.962Z] error parent:77 Error: ENOTEMPTY: directory not empty, rename '/opt/code-server/lib/vscode/extensions/.0c81ab66-e49a-4744-af2d-3a7ca1755d35' -> '/opt/code-server/lib/vscode/extensions/ms-python.python-2024.16.1-universal'\n    at async Object.rename (node:internal/fs/promises:782:10)\n    at async Object.nE (file:///opt/code-server/lib/vscode/out/vs/server/node/server.main.js:45:5381)\n    at async yf.G (file:///opt/code-server/lib/vscode/out/vs/server/node/server.main.js:54:24201)\n    at async yf.extractUserExtension (file:///opt/code-server/lib/vscode/out/vs/server/node/server.main.js:54:21240)\n    at async zc.rb (file:///opt/code-server/lib/vscode/out/vs/server/node/server.main.js:54:14468)\nError while installing extensions: ENOTEMPTY: directory not empty, rename '/opt/code-server/lib/vscode/extensions/.0c81ab66-e49a-4744-af2d-3a7ca1755d35' -> '/opt/code-server/lib/vscode/extensions/ms-python.python-2024.16.1-universal'\nENOTEMPTY: directory not empty, rename '/opt/code-server/lib/vscode/extensions/.0c81ab66-e49a-4744-af2d-3a7ca1755d35' -> '/opt/code-server/lib/vscode/extensions/ms-python.python-2024.16.1-universal'\n```\n\n### Logs\n\nSee above.\n\n### Screenshot/Video\n\n\\-\n\n### Does this bug reproduce in native VS Code?\n\nThis cannot be tested in native VS Code\n\n### Does this bug reproduce in GitHub Codespaces?\n\nThis cannot be tested in GitHub Codespaces\n\n### Are you accessing code-server over a secure context?\n\n- [x] I am using a secure context.\n\n### Notes\n\nIt seems to work at *user level* (user: `root`) by executing `code-server --install-extension ms-python.python`, but `ls -al ~/.local/share/code-server/extensions` reveals\n\n```\ndrwx------ 4 root root 4096 Oct 19 06:00 .\ndrwxr-xr-x 9 root root 4096 Oct 19 06:00 ..\ndrwxr-xr-x 7 root root 4096 Oct 19 06:00 .b88d8567-9056-4934-883b-6ae404444689\n-rw-r--r-- 1 root root  804 Oct 19 06:00 extensions.json\ndrwxr-xr-x 5 root root 4096 Oct 19 06:00 ms-python.debugpy-2024.12.0-linux-x64\n```\n\nwhich does not look fine.\n\nFYI @code-asher ","author":{"url":"https://github.com/benz0li","@type":"Person","name":"benz0li"},"datePublished":"2024-10-19T06:07:41Z","url":"https://github.com/coder/code-server/issues/7042"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:db3cedb3-8c6c-2505-7c69-602b39534e4b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD660:E9D16:254D589:2F56C71:6B01C290
html-safe-nonced3ece95a326a51f6859463f5d792856e6fd619680e8ce330342efb7ea494df31
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjYwOkU5RDE2OjI1NEQ1ODk6MkY1NkM3MTo2QjAxQzI5MCIsInZpc2l0b3JfaWQiOiI4NTcxODIzMjQ5MjgzOTkwMTYwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac4191a38b1bdc1246ba9e8df4526c41b6e45b1a54ab533a3b79df61a6c16dbc39
hovercard-subject-tagissue:2598794455
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/code-server/7042/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e6aef7a30a7b63ff0e0a80a2961a78f9e7a69f9ac0e9bbda6a025796ba2fb041/coder/code-server/issues/7042
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e6aef7a30a7b63ff0e0a80a2961a78f9e7a69f9ac0e9bbda6a025796ba2fb041/coder/code-server/issues/7042
og:image:altIs there an existing issue for this? I have searched the existing issues OS/Web Information Web Browser: Safari v18.0.1 (20619.1.26.31.7) Local OS: macOS 15.0.1 (24A348) Remote OS: Debian 12 (bookw...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebenz0li
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/coder/code-server git https://github.com/coder/code-server.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id172953845
octolytics-dimension-repository_nwocoder/code-server
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id172953845
octolytics-dimension-repository_network_root_nwocoder/code-server
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/coder/code-server/issues/7042#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcode-server%2Fissues%2F7042
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcode-server%2Fissues%2F7042
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=coder%2Fcode-server
Reloadhttps://github.com/coder/code-server/issues/7042
Reloadhttps://github.com/coder/code-server/issues/7042
Reloadhttps://github.com/coder/code-server/issues/7042
coderhttps://github.com/coder
code-serverhttps://github.com/coder/code-server
Codehttps://github.com/coder/code-server
Issues147 (147)https://github.com/coder/code-server/issues
Pull requests17 (17)https://github.com/coder/code-server/pulls
Discussionshttps://github.com/coder/code-server/discussions
Actionshttps://github.com/coder/code-server/actions
Projectshttps://github.com/coder/code-server/projects
Security and quality3 (3)https://github.com/coder/code-server/security
Insightshttps://github.com/coder/code-server/insights
https://github.com/coder/code-server
New issuehttps://github.com/login?return_to=https://github.com/coder/code-server/issues/7042
New issuehttps://github.com/login?return_to=https://github.com/coder/code-server/issues/7042
Installing extensions at system level (user: root, built-in location) throws an errorhttps://github.com/coder/code-server/issues/7042#top
bugSomething isn't workinghttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22bug%22
triageThis issue needs to be triaged by a maintainerhttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22triage%22
https://github.com/benz0li
benz0lihttps://github.com/benz0li
on Oct 19, 2024https://github.com/coder/code-server/issues/7042#issue-2598794455
dd2e9fchttps://github.com/coder/code-server/commit/dd2e9fce277ff4f8699d9b4d9b41526943385e17
@code-asherhttps://github.com/code-asher
benz0lihttps://github.com/benz0li
bugSomething isn't workinghttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22bug%22
triageThis issue needs to be triaged by a maintainerhttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22triage%22
on Oct 19, 2024https://github.com/coder/code-server/issues/7042#event-14729376992
benz0lihttps://github.com/benz0li
on Oct 19, 2024https://github.com/coder/code-server/issues/7042#event-14729377511
benz0lihttps://github.com/benz0li
on Oct 19, 2024https://github.com/coder/code-server/issues/7042#event-14729382817
benz0lihttps://github.com/benz0li
on Oct 19, 2024https://github.com/coder/code-server/issues/7042#event-14729410506
https://github.com/benz0li
benz0lihttps://github.com/benz0li
on Oct 19, 2024https://github.com/coder/code-server/issues/7042#issuecomment-2423615652
https://127.0.0.1:8888/lab?token=...https://127.0.0.1:8888/lab?token=...
https://github.com/antoinemorcos-bpi
antoinemorcos-bpihttps://github.com/antoinemorcos-bpi
on Oct 24, 2024https://github.com/coder/code-server/issues/7042#issuecomment-2435755829
https://github.com/microsoft/vscode/blob/ffe710dc78580f03d042e404f807a71083f55305/src/vs/base/node/pfs.ts#L499https://github.com/microsoft/vscode/blob/ffe710dc78580f03d042e404f807a71083f55305/src/vs/base/node/pfs.ts#L499
https://github.com/microsoft/vscode/blob/ffe710dc78580f03d042e404f807a71083f55305/src/vs/platform/extensionManagement/node/extensionManagementService.ts#L822https://github.com/microsoft/vscode/blob/ffe710dc78580f03d042e404f807a71083f55305/src/vs/platform/extensionManagement/node/extensionManagementService.ts#L822
https://github.com/microsoft/vscode/blob/ffe710dc78580f03d042e404f807a71083f55305/src/vs/platform/extensionManagement/node/extensionManagementService.ts#L666https://github.com/microsoft/vscode/blob/ffe710dc78580f03d042e404f807a71083f55305/src/vs/platform/extensionManagement/node/extensionManagementService.ts#L666
https://github.com/microsoft/vscode/blob/ffe710dc78580f03d042e404f807a71083f55305/src/vs/platform/extensionManagement/node/extensionManagementService.ts#L383https://github.com/microsoft/vscode/blob/ffe710dc78580f03d042e404f807a71083f55305/src/vs/platform/extensionManagement/node/extensionManagementService.ts#L383
https://github.com/microsoft/vscode/blob/ffe710dc78580f03d042e404f807a71083f55305/src/vs/platform/extensionManagement/node/extensionManagementService.ts#L1050https://github.com/microsoft/vscode/blob/ffe710dc78580f03d042e404f807a71083f55305/src/vs/platform/extensionManagement/node/extensionManagementService.ts#L1050
https://github.com/microsoft/vscode/blob/ffe710dc78580f03d042e404f807a71083f55305/src/vs/platform/extensionManagement/node/extensionManagementService.ts#L312https://github.com/microsoft/vscode/blob/ffe710dc78580f03d042e404f807a71083f55305/src/vs/platform/extensionManagement/node/extensionManagementService.ts#L312
https://github.com/antoinemorcos-bpi
antoinemorcos-bpihttps://github.com/antoinemorcos-bpi
on Oct 24, 2024https://github.com/coder/code-server/issues/7042#issuecomment-2436001105
@benz0lihttps://github.com/benz0li
https://github.com/benz0li
benz0lihttps://github.com/benz0li
on Oct 26, 2024https://github.com/coder/code-server/issues/7042#issuecomment-2439417151
@antoinemorcos-bpihttps://github.com/antoinemorcos-bpi
Update Code to 1.95 #7052https://github.com/coder/code-server/issues/7052
https://github.com/benz0li
benz0lihttps://github.com/benz0li
on Nov 4, 2024https://github.com/coder/code-server/issues/7042#issuecomment-2455483128
@code-asherhttps://github.com/code-asher
https://github.com/benz0li
benz0lihttps://github.com/benz0li
on Nov 4, 2024https://github.com/coder/code-server/issues/7042#issuecomment-2455646901
code-asherhttps://github.com/code-asher
completedhttps://github.com/coder/code-server/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
344df38https://github.com/coder/code-server/commit/344df3875fee5979b5fda0c6bf00778d0ef1be48
on Nov 4, 2024https://github.com/coder/code-server/issues/7042#event-15111978269
code-asherhttps://github.com/code-asher
on Nov 4, 2024https://github.com/coder/code-server/issues/7042#event-15111980127
https://github.com/code-asher
code-asherhttps://github.com/code-asher
on Nov 5, 2024https://github.com/coder/code-server/issues/7042#issuecomment-2455946985
newkdrhttps://github.com/newkdr
on Nov 5, 2024https://github.com/coder/code-server/issues/7042#event-15112257265
Fix cli being ran twicehttps://github.com/newkdr/code-server/commit/344df3875fee5979b5fda0c6bf00778d0ef1be48
344df38https://github.com/newkdr/code-server/commit/344df3875fee5979b5fda0c6bf00778d0ef1be48
https://github.com/code-asher
code-asherhttps://github.com/code-asher
on Nov 5, 2024https://github.com/coder/code-server/issues/7042#issuecomment-2456002457
https://github.com/coder/code-server/releases/tag/v4.95.1-rc.2https://github.com/coder/code-server/releases/tag/v4.95.1-rc.2
https://github.com/benz0li
benz0lihttps://github.com/benz0li
on Nov 5, 2024https://github.com/coder/code-server/issues/7042#issuecomment-2456329051
https://github.com/coder/code-server/releases/tag/v4.95.1-rc.2https://github.com/coder/code-server/releases/tag/v4.95.1-rc.2
benz0lihttps://github.com/benz0li
completedhttps://github.com/coder/code-server/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Nov 5, 2024https://github.com/coder/code-server/issues/7042#event-15114367207
yiliang114https://github.com/yiliang114
on Jan 23, 2025https://github.com/coder/code-server/issues/7042#event-16043410484
Fix cli being ran twicehttps://github.com/yiliang114/code-server/commit/6b0e75b5a2d6005ccb3e3655c2aae2176c3fa9c0
6b0e75bhttps://github.com/yiliang114/code-server/commit/6b0e75b5a2d6005ccb3e3655c2aae2176c3fa9c0
Sign up for freehttps://github.com/signup?return_to=https://github.com/coder/code-server/issues/7042
Sign in to commenthttps://github.com/login?return_to=https://github.com/coder/code-server/issues/7042
bugSomething isn't workinghttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22bug%22
triageThis issue needs to be triaged by a maintainerhttps://github.com/coder/code-server/issues?q=state%3Aopen%20label%3A%22triage%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.