Comments (10)
The main guidance we can give is to avoid using Docker with Isolate. We do not support this configuration and you are likely to get in trouble.
A couple of quick hints: First, have you tried to run the container in privileged mode? Second, if you are pasting error messages, please do not truncate them -- the >
at the end means that the rest was truncated by systemctl
.
from isolate.
ls -l /sys/fs/cgroup
total 0
dr-xr-xr-x 19 root root 0 Mar 10 14:56 blkio
dr-xr-xr-x 19 root root 0 Mar 10 14:56 cpu
dr-xr-xr-x 19 root root 0 Mar 10 14:56 cpuacct
dr-xr-xr-x 19 root root 0 Mar 10 14:56 cpuset
dr-xr-xr-x 19 root root 0 Mar 10 14:56 devices
dr-xr-xr-x 20 root root 0 Mar 10 14:56 freezer
dr-xr-xr-x 19 root root 0 Mar 10 14:56 memory
dr-xr-xr-x 19 root root 0 Mar 10 14:56 net_cls
dr-xr-xr-x 19 root root 0 Mar 10 14:56 net_prio
dr-xr-xr-x 19 root root 0 Mar 10 14:56 perf_event
dr-xr-xr-x 19 root root 0 Mar 10 14:56 pids
dr-xr-xr-x 19 root root 0 Mar 10 14:56 rdma
dr-xr-xr-x 19 root root 0 Mar 10 14:56 systemd
dr-xr-xr-x 20 root root 0 Mar 10 14:56 unified
from isolate.
Are you sure you have cgroup v2 active? This looks like v1.
What does mount | grep cgroup
print?
from isolate.
I have latest master branch. I think v2 is merged already.
from isolate.
mount | grep cgroup
cgroup on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,size=4096k,nr_inodes=1024,mode=755)
cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime)
cpuset on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cpu on /sys/fs/cgroup/cpu type cgroup (rw,nosuid,nodev,noexec,relatime,cpu)
cpuacct on /sys/fs/cgroup/cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct)
blkio on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
memory on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
devices on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
freezer on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
net_cls on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
perf_event on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
net_prio on /sys/fs/cgroup/net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_prio)
pids on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
rdma on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,relatime,name=systemd)
from isolate.
I have latest master branch. I think v2 is merged already.
I didn't mean v2 version of Isolate, but support for cgroup v2 on your system :)
It seems that your system is running in hybrid mode with v2 mounted on /sys/fs/cgroup/unified
. Can you switch it to pure v2?
Also, having non-truncated error messages would be nice.
from isolate.
I have CentOS 9 host machine with cgroup v2 support. And I am running the docker image (ubuntu 22 with systemd enabled) of my application with isolate master branch installed on docker image.
Question: Do we need Host machine with cgroup v2 enabled OR the image itself?
from isolate.
This however doesn't answer my questions.
from isolate.
Fixed all issues with following set of steps:
- Started Ubuntu 22.04 with systemd
- Made sure that host and container both are using cgroupv2
- Everything worked.
from isolate.
Ticket can be closed.
from isolate.
Related Issues (20)
- "No such file or directory" issue when trying to run C# program using Dotnet HOT 7
- Memory corruption bug in cg_init HOT 2
- C# program failed to compile using mcs - error CS2001: Source file `Main.cs' could not be found HOT 1
- make install exited with error code 1. HOT 1
- Support for Docker HOT 12
- Error using isolate HOT 15
- Assertion Failure Issue HOT 4
- --as-uid and --as-gid seem to be not usable in Docker container HOT 3
- Cannot set disk quota: No such process HOT 1
- chown: cannot access /var/local/lib/isolate/XX/box': No such file or directory HOT 6
- CPU time (--time) consumed in subsequent runs in the same box with cg (cgroup2) enabled HOT 15
- Limitation on number of sandboxes HOT 1
- [Query] Isolate Mac OS setup HOT 1
- Unable to build manual HOT 3
- CGoups not found HOT 5
- isolate: unrecognized option '--cg-timing' and annot open /run/isolate/cgroup: No such file or directory HOT 2
- Cannot create subgroup /sys/fs/cgroup/isolate.slice/isolate.service/daemon: No such file or directory HOT 12
- Memory access violation leads to different outcomes in different envrionments HOT 2
- Measuring time and memory usage with --cg option HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from isolate.