slimtoolkit / slimtoolkit/slim

Connection reset by peer channel.Client.Read

Open
#810 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Go
Stars
23.4k
Forks
840
PR merge metrics
No merged PRs in 30d

Description

I run command and see read error channel.Client.Read: read error , but all artifacts and slimed image exist

slim build --http-probe=false --include-path=/usr/local/share/ca-certificates/ --include-path=/root --include-path=/bin --include-path=/usr/bin --include-path=/usr/lib --include-path=/usr/local --target registry.local/devops-infra/nettools:0.1.1

cmd=slim info=exec message='changing continue-after from probe to nothing because http-probe is disabled' 
cmd=slim info=exec message='changing continue-after to enter' 
cmd=slim state=started
cmd=slim info=cmd.input.params tags='' image-build-engine='internal' target.type='image' target.image='registry.local/devops-infra/nettools:0.1.1' continue.mode='enter' rt.as.user='true' keep.perms='true' 
cmd=slim state=image.inspection.start
cmd=slim info=image id='sha256:b9cca97c6466380e62927c20ba0ed0d120a583e35150b094c5377ecab9fa6085' size.bytes='178079766' size.human='178 MB' 
cmd=slim info=image.stack id='sha256:b9cca97c6466380e62927c20ba0ed0d120a583e35150b094c5377ecab9fa6085' index='0' name='harbor.local/devops-infra/nettools:0.1.1' 
cmd=slim state=image.inspection.done
cmd=slim state=container.inspection.start
cmd=slim info=sensor volume='mint-sensor.x.1.42.4' location='/usr/local/bin/mint-sensor' filemode='-rwxr-xr-x' version='linux/amd64|ALP|x.1.42.4|5ee41eee4c93be3e9c753ac164f19d9c5cf8c57e|2025-07-29_07:57:29AM|x' 
cmd=slim info=container status='created' name='mintk_414237_20251031114304' id='7f093b65f9020e8770187b7074e9c09f5162d19bfe0c13883efb378c3b4a3368' 
cmd=slim info=container name='mintk_414237_20251031114304' id='7f093b65f9020e8770187b7074e9c09f5162d19bfe0c13883efb378c3b4a3368' status='running' 
cmd=slim info=container message='obtained IP address' ip='172.17.0.3' 

time="2025-10-31T14:43:05+03:00" level=error msg="channel.Client.Read: read error (read tcp 127.0.0.1:34392->127.0.0.1:32786: read: connection reset by peer), exiting..."
time="2025-10-31T14:43:05+03:00" level=error msg="channel.NewCommandClient: channel verify error = read tcp 127.0.0.1:34392->127.0.0.1:32786: read: connection reset by peer"


cmd=slim info=cmd.startmonitor status='sent' 
cmd=slim info=event.startmonitor.done status='received' 
cmd=slim info=container name='mintk_414237_20251031114304' id='7f093b65f9020e8770187b7074e9c09f5162d19bfe0c13883efb378c3b4a3368' target.port.list='' target.port.info='' message='YOU CAN USE THESE PORTS TO INTERACT WITH THE CONTAINER' 
cmd=slim info=continue.after mode='enter' message='provide the expected input to allow the container inspector to continue its execution' 
cmd=slim prompt='USER INPUT REQUIRED, PRESS <ENTER> WHEN YOU ARE DONE USING THE CONTAINER'

cmd=slim state=container.inspection.finishing
cmd=slim state=container.inspection.artifact.processing
cmd=slim state=container.inspection.done
cmd=slim state=building message="building optimized image" engine=internal 
cmd=slim state=completed
cmd=slim info=results size.optimized='128 MB' status='MINIFIED' by='1.39X' size.original='178 MB' 
cmd=slim info=results image-build-engine='internal' image.name='registry.local/devops-infra/nettools.slim' image.size='128 MB' image.id='sha256:9db34aa7b20b0817cf3351b30fb6bf32d1057f07722b2dfdc2fdd2535c7caa69'
image.digest='sha256:e1c070fcf2522de9a171c521621c7567487d266e124dadd9459ed02a7b7d5056' has.data='true' 
cmd=slim info=results artifacts.location='/tmp/mint-state/.mint-state/images/b9cca97c6466380e62927c20ba0ed0d120a583e35150b094c5377ecab9fa6085/artifacts' 
cmd=slim info=results artifacts.report='creport.json' 
cmd=slim info=results artifacts.dockerfile.reversed='Dockerfile.reversed' 
cmd=slim info=results artifacts.seccomp='registry.local-devops-infra-nettools-seccomp.json' 
cmd=slim info=results artifacts.apparmor='registry.local-devops-infra-nettools-apparmor-profile' 
cmd=slim state=done
cmd=slim info=commands message='use the xray command to learn more about the optimize image' 
cmd=slim info=report file='slim.report.json' 
cmd=slim info=version status='OUTDATED' local='x.1.42.4' current='x.1.42.5' 
cmd=slim message='Your version of MinToolkit is out of date! Use `mint update` to get the latest version.'
app='mint' message='GitHub Discussions' info='https://github.com/mintoolkit/mint/discussions'
app='mint' message='Join the CNCF Slack channel to ask questions or to share your feedback' info='https://cloud-native.slack.com/archives/C059QP1RH1S'
app='mint' message='Join the Discord server to ask questions or to share your feedback' info='https://discord.gg/fAvq4ruKsG'

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the reported slim build command with MinToolkit x.1.42.4 and inspect the channel.Client.Read and channel.NewCommandClient errors alongside the container-inspection log. Compare the behavior with the current x.1.42.5 release. Done means the connection-reset cause is identified and the reported command completes without the channel error, or the remaining limitation is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.