metarhia / impress

Enterprise application server for Node.js and Metarhia private cloud ⚡
https://metarhia.com
MIT License
970 stars 129 forks source link

If no fork/exit recursion when key/cert not found #708

Closed tshemsedinov closed 7 years ago

tshemsedinov commented 7 years ago
Error: ENOENT: no such file or directory, open '/config/ssl/example.key'
  Error (native)
  Object.fs.openSync (fs.js:640:18)
  Object.fs.readFileSync (fs.js:508:33)
  EventEmitter.impress.loadCertificates (/impress/lib/impress.js:504:19)
  EventEmitter.impress.startServer (/impress/lib/impress.js:433:17)
  serverNames.forEach (/impress/lib/impress.js:420:15)
  Array.forEach (native)
  EventEmitter.impress.startServers (/impress/lib/impress.js:409:15)
  EventEmitter.impress.server.load (/impress/lib/impress.js:321:13)
  impress.loadConfig (/impress/lib/impress.js:290:31)
  application.log.open (/impress/lib/impress.application.js:356:13)
  api.metasync.each (/impress/lib/impress.log.js:90:13)
  WriteStream.fn (/metasync/lib/array.utils.js:131:21)
  emitOne (events.js:96:13)
  WriteStream.emit (events.js:188:7)
  WriteStream.<anonymous> (fs.js:2114:10)
  FSReqWrap.oncomplete (fs.js:123:15)
aqrln commented 7 years ago

@tshemsedinov

Fix fork/exit recursion, close #708

PR-URL: https://github.com/metarhia/Impress/pull/710
Refs: https://github.com/metarhia/Impress/issues/708

No need to duplicate the issue ID, you can just do:

Fix fork/exit recursion

PR-URL: https://github.com/metarhia/Impress/pull/710
Fixes: https://github.com/metarhia/Impress/issues/708