Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

dep status fails (without detail until you run it -v) -> pipe: too many open files (256 fd limit hit) #1727

@ldemailly

Description

@ldemailly

latest dep from fresh go get -u github.com/golang/dep/cmd/dep

$ go version
go version go1.10 darwin/amd64

on the back of a successful "dep ensure"

$ dep status
...
The status of 52 projects are unknown due to errors. Rerun with `-v` flag to see details.
failed to fetch updates

with -v

(143/144) k8s.io/kube-openapi
(144/144) k8s.io/kubernetes

failed to list versions for https://github.com/prometheus/client_model: : pipe: too many open files
failed to list versions for https://gopkg.in/russross/blackfriday.v2: : pipe: too many open files
failed to list versions for https://github.com/golang/groupcache: : pipe: too many open files
failed to list versions for https://github.com/prometheus/common: : open /dev/null: too many open files
failed to list versions for https://gopkg.in/square/go-jose.v2: : pipe: too many open files
failed to list versions for https://github.com/kubernetes/apimachinery: : open /dev/null: too many open files
failed to list versions for https://github.com/huandu/xstrings: : pipe: too many open files

this is because:

$ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
file size               (blocks, -f) unlimited
max locked memory       (kbytes, -l) unlimited
max memory size         (kbytes, -m) unlimited
open files                      (-n) 256
pipe size            (512 bytes, -p) 1
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 709
virtual memory          (kbytes, -v) unlimited

256 fd is the standard mac limit; I think dep should limit itself to that many or have some option to limit itself

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions