Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commit fails with "process '/usr/bin/git' failed with exit code 128" #308

Closed
egil opened this issue May 22, 2020 · 19 comments
Closed

Commit fails with "process '/usr/bin/git' failed with exit code 128" #308

egil opened this issue May 22, 2020 · 19 comments
Labels
priority ‼️ This issue/PR is urgent. researching 📒 Currently researching potential fixes.

Comments

@egil
Copy link

egil commented May 22, 2020

Describe the bug
The action fails after Starting to commit changes… with the error message:

##[error]The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 128 ❌

Reproduce
Happens with this workflow (worked yesterday): https://github.com/egil/bunit/actions/runs/112644762/workflow

This is the part of the workflow definition that concerns the action:

      - name: Deploy
        uses: JamesIves/github-pages-deploy-action@releases/v3
        with:
          ACCESS_TOKEN: ${{ secrets.GH_DOCS }}
          BRANCH: gh-pages # The branch the action should deploy to.
          FOLDER: docs/_site # The folder the action should deploy.
          CLEAN: true

Logs
This is the related part of the log. The full log can be see here: https://github.com/egil/bunit/runs/700410665

2020-05-22T17:44:13.8130700Z ##[group]Run JamesIves/github-pages-deploy-action@releases/v3
2020-05-22T17:44:13.8130829Z with:
2020-05-22T17:44:13.8131267Z   ACCESS_TOKEN: ***
2020-05-22T17:44:13.8131365Z   BRANCH: gh-pages
2020-05-22T17:44:13.8131432Z   FOLDER: docs/_site
2020-05-22T17:44:13.8131518Z   CLEAN: true
2020-05-22T17:44:13.8131608Z env:
2020-05-22T17:44:13.8131692Z   VERSION: 1.0.0-beta-7
2020-05-22T17:44:13.8131779Z   BRANCH: master
2020-05-22T17:44:13.8131846Z   COMMIT: 
2020-05-22T17:44:13.8131931Z   DOCFX_SOURCE_BRANCH_NAME: master
2020-05-22T17:44:13.8132020Z   NBGV_CloudBuildNumber: 1.0.0-beta-7
2020-05-22T17:44:13.8132108Z   NBGV_VersionFileFound: True
2020-05-22T17:44:13.8132201Z   NBGV_VersionOptions: Nerdbank.GitVersioning.VersionOptions
2020-05-22T17:44:13.8132277Z   NBGV_AssemblyVersion: 1.0.0.0
2020-05-22T17:44:13.8132365Z   NBGV_AssemblyFileVersion: 1.0.0.67
2020-05-22T17:44:13.8132457Z   NBGV_AssemblyInformationalVersion: 1.0.0-beta-7+9111ea6f4e
2020-05-22T17:44:13.8132588Z   NBGV_PublicRelease: True
2020-05-22T17:44:13.8132795Z   NBGV_PrereleaseVersion: -beta-7
2020-05-22T17:44:13.8132886Z   NBGV_PrereleaseVersionNoLeadingHyphen: beta-7
2020-05-22T17:44:13.8132975Z   NBGV_SimpleVersion: 1.0.0
2020-05-22T17:44:13.8133061Z   NBGV_BuildNumber: 0
2020-05-22T17:44:13.8133149Z   NBGV_VersionRevision: 67
2020-05-22T17:44:13.8133219Z   NBGV_MajorMinorVersion: 1.0
2020-05-22T17:44:13.8133305Z   NBGV_VersionMajor: 1
2020-05-22T17:44:13.8133391Z   NBGV_VersionMinor: 0
2020-05-22T17:44:13.8133482Z   NBGV_GitCommitId: 9111ea6f4e9bff9a34b7fbf6aed25802ac1c215a
2020-05-22T17:44:13.8133573Z   NBGV_GitCommitIdShort: 9111ea6f4e
2020-05-22T17:44:13.8133662Z   NBGV_GitCommitDate: 5/22/20 4:32:45 PM +00:00
2020-05-22T17:44:13.8133733Z   NBGV_VersionHeight: 67
2020-05-22T17:44:13.8133817Z   NBGV_VersionHeightOffset: 0
2020-05-22T17:44:13.8134075Z   NBGV_Version: 1.0.0.67
2020-05-22T17:44:13.8134159Z   NBGV_BuildMetadataFragment: +9111ea6f4e
2020-05-22T17:44:13.8134245Z   NBGV_NuGetPackageVersion: 1.0.0-beta-7
2020-05-22T17:44:13.8134316Z   NBGV_ChocolateyPackageVersion: 1.0.0-beta-7
2020-05-22T17:44:13.8134401Z   NBGV_NpmPackageVersion: 1.0.0-beta-7
2020-05-22T17:44:13.8134484Z   NBGV_SemVer1: 1.0.0-beta-7
2020-05-22T17:44:13.8134566Z   NBGV_SemVer2: 1.0.0-beta-7
2020-05-22T17:44:13.8134647Z   NBGV_SemVer1NumericIdentifierPadding: 4
2020-05-22T17:44:13.8134734Z   DOTNET_ROOT: /opt/hostedtoolcache/dncs/3.1.202/x64
2020-05-22T17:44:13.8134807Z   GitAssemblyInformationalVersion: 1.0.0-beta-7+9111ea6f4e
2020-05-22T17:44:13.8134894Z   GitBuildVersion: 1.0.0.67
2020-05-22T17:44:13.8134977Z   GitBuildVersionSimple: 1.0.0
2020-05-22T17:44:13.8135062Z ##[endgroup]
2020-05-22T17:44:13.9234989Z Checking configuration and starting deployment… 🚦
2020-05-22T17:44:13.9243286Z Deploying using Access Token… 🔑
2020-05-22T17:44:13.9244987Z Configuring git…
2020-05-22T17:44:14.5360237Z Git configured… 🔧
2020-05-22T17:44:14.5365205Z Starting to commit changes…
2020-05-22T17:44:15.4018938Z ##[error]The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 128 �
2020-05-22T17:44:15.4023462Z Deployment Failed �
@OnyxPrime
Copy link

