Job for pm2-wololo.service failed because the service did not take the steps required by its unit configuration.
See "systemctl status pm2-wololo.service" and "journalctl -xe" for details.
Following this guide https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-18-04
$ pm2 report
===============================================================================
--- PM2 REPORT (Mon Sep 24 2018 04:45:23 GMT+0000 (Coordinated Universal Time))
===============================================================================
--- Daemon -------------------------------------------------
pm2d version : 3.1.3
node version : 10.11.0
node path : /usr/bin/pm2
argv : /usr/bin/node,/usr/lib/node_modules/pm2/lib/Daemon.js
argv0 : node
user : wololo
uid : 1000
gid : 1000
uptime : 12min
===============================================================================
--- CLI ----------------------------------------------------
local pm2 : 3.1.3
node version : 10.11.0
node path : /usr/bin/pm2
argv : /usr/bin/node,/usr/bin/pm2,report
argv0 : node
user : wololo
uid : 1000
gid : 1000
===============================================================================
--- System info --------------------------------------------
arch : x64
platform : linux
type : Linux
cpus : Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz
cpus nb : 1
freemem : 545316864
totalmem : 1033383936
home : /home/wololo
===============================================================================
--- PM2 list -----------------------------------------------
โโโโโโโโโโโโฌโโโโโฌโโโโโโโฌโโโโโโโฌโโโโโโโโโฌโโโโโโโโโโฌโโโโโโโโโฌโโโโโโโฌโโโโโโโโโโโโฌโโโโโโโโโฌโโโโโโโโโโโ
โ App name โ id โ mode โ pid โ status โ restart โ uptime โ cpu โ mem โ user โ watching โ
โโโโโโโโโโโโผโโโโโผโโโโโโโผโโโโโโโผโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโผโโโโโโโผโโโโโโโโโโโโผโโโโโโโโโผโโโโโโโโโโโค
โ hello โ 0 โ fork โ 2152 โ online โ 0 โ 5m โ 0.1% โ 32.9 MB โ wololo โ disabled โ
โโโโโโโโโโโโดโโโโโดโโโโโโโดโโโโโโโดโโโโโโโโโดโโโโโโโโโโดโโโโโโโโโดโโโโโโโดโโโโโโโโโโโโดโโโโโโโโโดโโโโโโโโโโโ
===============================================================================
--- Daemon logs --------------------------------------------
โโโโโโโโโโโโฌโโโโโฌโโโโโโโฌโโโโโโโฌโโโโโโโโโฌโโโโโโโโโโฌโโโโโโโโโฌโโโโโโฌโโโโโโโโโโโโฌโโโโโโโโโฌโโโโโโโโโโโ
โ App name โ id โ mode โ pid โ status โ restart โ uptime โ cpu โ mem โ user โ watching โ
โโโโโโโโโโโโผโโโโโผโโโโโโโผโโโโโโโผโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโผโโโโโโผโโโโโโโโโโโโผโโโโโโโโโผโโโโโโโโโโโค
โ hello โ 0 โ fork โ 2152 โ online โ 0 โ 5m โ 0% โ 32.9 MB โ wololo โ disabled โ
โโโโโโโโโโโโดโโโโโดโโโโโโโดโโโโโโโดโโโโโโโโโดโโโโโโโโโโดโโโโโโโโโดโโโโโโดโโโโโโโโโโโโดโโโโโโโโโดโโโโโโโโโโโ
Use `pm2 show <id|name>` to get more details about an app
@MarvelousWololo I've hit the same issue... I'll post back if I discover anything.
@MarvelousWololo I ended up shutting down my server and starting it back up... once I did this everything seemed to be working fine.
I had the same issue with the same fix @corywheeler -- I had just barely set up a new ubuntu 18.04 box, and had never rebooted it.
I had the same issue as @corywheeler and @eegrok. I was able to get things working after a reboot. For those unfamiliar with the command it is: sudo reboot
@corywheeler, same here, after the reboot everything works OK. (spend two days on it...) Thanks!
I had the same issue. But after run command showed below, pm2 startup systemd started with no error :-)
ps aux | grep pm2 | grep -v grep | awk '{print $2}' | xargs kill -9
@harupu : It works for me also
@harupu worked for me as well :pray:
@harupu
It has also worked for me
Thank you
@harupu: also worked for me. many thx
Worded for me too
I had the same issue. But after run command showed below, pm2 startup systemd started with no error :-)
ps aux | grep pm2 | grep -v grep | awk '{print $2}' | xargs kill -9
Worked for me without the need to restart my server, thank you.
Didn't try the ps command, but the reboot worked for me :3
Thanks!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Dude, after hours of debugging, restart works! thanks mate
Great. It works for me too.
I had the same issue. But after run command showed below, pm2 startup systemd started with no error :-)
ps aux | grep pm2 | grep -v grep | awk '{print $2}' | xargs kill -9
tnx alot
I had the same problem with ubuntu 16, I need to execute pm2 resurrect every time my server has rebooted.
I had the same issue. But after run command showed below, pm2 startup systemd started with no error :-)
ps aux | grep pm2 | grep -v grep | awk '{print $2}' | xargs kill -9
This is the same as pm2 kill right? - just kill the pm2 master process.
Job for pm2-wololo.service failed because the service did not take the steps required by its unit configuration.
See "systemctl status pm2-wololo.service" and "journalctl -xe" for details.
This basically means the pm2 master process should be launched by the systemd, so it can manage it. But in most cases, if you follow the tutorial the master process is launched by yourself. That explains why it works after a restart/kill the master process - you get no pm2 running and the systemd can take over.
I suppose the correct steps to set up your server are:
pm2 kill to kill the master process if it launched already.pm2 startup systemd.
sudo env PATH=$PATH:/usr/bin /usr/lib/node_modules/pm2/bin/pm2 startup systemd -u USERNAME --hp /home/USERNAME
sudo service pm2-USERNAME start, now you have a pm2 master process managed by systemd. You can verify it with service pm2-USERNAME status.pm2 start your-ecosystem.file to start your apps.pm2 save to save your app configuration to /home/USERNAME/.pm2, so systemd launched pm2 master process can resume it from after a server restart.
Most helpful comment
I had the same issue. But after run command showed below, pm2 startup systemd started with no error :-)
ps aux | grep pm2 | grep -v grep | awk '{print $2}' | xargs kill -9