xiaonanln / goworld

Scalable Distributed Game Server Engine with Hot Swapping in Golang
Apache License 2.0
2.57k stars 460 forks source link

Start dispatcher failed!!! #70

Open hamidfzm opened 6 years ago

hamidfzm commented 6 years ago
╰─± goworld start examples/chatroom_demo
> arguments: start examples/chatroom_demo
> go search paths: /usr/local/go:/Users/hamidfzm/Go
> goworld directory found: /Users/hamidfzm/Go/src/github.com/xiaonanln/goworld
> start dispatchers ...
info    Using config file: /Users/hamidfzm/Go/src/github.com/xiaonanln/goworld/goworld.ini  {"ts": "2018-07-19T01:12:39.033+0430"}
info    >>> config <<< debug = true {"ts": "2018-07-19T01:12:39.034+0430"}
info    >>> config <<< dispatcher count = 1 {"ts": "2018-07-19T01:12:39.034+0430"}
info    >>> config <<< game count = 1   {"ts": "2018-07-19T01:12:39.034+0430"}
info    >>> config <<< gate count = 1   {"ts": "2018-07-19T01:12:39.034+0430"}
info    >>> config <<< storage type = redis {"ts": "2018-07-19T01:12:39.034+0430"}
info    >>> config <<< KVDB type = redis    {"ts": "2018-07-19T01:12:39.034+0430"}
> dispatcher ids: [1]
! start dispatcher failed, see dispatcher.log for error: fork/exec /Users/hamidfzm/Go/src/github.com/xiaonanln/goworld/components/dispatcher/dispatcher: resource temporarily unavailable

I'm trying to start demo chat server but I get error from dispatcher start and the dispatcher.log is empty. What is the problem here?

xiaonanln commented 6 years ago

This could be due to some resource limit. I have never seen error like this.

hamidfzm commented 6 years ago

@xiaonanln What do you mean by resource limit? btw I'm running this code on MacBookPro with lots of RAM and storage space

xiaonanln commented 6 years ago

things like max process num, open files, etc

JasonHXiang commented 5 years ago

dispatcher启动失败,和楼主老哥的问题描述类似,使用mongodb。 @xiaonanln

mornone commented 5 years ago

I have the same problem when executing the command, 'goworld start examples/unity_demo/'. then solved by executing the following command,"goworld build examples/unity_demo" someone can try it