ioi / isolate

Sandbox for securely executing untrusted programs
Other
1.1k stars 161 forks source link

Cannot create subgroup /sys/fs/cgroup/isolate.slice/isolate.service/daemon: No such file or directory #168

Closed sudo-anony closed 2 months ago

sudo-anony commented 2 months ago

I have created two services one is isolate.service and the other one is slice.service in which I have place the content I am getting from isolate repo. But I am getting this error on start of isolate.service hence isolate.slice is running.

gollux commented 2 months ago

What is the output of systemctl status isolate.service, systemctl status isolate.slice, and systemd-cgls?

What distribution of Linux do you use? Does it run on bare metal or in some virtual machine or container?

sudo-anony commented 2 months ago

This is the output errrr when i run isolate.service Cannot create subgroup /sys/fs/cgroup/isolate.slice/isolate.service/daemon: No such file or

and also when I ran service for slice it ran without error with above warning . The error is same for both of these issues,

and I don't know about the systemd-cgls I see bunch of issues . I will attach all of these images with them . Screenshot from 2024-07-22 14-11-41

gollux commented 2 months ago

I would appreciate the rest of systemd-cgls output, better as a text file than as a screenshot.

sudo-anony commented 2 months ago

[Uploading systemd-cgls.zip…]()

gollux commented 2 months ago

I don't know what you did, but I see your comment as a link leading back to this issue's page.

sudo-anony commented 2 months ago

systemd-cgls.TXT

sudo-anony commented 2 months ago

I am not using any container or virtual machine just my local system i am working on .

gollux commented 2 months ago

How does your /sys/fs/cgroup look?

sudo-anony commented 2 months ago

Screenshot from 2024-07-22 18-28-35

gollux commented 2 months ago

Are you sure your system is running with cgroup v2? What is your kernel command line?

sudo-anony commented 2 months ago

Are you sure your system is running with cgroup v2? What is your kernel command line?

Screenshot from 2024-07-22 18-35-24

This is what I got in return

gollux commented 2 months ago

Ah, you have a setup with combined cgroup v1 and v2. This is currently not supported by Isolate, sorry. Please switch to plain v2.