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=nodebb

    StandardOutput=syslog
    StandardError=syslog
    SyslogIdentifier=nodebb

    Environment=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



    1. You need to check your User, replace it with root and try
    2. You have already set WorkingDirectory so I think you do not need to set the same route in ExecStart again.

  • Global Moderator

    Also, the nodebb directory is in the ubuntu user's home directory, so the nodebb user probably doesn't have access to it.


Log in to reply
 


Star

Looks like your connection to NodeBB was lost, please wait while we try to reconnect.