【问题标题】:strong-pm is fails to start. Throws "Unexpected end of input" answerstrong-pm 无法启动。抛出“输入意外结束”答案
【发布时间】:2015-11-07 12:59:52
【问题描述】:

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

连接失败:[SyntaxError: Unexpected end of input] 它将为下一个请求重试。 监听失败:输入意外结束 事件.js:85 投掷者; // 未处理的“错误”事件 ^ SyntaxError:输入意外结束 在 Object.parse (本机) 在 parseAndLoad (/usr/lib/node_modules/strong-pm/node_modules/strong-mesh-models/node_modules/loopback-datasource-juggler/lib/connectors/memory.js:122:21) 在 /usr/lib/node_modules/strong-pm/node_modules/strong-mesh-models/node_modules/loopback-datasource-juggler/lib/connectors/memory.js:108:9 在 fs.js:334:14 在/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 在/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 在 /usr/lib/node_modules/strong-pm/node_modules/tar/node_modules/fstream/node_modules/graceful-fs/graceful-fs.js:42:10 在 FSReqWrap.oncomplete (fs.js:95:15)

【问题讨论】:

    标签: strongloop


    【解决方案1】:

    您的模型 json 文件中存在语法错误,或者可能在 datasource.json 中

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

    【讨论】:

      猜你喜欢
      • 2021-05-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-08-22
      • 2016-08-05
      相关资源
      最近更新 更多