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

Host verification failed #210

Open
Mich0232 opened this issue Jun 29, 2023 · 4 comments
Open

Host verification failed #210

Mich0232 opened this issue Jun 29, 2023 · 4 comments

Comments

@Mich0232
Copy link

Hi,

I'm having an issue while trying to build the gatsby project in the pipeline (Netlify deployment)
Plugin works correctly when run locally.
Has anyone encountered similar problem?

Netlify support ticket: https://answers.netlify.com/t/host-key-verification-failed-gatsby-transformer-gitinfo/95041 <- before using the fork

I'm using 1.4.0 version

Logs

4:32:42 PM: error @colliercz/gatsby-transformer-gitinfo threw an error while running the onCreateNode lifecycle:
4:32:42 PM: Host key verification failed.
4:32:42 PM: fatal: Could not read from remote repository.
4:32:42 PM: Please make sure you have the correct access rights
4:32:42 PM: and the repository exists.
4:32:42 PM: fatal: could not fetch fcbafe17c2c32539797b2905d20fef94617e5bae from promisor remote
4:32:42 PM: 
4:32:42 PM: 
4:32:42 PM:   Error: Host key verification failed. 
4:32:42 PM:   fatal: Could not read from remote repository.
4:32:42 PM:   Please make sure you have the correct access rights
4:32:42 PM:   and the repository exists.
4:32:42 PM:   fatal: could not fetch fcbafe17c2c32539797b2905d20fef94617e5bae from promisor   remote
4:32:42 PM:   
4:32:42 PM:   - error-detection.plugin.ts:42 Object.action
4:32:42 PM:     [repo]/[simple-git]/src/lib/plugins/error-detection.plugin.ts:42:29
4:32:42 PM:   
4:32:42 PM:   - plugin-store.ts:29 PluginStore.exec
4:32:42 PM:     [repo]/[simple-git]/src/lib/plugins/plugin-store.ts:29:29
4:32:42 PM:   
4:32:42 PM:   - git-executor-chain.ts:127 
4:32:42 PM:     [repo]/[simple-git]/src/lib/runners/git-executor-chain.ts:127:42
4:32:42 PM:   
4:32:42 PM:   - new Promise
4:32:42 PM:   
4:32:42 PM:   - git-executor-chain.ts:124 GitExecutorChain.handleTaskData
4:32:42 PM:     [repo]/[simple-git]/src/lib/runners/git-executor-chain.ts:124:14
4:32:42 PM:   
4:32:42 PM:   - git-executor-chain.ts:100 GitExecutorChain.<anonymous>
4:32:42 PM:     [repo]/[simple-git]/src/lib/runners/git-executor-chain.ts:100:40
4:32:42 PM:   
4:32:42 PM:   - Generator.next
4:32:42 PM:   
4:32:42 PM:   - index.js:55 fulfilled
4:32:42 PM:     [repo]/[simple-git]/dist/cjs/index.js:55:24
4:32:42 PM:   
4:32:42 PM: 
4:32:42 PM: not finished source and transform nodes - 1.699s
@CollierCZ
Copy link
Owner

I haven't seen a similar issue before. Are you trying to read from a private repository? If not, it might be an issue with the Netlify runner and its Git permissions, but I have no expertise on that.

@hrishikesh-k
Copy link

Netlify clones the repo and the files exist in the system just like any other git fetch and git pull. Could you shed some light on how exactly your plugin is working and what it's trying to do? If the repo exists locally, why would the plugin try to fetch data from the remote repo (though that should work too).

@CollierCZ
Copy link
Owner

@hrishikesh-k , the plugin tries to get the original information on files from Git. This fork was made specifically to get info on files that exist as symlinks, so it tracks down the original file in the link. Not sure what options are being used in this case, but absent a provided directory, it looks for the real path of the file and looks for the info in the Git repo there.

@hrishikesh-k
Copy link

Thanks, I checked your code as well the simple-git library's log command, and as far as I can see, it's simply running the git CLI. Nothing too fancy. I have asked @Mich0232, to try running the command directly. If the command runs, it's most likely not a problem with Netlify.

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

3 participants