Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stuck on inspection when building on aarch64 #633

Open
shashouhuoshan opened this issue Jan 23, 2024 · 2 comments
Open

Stuck on inspection when building on aarch64 #633

shashouhuoshan opened this issue Jan 23, 2024 · 2 comments

Comments

@shashouhuoshan
Copy link

shashouhuoshan commented Jan 23, 2024

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/[email protected]/command.go:163 +0x4a8\ngithub.com/urfave/cli/v2.(*App).RunContext(0x40002124e0, {0x1df8268?, 0x2e90c60}, {0x4000134000, 0x8, 0x8})\n\tgithub.com/urfave/cli/[email protected]/app.go:313 +0x808\ngithub.com/urfave/cli/v2.(*App).Run(...)\n\tgithub.com/urfave/cli/[email protected]/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

  1. 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

@shashouhuoshan
Copy link
Author

using --show-clogs --show-blogs --debug parameters to print more deatils below:

time="2024-01-23T11:36:58+08:00" level=debug msg="sysinfo => system.SystemInfo{Sysname:"Linux", Nodename:"Kylin.localdomain", Release:"4.19.90-25.17.73.po1.aarch64", Version:"#1 SMP Mon Nov 21 19:25:21 UTC 2022", Machine:"aarch64", Domainname:"(none)", OsBuild:
"", Distro:system.DistroInfo{Name:"Kylin", Version:"1.3", DisplayName:"Kylin 1.3 (LTS)"}}"
time="2024-01-23T11:36:58+08:00" level=debug msg="param.error.app.options - no app params"
time="2024-01-23T11:36:58+08:00" level=debug msg="customImageTag='', additionalTags=[]string(nil)" app=slim cmd=build
time="2024-01-23T11:36:58+08:00" level=debug msg="dockerclient.GetUnixSocketAddr(): found => {"address":"unix:///var/run/docker.sock","file_path":"/var/run/docker.sock","type":"file","perms":"","can_read":true,"can_write":true}\n"
time="2024-01-23T11:36:58+08:00" level=debug msg="dockerclient.New: new Docker client (default) [6]"
time="2024-01-23T11:36:58+08:00" level=debug msg="dockerclient.New: configured DOCKER_HOST env var"
time="2024-01-23T11:36:58+08:00" level=info msg="image=base:aarch64 http-probe=true remove-file-artifacts=false image-overrides=map[] entrypoint=[] (false) cmd=[] (false) workdir='' env=[] expose=map[]" app=slim cmd=build
time="2024-01-23T11:36:58+08:00" level=info msg="inspecting 'fat' image metadata..." app=slim cmd=build
time="2024-01-23T11:36:58+08:00" level=debug msg="PrepareImageStateDirs(,sha256:414993f6fce4085130e9c71c0e7f175cd19279328d1ac31bfe9b2956d5022d75)"
time="2024-01-23T11:36:58+08:00" level=debug msg="PrepareImageStateDirs - statePrefix=/usr/local/bin appDir=/usr/local/bin badPath=/usr/local/bin"
time="2024-01-23T11:36:58+08:00" level=debug msg="PrepareImageStateDirs - overriding state path to /tmp/slim-state"
time="2024-01-23T11:36:58+08:00" level=debug msg="PrepareImageStateDirs - statePrefix=/tmp/slim-state appDir=/usr/local/bin badPath=/usr/local/bin"
time="2024-01-23T11:36:58+08:00" level=debug msg="PrepareImageStateDirs - copying sensor to state path (to /tmp/slim-state)"
time="2024-01-23T11:36:58+08:00" level=debug msg="CopyRegularFile(false,/usr/local/bin/slim-sensor,/tmp/slim-state/slim-sensor,true)"
time="2024-01-23T11:36:58+08:00" level=debug msg="PrepareImageStateDirs - removing existing state location: /tmp/slim-state/.slim-state/images/414993f6fce4085130e9c71c0e7f175cd19279328d1ac31bfe9b2956d5022d75/artifacts"
time="2024-01-23T11:36:58+08:00" level=debug msg="PrepareImageStateDirs - created new image state location: /tmp/slim-state/.slim-state/images/414993f6fce4085130e9c71c0e7f175cd19279328d1ac31bfe9b2956d5022d75/artifacts"
time="2024-01-23T11:36:58+08:00" level=debug msg="localVolumePath=/tmp/slim-state/.slim-state/images/414993f6fce4085130e9c71c0e7f175cd19279328d1ac31bfe9b2956d5022d75, artifactLocation=/tmp/slim-state/.slim-state/images/414993f6fce4085130e9c71c0e7f175cd19279328d1ac31bfe9b295
6d5022d75/artifacts, statePath=/tmp/slim-state, stateKey=414993f6fce4085130e9c71c0e7f175cd19279328d1ac31bfe9b2956d5022d75" app=slim cmd=build
time="2024-01-23T11:36:58+08:00" level=info msg="processing 'fat' image info..." app=slim cmd=build
time="2024-01-23T11:36:58+08:00" level=debug msg="IMAGE INSTRUCTIONS:"
time="2024-01-23T11:36:58+08:00" level=debug msg="FROM scratch"
time="2024-01-23T11:36:58+08:00" level=debug msg="# new image"
time="2024-01-23T11:36:58+08:00" level=debug msg="\n# instruction set group 1\n"
time="2024-01-23T11:36:58+08:00" level=debug msg="# Imported from -"
time="2024-01-23T11:36:58+08:00" level=debug msg="# no instruction info"
time="2024-01-23T11:36:58+08:00" level=debug msg="ADD file:e0da21694c1a19a84ab24a8086ca0a0e268ee07a7744a249e14d6e36c812f57e /root/.rpmmacros"
time="2024-01-23T11:36:58+08:00" level=debug msg="ADD dir:b9c185d88446a1013d649c39abf48ff1e39b31c92b6c4c662b89fd96fede31e3 /root/.gpg"
time="2024-01-23T11:36:58+08:00" level=debug msg="RUN gpg --import /root/.gpg/rpm_key.pub"
time="2024-01-23T11:36:58+08:00" level=debug msg="WORKDIR /"
time="2024-01-23T11:36:58+08:00" level=debug msg="# end of image: docker.internal.com/cicd_2694/-1.3-lts-aarch64:latest (id: tags: docker.internal.com/cicd_2694/kylin-1.3-lts-aarch64:latest)"
time="2024-01-23T11:36:58+08:00" level=debug
time="2024-01-23T11:36:58+08:00" level=debug msg="# new image"
time="2024-01-23T11:36:58+08:00" level=debug msg="\n# instruction set group 2\n"
time="2024-01-23T11:36:58+08:00" level=debug msg="RUN mkdir /root/.pip"
time="2024-01-23T11:36:58+08:00" level=debug msg="COPY file:de1193e72e84591f5b3bfe2c6b7a33e33c1b603025cffae3386e5e2008c44671 /root/.pip"
time="2024-01-23T11:36:58+08:00" level=debug msg="RUN yum install -y bzip2 gzip unzip zip file && \\n\trm /usr/lib/locale/locale-archive && \\n\tyum install -y zlib-devel && \\n\tyum install -y dos2unix && \\n\tyum install -y dmidecode && \\n\tyum install -y libpcap &&
\\n\tyum install -y python2 && \\n\tyum clean all && \\n\tdnf clean all && \\n\tpython3 -m ensurepip && \\n\tpip3 install supervisor==4.2.2"
time="2024-01-23T11:36:58+08:00" level=debug msg="ENV LANG=zh_CN.UTF-8"
time="2024-01-23T11:36:58+08:00" level=debug msg="ENV LC_ALL=zh_CN.UTF-8"
time="2024-01-23T11:36:58+08:00" level=debug msg="COPY file:8b9c7591fbb54d79dbb3938cc88dd41a31c7cd28988901c1ac598d0e3aceebd1 /etc"
time="2024-01-23T11:36:58+08:00" level=debug msg="CMD ["/usr/local/bin/supervisord","-c","/etc/supervisord.conf"]\n"
time="2024-01-23T11:36:58+08:00" level=debug msg="# end of image: base:aarch64 (id: tags: base:aarch64,docker.internal.com/cicd_2694/base:aarch64)"
time="2024-01-23T11:36:58+08:00" level=debug
time="2024-01-23T11:36:58+08:00" level=debug msg="FatContainerCmd - [/usr/local/bin/supervisord -c /etc/supervisord.conf]" app=slim cmd=build component=container.inspector
time="2024-01-23T11:36:58+08:00" level=info msg="starting instrumented 'fat' container..." app=slim cmd=build
time="2024-01-23T11:36:58+08:00" level=debug msg="sensor.EnsureLocalBinary: sensor (/usr/local/bin/slim-sensor) perms => 0755" app=slim cmd=build component=container.inspector
time="2024-01-23T11:36:58+08:00" level=debug msg="ensureSensorVolume: already have volume = slim-sensor.1.40.10" app=slim cmd=build component=container.inspector
time="2024-01-23T11:36:58+08:00" level=debug msg="RunContainer: default exposed ports => map[docker.Port]struct {}{"65501/tcp":struct {}{}, "65502/tcp":struct {}{}}" app=slim cmd=build component=container.inspector
time="2024-01-23T11:36:58+08:00" level=debug msg="RunContainer: HostConfig.PublishAllPorts => true" app=slim cmd=build component=container.inspector
time="2024-01-23T11:36:59+08:00" level=debug msg="container HostConfig.NetworkMode => default len(ports)=2" app=slim cmd=build component=container.inspector op=container.Inspector.RunContainer
time="2024-01-23T11:36:59+08:00" level=debug msg="container NetworkSettings.Ports => map[docker.Port][]docker.PortBinding{"65501/tcp":[]docker.PortBinding{docker.PortBinding{HostIP:"0.0.0.0", HostPort:"32779"}}, "65502/tcp":[]docker.PortBinding{docker.PortBinding{Ho
stIP:"0.0.0.0", HostPort:"32778"}}}" app=slim cmd=build component=container.inspector op=container.Inspector.RunContainer
time="2024-01-23T11:36:59+08:00" level=debug msg=target.container.ipc.connect app=slim cmd=build component=container.inspector container.network= in.container=false ipc.mode=proxy op=container.Inspector.initContainerChannels port.cmd=32779 port.evt=32778 target=127.0.0.1
time="2024-01-23T11:36:59+08:00" level=debug msg="ipc.NewClient(127.0.0.1,32779,32778)"

