Beego: 在项目目录通过vendor管理依赖,bee run运行时报 Fail to watch directory...too many open files

Created on 27 Jul 2017  ·  4Comments  ·  Source: astaxie/beego

我使用glide来管理依赖库,它在项目文件夹下生成了vendor文件夹,把依赖库都搬到了vendor。
终端执行:bee run,最后报错以下信息:

2017/07/27 09:40:23 [ERRO] Fail to watch directory[open /myspace/workplace/go-workspace/projects/src/aisms_server/vendor/github.com/astaxie/beego/plugins/cors: too many open files]

Most helpful comment

I met the same problem on macOS
Here is my solution:
use ulimit -a to check your file descriptors limit, try ulimit -S -n 2048 to increase it
then run again
check kern.maxfilesperproc and kern.maxfiles if necessary

All 4 comments

what's your bee version? The latest bee already exclude the vendor folder by default.

please use bee help run to check the details

谢谢,原来版本问题,我update最新版后,已经解决。

I met the same problem on macOS
Here is my solution:
use ulimit -a to check your file descriptors limit, try ulimit -S -n 2048 to increase it
then run again
check kern.maxfilesperproc and kern.maxfiles if necessary

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kaushiksriram100 picture kaushiksriram100  ·  3Comments

im-here picture im-here  ·  4Comments

astaxie picture astaxie  ·  4Comments

microyahoo picture microyahoo  ·  5Comments

AvoncourtPartners picture AvoncourtPartners  ·  4Comments