pm2 start bin/www -i 0 node v 0.12.4 pm2 0.12.15
2015-05-29 11:21:17: [PM2] Error caught by domain:
PM2: AssertionError: false == true
PM2: at SharedHandle.add (cluster.js:97:3)
PM2: at queryServer (cluster.js:480:12)
PM2: at Worker.onmessage (cluster.js:438:7)
PM2: at ChildProcess.<anonymous> (cluster.js:692:8)
PM2: at ChildProcess.emit (events.js:129:20)
PM2: at handleMessage (child_process.js:324:10)
PM2: at Pipe.channel.onread (child_process.js:352:11)
PM2: 2015-05-29 11:21:17: [PM2] Automatic pm2 update failed. Killing PM2 daemon and its processes…
PM2: 2015-05-29 11:21:17: pm2 has been killed by signal, dumping process list before exit…
PM2: 2015-05-29 11:21:17: Stopping app:www id:0
PM2: 2015-05-29 11:21:17: App name:www id:0 disconnected
PM2: 2015-05-29 11:21:17: Process with pid 7621 still not killed, retrying…
PM2: 2015-05-29 11:21:17: Process with pid 7621 still not killed, retrying…
PM2: 2015-05-29 11:21:17: Process with pid 7621 still not killed, retrying…
PM2: 2015-05-29 11:21:17: App name:www id:0 exited with code SIGTERM
PM2: 2015-05-29 11:21:17: Process with pid 7621 killed
PM2: 2015-05-29 11:21:17: Stopping app:www id:1
没有具体点的代码?
bin/www这就是问题https://github.com/i5ting/express-starter
@i5ting 我查到 pm2官方Issue里面有人遇到这个问题,pm2的人说 是 node 0.12.1中已经修复的bug
这个具体和 bin/www 有什么关系? bin/www 不就是 express项目启动的入口吗
@skipify 是,但是pm2不能这样用,so,你需要把www里的内容放到app.js里,我给你的链接项目就是这样处理的,你没有仔细看啊
@i5ting 不会我 我新建一个 express 项目 直接 sudo pm2 start bin/www -i 0 就能启动起来
@chenjiyong 我的也可以启动起来,但是偶尔会出现 一开始那个错误。
我是使用了rsa登录。
当打开浏览器第一次登录的时候没有问题 退出当前用户 换个用户登录就出现了这个断言的问题