time="2024-01-23T11:36:59+08:00" level=debug msg="channel.NewClient: connect wait timeout - 1m0s"
time="2024-01-23T11:36:59+08:00" level=debug msg="channel.NewClient: net.DialTimeout(tcp,127.0.0.1:32779,15s) [time=1705981019433380600]"
time="2024-01-23T11:36:59+08:00" level=debug msg="channel.Client.Write: remote=127.0.0.1:32779 -> local=127.0.0.1:35812 - conn.Write wc=75 err= [time=1705981019433625890]"
time="2024-01-23T11:36:59+08:00" level=debug msg="channel.Client.Read() - (0x4000091800)reader.ReadString => err=read tcp 127.0.0.1:35812->127.0.0.1:32779: read: connection reset by peer raw="""
time="2024-01-23T11:36:59+08:00" level=error msg="channel.Client.Read: read error (read tcp 127.0.0.1:35812->127.0.0.1:32779: read: connection reset by peer), exiting..."
time="2024-01-23T11:36:59+08:00" level=debug msg="verifyCommandChannel: client.Read error = read tcp 127.0.0.1:35812->127.0.0.1:32779: read: connection reset by peer"
time="2024-01-23T11:36:59+08:00" level=error msg="channel.NewCommandClient: channel verify error = read tcp 127.0.0.1:35812->127.0.0.1:32779: read: connection reset by peer"
time="2024-01-23T11:36:59+08:00" level=debug msg="channel.NewCommandClient: waiting before trying to connect again..."
time="2024-01-23T11:37:04+08:00" level=debug msg="channel.NewClient: connect wait timeout - 1m0s"
time="2024-01-23T11:37:04+08:00" level=debug msg="channel.NewClient: net.DialTimeout(tcp,127.0.0.1:32779,15s) [time=1705981024434679820]"
time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Write: remote=127.0.0.1:32779 -> local=127.0.0.1:54824 - conn.Write wc=75 err= [time=1705981024434960680]"
time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Read() - (0x4000131d40)reader.ReadString => err= raw="[<|]{\"tid\":\"1705981024434919360.40c26d7b6339d88e\",\"type\":\"ft.control\"}[|>]\n""
time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Read: got raw frame ='[<|]{"tid":"1705981024434919360.40c26d7b6339d88e","type":"ft.control"}[|>]\n'"
time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Read: frame data => tid=1705981024434919360.40c26d7b6339d88e type=ft.control body=''"
time="2024-01-23T11:37:04+08:00" level=debug msg="verifyCommandChannel: client.Read() (tid=1705981024434919360.40c26d7b6339d88e type=ft.control) result.data=''"
time="2024-01-23T11:37:04+08:00" level=debug msg="channel.NewClient: connect wait timeout - 1m0s"
time="2024-01-23T11:37:04+08:00" level=debug msg="channel.NewClient: net.DialTimeout(tcp,127.0.0.1:32778,15s) [time=1705981024435676060]"
time="2024-01-23T11:37:04+08:00" level=debug msg="ipc.Client.SendCommand() cmd channel call data='{"name":"cmd.monitor.start","data":{"obfuscate_metadata":false,"rta_source_ptrace":true,"app_name":"/usr/local/bin/supervisord","app_args":["-c","/etc/supervisord.conf"],"app_stdout_to_file":false,"app_stderr_to_file":false,"report_on_main_pid_exit":false,"keep_perms":true,"exclude_varlock_files":true,"include_cert_all":true,"include_new":true,"include_oslibs_net":true}}'\n"
time="2024-01-23T11:37:04+08:00" level=debug msg="channel.CommandClient.Call: calling c.Write()"
time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Write: remote=127.0.0.1:32779 -> local=127.0.0.1:54824 - conn.Write wc=456 err= [time=1705981024436243660]"
time="2024-01-23T11:37:04+08:00" level=debug msg="channel.CommandClient.Call: calling c.Read()"
time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Read() - (0x4000131d40)reader.ReadString => err= raw="[<|]{\"tid\":\"1705981024436186280.944e6d985ff836a8\",\"type\":\"ft.response\",\"body\":{\"status\":\"ok\"}}[|>]\n""
time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Read: got raw frame ='[<|]{"tid":"1705981024436186280.944e6d985ff836a8","type":"ft.response","body":{"status":"ok"}}[|>]\n'"

