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

Error when trying to attach to breakpointHook: unable to move container mounts to new mountpoint: EOPNOTSUPP: Operation not supported on transport endpoint #108

Open
rien opened this issue Mar 23, 2022 · 11 comments

Comments

@rien
Copy link

rien commented Mar 23, 2022

Hi, I'm trying out cntr to debug a nix package, but I get the following error when trying to connect:

# cntr attach -t command cntr-/nix/store/cv9dl6yr37a3c0iqqjmz76ba5bsda01n-notmuch-0.35
unable to move container mounts to new mountpoint: EOPNOTSUPP: Operation not supported on transport endpoint

My system information:

I have tried the following things, without change of error message:

  • reboot
  • run cntr as root with sudo
  • run cntras root with su
  • run cntr as root with doas
  • run nix-build as root with sudo

It seems like some kernel options/capabilities/modules may be missing, but I don't know which one that would be.

@Mic92
Copy link
Owner

Mic92 commented Mar 23, 2022

What happens if you enable posix acls in zfs? https://blog.alt255.com/post/posix-acls/

@Mic92
Copy link
Owner

Mic92 commented Mar 23, 2022

Looks like an issue with writing to FUSE, whats your kernel version?

@Mic92
Copy link
Owner

Mic92 commented Mar 23, 2022

It would be a great help if you can reproduce the issue with nixos module and nixos-shell (https://github.com/Mic92/nixos-shell)

@Mic92
Copy link
Owner

Mic92 commented Mar 23, 2022

Can you also provide me with the output of strace when you are attaching to a container?

@rien
Copy link
Author

rien commented Mar 23, 2022

Kernel version is 5.15.29, I'll try to strace.

@Mic92
Copy link
Owner

Mic92 commented Mar 23, 2022

This command should get you most information: strace -s512 -o /tmp/trace.log -f -yy cntr attach ...

@rien
Copy link
Author

rien commented Mar 23, 2022

Here you go:
trace.log

@Mic92
Copy link
Owner

Mic92 commented Mar 23, 2022

Ok. back to posix acls:

153017 getxattr("/proc/self/fd/5", "system.posix_acl_access", 0x7f2bb4000cb0, 4096) = -1 EOPNOTSUPP (Operation not supported)
153017 writev(4</dev/fuse<char 10:229>>, [{iov_base="\20\0\0\0\241\377\377\377\6\0\0\0\0\0\0\0", iov_len=16}], 1) = 16
153017 read(4</dev/fuse<char 10:229>>,  <unfinished ...>
153015 <... mount resumed>)             = -1 EOPNOTSUPP (Operation not supported)

Try enabling them on your zfs dataset: https://blog.alt255.com/post/posix-acls/

@rien
Copy link
Author

rien commented Mar 23, 2022

Yes, it is fixed now:

[root@chaos:~]# cntr attach -t command cntr-/nix/store/rp72fd5ypa3kv1bgh6wrl2395zn5ndaa-notmuch-0.35

[nixbld@localhost:/var/lib/cntr]$ ls
bin  build  dev  etc  nix  proc  run  tmp  var

Thanks!

@rien rien closed this as completed Mar 23, 2022
@Mic92
Copy link
Owner

Mic92 commented Mar 23, 2022

Let's keep it open. The error message is horrible and the issue not documented.

@Mic92 Mic92 reopened this Mar 23, 2022
@rien
Copy link
Author

rien commented Mar 23, 2022

Alright, for reference, I've executed the following commands for each pool that might be involved:

   $ zfs set xattr=sa vpool/media               #  optional, but better perfomance
   $ zfs set acltype=posixacl vpool/media

sarcasticadmin added a commit to sarcasticadmin/systems that referenced this issue Jun 4, 2023
cntr is a nice package for helping troublehshot nix builds:

  https://github.com/Mic92/cntr

It required modifications for the root zpool for setting posixacls. This
was done on the entire pool but I would like to better understand the
actual requirements going forward to see if I can enable it on a subset
of the datasets. Checkout the following issue for more information about
why posixacls are required for cntr:

  Mic92/cntr#108
sarcasticadmin added a commit to sarcasticadmin/cntr that referenced this issue Jun 7, 2023
Documenting the results of the following issue found with cntr on ZFS:

  Mic92#108
sarcasticadmin added a commit to sarcasticadmin/cntr that referenced this issue Jun 7, 2023
Documenting the results of the following issue found with cntr on ZFS:

   Mic92#108
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

2 participants