strongloop / strong-agent

Profile, control, and monitor Node.js processes and clusters
http://strongloop.com/node-js/devops-tools/
Other
62 stars 9 forks source link

Getting Error while running slc start #5

Open schitransh opened 9 years ago

schitransh commented 9 years ago

2015-06-22T11:05:23.505Z pid:17567 worker:6 INFO strong-agent[17567] started profiling agent 2015-06-22T11:05:24.074Z pid:17537 worker:0 ERROR supervisor worker id 6 (pid 17567) accidental exit with SIGSEGV 2015-06-22T11:05:25.411Z pid:17537 worker:0 INFO supervisor started worker 7 (pid 17572) 2015-06-22T11:05:25.556Z pid:17572 worker:7 INFO strong-agent v1.6.0 profiling app 'kodiakLCMS' pid '17572' 2015-06-22T11:05:25.558Z pid:17572 worker:7 INFO strong-agent[17572] started profiling agent 2015-06-22T11:05:26.082Z pid:17537 worker:0 ERROR supervisor worker id 7 (pid 17572) accidental exit with SIGSEGV 2015-06-22T11:05:27.468Z pid:17537 worker:0 INFO supervisor started worker 8 (pid 17582) 2015-06-22T11:05:27.617Z pid:17582 worker:8 INFO strong-agent v1.6.0 profiling app 'kodiakLCMS' pid '17582' 2015-06-22T11:05:27.619Z pid:17582 worker:8 INFO strong-agent[17582] started profiling agent Command "log-dump" on "pmctl" failed with Error: connect ECONNREFUSED

After that it was stopped.

Please let me know any configuration missing.

sam-github commented 9 years ago

What command did you run that gave that output? What is slc -v?

Could you try to reproduce this by runnin slc pm --base=~/.strong-pm --control=~/.strong-pm/pmctl, and then doing slc ctl start; slc ctl log-dump 1 in another window?

schitransh commented 9 years ago

Thanks sam for reply :) To give output : i have given command ./../node-v0.12.4-linux-x64/bin/slc ctl log-dump kodiakLCMS

[root@SA_206 kodiak_lcms]# ./../node-v0.12.4-linux-x64/bin/slc -v strongloop v4.0.5 (node v0.12.4) âââ strong-arc@1.4.3 (088c67d) âââ strong-build@2.0.2 (3221b91) âââ strong-deploy@2.2.2 (13baab4) âââ strong-pm@4.3.1 (45d254a) âââ strong-registry@1.1.5 (f46e58f) âââ strong-start@1.2.0 (e59f8b5) ââ⬠strong-supervisor@2.0.1 (73ea01d) â âââ strong-agent@1.6.0 âââ generator-loopback@1.10.0 (150f12b) âââ node-inspector@0.7.4 âââ nodefly-register@0.3.3

When i am running command which you have suggested :

[root@SA_206 kodiak_lcms]# ./../node-v0.12.4-linux-x64/bin/slc pm --base=~/.strong-pm --control=~/.strong-pm/pmctl slc pm: StrongLoop PM v4.3.1 (API v6.1.0) listening on port 8701 slc pm: control listening on path /home/chitransh/kodiak_lcms/~/.strong-pm/pmctl slc pm: listen on 8701, work base is /home/chitransh/kodiak_lcms/~/.strong-pm, driver is direct-driver

and another window :

[root@SA_206 kodiak_lcms]# ./../node-v0.12.4-linux-x64/bin/slc ctl start kodiakLCMS;./../node-v0.12.4-linux-x64/bin/slc ctl log-dump 1 Command "start" on "/var/lib/strong-pm/pmctl" failed with Error: connect ECONNREFUSED Command "log-dump" on "/var/lib/strong-pm/pmctl" failed with Error: connect ECONNREFUSED

it is not connecting.

but if i am starting strong-pm service like :

[root@SA_206 kodiak_lcms]# /sbin/initctl start strong-pm strong-pm start/running, process 6847

[root@SA_206 kodiak_lcms]# ./../node-v0.12.4-linux-x64/bin/slc ctl start kodiakLCMS;./../node-v0.12.4-linux-x64/bin/slc ctl log-dump 1 Service: "kodiakLCMS" Instance Response 1 no current application Command "start" on "/var/lib/strong-pm/pmctl" failed with error No application running, no log to dump

