slimtoolkit / slimtoolkit/slim
Stuck on inspection when building on aarch64
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 23.4k
- Forks
- 841
- PR merge metrics
- No merged PRs in 30d
Description
Expected Behavior
bulid successfully finished on aarch64 machine
Actual Behavior
stuck on build state=container.inspection.finishing, specific errors are as follows:
cmd=build state=container.inspection.finishing
time="2024-01-23T11:10:14+08:00" level=error msg="channel.CommandClient.Call: c.Read error = EOF"
time="2024-01-23T11:10:14+08:00" level=error msg="ipc.Client.SendCommand() cmd channel call error=EOF\n"
time="2024-01-23T11:10:14+08:00" level=warning msg="slim: warning" error=EOF stack="goroutine 1 [running]:\nruntime/debug.Stack()\n\truntime/debug/stack.go:24 +0x64\ngithub.com/slimtoolkit/slim/pkg/util/errutil.WarnOn({0x1dda080, 0x2dfa310})\n\tgithub.com/slimtoolkit/slim/pkg/util/errutil/errutil.go:45 +0x38\ngithub.com/slimtoolkit/slim/pkg/app/master/inspectors/container.(*Inspector).FinishMonitoring(0x4000026580)\n\tgithub.com/slimtoolkit/slim/pkg/app/master/inspectors/container/container_inspector.go:1293 +0x14c\ngithub.com/slimtoolkit/slim/pkg/app/master/command/build.OnCommand(_, , {, _}, , {, }, {, }, {, ...}, ...)\n\tgithub.com/slimtoolkit/slim/pkg/app/master/command/build/handler.go:1182 +0x3c8c\ngithub.com/slimtoolkit/slim/pkg/app/master/command/build.glob..func1(0x4000534cc0)\n\tgithub.com/slimtoolkit/slim/pkg/app/master/command/build/cli.go:754 +0x49dc\ngithub.com/urfave/cli/v2.(*Command).Run(0x2e13280, 0x400025c600)\n\tgithub.com/urfave/cli/v2@v2.3.0/command.go:163 +0x4a8\ngithub.com/urfave/cli/v2.(*App).RunContext(0x40002124e0, {0x1df8268?, 0x2e90c60}, {0x4000134000, 0x8, 0x8})\n\tgithub.com/urfave/cli/v2@v2.3.0/app.go:313 +0x808\ngithub.com/urfave/cli/v2.(*App).Run(...)\n\tgithub.com/urfave/cli/v2@v2.3.0/app.go:224\ngithub.com/slimtoolkit/slim/pkg/app/master.Run()\n\tgithub.com/slimtoolkit/slim/pkg/app/master/app.go:15 +0x4c\nmain.main()\n\tgithub.com/slimtoolkit/slim/cmd/slim/main.go:15 +0x194\n" version="linux/arm64|Transformer|1.40.10|b04d388ded5cc50e89c532604b63cc2c0966f5cf|2024-01-18_04:11:02AM"
seems to get stuck on "/opt/_slim/bin/slim-sensor -log-level warn -log-format text"
Steps to Reproduce the Problem
- docker-slim build --http-probe=false --include-path-file docker_builder/base_image/include-paths --include-bin-file docker_builder/base_image/include-bins base:aarch64
Specifications
- Version: mentioned above
- Platform:
Linux(kylin) 4.19.90-25.17.73.po1.aarch64 #1 SMP Mon Nov 21 19:25:21 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the aarch64 build with the command in the issue and review the EOF from slim-sensor. Then inspect pkg/app/master/inspectors/container/container_inspector.go around FinishMonitoring and the build handler entry point noted in the stack trace. Done means the build completes instead of remaining in container.inspection.finishing on the reported platform.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, go
- Domain
- cli, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100