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

Permissions error on socket-proxy #12

Open
deliciouslytyped opened this issue Apr 20, 2019 · 3 comments
Open

Permissions error on socket-proxy #12

deliciouslytyped opened this issue Apr 20, 2019 · 3 comments

Comments

@deliciouslytyped
Copy link

When I try to use the socket-proxy branch of cntr I get the following error most of the time that I try to attach with any command:

sudo cntr attach -t command cntr-/nix/store/5shlk963b0ca6s7pd27rb7gpxp577c8v-java-debugme -- somecommand
failed to setup socket proxy: failed to bind socket '/tmp/cntrfs-sockets.wAcUADoChfPH/0': EACCES: Permission denied

Sometimes it works.

@Mic92
Copy link
Owner

Mic92 commented Apr 22, 2019

Ok. Does this fail/succeed for the same sandbox or different builds? Do you have an example I could test?

@deliciouslytyped
Copy link
Author

Do you want to try building this? https://github.com/deliciouslytyped/nix-cntr-sos It should fail.

@deliciouslytyped
Copy link
Author

deliciouslytyped commented Apr 22, 2019

I don't have time or energy tonight to reduce a test case right now but maybe during the week or over the weekend.
Also a correction to the previous post, entering the environment should give the second from the top terminal failing with the error, that being https://github.com/deliciouslytyped/nix-cntr-sos/blob/88e083ee6f490143a32d8c5592e0a0e1dd167d63/test.nix#L63

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

No branches or pull requests

2 participants