Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Error while running slc start #5

Open
schitransh opened this issue Jun 22, 2015 · 5 comments
Open

Getting Error while running slc start #5

schitransh opened this issue Jun 22, 2015 · 5 comments
Assignees

Comments

@schitransh
Copy link

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
Copy link

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
Copy link
Author

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)
âââ [email protected] (088c67d)
âââ [email protected] (3221b91)
âââ [email protected] (13baab4)
âââ [email protected] (45d254a)
âââ [email protected] (f46e58f)
âââ [email protected] (e59f8b5)
ââ⬠[email protected] (73ea01d)
â âââ [email protected]
âââ [email protected] (150f12b)
âââ [email protected]
âââ [email protected]

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)
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]
ââ⬠[email protected]
â âââ [email protected]
âââ [email protected]
âââ [email protected]
âââ [email protected]

please help me on this issue.
Thanks

@schitransh
Copy link
Author

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
Copy link
Author

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 [email protected] 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":"[email protected]","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 [email protected] 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
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants