If reporting a bug, please use the following template.
I'm using pm2 to manager/monit some binary applications which written by golang.
It works pretty well before, after I upgrade pm2 to new version, it seems like set the exec_interpreter to "none" does not work as before, and a error message show up
[PM2][ERROR] Interpreter none does not seems to be available
here is my processes.json
[{
...
"exec_interpreter" : "none",
...
}]
OS : ubuntu 16.04 LTS
node.js : v6.70
PM2 : 2.0.18
Use the command: tail --lines 50 ~/.pm2/pm2.log
...
cf CONTRIBUTING.md for more informations
Could you just drop the option "exec_interpreter" ?
Btw a fix will land in PM2 to keep the same behavior than v1
@Unitech I've removed "exec_interpreter" option and saw this [PM2][ERROR] Interpreter none does not seems to be available
$ pm2 delete all
$ pm2 start processes.json
Same result and there is no exec_interpreter option in processes.json
deploy@consenlabs:~$ pm2 delete all
[PM2] Applying action deleteProcessId on app [all](ids: 0,1,2,3,4)
[PM2] [geth-relay](2) โ
[PM2] [geth](0) โ
[PM2] [wallet-api](4) โ
[PM2] [ethstats-client](1) โ
[PM2] [market-api](3) โ
โโโโโโโโโโโโฌโโโโโฌโโโโโโโฌโโโโโโฌโโโโโโโโโฌโโโโโโโโโโฌโโโโโโโโโฌโโโโโโฌโโโโโโฌโโโโโโโโโโโ
โ App name โ id โ mode โ pid โ status โ restart โ uptime โ cpu โ mem โ watching โ
โโโโโโโโโโโโดโโโโโดโโโโโโโดโโโโโโดโโโโโโโโโดโโโโโโโโโโดโโโโโโโโโดโโโโโโดโโโโโโดโโโโโโโโโโโ
Use `pm2 show <id|name>` to get more details about an app
deploy@consenlabs:~$ pm2 start processes.json
[PM2][WARN] Applications geth, ethstats-client, geth-relay, market-api, wallet-api not running, starting...
[PM2][ERROR] Interpreter none does not seems to be available
[PM2][ERROR] Interpreter none does not seems to be available
[PM2] App [geth] launched (1 instances)
[PM2] App [geth-relay] launched (1 instances)
[PM2] App [ethstats-client] launched (1 instances)
[PM2] App [market-api] launched (1 instances)
[PM2] App [wallet-api] launched (1 instances)
โโโโโโโโโโโโโโโโโโโฌโโโโโฌโโโโโโโฌโโโโโโโโฌโโโโโโโโโฌโโโโโโโโโโฌโโโโโโโโโฌโโโโโโฌโโโโโโโโโโโโฌโโโโโโโโโโโ
โ App name โ id โ mode โ pid โ status โ restart โ uptime โ cpu โ mem โ watching โ
โโโโโโโโโโโโโโโโโโโผโโโโโผโโโโโโโผโโโโโโโโผโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโผโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโค
โ ethstats-client โ 1 โ fork โ 18403 โ online โ 0 โ 0s โ 14% โ 23.3 MB โ disabled โ
โ geth โ 0 โ fork โ 18399 โ online โ 0 โ 0s โ 20% โ 21.8 MB โ disabled โ
โ geth-relay โ 2 โ fork โ 18400 โ online โ 0 โ 0s โ 0% โ 3.0 MB โ disabled โ
โ market-api โ 3 โ fork โ 18406 โ online โ 0 โ 0s โ 12% โ 23.4 MB โ disabled โ
โ wallet-api โ 4 โ fork โ 18421 โ online โ 0 โ 0s โ 7% โ 22.7 MB โ disabled โ
โโโโโโโโโโโโโโโโโโโดโโโโโดโโโโโโโดโโโโโโโโดโโโโโโโโโดโโโโโโโโโโดโโโโโโโโโดโโโโโโดโโโโโโโโโโโโดโโโโโโโโโโโ
Use `pm2 show <id|name>` to get more details about an app
+1
Tried with exec_interpreter : none and no exec_interpreter, it works.
Could you please show me the ecosystem file
@Unitech I'm not sure what is ecosystem file, but after upgrade pm2 to version 2.0.19, I can still get Interpreter none does not seems to be available error message.
deploy@carbonvote:~$ pm2 --version
[PM2] Spawning PM2 daemon with pm2_home=/home/deploy/.pm2
[PM2] PM2 Successfully daemonized
2.0.19
deploy@carbonvote:~$ pm2 start processes.json.backup
[PM2][WARN] Applications geth, carbonvote not running, starting...
[PM2][ERROR] Interpreter none does not seems to be available
[PM2] App [geth] launched (1 instances)
[PM2] App [carbonvote] launched (1 instances)
โโโโโโโโโโโโโโฌโโโโโฌโโโโโโโฌโโโโโโโฌโโโโโโโโโฌโโโโโโโโโโฌโโโโโโโโโฌโโโโโโฌโโโโโโโโโโโโฌโโโโโโโโโโโ
โ App name โ id โ mode โ pid โ status โ restart โ uptime โ cpu โ mem โ watching โ
โโโโโโโโโโโโโโผโโโโโผโโโโโโโผโโโโโโโผโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโผโโโโโโผโโโโโโโโโโโโผโโโโโโโโโโโค
โ carbonvote โ 1 โ fork โ 2773 โ online โ 0 โ 0s โ 22% โ 21.8 MB โ disabled โ
โ geth โ 0 โ fork โ 2770 โ online โ 0 โ 0s โ 5% โ 13.7 MB โ disabled โ
โโโโโโโโโโโโโโดโโโโโดโโโโโโโดโโโโโโโดโโโโโโโโโดโโโโโโโโโโดโโโโโโโโโดโโโโโโดโโโโโโโโโโโโดโโโโโโโโโโโ
Use `pm2 show <id|name>` to get more details about an app
deploy@carbonvote:~$
Here is the processes.json.backup
[
{
"name" : "geth",
"cwd" : "/usr/bin/",
"script" : "geth",
"args" : "--rpc --fast --maxpeers 50",
"log_date_format" : "YYYY-MM-DD HH:mm Z",
"merge_logs" : false,
"watch" : false,
"max_restarts" : 10,
"exec_interpreter" : "none",
"exec_mode" : "fork_mode"
},
{
"name" : "carbonvote",
"cwd" : "/home/deploy/carbonvote/",
"script" : "index.js",
"log_date_format" : "YYYY-MM-DD HH:mm Z",
"log_file" : "/home/deploy/carbonvote/logs/node-app-log.log",
"out_file" : "/home/deploy/carbonvote/logs/node-app-out.log",
"error_file" : "/home/deploy/carbonvote/logs/node-app-err.log",
"merge_logs" : true,
"watch" : false,
"max_restarts" : 10,
"exec_interpreter" : "node",
"exec_mode" : "fork_mode",
"env":
{
"WEB" : "true",
"POLL" : "false"
}
}
]
Patch available on [email protected] (main):
$ npm install pm2 -g
$ pm2 update
@Unitech it works, thank you very much! ๐
+1
same error in 2019
Most helpful comment
Same result and there is no
exec_interpreteroption in processes.json