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

vscode user doesn't have permissions to the .vscode-remote folder #155

Closed
snebjorn opened this issue Oct 8, 2022 · 9 comments
Closed

vscode user doesn't have permissions to the .vscode-remote folder #155

snebjorn opened this issue Oct 8, 2022 · 9 comments

Comments

@snebjorn
Copy link

snebjorn commented Oct 8, 2022

The vscode user doesn't have permissions to the .vscode-remote folder which causes a bunch of issue with VSCode extensions.

See

I tried with and without

"remoteUser": "vscode"

But both seems to have issues.

I'm seeing stuff like this

[renderer4] [error] ENOENT: no such file or directory, open '/home/vscode/.vscode-remote/data/User/workspaceStorage/115d3bbf190e55f88d444089e54b0ca3/redhat.java/jdt_ws/.metadata/.log': Error: ENOENT: no such file or directory, open '/home/vscode/.vscode-remote/data/User/workspaceStorage/115d3bbf190e55f88d444089e54b0ca3/redhat.java/jdt_ws/.metadata/.log'

[renderer4] [error] Error: EPERM: operation not permitted, copyfile '/workspaces/openapi-generator/.devcontainer/devcontainer.json' -> '/home/vscode/.vscode-remote/data/User/History/c4cefaa/vwnA.json': NoPermissions (FileSystemError): Error: EPERM: operation not permitted, copyfile '/workspaces/openapi-generator/.devcontainer/devcontainer.json' -> '/home/vscode/.vscode-remote/data/User/History/c4cefaa/vwnA.json'
    at u (/vscode/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/vs/server/node/server.main.js:82:38982)
    at r.toFileSystemProviderError (/vscode/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/vs/server/node/server.main.js:87:44997)
    at r.doCloneFile (/vscode/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/vs/server/node/server.main.js:87:44246)

and this one is plain weird. Why does it try to access my local VSCode? I don't have the java extension installed locally, only in the codepsaces

[renderer4] [error] [Extension Host] Error: command 'java.execute.workspaceCommand' not found
    at S._tryExecuteCommand (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1715:3532)
    at S.executeCommand (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1715:3414)
@testforstephen
Copy link

testforstephen commented Oct 9, 2022

Manually open the terminal on remote container, and the command ls -l /home/vscode also says no permissions.

@snebjorn
Copy link
Author

snebjorn commented Oct 9, 2022

didn't notice this before. But even the workspace folder have permission issues

@snebjorn ➜ /workspaces/openapi-generator (feature/devcontainer ✗) $ ls
ls: cannot access 'Vagrantfile': Operation not permitted
ls: cannot access 'docs': Operation not permitted
ls: cannot access 'samples': Operation not permitted
ls: cannot access 'bin': Operation not permitted
ls: cannot access 'CODE_OF_CONDUCT.md': Operation not permitted
ls: cannot access 'new.sh': Operation not permitted
ls: cannot access 'docker-compose.yml': Operation not permitted
ls: cannot access 'scripts': Operation not permitted
ls: cannot access 'LICENSE': Operation not permitted
ls: cannot access 'appveyor.yml': Operation not permitted
ls: cannot access 'modules': Operation not permitted
ls: cannot access 'README.md': Operation not permitted
ls: cannot access 'CONTRIBUTING.md': Operation not permitted
ls: cannot access 'google_checkstyle.xml': Operation not permitted
ls: cannot access 'spotbugs-exclude.xml': Operation not permitted
ls: cannot access 'docker-entrypoint.sh': Operation not permitted
ls: cannot access 'bitrise.yml': Operation not permitted
ls: cannot access 'mvnw': Operation not permitted
ls: cannot access 'website': Operation not permitted
ls: cannot access 'sec.gpg.enc': Operation not permitted
ls: cannot access 'shippable.yml': Operation not permitted
ls: cannot access 'openapi-generator.code-workspace': Operation not permitted
ls: cannot access 'CI': Operation not permitted
ls: cannot access 'pom.xml': Operation not permitted
ls: cannot access 'mvnw.cmd': Operation not permitted
ls: cannot access 'run-in-docker.sh': Operation not permitted
ls: cannot access 'Dockerfile': Operation not permitted
appveyor.yml  bitrise.yml  CODE_OF_CONDUCT.md  docker-compose.yml    Dockerfile  google_checkstyle.xml  modules  mvnw.cmd  openapi-generator.code-workspace  README.md         samples  sec.gpg.enc    spotbugs-exclude.xml  website
bin           CI           CONTRIBUTING.md     docker-entrypoint.sh  docs        LICENSE                mvnw     new.sh    pom.xml                           run-in-docker.sh  scripts  shippable.yml  Vagrantfile
@snebjorn ➜ /workspaces/openapi-generator (feature/devcontainer ✗) $ whoami
vscode
@snebjorn ➜ /workspaces/openapi-generator (feature/devcontainer ✗) $ 

