Wercker在MacOS上崩溃,PANIC打开了太多文件

时间:2016-04-28 15:46:33

标签: macos docker wercker

我在Mac OS上运行wercker.com。偶尔,wercker崩溃并出现以下错误消息,尽管容器仍在运行:

PANIC dial tcp 192.168.99.100:2376: socket: too many open files
panic: (*logrus.Entry) (0x6bfa60,0xc8202ceb00)

goroutine 2101 [running]:
github.com/wercker/wercker/vendor/github.com/Sirupsen/logrus.(*Entry).log(0xc8202ceb00, 0x0, 0xc8203d87c0, 0x39)
    /gopath/src/github.com/wercker/wercker/vendor/github.com/Sirupsen/logrus/entry.go:103 +0x5fb
github.com/wercker/wercker/vendor/github.com/Sirupsen/logrus.(*Entry).Panic(0xc8202ceb00, 0xc8203ebd30, 0x1, 0x1)
    /gopath/src/github.com/wercker/wercker/vendor/github.com/Sirupsen/logrus/entry.go:148 +0x7c
github.com/wercker/wercker/docker.(*WatchStep).Execute.func5(0xc82037ba40, 0xc8202ceb40, 0xc820178640, 0xc82005cd60, 0xc820165800, 0x40, 0xc8203b5860, 0xc82010bce0, 0xc82037b8c0)
    /gopath/src/github.com/wercker/wercker/docker/watchstep.go:297 +0x723
created by github.com/wercker/wercker/docker.(*WatchStep).Execute
    /gopath/src/github.com/wercker/wercker/docker/watchstep.go:312 +0x91d

...

我正在容器内运行一个Typescript Node.js应用程序,该应用程序经常通过wercker的“internal / watch”重新启动。在IDE的容器之外,Typescript被编译为JS,但所有文件都与容器共享。

避免此问题的最佳方法是什么?

1 个答案:

答案 0 :(得分:2)

设置本地文件限制后,它正在运行。

请参阅:Is there a fix for the “Too many open files in system” error on OS X 10.7.1