This started happening to me as well today

@egil
Copy link
Author

egil commented May 22, 2020

A little googling points to auth issues. But seeing as others than me have the issue, it might be a GitHub systemic issue, and not a problem with the action.

@Shell32-Natsu
Copy link

Same issue here.

@Shell32-Natsu
Copy link

Looks like a GitHub issue: actions/checkout#254

@ayberkt
Copy link

ayberkt commented May 22, 2020

Same issue here.

@OnyxPrime
Copy link

Just reran my action and it's now working. @Shell32-Natsu thank you for the info!

@Shell32-Natsu
Copy link

@OnyxPrime Unfortunately mine is still failing. 😂

@OnyxPrime
Copy link

@Shell32-Natsu mine just stopped working again! 🤦‍♂️ So frustrating

@JamesIves
Copy link
Owner

Uh oh, sorry I didn't see this earlier! Is this working for everyone now? I just checked with my test repo and it seems to be working.

@JamesIves JamesIves added invalid 🚫 priority ‼️ This issue/PR is urgent. researching 📒 Currently researching potential fixes. labels May 23, 2020
@Shell32-Natsu
Copy link

Shell32-Natsu commented May 23, 2020

@JamesIves It works for me now. Although the githubstatus.com still says it's not completely fixed.

@egil
Copy link
Author

egil commented May 23, 2020

Yep, GitHub fixed whatever was going on. Closing the issue.

@egil egil closed this as completed May 23, 2020
@egil
Copy link
Author

egil commented May 23, 2020

@JamesIves I have been getting a

##[error]The deploy step encountered an error: The process '/usr/bin/rsync' failed with exit code 23 ❌

all day to day. Is this a new issue (different error) or is it still a github bug?

Full log here for reference: https://github.com/egil/bunit/runs/702589534?check_suite_focus=true

@JamesIves
Copy link
Owner

If the error is throwing on rsync that is a different issue. You're most likely passing a folder path that doesn't exist when the workflow runs. If you need a hand debugging please open a new issue.

@egil
Copy link
Author

egil commented May 24, 2020

No your right. It was a error in the previous step that was not picked up on, and there was no folder.

Btw. If possible, you could check if the folder exists and provide a helpful error message to save users like me from themselves 😉

