💫

nektos/act で Assertion failed

に公開

作業記録です。

  • Windows11, Powershell
  • nektos/act 0.2.84

GitHub Actions のデバッグをローカルでやりたいと思って nektos/act を動かしてみたら次のようなエラーが発生しました。

Assertion failed: (0) == (uv_thread_create(t.get(), start_thread, this))

ログ全文
PS> act
time="2026-02-11T13:17:39+09:00" level=info msg="Using docker host 'npipe:////./pipe/docker_engine', and daemon socket 'npipe:////./pipe/docker_engine'"
[Verification/CodeQuality] ⭐ Run Set up job
[Verification/CodeQuality] 🚀  Start image=catthehacker/ubuntu:act-latest
[Verification/CodeQuality]   🐳  docker pull image=catthehacker/ubuntu:act-latest platform= username= forcePull=true
[Verification/CodeQuality] using DockerAuthConfig authentication for docker pull
[Verification/CodeQuality]   🐳  docker create image=catthehacker/ubuntu:act-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[Verification/CodeQuality]   🐳  docker run image=catthehacker/ubuntu:act-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[Verification/CodeQuality]   🐳  docker exec cmd=[node --no-warnings -e console.log(process.execPath)] user= workdir=
[Verification/CodeQuality]   ✅  Success - Set up job
[Verification/CodeQuality]   ☁  git clone 'https://github.com/actions/setup-node' # ref=v6
[Verification/CodeQuality] ⭐ Run Main actions/checkout@v6
[Verification/CodeQuality]   🐳  docker cp src=XXX dst=XXX
[Verification/CodeQuality]   ✅  Success - Main actions/checkout@v6 [3.9192294s]
[Verification/CodeQuality] ⭐ Run Main Install Node.js
[Verification/CodeQuality]   🐳  docker cp src=C:\Users\lriki\.cache\act/actions-setup-node@v6/ dst=/var/run/act/actions/actions-setup-node@v6/
[Verification/CodeQuality]   🐳  docker exec cmd=[node /var/run/act/actions/actions-setup-node@v6/dist/setup/index.js] user= workdir=
|
|   #  node[25]: std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start() at ../src/node_platform.cc:109
|   #  Assertion failed: (0) == (uv_thread_create(t.get(), start_thread, this))
|
| ----- Native stack trace -----
|
|  1: 0x8a2bb7 node::Assert(node::AssertionInfo const&) [node]
|  2: 0x9469c0 node::WorkerThreadsTaskRunner::WorkerThreadsTaskRunner(int, node::PlatformDebugLogLevel) [node]
|  3: 0x947252 node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
|  4: 0x845c94 node::V8Platform::Initialize(int) [node]
|  5: 0x84132b  [node]
|  6: 0x842d0c node::Start(int, char**) [node]
|  7: 0x7fc8c3ab11ca  [/lib/x86_64-linux-gnu/libc.so.6]
|  8: 0x7fc8c3ab128b __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
|  9: 0x77a92e _start [node]
[Verification/CodeQuality]   ❌  Failure - Main Install Node.js [1.2570085s]
[Verification/CodeQuality] exitcode '134': failure
[Verification/CodeQuality] ⭐ Run Complete job
[Verification/CodeQuality]   ✅  Success - Complete job
[Verification/CodeQuality] 🏁  Job failed
Error: Job 'CodeQuality' failed

setup-node のバージョンを下げたりしても解決しませんでしたが、どうも イメージのバージョン によってもエラーすることがあるらしいことがわかりました。

List of Docker images for act を上から試していき、次のコマンドでひとまず動かすことができました。

act -P ubuntu-latest=catthehacker/ubuntu:act-20.04

ubuntu:act-22.04 もダメだったのでちょっと古いバージョンを使うことになるのが気になりますが、ひとまずデバッグできればよしということで。

Discussion