package.json in application folder: { "name": "kodiakLCMS", "version": "1.0.0", "main": "server/server.js", "scripts": { "pretest": "jshint ." }, "dependencies": { "compression": "^1.0.3", "cors": "^2.5.2", "errorhandler": "^1.1.1", "loopback": "^2.14.0", "loopback-boot": "^2.6.5", "loopback-datasource-juggler": "^2.19.0", "serve-favicon": "^2.0.1" }, "optionalDependencies": { "loopback-explorer": "^1.1.0" }

i am not getting where is the issues because same application was working with older slc version like. [root@SA_206 bin]# ./slc -v strongloop v3.1.2 (node v0.12.4) âââ strong-arc@1.2.0 âââ strong-build@1.0.3 âââ strong-deploy@1.2.0 âââ strong-pm@3.2.0 âââ strong-registry@1.1.4 âââ strong-start@1.0.3 ââ⬠strong-supervisor@1.5.2 â âââ strong-agent@1.5.1 âââ generator-loopback@1.9.1 âââ node-inspector@0.7.4 âââ nodefly-register@0.3.3

please help me on this issue. Thanks

schitransh commented 9 years ago

I have deploy application in process manager and then run below command the getting error like [root@SA_206 kodiak_lcms]# ./../node-v0.12.4-linux-x64/bin/slc ctl start kodiakLCMS;./../node-v0.12.4-linux-x64/bin/slc ctl log-dump --follow Command "start" on "/var/lib/strong-pm/pmctl" failed with Error: Unknown "ServerService" id "undefined". Command "log-dump" on "/var/lib/strong-pm/pmctl" failed with Error: Unknown "ServerService" id "undefined".

schitransh commented 9 years ago

Hi Sam

Now able to run application but when i am running command for log then getting error like.

./../node-v0.12.4-linux-x64/bin/slc ctl -C http://127.0.0.1:8701 log-dump kodiakLCMS --follow

2015-06-23T11:07:19.815Z pid:21438 worker:3 INFO strong-agent not profiling, agent metrics requires a valid license. 2015-06-23T11:07:19.815Z pid:21438 worker:3 Please contact sales@strongloop.com for assistance. 2015-06-23T11:07:19.815Z pid:21443 worker:4 {"name":"Logger","hostname":"SA_206","pid":21443,"module":"data_manager","class":"Main","level":30,"msg":" creating users :: [{\"firstName\":\"abc\",\"lastName\":\"Admin\",\"email\":\"admin@work.com\",\"username\":\"admin\",\"password\":\"123!\",\"depid\":\"abc\",\"privilege\":0}]","time":"2015-06-23T11:07:19.815Z","v":0} 2015-06-23T11:07:19.821Z pid:21443 worker:4 INFO strong-agent not profiling, agent metrics requires a valid license. 2015-06-23T11:07:19.821Z pid:21443 worker:4 Please contact sales@strongloop.com for assistance. 2015-06-23T11:07:21.965Z pid:21407 worker:0 INFO supervisor started worker 5 (pid 21464) 2015-06-23T11:07:21.965Z pid:21407 worker:0 INFO supervisor resized to 4 2015-06-23T11:07:22.278Z pid:21464 worker:5 INFO strong-agent v1.6.0 profiling app 'kodiakLCMS' pid '21464' 2015-06-23T11:07:22.280Z pid:21464 worker:5 INFO strong-agent[21464] started profiling agent 2015-06-23T11:07:23.749Z pid:21407 worker:0 ERROR supervisor worker id 4 (pid 21443) accidental exit with SIGSEGV 2015-06-23T11:07:23.763Z pid:21407 worker:0 ERROR supervisor worker id 3 (pid 21438) accidental exit with #SIGSEGV# 2015-06-23T11:07:23.789Z pid:21407 worker:0 ERROR supervisor worker id 2 (pid 21433) accidental exit with SIGSEGV 2015-06-23T11:07:25.753Z pid:21473 worker:0 INFO strong-agent v1.6.0 profiling app 'kodiakLCMS' pid '21473'

Worker process is exit with #SIGSEGV# error

Not sure what was causing issues. Please help us

Thanks Chitransh

sam-github commented 9 years ago

SIGSEGV is either a bug in node/v8, or your build of node/v8, or possibly a problem with the agent.

Do you have a core dump from the worker?