Tencent / yadcc

Yet Another Distributed C++ Compiler. yadcc是一套腾讯广告自研的分布式编译系统,用于支撑腾讯广告的日常开发及流水线。相对于已有的同类解决方案,我们针对实际的工业生产环境做了性能、可靠性、易用性等方面优化。
Other
371 stars 62 forks source link

运行daemon错误 #66

Open 549553873 opened 1 year ago

549553873 commented 1 year ago

错误日志如下 (Ubuntu22.10 + gcc 12.2 + cgroup-v2-workaround) execution_engine.cc:82] Check failed: parts.size() >= 3 (2 vs. 3) Unexpected cgroup setting: 0::/user.slice/user-1000.slice/user@1000.service/app.slice/app-org.gnome.Terminal.slice/vte-spawn-b6c5fa9c-c6b5-4316-b3d5-97fa888e8ef4.scope *** Check failure stack trace: *** @ 0x55fbd5c17233 google::LogMessage::Fail() @ 0x55fbd5c1997e google::LogMessage::SendToLog() @ 0x55fbd5c16dde google::LogMessage::Flush() @ 0x55fbd5c19f0f google::LogMessageFatal::~LogMessageFatal() @ 0x55fbd54b1d71 _ZZZN5yadcc6daemon5cloud12_GLOBAL__N_115IsCGroupPresentEvENKUlOT_OT0_E0_clImiEEDaS4_S6_ENKUlvE_clEv @ 0x55fbd54b273c _ZN5yadcc6daemon5cloud15ExecutionEngineC2Ev.cold @ 0x55fbd56fd8fa yadcc::daemon::cloud::ExecutionEngine::Instance() @ 0x55fbd56e358b yadcc::daemon::cloud::DaemonServiceImpl::Heartbeat() @ 0x55fbd5b4b791 _ZZN5flare8FunctionIFvvEE15ErasedCopySmallIZZNS_5fiber8SetTimerENSt6chrono10time_pointINS5_3_V212steady_clockENS5_8durationIlSt5ratioILl1ELl1000000000EEEEEESC_ONS0_IFvmEEEENUlT_E_clImEEDaSH_EUlvE_EEPKNS2_7TypeOpsEPvOSH_ENUlSO_E_4_FUNESO_ @ 0x55fbd5b55cda flare::fiber::detail::FiberProc() Aborted (core dumped) 能否提供一个docker镜像

0x804d8000 commented 1 year ago

https://github.com/Tencent/yadcc/blob/cgroup-v2-workaround/yadcc/daemon/cloud/execution_engine.cc#L82

从日志来看,你编译的应该不是cgroup-v2-workaround,可以再确认下。

我不太确定镜像可以控制docker使用的cgroups的版本,这个可能是docker daemon控制的。

btw,因为容器内可能存在资源配额,默认yadcc在容器内不接受任务,可以通过参数override,具体可以参考文档。