当前位置: 首页 > 知识库问答 >
问题:

pm2 json配置不正确运行应用程序

昌博易
2023-03-14

试图让一个nodejs应用程序与PM2一起运行。

我们使用SASS,通过“节点-SASS-Middleware”将文件修改后的文件重建为css文件。在每次sass中间件重建css文件时,pm2开始自动重启应用程序之前,它都工作得很好...这是我们告诉它要做的:

{
    "name"        : "ourApp",
    "script"      : "server.js",
    "watch"       : true,
    "ignore_watch" : ["public/css"],
    "env": {
        "NODE_ENV": "development"
    }
}
PM2: 2015-05-09 15:32:00: Error: watch ENOSPC
PM2:     at errnoException (fs.js:1024:11)
PM2:     at FSWatcher.start (fs.js:1056:11)
PM2:     at Object.fs.watch (fs.js:1081:11)
PM2:     at createFsWatchInstance (/usr/local/lib/node_modules/pm2/node_modules/chokidar/lib/nodefs-handler.js:24:15)
PM2:     at setFsWatchListener (/usr/local/lib/node_modules/pm2/node_modules/chokidar/lib/nodefs-handler.js:47:19)
PM2:     at EventEmitter.NodeFsHandler._watchWithNodeFs (/usr/local/lib/node_modules/pm2/node_modules/chokidar/lib/nodefs-handler.js:177:15)
PM2:     at EventEmitter.NodeFsHandler._handleFile (/usr/local/lib/node_modules/pm2/node_modules/chokidar/lib/nodefs-handler.js:201:8)
PM2:     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/pm2/node_modules/chokidar/lib/nodefs-handler.js:353:12)
PM2:     at Object.oncomplete (fs.js:107:15)
PM2: 2015-05-09 15:32:00: Error: watch ENOSPC
PM2:     at errnoException (fs.js:1024:11)
PM2:     at FSWatcher.start (fs.js:1056:11)
PM2:     at Object.fs.watch (fs.js:1081:11)
PM2:     at createFsWatchInstance (/usr/local/lib/node_modules/pm2/node_modules/chokidar/lib/nodefs-handler.js:24:15)
PM2:     at setFsWatchListener (/usr/local/lib/node_modules/pm2/node_modules/chokidar/lib/nodefs-handler.js:47:19)
PM2:     at EventEmitter.NodeFsHandler._watchWithNodeFs (/usr/local/lib/node_modules/pm2/node_modules/chokidar/lib/nodefs-handler.js:177:15)
PM2:     at EventEmitter.NodeFsHandler._handleFile (/usr/local/lib/node_modules/pm2/node_modules/chokidar/lib/nodefs-handler.js:201:8)
PM2:     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/pm2/node_modules/chokidar/lib/nodefs-handler.js:353:12)
PM2:     at Object.oncomplete (fs.js:107:15)
PM2: 2015-05-09 15:32:00: Process with pid 9155 still not killed, retrying...
PM2: 2015-05-09 15:32:00: Process with pid 9155 still alive after 800ms

谢谢,约翰

共有1个答案

廉学潞
2023-03-14

enospc表示设备上没有剩余空间。因此,请检查您的文件系统是否已满。假设您在Linux或其他类似UNIX的操作系统上,/tmp/var可能是候选。

 类似资料:
  • 本文向大家介绍The application has failed...(应用程序配置不正确),包括了The application has failed...(应用程序配置不正确)的使用技巧和注意事项,需要的朋友参考一下         在我们开发工程中,可能有些情况下,不能在本机进行调试。这个时候我们一般会使用VM(vmware)建立一个虚拟机环境,然后把编译过的程序放在该虚拟机环境下执行调试

  • 我无法正确获取此持久性文件...我在书中找不到任何更多的资料可供我参考。我用的是MySQL数据库。 编辑 严重:部署应用程序[VaadEntertainapp]时出现异常 Severe:org.xml.sax.SAXParseException:cvc-complex-type.2.4.a:发现以元素“provider”开头的内容无效。应为“{”http://java.sun.com/xml/ns

  • 在Spring工具套件(eclipse的定制版本)中,有一个选项可以为同一个应用程序定义多个运行配置,然后运行它们。 例如,当测试一台Eureka服务器并运行具有不同端口和名称定义的同一应用程序的多个实例以检查注册时。 有人知道使用Spring和Java扩展以及Visual Studio代码定义类似运行配置的方法吗?

  • 问题内容: 我有一个使用JPA持久性的jersey-2 / hk2应用程序。将在这样的约束启动 工厂级的 这可行,但是对于每个请求,我都会在日志中收到有关已注册EntityManager的警告: 我究竟做错了什么?在jersey-2 / hk2应用程序中初始化EntityManager的正确方法是什么? 问题答案: 一种选择是不是创建一个新的(这是在请求范围内),您可以创建为一个单独的工厂,然后就

  • 我有一个使用JPA持久性的jersey-2/hk2应用程序。启动时绑定如下所示

  • 我写了一个django网络应用程序,现在我需要把它翻译成英语。我遵循了文档,但我不断收到这个奇怪的错误: 在/i18n/setlang/settings处配置不正确。数据库配置不正确。请提供ENGINE值。有关详细信息,请查看设置文档。请求方法:POST请求URL:http://192.92.149.139:8000/i18n/setlang/Django版本:2.0.3异常类型:配置不正确的异常