nodebb.service: Start request repeated too quickly.
-
Problem when I start nodebb service on Ubuntu 16.04:
● nodebb.service - NodeBB forum
Loaded: loaded (/lib/systemd/system/nodebb.service; enabled; vendor preset: enabled)
Active: inactive (dead) (Result: exit-code) since Wed 2017-10-11 07:52:51 UTC; 7s ago
Docs: http://nodebb.readthedocs.io/en/latest/
Process: 22403 ExecStart=/usr/bin/node /home/ubuntu/nodebb/loader.js –no-daemon –no-silent (code=exited, status=217/USER)
Main PID: 22403 (code=exited, status=217/USER)Oct 11 07:52:51 ip-172-31-9-78 systemd[1]: nodebb.service: Service hold-off time over, scheduling restart.
Oct 11 07:52:51 ip-172-31-9-78 systemd[1]: Stopped NodeBB forum.
Oct 11 07:52:51 ip-172-31-9-78 systemd[1]: nodebb.service: Start request repeated too quickly.
Oct 11 07:52:51 ip-172-31-9-78 systemd[1]: Failed to start NodeBB forum.Here is my nodebb.service file:
[Unit]
Description=NodeBB forum
Documentation=http://nodebb.readthedocs.io/en/latest/
After=system.slice multi-user.target[Service]
Type=simple
User=nodebbStandardOutput=syslog
StandardError=syslog
SyslogIdentifier=nodebbEnvironment=NODE_ENV=production
WorkingDirectory=/home/ubuntu/nodebb
ExecStart=/usr/bin/node /home/ubuntu/nodebb/loader.js –no-daemon –no-silent
Restart=always[Install]
WantedBy=multi-user.target -
Also, the
nodebb
directory is in theubuntu
user's home directory, so thenodebb
user probably doesn't have access to it. -
I am following the Ubuntu tutorial and currently have this exact same issue. Any idea how to solve this?
nodebb.service
[Unit] Description=NodeBB forum Documentation=http://nodebb.readthedocs.io/en/latest/ After=system.slice multi-user.target [Service] Type=simple User=snarlynarwhal # I also tried nodebb and root to no avail StandardOutput=syslog StandardError=syslog SyslogIdentifier=nodebb Environment=NODE_ENV=production WorkingDirectory=/home/snarlynarwhal/nodebb ExecStart=/usr/bin/node loader.js –no-daemon –no-silent Restart=always [Install] WantedBy=multi-user.target
output
snarlynarwhal@halfhuman:~/nodebb$ sudo systemctl status nodebb ● nodebb.service - NodeBB forum Loaded: loaded (/lib/systemd/system/nodebb.service; enabled; vendor preset: enabled) Active: inactive (dead) since Wed 2018-05-16 03:18:06 UTC; 2min 14s ago Docs: http://nodebb.readthedocs.io/en/latest/ Process: 10648 ExecStart=/usr/bin/node loader.js –no-daemon –no-silent (code=exited, status=0/SUCCESS) Main PID: 10648 (code=exited, status=0/SUCCESS) May 16 03:18:06 halfhuman systemd[1]: nodebb.service: Service hold-off time over, scheduling restart. May 16 03:18:06 halfhuman systemd[1]: Stopped NodeBB forum. May 16 03:18:06 halfhuman systemd[1]: nodebb.service: Start request repeated too quickly. May 16 03:18:06 halfhuman systemd[1]: Failed to start NodeBB forum.
-
Please use the application tutorial at docs.nodebb.org instead. Readthedocs for NodeBB is no longer maintained.
-
@pj-legendre said in nodebb.service: Start request repeated too quickly.:
nodebb.service: Start request repeated too quickly.
This indicates that NodeBB crashed quickly upon starting. You should run the
ExecStart
command in terminal to determine the cause.