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:
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: webhook.service: Scheduled restart job, restart counter is at 5. May 28 11:42:40 strapi-cms-mac-pro systemd: Stopped Github webhook. May 28 11:42:40 strapi-cms-mac-pro systemd: webhook.service: Start request repeated too quickly. May 28 11:42:40 strapi-cms-mac-pro systemd: webhook.service: Failed with result 'exit-code'. May 28 11:42:40 strapi-cms-mac-pro systemd: 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.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!