strongloop / strong-pm

deployer for node applications
http://strong-pm.io
Other
1k stars 71 forks source link

ENOMEM error in docker logs strong-pm-container | Failed to Deploy #371

Closed CNSKnight closed 4 years ago

CNSKnight commented 8 years ago

I had done:

$ npm update
├── cldr-data@29.0.2
├── cors@2.8.1 
├── loopback@2.34.1 
├── loopback-boot@2.22.0                                                                                                                                       
├── loopback-datasource-juggler@2.51.0                                                                                                                         
├── nsp@2.6.1                                                                                                                                                  
└── strong-error-handler@1.1.0                                                                                                                                 

and then :8701 was failing on a slc deploy so I rm and spun up a fresh container and started getting:

sl-pm(1): StrongLoop PM v5.2.3 (API v6.1.0) on port `8701`
sl-pm(1): Base folder `/home/strong-pm`
sl-pm(1): Applications on port `3000 + service ID`
Browse your REST API at http://127.0.0.1:8701/explorer
Fri, 30 Sep 2016 17:40:23 GMT loopback deprecated loopback#context middleware is deprecated. See https://docs.strongloop.com/display/APIC/Using%20current%20context for more details. at ../../usr/local/lib/node_modules/strong-pm/node_modules/loopback/server/middleware/rest.js:60:32
/usr/local/lib/node_modules/strong-pm/node_modules/sqlite3/lib/trace.js:28
                    throw err;
                    ^

Error: spawn ENOMEM
    at exports._errnoException (util.js:1036:11)
    at ChildProcess.spawn (internal/child_process.js:313:11)
    at ChildProcess.spawn (/usr/local/lib/node_modules/strong-pm/node_modules/async-listener/index.js:120:29)
    at exports.spawn (child_process.js:380:9)
    at spawnNpm (/usr/local/lib/node_modules/strong-pm/node_modules/strong-spawn-npm/index.js:7:12)
    at spawn (/usr/local/lib/node_modules/strong-pm/lib/drivers/common/prepare.js:68:15)
    at /usr/local/lib/node_modules/strong-pm/lib/drivers/common/prepare.js:42:5
    at /usr/local/lib/node_modules/strong-pm/node_modules/async/lib/async.js:607:21
    at /usr/local/lib/node_modules/strong-pm/node_modules/async/lib/async.js:246:17
    at iterate (/usr/local/lib/node_modules/strong-pm/node_modules/async/lib/async.js:146:13)
--> in Database#all('SELECT "name","starttime","started","deploymentinfo","env","id","_groups" FROM "serverservice" WHERE "id"=?1 ORDER BY "id" LIMIT 1', [ 1 ], [Function: processResult])
    at executeWithConnection (/usr/local/lib/node_modules/strong-pm/node_modules/loopback-connector-sqlite3/lib/sqlite3.js:179:14)
    at /usr/local/lib/node_modules/strong-pm/node_modules/loopback-connector-sqlite3/lib/sqlite3.js:170:7
    at SQLite3.connect (/usr/local/lib/node_modules/strong-pm/node_modules/loopback-connector-sqlite3/lib/sqlite3.js:96:5)
    at SQLite3.executeSQL (/usr/local/lib/node_modules/strong-pm/node_modules/loopback-connector-sqlite3/lib/sqlite3.js:160:10)
    at /usr/local/lib/node_modules/strong-pm/node_modules/loopback-connector/lib/sql.js:415:10
    at /usr/local/lib/node_modules/strong-pm/node_modules/loopback-datasource-juggler/lib/observer.js:180:9
    at doNotify (/usr/local/lib/node_modules/strong-pm/node_modules/loopback-datasource-juggler/lib/observer.js:98:49)
    at SQLite3.ObserverMixin._notifyBaseObservers (/usr/local/lib/node_modules/strong-pm/node_modules/loopback-datasource-juggler/lib/observer.js:121:5)
    at SQLite3.ObserverMixin.notifyObserversOf (/usr/local/lib/node_modules/strong-pm/node_modules/loopback-datasource-juggler/lib/observer.js:96:8)
sl-pm(1): StrongLoop PM v5.2.3 (API v6.1.0) on port `8701`
sl-pm(1): Base folder `/home/strong-pm`
sl-pm(1): Applications on port `3000 + service ID`
Browse your REST API at http://127.0.0.1:8701/explorer
sl-pm(1): StrongLoop PM v5.2.3 (API v6.1.0) on port `8701`
sl-pm(1): Base folder `/home/strong-pm`
sl-pm(1): Applications on port `3000 + service ID`
Browse your REST API at http://127.0.0.1:8701/explorer
Fri, 30 Sep 2016 18:05:08 GMT loopback deprecated loopback#context middleware is deprecated. See https://docs.strongloop.com/display/APIC/Using%20current%20context for more details. at ../../usr/local/lib/node_modules/strong-pm/node_modules/loopback/server/middleware/rest.js:60:32

folowed by $ docker restart strong-pm-container but slc deploy always fails with failed: socket hang up

Meantime, the app IS running.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 4 years ago

This issue has been closed due to continued inactivity. Thank you for your understanding.