Created
May 18, 2015 20:35
-
-
Save crandmck/d780ac18a34da84c1229 to your computer and use it in GitHub Desktop.
Failure of slc start
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
express-example-app rand$ DEBUG=* slc start | |
slc slc.run: +0ms argv [ 'start' ] options { _: [ 'start' ], '$0': 'slc' } | |
slc loadCommand +3ms name start run? function usage? object | |
strong-start:start app is "." +1s | |
strong-start:pm start +2ms | |
strong-start:pm alive? undefined +4ms | |
strong-start:pm pm is alive +1ms | |
strong-start:start deploy to "http://127.0.0.1:8701" app "." +0ms | |
strong-mesh-models:client connecting to http://127.0.0.1:8701/api +1ms | |
express:application compile etag weak +1ms | |
express:application compile query parser extended +0ms | |
express:application compile trust proxy false +0ms | |
express:application booting in development mode +0ms | |
loopback:datasource Settings: {"url":"http://127.0.0.1:8701/api","debug":true} +2ms | |
loopback:boot:compiler Skipping /usr/local/lib/node_modules/strongloop/node_modules/strong-mesh-models/client/boot - Error: Cannot find module '/usr/local/lib/node_modules/strongloop/node_modules/strong-mesh-models/client/boot' +3ms | |
loopback:boot:compiler skipping boot script /usr/local/lib/node_modules/strongloop/node_modules/strong-mesh-models/client/boot - unknown file +0ms | |
loopback:boot:compiler Found model "AccessToken" - ../../loopback/common/models/access-token.json ../../loopback/common/models/access-token.js +5ms | |
loopback:boot:compiler Found model "ACL" - ../../loopback/common/models/acl.json ../../loopback/common/models/acl.js +1ms | |
loopback:boot:compiler Found model "Application" - ../../loopback/common/models/application.json ../../loopback/common/models/application.js +0ms | |
loopback:boot:compiler Found model "Change" - ../../loopback/common/models/change.json ../../loopback/common/models/change.js +1ms | |
loopback:boot:compiler Found model "Checkpoint" - ../../loopback/common/models/checkpoint.json ../../loopback/common/models/checkpoint.js +0ms | |
loopback:boot:compiler Found model "Email" - ../../loopback/common/models/email.json ../../loopback/common/models/email.js +1ms | |
loopback:boot:compiler Found model "RoleMapping" - ../../loopback/common/models/role-mapping.json ../../loopback/common/models/role-mapping.js +2ms | |
loopback:boot:compiler Found model "Role" - ../../loopback/common/models/role.json ../../loopback/common/models/role.js +0ms | |
loopback:boot:compiler Found model "Scope" - ../../loopback/common/models/scope.json ../../loopback/common/models/scope.js +1ms | |
loopback:boot:compiler Found model "User" - ../../loopback/common/models/user.json ../../loopback/common/models/user.js +1ms | |
loopback:boot:compiler Skipping undefined - module not found +2ms | |
loopback:boot:compiler Skipping unknown module source dir "loopback/server/models" +0ms | |
loopback:boot:compiler Model source code not found: undefined +1ms | |
loopback:boot:compiler Found model "Action" - ../common/models/action.json (no source file) +0ms | |
loopback:boot:compiler Model source code not found: undefined +1ms | |
loopback:boot:compiler Found model "AgentTrace" - ../common/models/agent-trace.json (no source file) +0ms | |
loopback:boot:compiler Found model "Api" - ../common/models/api.json ../common/models/api.js +1ms | |
loopback:boot:compiler Found model "Executor" - ../common/models/executor.json ../common/models/executor.js +1ms | |
loopback:boot:compiler Found model "ExpressUsageRecord" - ../common/models/express-usage-record.json ../common/models/express-usage-record.js +0ms | |
loopback:boot:compiler Model source code not found: undefined +1ms | |
loopback:boot:compiler Found model "Group" - ../common/models/group.json (no source file) +0ms | |
loopback:boot:compiler Model source code not found: undefined +1ms | |
loopback:boot:compiler Found model "ProfileData" - ../common/models/profile-data.json (no source file) +0ms | |
loopback:boot:compiler Found model "ServiceInstance" - ../common/models/service-instance.json ../common/models/service-instance.js +1ms | |
loopback:boot:compiler Model source code not found: undefined +0ms | |
loopback:boot:compiler Found model "ServiceMetric" - ../common/models/service-metric.json (no source file) +1ms | |
loopback:boot:compiler Found model "ServiceProcess" - ../common/models/service-process.json ../common/models/service-process.js +1ms | |
loopback:boot:compiler Found model "Service" - ../common/models/service.json ../common/models/service.js +1ms | |
loopback:boot:compiler Model source code not found: undefined +1ms | |
loopback:boot:compiler Found model "InstanceAction" - models/instance-action.json (no source file) +0ms | |
loopback:boot:compiler Found model "ServerService" - models/server-service.json models/server-service.js +0ms | |
loopback:boot:compiler Using model "Api" | |
Configuration: {"dataSource":"remote"} | |
Definition {"name":"Api","plural":"Api","base":"Model","description":"API","properties":{"version":{"type":"string","required":true,"description":"Version of this server"},"serverPid":{"type":"number","required":true,"description":"Operating system PID of the server process"},"apiPort":{"type":"number","required":true,"description":"Port that this server is listening on"},"apiVersion":{"type":"string","required":true,"description":"Version of the REST API"},"driverType":{"type":"string","required":true,"description":"The driver type run by this server"},"driverStatus":{"type":"string","required":true,"description":"The hostname of this executor"}},"validations":[],"relations":{},"acls":[],"methods":[]} +1ms | |
loopback:boot:compiler Using model "User" | |
Configuration: {"dataSource":"remote"} | |
Definition {"name":"User","properties":{"realm":{"type":"string"},"username":{"type":"string"},"password":{"type":"string","required":true},"credentials":{"type":"object","deprecated":true},"challenges":{"type":"object","deprecated":true},"email":{"type":"string","required":true},"emailVerified":"boolean","verificationToken":"string","status":"string","created":"date","lastUpdated":"date","id":{"id":1,"generated":true}},"hidden":["password"],"acls":[{"principalType":"ROLE","principalId":"$everyone","permission":"DENY"},{"principalType":"ROLE","principalId":"$everyone","permission":"ALLOW","property":"create"},{"principalType":"ROLE","principalId":"$owner","permission":"ALLOW","property":"deleteById"},{"principalType":"ROLE","principalId":"$everyone","permission":"ALLOW","property":"login"},{"principalType":"ROLE","principalId":"$everyone","permission":"ALLOW","property":"logout"},{"principalType":"ROLE","principalId":"$owner","permission":"ALLOW","property":"findById"},{"principalType":"ROLE","principalId":"$owner","permission":"ALLOW","property":"updateAttributes"},{"principalType":"ROLE","principalId":"$everyone","permission":"ALLOW","property":"confirm"},{"principalType":"ROLE","principalId":"$everyone","permission":"ALLOW","property":"resetPassword","accessType":"EXECUTE"}],"relations":{"accessTokens":{"type":"hasMany","model":"AccessToken","foreignKey":"userId","options":{"disableInclude":true}}}} +0ms | |
loopback:boot:compiler Using model "AccessToken" | |
Configuration: {"dataSource":"memory","public":false} | |
Definition {"name":"AccessToken","properties":{"id":{"type":"string","id":true},"ttl":{"type":"number","ttl":true,"default":1209600,"description":"time to live in seconds (2 weeks by default)"},"created":{"type":"Date"}},"relations":{"user":{"type":"belongsTo","model":"User","foreignKey":"userId"}},"acls":[{"principalType":"ROLE","principalId":"$everyone","permission":"DENY"},{"principalType":"ROLE","principalId":"$everyone","property":"create","permission":"ALLOW"}]} +0ms | |
loopback:boot:compiler Using model "ACL" | |
Configuration: {"dataSource":"memory","public":false} | |
Definition {"name":"ACL","properties":{"model":{"type":"string","description":"The name of the model"},"property":{"type":"string","description":"The name of the property, method, scope, or relation"},"accessType":"string","permission":"string","principalType":"string","principalId":"string","id":{"id":1,"generated":true}}} +0ms | |
loopback:boot:compiler Using model "RoleMapping" | |
Configuration: {"dataSource":"memory","public":false} | |
Definition {"name":"RoleMapping","description":"Map principals to roles","properties":{"id":{"type":"string","id":true,"generated":true},"principalType":{"type":"string","description":"The principal type, such as user, application, or role"},"principalId":"string"},"relations":{"role":{"type":"belongsTo","model":"Role","foreignKey":"roleId"}}} +0ms | |
loopback:boot:compiler Using model "Role" | |
Configuration: {"dataSource":"memory","public":false} | |
Definition {"name":"Role","properties":{"id":{"type":"string","id":true,"generated":true},"name":{"type":"string","required":true},"description":"string","created":"date","modified":"date"},"relations":{"principals":{"type":"hasMany","model":"RoleMapping","foreignKey":"roleId"}}} +0ms | |
loopback:boot:compiler Using model "ServerService" | |
Configuration: {"dataSource":"remote","public":true} | |
Definition {"name":"ServerService","plural":"Services","base":"Service","properties":{},"options":{},"relations":{},"indexes":{},"acls":[],"models":["Group","Service"]} +1ms | |
loopback:boot:compiler Using model "Group" | |
Configuration: {"dataSource":"remote","public":false} | |
Definition {"name":"Group","base":"PersistedModel","description":"Represents an abstract set of service instances that may be used for routing and partitioning","properties":{"name":{"type":"string","required":true,"description":"Name of the group"},"scale":{"type":"number","required":true,"description":"Number of service instance that should be in the group"}},"validations":[],"relations":{},"acls":[],"methods":[]} +0ms | |
loopback:boot:compiler Using model "Executor" | |
Configuration: {"dataSource":"remote","public":true} | |
Definition {"name":"Executor","base":"PersistedModel","description":"Represents an Executor VM or bare-metal machine, which can host multiple service instances","properties":{"address":{"type":"string","required":true,"description":"The IP address on which the API server and gateway can access this executor"},"hostname":{"type":"string","required":true,"description":"The hostname of this executor"},"APIPort":{"type":"string","description":"The port this executor is listening on for API commands"},"totalCapacity":{"type":"number","description":"The number of containers/service instances that this executor can support"},"remainingCapacity":{"type":"number","default":-1,"description":"Currently allocated number of instances"}},"validations":[],"relations":{"instances":{"type":"hasMany","model":"ServiceInstance"},"services":{"type":"hasMany","model":"ServerService","through":"ServiceInstance"}},"acls":[],"methods":[]} +0ms | |
loopback:boot:compiler Using model "ServiceInstance" | |
Configuration: {"dataSource":"remote","public":true} | |
Definition {"name":"ServiceInstance","base":"PersistedModel","description":"Represents an instance of a service running on an executor","properties":{"executorId":{"type":"number","index":1,"description":"The ID of the executor on which this instance is running"},"serverServiceId":{"type":"number","index":1,"description":"The ID of the service this executor belongs to"},"groupId":{"type":"number","index":1,"description":"The ID of the service group this executor belongs to"},"currentDeploymentId":{"type":"string","description":"The SHA1 hash of the package deployed to this instance. This ties back to the value of Service.deploymentInfo.hash"},"startTime":{"type":"date","description":"The ID of the service group this executor belongs to"},"restartCount":{"type":"number","description":"The number of time the supervisor process for this instance was killed or has crashed and had to be restarted"},"stats":{"type":"object"},"PMPort":{"type":"number","description":"The API port the process manager is available on"},"containerVersionInfo":{"type":"object","description":"Information about the host, operating system, node version and container technology hosting this instance"},"started":{"type":"boolean","default":false,"description":"Indicates if this instance should be running or stopped"},"setSize":{"type":"number","default":0,"description":"The currently configured number of node processes that the instance should be running"},"cpus":{"type":"string","description":"The number of cpus to use when starting the service on this instance"},"applicationName":{"type":"string","description":"The application name that strong-agent uses to report its metrics"},"npmModules":{"type":"object","description":"NPM package and sub-module information"},"agentVersion":{"type":"string","description":"The version of strong-agent running on this instance"}},"validations":[],"relations":{"actions":{"type":"hasMany","model":"InstanceAction"},"processes":{"type":"hasMany","model":"ServiceProcess"},"executor":{"type":"belongsTo","model":"Executor"},"serverService":{"type":"belongsTo","model":"ServerService"}},"acls":[],"methods":[]} +0ms | |
loopback:boot:compiler Using model "ServiceProcess" | |
Configuration: {"dataSource":"remote","public":true} | |
Definition {"name":"ServiceProcess","base":"PersistedModel","description":"Represents a since OS process running on the Instance","properties":{"parentPid":{"type":"number","required":true,"index":true,"description":"The OS process ID of the parent of this process (eg: *NIX PPID)"},"pid":{"type":"number","required":true,"index":true,"description":"The OS process ID of this process (eg: *NIX PID)"},"workerId":{"type":"number","required":true,"description":"The cluster worker ID"},"listeningSockets":{"type":["object"],"default":[],"description":"List of addresses/ports this process is listening on"},"isTrackingObjects":{"type":"boolean","required":true,"default":false,"description":"Indicates if this object-tracking is turned on for this process"},"isProfiling":{"type":"boolean","required":true,"default":false,"description":"Indicates if this cpu-profiling is turned on for this process"},"watchdogTimeout":{"type":"number","default":0,"description":"Watchdog timeout, in milliseconds. (0 = watchdog disabled)"},"isSnapshotting":{"type":"boolean","required":true,"default":false,"description":"Indicates if a heap-dump is being performed on this process"},"startTime":{"type":"date","description":"Timestamp when this process was started"},"stopTime":{"type":"date","description":"Timestamp when this process was stopped or killed"},"stopReason":{"type":"string","description":"The signal or reason this process exited","default":""}},"validations":[],"relations":{"serviceInstance":{"type":"belongsTo","model":"ServiceInstance"}},"acls":[],"methods":[]} +1ms | |
loopback:boot:compiler Using model "ServiceMetric" | |
Configuration: {"dataSource":"remote","public":true} | |
Definition {"name":"ServiceMetric","base":"PersistedModel","properties":{"processId":{"type":"number","required":true,"description":"id of ServiceProcess, not the pid"},"workerId":{"type":"number","required":true},"timeStamp":{"type":"date","required":true},"counters":{"type":"object"},"timers":{"type":"object"},"gauges":{"type":"object"}},"validations":[],"relations":{},"acls":[],"methods":[]} +0ms | |
loopback:boot:compiler Using model "AgentTrace" | |
Configuration: {"dataSource":"remote","public":true} | |
Definition {"name":"AgentTrace","base":"PersistedModel","properties":{"processId":{"type":"number","description":"id of ServiceProcess, not the pid","required":true},"workerId":{"type":"number","required":true},"timeStamp":{"type":"date","required":true},"trace":{"type":"object"}},"validations":[],"relations":{},"acls":[],"methods":[]} +0ms | |
loopback:boot:compiler Using model "ExpressUsageRecord" | |
Configuration: {"dataSource":"remote","public":true} | |
Definition {"name":"ExpressUsageRecord","base":"PersistedModel","properties":{"processId":{"type":"number","description":"id of ServiceProcess, not the pid","required":true},"workerId":{"type":"number","required":true},"timeStamp":{"type":"date","required":true},"requestMethod":{"type":"string"},"requestUrl":{"type":"string"},"clientAddress":{"type":"string"},"clientUsername":{"type":"string"},"clientId":{"type":"string"},"clientDetail":{"type":"object"},"lbModelName":{"type":"string"},"lbInstanceId":{"type":"string"},"lbRemoteMethod":{"type":"string"},"detail":{"type":"object"},"responseDuration":{"type":"number"},"responseSize":{"type":"number"},"statusCode":{"type":"number"}},"validations":[],"relations":{},"acls":[],"methods":[]} +0ms | |
loopback:boot:compiler Using model "ProfileData" | |
Configuration: {"dataSource":"remote","public":false} | |
Definition {"name":"ProfileData","plural":"ProfileDatas","base":"PersistedModel","options":{"hidden":["executorId"]},"description":"Represents a cpu profile or heap dump gathered from a node process","properties":{"executorId":{"type":"number","index":1,"description":"The ID of the Executor instance the process was running on"},"serverServiceId":{"type":"number","index":1,"description":"The ID of the Service the process was running"},"instanceId":{"type":"number","index":1,"description":"The ID of the Service instance the process was part of"},"type":{"type":"string","required":true,"description":"The type of captured data: 'cpuprofile' or 'heapsnapshot'"},"targetId":{"type":"number","required":true,"description":"The OS Process ID or cluster worker ID of the process."},"startTime":{"type":"date","required":true,"description":"Timestamp the cpu profile or heap dump was started"},"completed":{"type":"boolean","default":false,"description":"Indicates if the profile generation is still in progress"},"fileName":{"type":"string","description":"The name of the file on the Executor"},"errored":{"type":"string","description":"If an error occurred, this contains the error message"}},"validations":[],"relations":{"executor":{"type":"belongsTo","model":"Executor"},"serverService":{"type":"belongsTo","model":"ServerService"}},"acls":[],"methods":[]} +2ms | |
loopback:boot:compiler Using model "InstanceAction" | |
Configuration: {"dataSource":"remote","public":false} | |
Definition {"name":"InstanceAction","base":"Action","properties":{},"validations":[],"relations":{},"acls":[],"methods":[]} +0ms | |
loopback:boot:compiler Using model "Service" | |
Configuration: undefined | |
Definition {"name":"Service","plural":"Services","base":"PersistedModel","indexes":{"name":{"keys":{"name":1},"options":{"unique":true}}},"options":{"hidden":["startTime","_group"]},"description":"Represents a Service","properties":{"name":{"type":"string","required":true,"index":1,"description":"The name of the service. This may be different from the name in the package.json"},"startTime":{"type":"date","description":"The timestamp for the last time this service was started"},"started":{"type":"boolean","description":"Indicates if the service should be running or stopped"},"deploymentInfo":{"type":"object","description":"Information about the node application deployed for this service"},"env":{"type":"object","default":{},"description":"List of environment variables set for the node application"}},"validations":[],"relations":{"executors":{"type":"hasMany","model":"Executor","through":"ServiceInstance","description":"List of executors the service is running on"},"instances":{"type":"hasMany","model":"ServiceInstance","description":"List of instances that run this service"},"profileDatas":{"type":"hasMany","model":"ProfileData","description":"List of cpuprofile or heapdumps gathered for this service"},"groups":{"type":"embedsMany","model":"Group","description":"List of groups used for routing or partitioning"}},"acls":[],"methods":[]} +1ms | |
loopback:boot:compiler Using model "Action" | |
Configuration: undefined | |
Definition {"name":"Action","base":"PersistedModel","description":"Represents an action to perform on an instance","properties":{"request":{"type":"object","required":true,"description":"Command, optional subcommand and target to perform an action on"},"timestamp":{"type":"date","description":"Timestamp when the action was submitted to the API"},"result":{"type":"object","description":"The result or output of the action"}},"validations":[],"relations":{"serviceInstance":{"type":"belongsTo","model":"ServiceInstance"}},"acls":[],"methods":[]} +0ms | |
loopback:datasource Settings: {"name":"memory","debug":true} +10ms | |
loopback:boot:executor Creating new model Api {"name":"Api","plural":"Api","base":"Model","description":"API","properties":{"version":{"type":"string","required":true,"description":"Version of this server"},"serverPid":{"type":"number","required":true,"description":"Operating system PID of the server process"},"apiPort":{"type":"number","required":true,"description":"Port that this server is listening on"},"apiVersion":{"type":"string","required":true,"description":"Version of the REST API"},"driverType":{"type":"string","required":true,"description":"The driver type run by this server"},"driverStatus":{"type":"string","required":true,"description":"The hostname of this executor"}},"validations":[],"relations":{},"acls":[],"methods":[]} +1ms | |
loopback:boot:executor Loading customization script /usr/local/lib/node_modules/strongloop/node_modules/strong-mesh-models/common/models/api.js +0ms | |
loopback:boot:executor Customizing model Api +1ms | |
loopback:boot:executor Configuring built-in LoopBack model User +0ms | |
loopback:boot:executor Configuring built-in LoopBack model AccessToken +0ms | |
loopback:boot:executor Configuring built-in LoopBack model ACL +1ms | |
loopback:boot:executor Configuring built-in LoopBack model RoleMapping +0ms | |
loopback:boot:executor Configuring built-in LoopBack model Role +0ms | |
loopback:boot:executor Creating new model Service {"name":"Service","plural":"Services","base":"PersistedModel","indexes":{"name":{"keys":{"name":1},"options":{"unique":true}}},"options":{"hidden":["startTime","_group"]},"description":"Represents a Service","properties":{"name":{"type":"string","required":true,"index":1,"description":"The name of the service. This may be different from the name in the package.json"},"startTime":{"type":"date","description":"The timestamp for the last time this service was started"},"started":{"type":"boolean","description":"Indicates if the service should be running or stopped"},"deploymentInfo":{"type":"object","description":"Information about the node application deployed for this service"},"env":{"type":"object","default":{},"description":"List of environment variables set for the node application"}},"validations":[],"relations":{"executors":{"type":"hasMany","model":"Executor","through":"ServiceInstance","description":"List of executors the service is running on"},"instances":{"type":"hasMany","model":"ServiceInstance","description":"List of instances that run this service"},"profileDatas":{"type":"hasMany","model":"ProfileData","description":"List of cpuprofile or heapdumps gathered for this service"},"groups":{"type":"embedsMany","model":"Group","description":"List of groups used for routing or partitioning"}},"acls":[],"methods":[]} +0ms | |
loopback:boot:executor Loading customization script /usr/local/lib/node_modules/strongloop/node_modules/strong-mesh-models/common/models/service.js +1ms | |
loopback:boot:executor Customizing model Service +3ms | |
loopback:boot:executor Creating new model ServerService {"name":"ServerService","plural":"Services","base":"Service","properties":{},"options":{},"relations":{},"indexes":{},"acls":[],"models":["Group","Service"]} +1ms | |
loopback:boot:executor Loading customization script /usr/local/lib/node_modules/strongloop/node_modules/strong-mesh-models/client/models/server-service.js +2ms | |
loopback:boot:executor Customizing model ServerService +0ms | |
loopback:boot:executor Creating new model Group {"name":"Group","base":"PersistedModel","description":"Represents an abstract set of service instances that may be used for routing and partitioning","properties":{"name":{"type":"string","required":true,"description":"Name of the group"},"scale":{"type":"number","required":true,"description":"Number of service instance that should be in the group"}},"validations":[],"relations":{},"acls":[],"methods":[]} +0ms | |
loopback:boot:executor Creating new model Executor {"name":"Executor","base":"PersistedModel","description":"Represents an Executor VM or bare-metal machine, which can host multiple service instances","properties":{"address":{"type":"string","required":true,"description":"The IP address on which the API server and gateway can access this executor"},"hostname":{"type":"string","required":true,"description":"The hostname of this executor"},"APIPort":{"type":"string","description":"The port this executor is listening on for API commands"},"totalCapacity":{"type":"number","description":"The number of containers/service instances that this executor can support"},"remainingCapacity":{"type":"number","default":-1,"description":"Currently allocated number of instances"}},"validations":[],"relations":{"instances":{"type":"hasMany","model":"ServiceInstance"},"services":{"type":"hasMany","model":"ServerService","through":"ServiceInstance"}},"acls":[],"methods":[]} +1ms | |
loopback:boot:executor Loading customization script /usr/local/lib/node_modules/strongloop/node_modules/strong-mesh-models/common/models/executor.js +0ms | |
loopback:boot:executor Customizing model Executor +1ms | |
loopback:boot:executor Creating new model ServiceInstance {"name":"ServiceInstance","base":"PersistedModel","description":"Represents an instance of a service running on an executor","properties":{"executorId":{"type":"number","index":1,"description":"The ID of the executor on which this instance is running"},"serverServiceId":{"type":"number","index":1,"description":"The ID of the service this executor belongs to"},"groupId":{"type":"number","index":1,"description":"The ID of the service group this executor belongs to"},"currentDeploymentId":{"type":"string","description":"The SHA1 hash of the package deployed to this instance. This ties back to the value of Service.deploymentInfo.hash"},"startTime":{"type":"date","description":"The ID of the service group this executor belongs to"},"restartCount":{"type":"number","description":"The number of time the supervisor process for this instance was killed or has crashed and had to be restarted"},"stats":{"type":"object"},"PMPort":{"type":"number","description":"The API port the process manager is available on"},"containerVersionInfo":{"type":"object","description":"Information about the host, operating system, node version and container technology hosting this instance"},"started":{"type":"boolean","default":false,"description":"Indicates if this instance should be running or stopped"},"setSize":{"type":"number","default":0,"description":"The currently configured number of node processes that the instance should be running"},"cpus":{"type":"string","description":"The number of cpus to use when starting the service on this instance"},"applicationName":{"type":"string","description":"The application name that strong-agent uses to report its metrics"},"npmModules":{"type":"object","description":"NPM package and sub-module information"},"agentVersion":{"type":"string","description":"The version of strong-agent running on this instance"}},"validations":[],"relations":{"actions":{"type":"hasMany","model":"InstanceAction"},"processes":{"type":"hasMany","model":"ServiceProcess"},"executor":{"type":"belongsTo","model":"Executor"},"serverService":{"type":"belongsTo","model":"ServerService"}},"acls":[],"methods":[]} +0ms | |
loopback:boot:executor Loading customization script /usr/local/lib/node_modules/strongloop/node_modules/strong-mesh-models/common/models/service-instance.js +2ms | |
loopback:boot:executor Customizing model ServiceInstance +0ms | |
loopback:boot:executor Creating new model ServiceProcess {"name":"ServiceProcess","base":"PersistedModel","description":"Represents a since OS process running on the Instance","properties":{"parentPid":{"type":"number","required":true,"index":true,"description":"The OS process ID of the parent of this process (eg: *NIX PPID)"},"pid":{"type":"number","required":true,"index":true,"description":"The OS process ID of this process (eg: *NIX PID)"},"workerId":{"type":"number","required":true,"description":"The cluster worker ID"},"listeningSockets":{"type":["object"],"default":[],"description":"List of addresses/ports this process is listening on"},"isTrackingObjects":{"type":"boolean","required":true,"default":false,"description":"Indicates if this object-tracking is turned on for this process"},"isProfiling":{"type":"boolean","required":true,"default":false,"description":"Indicates if this cpu-profiling is turned on for this process"},"watchdogTimeout":{"type":"number","default":0,"description":"Watchdog timeout, in milliseconds. (0 = watchdog disabled)"},"isSnapshotting":{"type":"boolean","required":true,"default":false,"description":"Indicates if a heap-dump is being performed on this process"},"startTime":{"type":"date","description":"Timestamp when this process was started"},"stopTime":{"type":"date","description":"Timestamp when this process was stopped or killed"},"stopReason":{"type":"string","description":"The signal or reason this process exited","default":""}},"validations":[],"relations":{"serviceInstance":{"type":"belongsTo","model":"ServiceInstance"}},"acls":[],"methods":[]} +0ms | |
loopback:boot:executor Loading customization script /usr/local/lib/node_modules/strongloop/node_modules/strong-mesh-models/common/models/service-process.js +2ms | |
loopback:boot:executor Customizing model ServiceProcess +1ms | |
loopback:boot:executor Creating new model ServiceMetric {"name":"ServiceMetric","base":"PersistedModel","properties":{"processId":{"type":"number","required":true,"description":"id of ServiceProcess, not the pid"},"workerId":{"type":"number","required":true},"timeStamp":{"type":"date","required":true},"counters":{"type":"object"},"timers":{"type":"object"},"gauges":{"type":"object"}},"validations":[],"relations":{},"acls":[],"methods":[]} +0ms | |
loopback:boot:executor Creating new model AgentTrace {"name":"AgentTrace","base":"PersistedModel","properties":{"processId":{"type":"number","description":"id of ServiceProcess, not the pid","required":true},"workerId":{"type":"number","required":true},"timeStamp":{"type":"date","required":true},"trace":{"type":"object"}},"validations":[],"relations":{},"acls":[],"methods":[]} +1ms | |
loopback:boot:executor Creating new model ExpressUsageRecord {"name":"ExpressUsageRecord","base":"PersistedModel","properties":{"processId":{"type":"number","description":"id of ServiceProcess, not the pid","required":true},"workerId":{"type":"number","required":true},"timeStamp":{"type":"date","required":true},"requestMethod":{"type":"string"},"requestUrl":{"type":"string"},"clientAddress":{"type":"string"},"clientUsername":{"type":"string"},"clientId":{"type":"string"},"clientDetail":{"type":"object"},"lbModelName":{"type":"string"},"lbInstanceId":{"type":"string"},"lbRemoteMethod":{"type":"string"},"detail":{"type":"object"},"responseDuration":{"type":"number"},"responseSize":{"type":"number"},"statusCode":{"type":"number"}},"validations":[],"relations":{},"acls":[],"methods":[]} +0ms | |
loopback:boot:executor Loading customization script /usr/local/lib/node_modules/strongloop/node_modules/strong-mesh-models/common/models/express-usage-record.js +1ms | |
loopback:boot:executor Customizing model ExpressUsageRecord +1ms | |
loopback:boot:executor Creating new model ProfileData {"name":"ProfileData","plural":"ProfileDatas","base":"PersistedModel","options":{"hidden":["executorId"]},"description":"Represents a cpu profile or heap dump gathered from a node process","properties":{"executorId":{"type":"number","index":1,"description":"The ID of the Executor instance the process was running on"},"serverServiceId":{"type":"number","index":1,"description":"The ID of the Service the process was running"},"instanceId":{"type":"number","index":1,"description":"The ID of the Service instance the process was part of"},"type":{"type":"string","required":true,"description":"The type of captured data: 'cpuprofile' or 'heapsnapshot'"},"targetId":{"type":"number","required":true,"description":"The OS Process ID or cluster worker ID of the process."},"startTime":{"type":"date","required":true,"description":"Timestamp the cpu profile or heap dump was started"},"completed":{"type":"boolean","default":false,"description":"Indicates if the profile generation is still in progress"},"fileName":{"type":"string","description":"The name of the file on the Executor"},"errored":{"type":"string","description":"If an error occurred, this contains the error message"}},"validations":[],"relations":{"executor":{"type":"belongsTo","model":"Executor"},"serverService":{"type":"belongsTo","model":"ServerService"}},"acls":[],"methods":[]} +0ms | |
loopback:boot:executor Creating new model Action {"name":"Action","base":"PersistedModel","description":"Represents an action to perform on an instance","properties":{"request":{"type":"object","required":true,"description":"Command, optional subcommand and target to perform an action on"},"timestamp":{"type":"date","description":"Timestamp when the action was submitted to the API"},"result":{"type":"object","description":"The result or output of the action"}},"validations":[],"relations":{"serviceInstance":{"type":"belongsTo","model":"ServiceInstance"}},"acls":[],"methods":[]} +2ms | |
loopback:boot:executor Creating new model InstanceAction {"name":"InstanceAction","base":"Action","properties":{},"validations":[],"relations":{},"acls":[],"methods":[]} +0ms | |
loopback:registry Attached model `Api` to dataSource `RemoteConnector` +2ms | |
loopback:registry Attached model `User` to dataSource `RemoteConnector` +1ms | |
loopback:registry Attached model `AccessToken` to dataSource `Memory` +5ms | |
loopback:registry Attached model `ACL` to dataSource `Memory` +1ms | |
loopback:registry Attached model `RoleMapping` to dataSource `Memory` +1ms | |
loopback:registry Attached model `Role` to dataSource `Memory` +1ms | |
loopback:registry Attached model `ServerService` to dataSource `RemoteConnector` +0ms | |
loopback:relations EmbedsMany property cannot be equal to relation name: forcing property _groups for relation groups +1ms | |
loopback:registry Attached model `Group` to dataSource `RemoteConnector` +1ms | |
loopback:registry Attached model `Executor` to dataSource `RemoteConnector` +0ms | |
loopback:registry Attached model `ServiceInstance` to dataSource `RemoteConnector` +5ms | |
loopback:registry Attached model `ServiceProcess` to dataSource `RemoteConnector` +2ms | |
loopback:registry Attached model `ServiceMetric` to dataSource `RemoteConnector` +0ms | |
loopback:registry Attached model `AgentTrace` to dataSource `RemoteConnector` +1ms | |
loopback:registry Attached model `ExpressUsageRecord` to dataSource `RemoteConnector` +0ms | |
loopback:registry Attached model `ProfileData` to dataSource `RemoteConnector` +1ms | |
loopback:registry Attached model `InstanceAction` to dataSource `RemoteConnector` +1ms | |
loopback:boot:executor Defining middleware phases [] +0ms | |
express:router use / query +1ms | |
express:router:layer new / +0ms | |
express:router use / expressInit +0ms | |
express:router:layer new / +0ms | |
strong-mesh-models:client local 6.1.0 6.x remote 6.1.0 6.x +41ms | |
strong-deploy client.serviceFindOrCreate(express-example-app, 1): endpoint http://127.0.0.1:8701/api/services/1/deploy svc {"name":"express-example-app","deploymentInfo":{"hash":"97ad5d014d437c93309d76e0c506380a7026b81b","dir":"/Users/rand/StrongLoop/express-example-app"},"env":{},"id":1,"_groups":[{"name":"default","scale":1,"id":1}]} +19ms | |
strong-deploy post {"local-directory":"/Users/rand/StrongLoop/express-example-app"} options {"auth":null,"hostname":"localhost","port":"8701","path":"/api/services/1/deploy/default","method":"POST","headers":{"Content-Type":"application/x-pm-deploy"}} +2ms | |
strong-deploy response: code=200 "Application deployed\n" +16ms | |
Process Manager is attempting to run app `.`. | |
To confirm it is started: slc ctl status express-example-app | |
To view the last logs: slc ctl log-dump express-example-app | |
To see more options: slc ctl -h | |
To see metrics, the profilers and other diagnostic features run: slc arc | |
Rands-MacBook-Air:express-example-app rand$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also: