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

Failed to checkout@v2 ssh private submodules on windows-latest #311

Open
hbursk opened this issue Jul 24, 2020 · 4 comments
Open

Failed to checkout@v2 ssh private submodules on windows-latest #311

hbursk opened this issue Jul 24, 2020 · 4 comments

Comments

@hbursk
Copy link

hbursk commented Jul 24, 2020

The following build steps succeed when using ubuntu-latest and macos-latest.

steps:
    - uses: actions/checkout@v2
      with:
        lfs: true
        ssh-key: ${{secrets.XREPO_KEY}}
        submodules: recursive

However, they get hung up for hours when using windows-latest. The actions eventually time out.

Is there an alternate method I should use on windows-latest to checkout private ssh submodules?

Update with some more info. It appears to get stuck on Fetching LFS objects. The action will run for 40 minutes, but the timestamp shows the operation was canceled moments after it started:

  Run actions/checkout@v2 42m 53s
401
Mon, 27 Jul 2020 22:01:41 GMT
  ##[error]The operation was canceled.
1
Mon, 27 Jul 2020 22:01:20 GMT
Run actions/checkout@v2
13
Mon, 27 Jul 2020 22:01:33 GMT
Syncing repository: myorg/myrepo
14
Mon, 27 Jul 2020 22:01:33 GMT
Getting Git version info
20
Mon, 27 Jul 2020 22:01:35 GMT
Deleting the contents of 'd:\a\myrepo\myrepo'
21
Mon, 27 Jul 2020 22:01:35 GMT
Initializing the repository
25
Mon, 27 Jul 2020 22:01:36 GMT
Disabling automatic garbage collection
27
Mon, 27 Jul 2020 22:01:36 GMT
Setting up auth
41
Mon, 27 Jul 2020 22:01:39 GMT
"C:\Program Files\Git\bin\git.exe" lfs install --local
42
Mon, 27 Jul 2020 22:01:39 GMT
Updated git hooks.
43
Mon, 27 Jul 2020 22:01:39 GMT
Git LFS initialized.
44
Mon, 27 Jul 2020 22:01:39 GMT
Fetching the repository
397
Mon, 27 Jul 2020 22:01:41 GMT
Determining the checkout info
398
Mon, 27 Jul 2020 22:01:41 GMT
Fetching LFS objects
399
Mon, 27 Jul 2020 22:01:41 GMT
  "C:\Program Files\Git\bin\git.exe" lfs fetch origin refs/remotes/origin/mybranch
400
Mon, 27 Jul 2020 22:01:41 GMT
  fetch: Fetching reference refs/remotes/origin/mybranch
401
Mon, 27 Jul 2020 22:01:41 GMT
  ##[error]The operation was canceled.
@yair-mantis
Copy link

i also found this issue.
using the following action which works on ubuntu-latest

name: CI 

on:
  workflow_dispatch:

jobs:
  build:
    runs-on: windows-latest
    steps:
      - uses: actions/checkout@v2.3.4
        with:
          lfs: 'true'
          submodules: 'recursive'
          ssh-key: ${{ secrets.git_ssh_key }}

        env:
          GIT_CURL_VERBOSE: '1'
          GIT_TRACE: '1'

will hang on git-lfs-authenticate

 trace git-lfs: exec: sh '-c' '"C:\Windows\System32\OpenSSH\ssh.exe" -i "$RUNNER_TEMP/-a80a-4230-a3ab-" -o StrictHostKeyChecking=yes -o CheckHostIP=no -o "UserKnownHostsFile=$RUNNER_TEMP/-a80a-4230-a3ab-26ac44c4f1ac_known_hosts" git@github.com 'git-lfs-authenticate ORG/LFSPackage.git download''

@AmmarArnt
Copy link

Any updates on this? I seem to be having the same issue on windows-latest, the step hangs for more than 40 minutes and I get no meaningful logs to understand what is going on.

@gogoprog
Copy link

I'm also interested in this

@BondLi1
Copy link

BondLi1 commented Jun 10, 2022

image

when I ./config.cmd --name $runner_name --unattended --replace --runasservice in windows server,then I will get above error when run checkout action when use ssh way to clone code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants