#can't read memory.max from cgroup v2: open /sys/fs/up/memory.max: no such file or directory
1 messages · Page 1 of 1 (latest)
exec /tidb-server
[2026/04/12 00:06:11.819 +00:00] [FATAL] [terror.go:309] ["unexpected error"] [error="can't read memory.max from cgroup v2: open /sys/fs/
up/memory.max: no such file or directory"] [errorVerbose="open /sys/fs/cgroup/memory.max: no such file or directory\ncan't read memory.max from cgroup v2\ngithub.com/pingcap/tidb/pkg/util/cgroup.readInt64Value\n\t/workspace/source/tidb/pkg/util/cgroup/cgroup.go:437\ngithub.com/
cap/tidb/pkg/util/cgroup.detectMemLimitInV2\n\t/workspace/source/tidb/pkg/util/cgroup/cgroup_memory.go:194\ngithub.com/pingcap/tidb/pkg/u
cgroup.getCgroupMemLimit\n\t/workspace/source/tidb/pkg/util/cgroup/cgroup_memory.go:171\ngithub.com/pingcap/tidb/pkg/util/cgroup.GetMemor
it\n\t/workspace/source/tidb/pkg/util/cgroup/cgroup_memory.go:42\ngithub.com/pingcap/tidb/pkg/util/memory.MemTotalCGroup\n\t/workspace/so
/tidb/pkg/util/memory/meminfo.go:116\ngithub.com/pingcap/tidb/pkg/util/memory.init.0\n\t/workspace/source/tidb/pkg/util/memory/meminfo.go
\nruntime.doInit1\n\t/usr/local/go/src/runtime/proc.go:7291\nruntime.doInit\n\t/usr/local/go/src/runtime/proc.go:7258\nruntime.main\n\t/u
ocal/go/src/runtime/proc.go:254\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_arm64.s:1223"] [stack="github.com/pingcap/tidb/pkg/parse
rror.MustNil\n\t/workspace/source/tidb/pkg/parser/terror/terror.go:309\ngithub.com/pingcap/tidb/pkg/util/memory.init.0\n\t/workspace/sour
idb/pkg/util/memory/meminfo.go:168\nruntime.doInit1\n\t/usr/local/go/src/runtime/proc.go:7291\nruntime.doInit\n\t/usr/local/go/src/runtim
oc.go:7258\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:254"] [stack="github.com/pingcap/tidb/pkg/parser/terror.MustNil\n\t/workspa
ource/tidb/pkg/parser/terror/terror.go:309\ngithub.com/pingcap/tidb/pkg/util/memory.init.0\n\t/workspace/source/tidb/pkg/util/memory/memi
go:168\nruntime.doInit1\n\t/usr/local/go/src/runtime/proc.go:7291\nruntime.doInit\n\t/usr/local/go/src/runtime/proc.go:7258\nruntime.main
/usr/local/go/src/runtime/proc.go:254"]```
Hey, we’ve released 0.20.5 in the meantime, do you hit it too ? We’re planning on a follow up release. Taking a look
How could I repro ?
Thanks, @marble warren Yes, I did hit it with 0.20.5. I'll prepare a MWE.
@pastel lance found the issue and will be fixed in the next Dagger release
0.20.6 is still incompatible with it. Here is a demo: https://github.com/esafak/dagger-tidb-mwe
yes, fixed in main
going out in this release
we're in the proces of releasing v0.20.7 right now
GitHub
this follows the same approach images like dind follow (https://github.com/docker-library/docker/blob/5b2346972dda13a30a936507fd11696296a527ea/29/dind/dockerd-entrypoint.sh#L148) where the entrypoi...