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

socket: too many open filesエラーになる #32

Open
zom-yoshidan opened this issue Jan 31, 2020 · 0 comments
Open

socket: too many open filesエラーになる #32

zom-yoshidan opened this issue Jan 31, 2020 · 0 comments

Comments

@zom-yoshidan
Copy link

zom-yoshidan commented Jan 31, 2020

Github Enterprise Cloudを利用している環境です。
tokenの部分はトリミングして表記していますが実行時には正式なものを指定しました。

$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.14.6
BuildVersion:	18G95

$ go version
go version go1.13.7 darwin/amd64

$ ghch --token a6b48d88...
Get https://api.github.com/repos/org_name/repository_name/pulls/656: dial tcp 18.179.245.253:443: socket: too many open files
Get https://api.github.com/repos/org_name/repository_name/pulls/249: dial tcp 18.179.245.253:443: socket: too many open files
Get https://api.github.com/repos/org_name/repository_name/pulls/647: dial tcp 18.179.245.253:443: socket: too many open files

中略
途中からエラーの内容が変わりました

Get https://api.github.com/repos/org_name/repository_name/pulls/1309: tls: short read from Rand: open /dev/urandom: too many open files
Get https://api.github.com/repos/org_name/repository_name/pulls/227: x509: certificate signed by unknown authority
Get https://api.github.com/repos/org_name/repository_name/pulls/290: x509: certificate signed by unknown authority

複数回試したところ下記のようなエラーも起きていました。

$ ghch --token a6b48d88...
Get https://api.github.com/repos/org_name/repository_name/pulls/57: dial tcp: lookup api.github.com: no such host
Get https://api.github.com/repos/org_name/repository_name/pulls/681: dial tcp 18.179.245.253:443: socket: too many open files
Get https://api.github.com/repos/org_name/repository_name/pulls/206: dial tcp: lookup api.github.com: no such host

一応GITHUB_TOKEN環境変数を設定する方式、--token=を使うなどのパターンも試しましたが結果は変わりませんでした。

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

1 participant