Skip to content

Fix "Error: Process completed with exit code"

This walkthrough is based on a quick video I made

Sometimes you get errors with GitHub Actions! The error message usually says something like "All jobs have failed" or "Error: Process completed with exit code XXX," but that isn't actually helpful!

To find the real error message, go into GitHub Actions and click around into your actual workflow/action. My action is called update so I just keep clicking anything that says update and has a red X next to it.

Then you can see the step with the error, along with the actual error message.

In the image below, above the "Error: Process completed with exit code 2" code is the actual error message:

• Run python
python: can't open file * /home/runner/work/github-actions-error/github-actions-error/': (Errno 21 No such file or directory)

This means it's trying to run but can't find it. In this case, my scraper is actually called! I'll need to edit my github actions yaml file in .github/workflows/.

Same this in this next image: above "Error: Process completed with exit code 1" you can find the actual error:

• Run python
Traceback (most recent call last):
File "/home/runner/work/github-actions-error/github-actions-error/", line 3, in <module>
import pandas as pd
ModuleNotFoundError: No module named 'pandas'

The actual error is ModuleNotFoundError: No module named 'pandas', which just means pandas isn't installed. I should probably edit my YAML file to pip install it along with all of the other packages I'll be using.