time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Read: frame data => tid=1705981024436186280.944e6d985ff836a8 type=ft.response body='{"status":"ok"}'"
time="2024-01-23T11:37:04+08:00" level=debug msg="channel.CommandClient.Call: c.Read() (tid=1705981024436186280.944e6d985ff836a8 type=ft.response) result.data='{"status":"ok"}'"
time="2024-01-23T11:37:04+08:00" level=debug msg="ipc.Client.SendCommand() cmd channel call response='{"status":"ok"}'\n"
time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Read() - (0x4000632d20)reader.ReadString => err= raw="[<|]{\"tid\":\"1705981024618945920.8dbd0a622033dd82\",\"type\":\"ft.event\",\"body\":{\"name\":\"event.monitor.start.done\"}}[|>]\n""
time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Read: got raw frame ='[<|]{"tid":"1705981024618945920.8dbd0a622033dd82","type":"ft.event","body":{"name":"event.monitor.start.done"}}[|>]\n'"
time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Read: frame data => tid=1705981024618945920.8dbd0a622033dd82 type=ft.event body='{"name":"event.monitor.start.done"}'"
time="2024-01-23T11:37:04+08:00" level=debug msg="ipc.Client.GetEvent(): channel.Recv() - done [tid=1705981024618945920.8dbd0a622033dd82 evt={"name":"event.monitor.start.done"}]\n"
time="2024-01-23T11:37:04+08:00" level=info msg="watching container monitor..." app=slim cmd=build
time="2024-01-23T11:37:04+08:00" level=debug msg="HTTP probe - available host ports => map[]"
time="2024-01-23T11:37:04+08:00" level=debug msg="HTTP probe - probe.Ports => []"
time="2024-01-23T11:37:04+08:00" level=debug msg="ipc.Client.SendCommand() cmd channel call data='{"name":"cmd.monitor.stop"}'\n"
time="2024-01-23T11:37:04+08:00" level=debug msg="channel.CommandClient.Call: calling c.Write()"
time="2024-01-23T11:37:04+08:00" level=debug msg="Docker event monitor stopped" app=slim cmd=build component=container.inspector op=container.Inspector.RunContainer
time="2024-01-23T11:37:04+08:00" level=debug msg="[SIGMON] Docker event monitor stopped" app=slim cmd=build component=container.inspector op=container.Inspector.RunContainer
time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Write: remote=127.0.0.1:32779 -> local=127.0.0.1:54824 - conn.Write wc=110 err= [time=1705981024619577360]"
time="2024-01-23T11:37:04+08:00" level=debug msg="channel.CommandClient.Call: calling c.Read()"
time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Read() - (0x4000131d40)reader.ReadString => err= raw="[<|]{\"tid\":\"1705981024619514130.f602640431173a91\",\"type\":\"ft.response\",\"body\":{\"status\":\"ok\"}}[|>]\n""
time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Read: got raw frame ='[<|]{"tid":"1705981024619514130.f602640431173a91","type":"ft.response","body":{"status":"ok"}}[|>]\n'"
time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Read: frame data => tid=1705981024619514130.f602640431173a91 type=ft.response body='{"status":"ok"}'"
time="2024-01-23T11:37:04+08:00" level=debug msg="channel.CommandClient.Call: c.Read() (tid=1705981024619514130.f602640431173a91 type=ft.response) result.data='{"status":"ok"}'"
time="2024-01-23T11:37:04+08:00" level=debug msg="ipc.Client.SendCommand() cmd channel call response='{"status":"ok"}'\n"
time="2024-01-23T11:37:04+08:00" level=debug msg="'stop' monitor response => '&{ok}'" app=slim cmd=build component=container.inspector
time="2024-01-23T11:37:04+08:00" level=info msg="waiting for the container to finish its work..." app=slim cmd=build component=container.inspector
time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Read() - (0x4000632d20)reader.ReadString => err=EOF raw="""
time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Read: connection done..."

time="2024-01-23T11:37:04+08:00" level=error msg="ipc.Client.GetEvent(): event channel error = EOF\n"
time="2024-01-23T11:37:04+08:00" level=debug msg="sensor event => ''" app=slim cmd=build component=container.inspector
time="2024-01-23T11:37:04+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(0x40001e8b00)\n\tgithub.com/slimtoolkit/slim/pkg/app/master/inspectors/container/container_inspector.go:1302 +0x228\ngithub.com/slimtoolkit/slim/pkg/app/master/command/build.OnCommand.func4()\n\tgithub.com/slimtoolkit/slim/pkg/app/master/command/build/handler.go:1146 +0x1b0\ngithub.com/slimtoolkit/slim/pkg/app.(*ExecutionContext).doCleanup(0x4000010400)\n\tgithub.com/slimtoolkit/slim/pkg/app/execontext.go:48 +0x64\ngithub.com/slimtoolkit/slim/pkg/app.(*ExecutionContext).Exit(0x40005b2390?, 0x1a878ed?)\n\tgithub.com/slimtoolkit/slim/pkg/app/execontext.go:29 +0x24\ngithub.com/slimtoolkit/slim/pkg/app/master/command/build.monitorContainer(0x4000010400, {0xffffd565fcd6, 0x11}, 0x40006240a0, {0x0, }, {, }, {0x1, 0x0, ...}, ...)\n\tgithub.com/slimtoolkit/slim/pkg/app/master/command/build/handler.go:1302 +0x334\ngithub.com/slimtoolkit/slim/pkg/app/master/command/build.OnCommand(, , {, _}, , {, }, {, }, {, ...}, ...)\n\tgithub.com/slimtoolkit/slim/pkg/app/master/command/build/handler.go:1165 +0x3c60\ngithub.com/slimtoolkit/slim/pkg/app/master/command/build.glob..func1(0x40005a8d80)\n\tgithub.com/slimtoolkit/slim/pkg/app/master/command/build/cli.go:754 +0x49dc\ngithub.com/urfave/cli/v2.(*Command).Run(0x2e13280, 0x40004f0600)\n\tgithub.com/urfave/cli/[email protected]/command.go:163 +0x4a8\ngithub.com/urfave/cli/v2.(*App).RunContext(0x40004f81a0, {0x1df8268?, 0x2e90c60}, {0x4000134000, 0x8, 0x8})\n\tgithub.com/urfave/cli/[email protected]/app.go:313 +0x808\ngithub.com/urfave/cli/v2.(*App).Run(...)\n\tgithub.com/urfave/cli/[email protected]/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"
time="2024-01-23T11:37:04+08:00" level=debug msg="sensor event => ''" app=slim cmd=build component=container.inspector
time="2024-01-23T11:37:04+08:00" level=debug msg="ipc.Client.SendCommand() cmd channel call data='{"name":"cmd.sensor.shutdown"}'\n"
time="2024-01-23T11:37:04+08:00" level=debug msg="channel.CommandClient.Call: calling c.Write()"
time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Write: remote=127.0.0.1:32779 -> local=127.0.0.1:54824 - conn.Write wc=113 err= [time=1705981024722136920]"
time="2024-01-23T11:37:04+08:00" level=debug msg="channel.CommandClient.Call: calling c.Read()"
time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Read() - (0x4000131d40)reader.ReadString => err=EOF raw="""
time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Read: connection done..."
time="2024-01-23T11:37:04+08:00" level=error msg="channel.CommandClient.Call: c.Read error = EOF"
time="2024-01-23T11:37:04+08:00" level=error msg="ipc.Client.SendCommand() cmd channel call error=EOF\n"
time="2024-01-23T11:37:04+08:00" level=debug msg="error sending 'shutdown' => 'EOF'" app=slim cmd=build component=container.inspector
time="2024-01-23T11:37:04+08:00" level=debug msg="'shutdown' sensor response => ''" app=slim cmd=build component=container.inspector
time="2024-01-23T11:37:04+08:00" level=error msg="dockerutil.CopyFromContainer: dclient.DownloadFromContainer() error = API error (404): Could not find the file /opt/_slim/artifacts/creport.json in container 4b74134b18150ee61d973f7ed8125c1f940a316b326f4a465642ddd716c1e2b1"
time="2024-01-23T11:37:04+08:00" level=error msg=dockerutil.CopyFromContainer app=slim cmd=build component=container.inspector container=4b74134b18150ee61d973f7ed8125c1f940a316b326f4a465642ddd716c1e2b1 error="API error (404): Could not find the file /opt/_slim/artifacts/creport.json in container 4b74134b18150ee61d973f7ed8125c1f940a316b326f4a465642ddd716c1e2b1" op=container.Inspector.ShutdownContainer

