strong-pm无法启动。抛出“意外的输入结束”答案

时间:2015-11-03 02:13:14

标签: strongloop

我在我的ubuntu服务器上使用strong-pm作为我的节点应用程序。它运行得很好,直到它停止了一个很好的时刻。此后它根本没有启动我的服务。尝试重启strong-pm甚至重启我的服务器。但徒劳无功。 strong -pm.log不断抛出以下日志条目

Connection fails:  [SyntaxError: Unexpected end of input]
It will be retried for the next request.
Listening failed with: Unexpected end of input
events.js:85
      throw er; // Unhandled 'error' event
            ^
SyntaxError: Unexpected end of input
    at Object.parse (native)
    at parseAndLoad (/usr/lib/node_modules/strong-pm/node_modules/strong-mesh-models/node_modules/loopback-datasource-juggler/lib/connectors/memory.js:122:21)
    at /usr/lib/node_modules/strong-pm/node_modules/strong-mesh-models/node_modules/loopback-datasource-juggler/lib/connectors/memory.js:108:9
    at fs.js:334:14
    at /usr/lib/node_modules/strong-pm/node_modules/strong-docker-build/node_modules/tar/node_modules/fstream/node_modules/graceful-fs/graceful-fs.js:42:10
    at /usr/lib/node_modules/strong-pm/node_modules/strong-docker-build/node_modules/fstream-npm/node_modules/fstream-ignore/node_modules/fstream/node_modules/graceful-fs/graceful-fs.js:42:10
    at /usr/lib/node_modules/strong-pm/node_modules/tar/node_modules/fstream/node_modules/graceful-fs/graceful-fs.js:42:10
    at FSReqWrap.oncomplete (fs.js:95:15)

1 个答案:

答案 0 :(得分:0)

您的模型json文件中有一个语法错误,或者可能位于datasource.json

分享您的代码以获得更多帮助