# Github deploy action failing - exit 127

**URL:** <https://community.hubspot.com/t/github-deploy-action-failing-exit-127/114704>\
**Category:** CMS Development\
**Tags:** enterprise\
**Created:** [August 18, 2024, 10:04pm UTC](https://community.hubspot.com/t/github-deploy-action-failing-exit-127/114704 "2024-08-18T22:04:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![RBoyd9](https://avatars.discourse-cdn.com/v4/letter/r/8dc957/32.png) [@RBoyd9](https://community.hubspot.com/u/RBoyd9)\
**Post date:** [August 18, 2024, 10:04pm UTC](https://community.hubspot.com/t/github-deploy-action-failing-exit-127/114704/1 "2024-08-18T22:04:41Z")

</div>

Today I noticed that the HubSpot CMS deployment action is failing. There has been no update to our code over the weekend so I assume the action using hubspot CLI/@latest has caused this.

Can this please be urgently investigated? We have many projects that now rely on this as the primary deployment tool.

My Github actions log is below

---

<div class="post-metadata">

**Author:** ![RBoyd9](https://avatars.discourse-cdn.com/v4/letter/r/8dc957/32.png) [@RBoyd9](https://community.hubspot.com/u/RBoyd9)\
**Post date:** [August 18, 2024, 10:07pm UTC](https://community.hubspot.com/t/github-deploy-action-failing-exit-127/114704/2 "2024-08-18T22:07:04Z")

</div>

Run HubSpot/hubspot-cms-deploy-action@v1.7

7

7

Run actions/setup-node@v1

11/opt/hostedtoolcache/node/20.16.0/x64/bin/node --version

12v20.16.0

13/opt/hostedtoolcache/node/20.16.0/x64/bin/npm --version

1410.8.1

15

Run npx --yes --package=@hubspot/cli@latest --call=‘hs upload **[[FROM\_DESTINATION\_DIR]] [[TO\_DESTINATION\_DIR]]** --use-env’

21

21npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.

22npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported

23/usr/bin/env: ‘node --no-deprecation’: No such file or directory

/usr/bin/env: use -[v]S to pass options in shebang lines

25Error: Process completed with exit code 127.

---

<div class="post-metadata">

**Author:** ![MGFN](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@MGFN](https://community.hubspot.com/u/MGFN)\
**Post date:** [August 19, 2024, 10:13am UTC](https://community.hubspot.com/t/github-deploy-action-failing-exit-127/114704/3 "2024-08-19T10:13:32Z")

</div>

Hi - I am encountering the same issue with the same exit code: **Error: Process completed with exit code 127.**

It seems to happen after credentials are confirmed, but before the files are pushed up to HubSpot.

 ![HubSpot Deploy Issue.PNG](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/3/03ee5a8005cee7f050a054b5e75e52a88ca5c771.png)

---

<div class="post-metadata">

**Author:** ![OBojahr](https://avatars.discourse-cdn.com/v4/letter/o/7c8e57/32.png) [@OBojahr](https://community.hubspot.com/u/OBojahr)\
**Post date:** [August 19, 2024, 1:34pm UTC](https://community.hubspot.com/t/github-deploy-action-failing-exit-127/114704/4 "2024-08-19T13:34:51Z")

</div>

Also have a look at this ticket in github:

> <https://github.com/HubSpot/hubspot-cms-deploy-action/issues/34>
>
> We encountered an error during the deployment process, where the system returned… the following message:
> 
> 
> \##\[debug\]Evaluating condition for step: 'HubSpot Deploy Action'
> \##\[debug\]Evaluating: success()
> \##\[debug\]Evaluating success:
> \##\[debug\]=\> true
> \##\[debug\]Result: true
> \##\[debug\]Starting: HubSpot Deploy Action
> \##\[debug\]Loading inputs
> \##\[debug\]Evaluating: secrets.HUBSPOT\_PORTAL\_ID
> \##\[debug\]Evaluating Index:
> \##\[debug\]..Evaluating secrets:
> \##\[debug\]..=\> Object
> \##\[debug\]..Evaluating String:
> \##\[debug\]..=\> 'HUBSPOT\_PORTAL\_ID'
> \##\[debug\]=\> '\*\*\*'
> \##\[debug\]Result: '\*\*\*'
> \##\[debug\]Evaluating: secrets.HUBSPOT\_PERSONAL\_ACCESS\_KEY
> \##\[debug\]Evaluating Index:
> \##\[debug\]..Evaluating secrets:
> \##\[debug\]..=\> Object
> \##\[debug\]..Evaluating String:
> \##\[debug\]..=\> 'HUBSPOT\_PERSONAL\_ACCESS\_KEY'
> \##\[debug\]=\> '\*\*\*'
> \##\[debug\]Result: '\*\*\*'
> \##\[debug\]Loading env
> Run HubSpot/hubspot-cms-deploy-action@v1.7
> \##\[debug\]Evaluating condition for step: 'run'
> \##\[debug\]Evaluating: success()
> \##\[debug\]Evaluating success:
> \##\[debug\]=\> true
> \##\[debug\]Result: true
> \##\[debug\]Starting: run
> \##\[debug\]Loading inputs
> \##\[debug\]Loading env
> Run actions/setup-node@v1
> \##\[debug\]isExplicit: 
> \##\[debug\]explicit? false
> \##\[debug\]isExplicit: 16.\[2\](https://github.com/Digital-Woods/digital-woods-theme-v2/actions/runs/10448523239/job/28929438043#step:3:2)0.2
> \##\[debug\]explicit? true
> \##\[debug\]isExplicit: 18.20.4
> \##\[debug\]explicit? true
> \##\[debug\]isExplicit: 20.16.0
> \##\[debug\]explicit? true
> \##\[debug\]evaluating \[3\](https://github.com/Digital-Woods/digital-woods-theme-v2/actions/runs/10448523239/job/28929438043#step:3:3) versions
> \##\[debug\]matched: 20.16.0
> \##\[debug\]checking cache: /opt/hostedtoolcache/node/20.16.0/x6\[4\](https://github.com/Digital-Woods/digital-woods-theme-v2/actions/runs/10448523239/job/28929438043#step:3:4)
> \##\[debug\]Found tool in cache node 20.16.0 x64
> /opt/hostedtoolcache/node/20.16.0/x64/bin/node --version
> v20.16.0
> /opt/hostedtoolcache/node/20.16.0/x64/bin/npm --version
> 10.8.1
> \##\[add-matcher\]/home/runner/work/\_actions/actions/setup-node/v1/.github/tsc.json
> \##\[debug\]Added matchers: 'tsc'. Problem matchers scan action output for known warning or error strings and report these inline.
> \##\[add-matcher\]/home/runner/work/\_actions/actions/setup-node/v1/.github/eslint-stylish.json
> \##\[debug\]Added matchers: 'eslint-stylish'. Problem matchers scan action output for known warning or error strings and report these inline.
> \##\[add-matcher\]/home/runner/work/\_actions/actions/setup-node/v1/.github/eslint-compact.json
> \##\[debug\]Added matchers: 'eslint-compact'. Problem matchers scan action output for known warning or error strings and report these inline.
> \##\[debug\]Node Action run completed with exit code 0
> \##\[debug\]Finished: run
> \##\[debug\]Evaluating: inputs.portal\_id
> \##\[debug\]Evaluating Index:
> \##\[debug\]..Evaluating inputs:
> \##\[debug\]..=\> Object
> \##\[debug\]..Evaluating String:
> \##\[debug\]..=\> 'portal\_id'
> \##\[debug\]=\> '\*\*\*'
> \##\[debug\]Result: '\*\*\*'
> \##\[debug\]Evaluating: inputs.personal\_access\_key
> \##\[debug\]Evaluating Index:
> \##\[debug\]..Evaluating inputs:
> \##\[debug\]..=\> Object
> \##\[debug\]..Evaluating String:
> \##\[debug\]..=\> 'personal\_access\_key'
> \##\[debug\]=\> '\*\*\*'
> \##\[debug\]Result: '\*\*\*'
> \##\[debug\]Evaluating condition for step: 'run'
> \##\[debug\]Evaluating: success()
> \##\[debug\]Evaluating success:
> \##\[debug\]=\> true
> \##\[debug\]Result: true
> \##\[debug\]Starting: run
> \##\[debug\]Loading inputs
> \##\[debug\]Evaluating: format('npx --yes --package=@hubspot/cli@latest --call=''hs upload {0} {1} --use-env''
> \##\[debug\]', inputs.src\_dir, inputs.dest\_dir)
> \##\[debug\]Evaluating format:
> \##\[debug\]..Evaluating String:
> \##\[debug\]..=\> 'npx --yes --package=@hubspot/cli@latest --call=''hs upload {0} {1} --use-env''
> \##\[debug\]'
> \##\[debug\]..Evaluating Index:
> \##\[debug\]....Evaluating inputs:
> \##\[debug\]....=\> Object
> \##\[debug\]....Evaluating String:
> \##\[debug\]....=\> 'src\_dir'
> \##\[debug\]..=\> '.'
> \##\[debug\]..Evaluating Index:
> \##\[debug\]....Evaluating inputs:
> \##\[debug\]....=\> Object
> \##\[debug\]....Evaluating String:
> \##\[debug\]....=\> 'dest\_dir'
> \##\[debug\]..=\> 'dw-theme-v2'
> \##\[debug\]=\> 'npx --yes --package=@hubspot/cli@latest --call=''hs upload . dw-theme-v2 --use-env''
> \##\[debug\]'
> \##\[debug\]Result: 'npx --yes --package=@hubspot/cli@latest --call=''hs upload . dw-theme-v2 --use-env''
> \##\[debug\]'
> \##\[debug\]Loading env
> Run npx --yes --package=@hubspot/cli@latest --call='hs upload . dw-theme-v2 --use-env'
> \##\[debug\]/usr/bin/bash --noprofile --norc -e -o pipefail /home/runner/work/\_temp/0a00461f-864\[5\](https://github.com/Digital-Woods/digital-woods-theme-v2/actions/runs/10448523239/job/28929438043#step:3:5)-47f0-b722-c90fbc93940f.sh
> npm warn deprecated inflight@1.0.\[6\](https://github.com/Digital-Woods/digital-woods-theme-v2/actions/runs/10448523239/job/28929438043#step:3:6): This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
> npm warn deprecated glob@\[7\](https://github.com/Digital-Woods/digital-woods-theme-v2/actions/runs/10448523239/job/28929438043#step:3:7).2.3: Glob versions prior to v9 are no longer supported
> /usr/bin/env: ‘node --no-deprecation’: No such file or directory
> /usr/bin/env: use -\[v\]S to pass options in shebang lines
> Error: Process completed with exit code \[12\](https://github.com/Digital-Woods/digital-woods-theme-v2/actions/runs/10448523239/job/28929438043#step:3:12)7.
> \##\[debug\]Finished: run
> \##\[debug\]Finishing: HubSpot Deploy Action

---

<div class="post-metadata">

**Author:** ![RBoyd9](https://avatars.discourse-cdn.com/v4/letter/r/8dc957/32.png) [@RBoyd9](https://community.hubspot.com/u/RBoyd9)\
**Post date:** [August 19, 2024, 8:11pm UTC](https://community.hubspot.com/t/github-deploy-action-failing-exit-127/114704/5 "2024-08-19T20:11:16Z")

</div>

Thanks. I should have logged a ticket there also…  
I have just rerun the job in Github and it seems to have succeeded. No word from HubSpot yet, so will leave this open for now