@kcq
Copy link
Member

kcq commented Jan 24, 2024

using --show-clogs --show-blogs --debug parameters to print more deatils below:

time="2024-01-23T11:36:58+08:00" level=debug msg="sysinfo => system.SystemInfo{Sysname:"Linux", Nodename:"Kylin.localdomain", Release:"4.19.90-25.17.73.po1.aarch64", Version:"#1 SMP Mon Nov 21 19:25:21 UTC 2022", Machine:"aarch64", Domainname:"(none)", OsBuild: "", Distro:system.DistroInfo{Name:"Kylin", Version:"1.3", DisplayName:"Kylin 1.3 (LTS)"}}" time="2024-01-23T11:36:58+08:00" level=debug msg="param.error.app.options - no app params" time="2024-01-23T11:36:58+08:00" level=debug msg="customImageTag='', additionalTags=[]string(nil)" app=slim cmd=build time="2024-01-23T11:36:58+08:00" level=debug msg="dockerclient.GetUnixSocketAddr(): found => {"address":"unix:///var/run/docker.sock","file_path":"/var/run/docker.sock","type":"file","perms":"","can_read":true,"can_write":true}\n" time="2024-01-23T11:36:58+08:00" level=debug msg="dockerclient.New: new Docker client (default) [6]" time="2024-01-23T11:36:58+08:00" level=debug msg="dockerclient.New: configured DOCKER_HOST env var" time="2024-01-23T11:36:58+08:00" level=info msg="image=base:aarch64 http-probe=true remove-file-artifacts=false image-overrides=map[] entrypoint=[] (false) cmd=[] (false) workdir='' env=[] expose=map[]" app=slim cmd=build time="2024-01-23T11:36:58+08:00" level=info msg="inspecting 'fat' image metadata..." app=slim cmd=build time="2024-01-23T11:36:58+08:00" level=debug msg="PrepareImageStateDirs(,sha256:414993f6fce4085130e9c71c0e7f175cd19279328d1ac31bfe9b2956d5022d75)" time="2024-01-23T11:36:58+08:00" level=debug msg="PrepareImageStateDirs - statePrefix=/usr/local/bin appDir=/usr/local/bin badPath=/usr/local/bin" time="2024-01-23T11:36:58+08:00" level=debug msg="PrepareImageStateDirs - overriding state path to /tmp/slim-state" time="2024-01-23T11:36:58+08:00" level=debug msg="PrepareImageStateDirs - statePrefix=/tmp/slim-state appDir=/usr/local/bin badPath=/usr/local/bin" time="2024-01-23T11:36:58+08:00" level=debug msg="PrepareImageStateDirs - copying sensor to state path (to /tmp/slim-state)" time="2024-01-23T11:36:58+08:00" level=debug msg="CopyRegularFile(false,/usr/local/bin/slim-sensor,/tmp/slim-state/slim-sensor,true)" time="2024-01-23T11:36:58+08:00" level=debug msg="PrepareImageStateDirs - removing existing state location: /tmp/slim-state/.slim-state/images/414993f6fce4085130e9c71c0e7f175cd19279328d1ac31bfe9b2956d5022d75/artifacts" time="2024-01-23T11:36:58+08:00" level=debug msg="PrepareImageStateDirs - created new image state location: /tmp/slim-state/.slim-state/images/414993f6fce4085130e9c71c0e7f175cd19279328d1ac31bfe9b2956d5022d75/artifacts" time="2024-01-23T11:36:58+08:00" level=debug msg="localVolumePath=/tmp/slim-state/.slim-state/images/414993f6fce4085130e9c71c0e7f175cd19279328d1ac31bfe9b2956d5022d75, artifactLocation=/tmp/slim-state/.slim-state/images/414993f6fce4085130e9c71c0e7f175cd19279328d1ac31bfe9b295 6d5022d75/artifacts, statePath=/tmp/slim-state, stateKey=414993f6fce4085130e9c71c0e7f175cd19279328d1ac31bfe9b2956d5022d75" app=slim cmd=build time="2024-01-23T11:36:58+08:00" level=info msg="processing 'fat' image info..." app=slim cmd=build time="2024-01-23T11:36:58+08:00" level=debug msg="IMAGE INSTRUCTIONS:" time="2024-01-23T11:36:58+08:00" level=debug msg="FROM scratch" time="2024-01-23T11:36:58+08:00" level=debug msg="# new image" time="2024-01-23T11:36:58+08:00" level=debug msg="\n# instruction set group 1\n" time="2024-01-23T11:36:58+08:00" level=debug msg="# Imported from -" time="2024-01-23T11:36:58+08:00" level=debug msg="# no instruction info" time="2024-01-23T11:36:58+08:00" level=debug msg="ADD file:e0da21694c1a19a84ab24a8086ca0a0e268ee07a7744a249e14d6e36c812f57e /root/.rpmmacros" time="2024-01-23T11:36:58+08:00" level=debug msg="ADD dir:b9c185d88446a1013d649c39abf48ff1e39b31c92b6c4c662b89fd96fede31e3 /root/.gpg" time="2024-01-23T11:36:58+08:00" level=debug msg="RUN gpg --import /root/.gpg/rpm_key.pub" time="2024-01-23T11:36:58+08:00" level=debug msg="WORKDIR /" time="2024-01-23T11:36:58+08:00" level=debug msg="# end of image: docker.internal.com/cicd_2694/-1.3-lts-aarch64:latest (id: tags: docker.internal.com/cicd_2694/kylin-1.3-lts-aarch64:latest)" time="2024-01-23T11:36:58+08:00" level=debug time="2024-01-23T11:36:58+08:00" level=debug msg="# new image" time="2024-01-23T11:36:58+08:00" level=debug msg="\n# instruction set group 2\n" time="2024-01-23T11:36:58+08:00" level=debug msg="RUN mkdir /root/.pip" time="2024-01-23T11:36:58+08:00" level=debug msg="COPY file:de1193e72e84591f5b3bfe2c6b7a33e33c1b603025cffae3386e5e2008c44671 /root/.pip" time="2024-01-23T11:36:58+08:00" level=debug msg="RUN yum install -y bzip2 gzip unzip zip file && \n\trm /usr/lib/locale/locale-archive && \n\tyum install -y zlib-devel && \n\tyum install -y dos2unix && \n\tyum install -y dmidecode && \n\tyum install -y libpcap && \n\tyum install -y python2 && \n\tyum clean all && \n\tdnf clean all && \n\tpython3 -m ensurepip && \n\tpip3 install supervisor==4.2.2" time="2024-01-23T11:36:58+08:00" level=debug msg="ENV LANG=zh_CN.UTF-8" time="2024-01-23T11:36:58+08:00" level=debug msg="ENV LC_ALL=zh_CN.UTF-8" time="2024-01-23T11:36:58+08:00" level=debug msg="COPY file:8b9c7591fbb54d79dbb3938cc88dd41a31c7cd28988901c1ac598d0e3aceebd1 /etc" time="2024-01-23T11:36:58+08:00" level=debug msg="CMD ["/usr/local/bin/supervisord","-c","/etc/supervisord.conf"]\n" time="2024-01-23T11:36:58+08:00" level=debug msg="# end of image: base:aarch64 (id: tags: base:aarch64,docker.internal.com/cicd_2694/base:aarch64)" time="2024-01-23T11:36:58+08:00" level=debug time="2024-01-23T11:36:58+08:00" level=debug msg="FatContainerCmd - [/usr/local/bin/supervisord -c /etc/supervisord.conf]" app=slim cmd=build component=container.inspector time="2024-01-23T11:36:58+08:00" level=info msg="starting instrumented 'fat' container..." app=slim cmd=build time="2024-01-23T11:36:58+08:00" level=debug msg="sensor.EnsureLocalBinary: sensor (/usr/local/bin/slim-sensor) perms => 0755" app=slim cmd=build component=container.inspector time="2024-01-23T11:36:58+08:00" level=debug msg="ensureSensorVolume: already have volume = slim-sensor.1.40.10" app=slim cmd=build component=container.inspector time="2024-01-23T11:36:58+08:00" level=debug msg="RunContainer: default exposed ports => map[docker.Port]struct {}{"65501/tcp":struct {}{}, "65502/tcp":struct {}{}}" app=slim cmd=build component=container.inspector time="2024-01-23T11:36:58+08:00" level=debug msg="RunContainer: HostConfig.PublishAllPorts => true" app=slim cmd=build component=container.inspector time="2024-01-23T11:36:59+08:00" level=debug msg="container HostConfig.NetworkMode => default len(ports)=2" app=slim cmd=build component=container.inspector op=container.Inspector.RunContainer time="2024-01-23T11:36:59+08:00" level=debug msg="container NetworkSettings.Ports => map[docker.Port][]docker.PortBinding{"65501/tcp":[]docker.PortBinding{docker.PortBinding{HostIP:"0.0.0.0", HostPort:"32779"}}, "65502/tcp":[]docker.PortBinding{docker.PortBinding{Ho stIP:"0.0.0.0", HostPort:"32778"}}}" app=slim cmd=build component=container.inspector op=container.Inspector.RunContainer time="2024-01-23T11:36:59+08:00" level=debug msg=target.container.ipc.connect app=slim cmd=build component=container.inspector container.network= in.container=false ipc.mode=proxy op=container.Inspector.initContainerChannels port.cmd=32779 port.evt=32778 target=127.0.0.1 time="2024-01-23T11:36:59+08:00" level=debug msg="ipc.NewClient(127.0.0.1,32779,32778)"

