Giter Site home page Giter Site logo

Comments (12)

mattmoor avatar mattmoor commented on July 16, 2024

That's... exciting :)

I wonder if updating will help, I found this.

from distroless.

drigz avatar drigz commented on July 16, 2024

Yep, found that too, although the version in cc:debug is much more recent:

BusyBox v1.27.1 (2017-07-18 19:24:44 CEST) multi-call binary.

from distroless.

drigz avatar drigz commented on July 16, 2024

Also, apparently that's only for certain directories:

        /*
         * Try to detect broken toolbox/busybox binaries (see
         * https://code.google.com/p/busybox-android/issues/detail?id=1)
         * 
         * It is giving "Value too large for defined data type" on certain file operations (e.g. ls
         * and chown) in certain directories (e.g. /data/data)
         */

from distroless.

zdicesare avatar zdicesare commented on July 16, 2024

We also ran into this, and it turns out that there is a busybox config setting CONFIG_LFS that it must be compiled with to support working with large files. Without it you may encounter errors in ls, rm, etc.

The provided busybox binaries appear to be not compiled with that flag. We built busybox from source using the default config to resolve this. The busybox http_file in distroless' WORKSPACE is using a default provided binary.

from distroless.

tejal29 avatar tejal29 commented on July 16, 2024

I checked, the latest binary, https://busybox.net/downloads/binaries/1.27.1-i686/config has CONFIG_LFS=y set.
This does not exist anymore.

tejaldesai@tejaldesai$ kubectl exec -it testdep-77888775fb-psf82 sh
/ # ls
busybox  etc      lib64    sys      usr
dev      lib      proc     tmp      var
/ # 

from distroless.

jsravn avatar jsravn commented on July 16, 2024

Is this released in the latest gcr.io/distroless/base:debug tag? Still experiencing it.

from distroless.

drigz avatar drigz commented on July 16, 2024

I'm also seeing it:

/root # busybox | head -n 1
BusyBox v1.27.1 (2017-07-18 19:24:44 CEST) multi-call binary.
/root # ls
ls: can't open '.': Value too large for defined data type

on a GKE cluster, node version 1.9.4-gke.1, machine type n1-standard-4

from distroless.

hrfuller avatar hrfuller commented on July 16, 2024

I am also seeing this in GKE running a busybox on top of the container optimized os 4.14.22+ kernel. The busybox version is the same one that @tejal29 listed as working BusyBox v1.27.1 (2017-07-18 19:24:44 CEST) multi-call binary.

from distroless.

tejal29 avatar tejal29 commented on July 16, 2024

Somehow, i cant reproduce this on my end.

 kubectl run testdep --image=gcr.io/distroless/cc:debug --command -- sleep 999999
deployment.apps/testdep created

tejaldesai@tejaldesai~:$ kubectl get po
NAME                         READY     STATUS             RESTARTS   AGE
testdep-6fdff65d5b-xjsh7     1/1       Running            0          15s
tejaldesai@tejaldesai~:$ kubectl exec -it testdep-6fdff65d5b-xjsh7 sh
/ # ls
busybox  etc      lib      proc     tmp      var
dev      home     lib64    sys      usr
/ # busybox | head -n 1
BusyBox v1.27.1 (2017-07-18 19:24:44 CEST) multi-call binary.

from distroless.

tejal29 avatar tejal29 commented on July 16, 2024

can you provide me with your docker build file?

from distroless.

hrfuller avatar hrfuller commented on July 16, 2024

I can't seem to recreate this in our GKE cluster anymore. Its possible some nodes were updated, either the underlying kernel or the k8s version.

from distroless.

cpick avatar cpick commented on July 16, 2024

I suspect this was the same root cause as #225

from distroless.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.