@snebjorn
Copy link
Author

@samruddhikhandale
Copy link
Member

samruddhikhandale commented Oct 19, 2022

Hi @snebjorn 👋

Could you make the changes mentioned in this comment to snebjorn/openapi-generator repo ?
Let me know if that helps.

@snebjorn
Copy link
Author

snebjorn commented Nov 6, 2022

@samruddhikhandale I made the mentioned changes in the comment, see https://github.com/snebjorn/openapi-generator/tree/test

Then launched it in GitHub Codespaces

@snebjorn ➜ /workspaces/openapi-generator (test) $ ls
ls: cannot access 'openapi-generator.code-workspace': Operation not permitted
ls: cannot access 'sec.gpg.enc': Operation not permitted
ls: cannot access 'mvnw': Operation not permitted
ls: cannot access 'bin': Operation not permitted
ls: cannot access 'CONTRIBUTING.md': Operation not permitted
ls: cannot access 'Vagrantfile': Operation not permitted
ls: cannot access 'docs': Operation not permitted
ls: cannot access 'spotbugs-exclude.xml': Operation not permitted
ls: cannot access 'README.md': Operation not permitted
ls: cannot access 'appveyor.yml': Operation not permitted
ls: cannot access 'LICENSE': Operation not permitted
ls: cannot access 'CODE_OF_CONDUCT.md': Operation not permitted
ls: cannot access 'scripts': Operation not permitted
ls: cannot access 'google_checkstyle.xml': Operation not permitted
ls: cannot access 'website': Operation not permitted
ls: cannot access 'docker-entrypoint.sh': Operation not permitted
ls: cannot access 'samples': Operation not permitted
ls: cannot access 'new.sh': Operation not permitted
ls: cannot access 'bitrise.yml': Operation not permitted
ls: cannot access 'mvnw.cmd': Operation not permitted
ls: cannot access 'pom.xml': Operation not permitted
ls: cannot access 'CI': Operation not permitted
ls: cannot access 'docker-compose.yml': Operation not permitted
ls: cannot access 'run-in-docker.sh': Operation not permitted
ls: cannot access 'Dockerfile': Operation not permitted
ls: cannot access 'modules': Operation not permitted
ls: cannot access 'shippable.yml': Operation not permitted

@samruddhikhandale
Copy link
Member

Hi @snebjorn 👋

Apologies, I'm catching up on this thread right now. Were you able to make any progress?
We've recently made changes to the CLI involving image metadata. I wonder if that could have fixed the issue for you or else I'm happy to help.

olabskid referenced this issue Dec 26, 2022
Co-authored-by: github-actions <github-actions@github.com>
@samruddhikhandale
Copy link
Member

Closing as stale.

@samruddhikhandale samruddhikhandale closed this as not planned Won't fix, can't repro, duplicate, stale Feb 14, 2023
@olabskid
Copy link

(

1 similar comment
@olabskid
Copy link

(

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

No branches or pull requests

4 participants