time="2024-01-23T11:36:59+08:00" level=debug msg="channel.NewClient: connect wait timeout - 1m0s" time="2024-01-23T11:36:59+08:00" level=debug msg="channel.NewClient: net.DialTimeout(tcp,127.0.0.1:32779,15s) [time=1705981019433380600]" time="2024-01-23T11:36:59+08:00" level=debug msg="channel.Client.Write: remote=127.0.0.1:32779 -> local=127.0.0.1:35812 - conn.Write wc=75 err= [time=1705981019433625890]" time="2024-01-23T11:36:59+08:00" level=debug msg="channel.Client.Read() - (0x4000091800)reader.ReadString => err=read tcp 127.0.0.1:35812->127.0.0.1:32779: read: connection reset by peer raw=""" time="2024-01-23T11:36:59+08:00" level=error msg="channel.Client.Read: read error (read tcp 127.0.0.1:35812->127.0.0.1:32779: read: connection reset by peer), exiting..." time="2024-01-23T11:36:59+08:00" level=debug msg="verifyCommandChannel: client.Read error = read tcp 127.0.0.1:35812->127.0.0.1:32779: read: connection reset by peer" time="2024-01-23T11:36:59+08:00" level=error msg="channel.NewCommandClient: channel verify error = read tcp 127.0.0.1:35812->127.0.0.1:32779: read: connection reset by peer" time="2024-01-23T11:36:59+08:00" level=debug msg="channel.NewCommandClient: waiting before trying to connect again..." time="2024-01-23T11:37:04+08:00" level=debug msg="channel.NewClient: connect wait timeout - 1m0s" time="2024-01-23T11:37:04+08:00" level=debug msg="channel.NewClient: net.DialTimeout(tcp,127.0.0.1:32779,15s) [time=1705981024434679820]" time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Write: remote=127.0.0.1:32779 -> local=127.0.0.1:54824 - conn.Write wc=75 err= [time=1705981024434960680]" time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Read() - (0x4000131d40)reader.ReadString => err= raw="[<|]{"tid":"1705981024434919360.40c26d7b6339d88e","type":"ft.control"}[|>]\n"" time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Read: got raw frame ='[<|]{"tid":"1705981024434919360.40c26d7b6339d88e","type":"ft.control"}[|>]\n'" time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Read: frame data => tid=1705981024434919360.40c26d7b6339d88e type=ft.control body=''" time="2024-01-23T11:37:04+08:00" level=debug msg="verifyCommandChannel: client.Read() (tid=1705981024434919360.40c26d7b6339d88e type=ft.control) result.data=''" time="2024-01-23T11:37:04+08:00" level=debug msg="channel.NewClient: connect wait timeout - 1m0s" time="2024-01-23T11:37:04+08:00" level=debug msg="channel.NewClient: net.DialTimeout(tcp,127.0.0.1:32778,15s) [time=1705981024435676060]" time="2024-01-23T11:37:04+08:00" level=debug msg="ipc.Client.SendCommand() cmd channel call data='{"name":"cmd.monitor.start","data":{"obfuscate_metadata":false,"rta_source_ptrace":true,"app_name":"/usr/local/bin/supervisord","app_args":["-c","/etc/supervisord.conf"],"app_stdout_to_file":false,"app_stderr_to_file":false,"report_on_main_pid_exit":false,"keep_perms":true,"exclude_varlock_files":true,"include_cert_all":true,"include_new":true,"include_oslibs_net":true}}'\n" time="2024-01-23T11:37:04+08:00" level=debug msg="channel.CommandClient.Call: calling c.Write()" time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Write: remote=127.0.0.1:32779 -> local=127.0.0.1:54824 - conn.Write wc=456 err= [time=1705981024436243660]" time="2024-01-23T11:37:04+08:00" level=debug msg="channel.CommandClient.Call: calling c.Read()" time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Read() - (0x4000131d40)reader.ReadString => err= raw="[<|]{"tid":"1705981024436186280.944e6d985ff836a8","type":"ft.response","body":{"status":"ok"}}[|>]\n"" time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Read: got raw frame ='[<|]{"tid":"1705981024436186280.944e6d985ff836a8","type":"ft.response","body":{"status":"ok"}}[|>]\n'"