@JamesIves
Copy link
Owner

No your right. It was a error in the previous step that was not picked up on, and there was no folder.

Btw. If possible, you could check if the folder exists and provide a helpful error message to save users like me from themselves 😉

Happy to do that! Could you open up a feature request?

@Eamonnzhang
Copy link

image
I have the same error @JamesIves

@basz
Copy link

basz commented Jun 17, 2020

Not sure if related. I am trying to deploy to a different repository. Is this configuration ok? I did have one succesful run to the same repo with gh-pages branch.

    - name: Deploy 🚀
      uses: JamesIves/github-pages-deploy-action@releases/v3
      with:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        REPOSITORY_NAME: Wunderkammer-Amsterdam/wunderkammer-amsterdam.github.io
        BRANCH: master # The branch the action should deploy to.
        FOLDER: dist # The folder the action should deploy.
2020-06-17T11:20:36.9236302Z Built project successfully. Stored in "dist/".
2020-06-17T11:20:37.0268038Z File sizes:
2020-06-17T11:20:37.0273736Z  - dist/assets/auto-import-fastboot-d41d8cd98f00b204e9800998ecf8427e.js: 0 B
2020-06-17T11:20:37.0274813Z  - dist/assets/vendor-5dd0c02c2e1f383dc6fb8cf25ca5ce23.css: 10.56 KB (2.62 KB gzipped)
2020-06-17T11:20:37.0275210Z  - dist/assets/vendor-841c8fe6d5cdd29fa56487fae67d9070.js: 1.4 MB (312.06 KB gzipped)
2020-06-17T11:20:37.0275584Z  - dist/assets/wunderkammer-1e234370753ece8ec6e0f003d2c00c58.js: 83.72 KB (9.64 KB gzipped)
2020-06-17T11:20:37.0276291Z  - dist/assets/wunderkammer-9493039ba7957ea5cbeb86edc0524172.css: 76.07 KB (12.5 KB gzipped)
2020-06-17T11:20:37.0856344Z Done in 66.85s.
2020-06-17T11:20:37.0991302Z ##[group]Run JamesIves/github-pages-deploy-action@releases/v3
2020-06-17T11:20:37.0991460Z with:
2020-06-17T11:20:37.0992415Z   GITHUB_TOKEN: ***
2020-06-17T11:20:37.0992559Z   REPOSITORY_NAME: Wunderkammer-Amsterdam/wunderkammer-amsterdam.github.io
2020-06-17T11:20:37.0992700Z   BRANCH: master
2020-06-17T11:20:37.0992821Z   FOLDER: dist
2020-06-17T11:20:37.0992943Z ##[endgroup]
2020-06-17T11:20:37.2133702Z Checking configuration and starting deployment… 🚦
2020-06-17T11:20:37.2138316Z Deploying using GitHub Token… 🔑
2020-06-17T11:20:37.2138957Z Configuring git…
2020-06-17T11:20:37.8236195Z Git configured… 🔧
2020-06-17T11:20:37.8240462Z Starting to commit changes…
2020-06-17T11:20:39.0773106Z Running post deployment cleanup jobs… 🗑️
2020-06-17T11:20:39.0898611Z ##[error]The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 128 ❌
2020-06-17T11:20:39.0903184Z Deployment failed! ❌
2020-06-17T11:20:39.0995382Z Post job cleanup.
2020-06-17T11:20:39.1945452Z [command]/usr/bin/git version
2020-06-17T11:20:39.1995371Z git version 2.26.2
2020-06-17T11:20:39.2029177Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2020-06-17T11:20:39.2064156Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :
2020-06-17T11:20:39.2322766Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2020-06-17T11:20:39.2371399Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :
2020-06-17T11:20:39.2689875Z Cleaning up orphan processes

@JamesIves
Copy link
Owner

You'll need to use an access token to deploy across different repos.

@JamesIves
Copy link
Owner

Locking this thread - please open an issue if you're seeing a similar issue.

Repository owner locked as off-topic and limited conversation to collaborators Jun 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority ‼️ This issue/PR is urgent. researching 📒 Currently researching potential fixes.
Projects
None yet
Development

No branches or pull requests

7 participants