Report this

What is the reason for this report?

webhooks github to strapi

Posted on May 28, 2021

Hey,

I’ve been following a tutorial for deploying Strapi on Digital Ocean and I’ve got to the point of trying to make the GitHub action:

https://strapi.io/documentation/developer-docs/latest/setup-deployment-guides/deployment/hosting-guides/digitalocean.html#set-up-a-webhook-on-digitalocean-github

I have been through it all, and tested the webhook which appears to be working, no errors.

I then run the following:

sudo systemctl enable webhook.service
sudo systemctl start webhook

and all good, or no errors.

but when I check the status:

sudo systemctl status webhook

I get the following error:

● webhook.service - Github webhook
     Loaded: loaded (/etc/systemd/system/webhook.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Fri 2021-05-28 11:42:40 UTC; 4s ago
    Process: 9113 ExecStart=/usr/bin/nodejs /home/jordan/NodeWebhooks/webhook.js (code=exited, status=203/EXEC)
   Main PID: 9113 (code=exited, status=203/EXEC)

May 28 11:42:40 strapi-cms-mac-pro systemd[1]: webhook.service: Scheduled restart job, restart counter is at 5.
May 28 11:42:40 strapi-cms-mac-pro systemd[1]: Stopped Github webhook.
May 28 11:42:40 strapi-cms-mac-pro systemd[1]: webhook.service: Start request repeated too quickly.
May 28 11:42:40 strapi-cms-mac-pro systemd[1]: webhook.service: Failed with result 'exit-code'.
May 28 11:42:40 strapi-cms-mac-pro systemd[1]: Failed to start Github webhook.

I have tried a few different things and made some changes but nothing seems to change the “active” status.

My webhook.js and /etc/systemd/system/webhook.service are the same as in the tutorial, except the name and path. I am using node and not nodejs as I am running Ubuntu 21.04 x64, my GitHub repo is private.

I thought maybe that could be an issue? I did not git clone, and would need to setup ssh between them I guess.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.