time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Read: frame data => tid=1705981024436186280.944e6d985ff836a8 type=ft.response body='{"status":"ok"}'" time="2024-01-23T11:37:04+08:00" level=debug msg="channel.CommandClient.Call: c.Read() (tid=1705981024436186280.944e6d985ff836a8 type=ft.response) result.data='{"status":"ok"}'" time="2024-01-23T11:37:04+08:00" level=debug msg="ipc.Client.SendCommand() cmd channel call response='{"status":"ok"}'\n" time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Read() - (0x4000632d20)reader.ReadString => err= raw="[<|]{"tid":"1705981024618945920.8dbd0a622033dd82","type":"ft.event","body":{"name":"event.monitor.start.done"}}[|>]\n"" time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Read: got raw frame ='[<|]{"tid":"1705981024618945920.8dbd0a622033dd82","type":"ft.event","body":{"name":"event.monitor.start.done"}}[|>]\n'" time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Read: frame data => tid=1705981024618945920.8dbd0a622033dd82 type=ft.event body='{"name":"event.monitor.start.done"}'" time="2024-01-23T11:37:04+08:00" level=debug msg="ipc.Client.GetEvent(): channel.Recv() - done [tid=1705981024618945920.8dbd0a622033dd82 evt={"name":"event.monitor.start.done"}]\n" time="2024-01-23T11:37:04+08:00" level=info msg="watching container monitor..." app=slim cmd=build time="2024-01-23T11:37:04+08:00" level=debug msg="HTTP probe - available host ports => map[]" time="2024-01-23T11:37:04+08:00" level=debug msg="HTTP probe - probe.Ports => []" time="2024-01-23T11:37:04+08:00" level=debug msg="ipc.Client.SendCommand() cmd channel call data='{"name":"cmd.monitor.stop"}'\n" time="2024-01-23T11:37:04+08:00" level=debug msg="channel.CommandClient.Call: calling c.Write()" time="2024-01-23T11:37:04+08:00" level=debug msg="Docker event monitor stopped" app=slim cmd=build component=container.inspector op=container.Inspector.RunContainer time="2024-01-23T11:37:04+08:00" level=debug msg="[SIGMON] Docker event monitor stopped" app=slim cmd=build component=container.inspector op=container.Inspector.RunContainer time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Write: remote=127.0.0.1:32779 -> local=127.0.0.1:54824 - conn.Write wc=110 err= [time=1705981024619577360]" time="2024-01-23T11:37:04+08:00" level=debug msg="channel.CommandClient.Call: calling c.Read()" time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Read() - (0x4000131d40)reader.ReadString => err= raw="[<|]{"tid":"1705981024619514130.f602640431173a91","type":"ft.response","body":{"status":"ok"}}[|>]\n"" time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Read: got raw frame ='[<|]{"tid":"1705981024619514130.f602640431173a91","type":"ft.response","body":{"status":"ok"}}[|>]\n'" time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Read: frame data => tid=1705981024619514130.f602640431173a91 type=ft.response body='{"status":"ok"}'" time="2024-01-23T11:37:04+08:00" level=debug msg="channel.CommandClient.Call: c.Read() (tid=1705981024619514130.f602640431173a91 type=ft.response) result.data='{"status":"ok"}'" time="2024-01-23T11:37:04+08:00" level=debug msg="ipc.Client.SendCommand() cmd channel call response='{"status":"ok"}'\n" time="2024-01-23T11:37:04+08:00" level=debug msg="'stop' monitor response => '&{ok}'" app=slim cmd=build component=container.inspector time="2024-01-23T11:37:04+08:00" level=info msg="waiting for the container to finish its work..." app=slim cmd=build component=container.inspector time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Read() - (0x4000632d20)reader.ReadString => err=EOF raw=""" time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Read: connection done..."

time="2024-01-23T11:37:04+08:00" level=error msg="ipc.Client.GetEvent(): event channel error = EOF\n" time="2024-01-23T11:37:04+08:00" level=debug msg="sensor event => ''" app=slim cmd=build component=container.inspector time="2024-01-23T11:37:04+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(0x40001e8b00)\n\tgithub.com/slimtoolkit/slim/pkg/app/master/inspectors/container/container_inspector.go:1302 +0x228\ngithub.com/slimtoolkit/slim/pkg/app/master/command/build.OnCommand.func4()\n\tgithub.com/slimtoolkit/slim/pkg/app/master/command/build/handler.go:1146 +0x1b0\ngithub.com/slimtoolkit/slim/pkg/app.(*ExecutionContext).doCleanup(0x4000010400)\n\tgithub.com/slimtoolkit/slim/pkg/app/execontext.go:48 +0x64\ngithub.com/slimtoolkit/slim/pkg/app.(*ExecutionContext).Exit(0x40005b2390?, 0x1a878ed?)\n\tgithub.com/slimtoolkit/slim/pkg/app/execontext.go:29 +0x24\ngithub.com/slimtoolkit/slim/pkg/app/master/command/build.monitorContainer(0x4000010400, {0xffffd565fcd6, 0x11}, 0x40006240a0, {0x0, }, {, }, {0x1, 0x0, ...}, ...)\n\tgithub.com/slimtoolkit/slim/pkg/app/master/command/build/handler.go:1302 +0x334\ngithub.com/slimtoolkit/slim/pkg/app/master/command/build.OnCommand(, , {, _}, , {, }, {, }, {, ...}, ...)\n\tgithub.com/slimtoolkit/slim/pkg/app/master/command/build/handler.go:1165 +0x3c60\ngithub.com/slimtoolkit/slim/pkg/app/master/command/build.glob..func1(0x40005a8d80)\n\tgithub.com/slimtoolkit/slim/pkg/app/master/command/build/cli.go:754 +0x49dc\ngithub.com/urfave/cli/v2.(*Command).Run(0x2e13280, 0x40004f0600)\n\tgithub.com/urfave/cli/[email protected]/command.go:163 +0x4a8\ngithub.com/urfave/cli/v2.(*App).RunContext(0x40004f81a0, {0x1df8268?, 0x2e90c60}, {0x4000134000, 0x8, 0x8})\n\tgithub.com/urfave/cli/[email protected]/app.go:313 +0x808\ngithub.com/urfave/cli/v2.(*App).Run(...)\n\tgithub.com/urfave/cli/[email protected]/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" time="2024-01-23T11:37:04+08:00" level=debug msg="sensor event => ''" app=slim cmd=build component=container.inspector time="2024-01-23T11:37:04+08:00" level=debug msg="ipc.Client.SendCommand() cmd channel call data='{"name":"cmd.sensor.shutdown"}'\n" time="2024-01-23T11:37:04+08:00" level=debug msg="channel.CommandClient.Call: calling c.Write()" time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Write: remote=127.0.0.1:32779 -> local=127.0.0.1:54824 - conn.Write wc=113 err= [time=1705981024722136920]" time="2024-01-23T11:37:04+08:00" level=debug msg="channel.CommandClient.Call: calling c.Read()" time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Read() - (0x4000131d40)reader.ReadString => err=EOF raw=""" time="2024-01-23T11:37:04+08:00" level=debug msg="channel.Client.Read: connection done..." time="2024-01-23T11:37:04+08:00" level=error msg="channel.CommandClient.Call: c.Read error = EOF" time="2024-01-23T11:37:04+08:00" level=error msg="ipc.Client.SendCommand() cmd channel call error=EOF\n" time="2024-01-23T11:37:04+08:00" level=debug msg="error sending 'shutdown' => 'EOF'" app=slim cmd=build component=container.inspector time="2024-01-23T11:37:04+08:00" level=debug msg="'shutdown' sensor response => ''" app=slim cmd=build component=container.inspector time="2024-01-23T11:37:04+08:00" level=error msg="dockerutil.CopyFromContainer: dclient.DownloadFromContainer() error = API error (404): Could not find the file /opt/_slim/artifacts/creport.json in container 4b74134b18150ee61d973f7ed8125c1f940a316b326f4a465642ddd716c1e2b1" time="2024-01-23T11:37:04+08:00" level=error msg=dockerutil.CopyFromContainer app=slim cmd=build component=container.inspector container=4b74134b18150ee61d973f7ed8125c1f940a316b326f4a465642ddd716c1e2b1 error="API error (404): Could not find the file /opt/_slim/artifacts/creport.json in container 4b74134b18150ee61d973f7ed8125c1f940a316b326f4a465642ddd716c1e2b1" op=container.Inspector.ShutdownContainer

Where did you put the "--show-clogs" flag when you called "slim"? The shared logs only show the debug messages from the main app. It looks like the temporary container crashed and the main app errors out because the IPC channels to the sensor in the crashed container are down. The command should look like this: slim --debug build --show-clogs YOUR_CONTAINER_IMAGE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants