Build from GitHub private repo failed

Netlify site name: https://jimmieego.netlify.app/ (with password protection from Netlify)

Here the full build log:

10:33:23 AM: Build ready to start
10:33:25 AM: build-image version: d84c79427e8f83c1ba17bcdd7b3fe38059376b68
10:33:25 AM: build-image tag: v3.6.1
10:33:25 AM: buildbot version: 4c3d8713ccd4c98ab9180f79a013d42d2076d9ff
10:33:25 AM: Fetching cached dependencies
10:33:25 AM: Failed to fetch cache, continuing with build
10:33:25 AM: Starting to prepare the repo for build
10:33:26 AM: No cached dependencies found. Cloning fresh repo
10:33:26 AM: git clone https://github.com/jimmieego/portfolio-2019
10:33:30 AM: Preparing Git Reference refs/heads/master
10:33:32 AM: Different publish path detected, going to use the one specified in the Netlify configuration file: ‘public’ versus ‘public/’ in the Netlify UI
10:33:32 AM: Starting build script
10:33:32 AM: Installing dependencies
10:33:32 AM: Python version set to 2.7
10:33:33 AM: v12.18.0 is already installed.
10:33:34 AM: Now using node v12.18.0 (npm v6.14.4)
10:33:34 AM: Started restoring cached build plugins
10:33:34 AM: Finished restoring cached build plugins
10:33:34 AM: Attempting ruby version 2.7.1, read from environment
10:33:35 AM: Using ruby version 2.7.1
10:33:35 AM: Using PHP version 5.6
10:33:35 AM: Started restoring cached node modules
10:33:35 AM: Finished restoring cached node modules
10:33:35 AM: Started restoring cached yarn cache
10:33:35 AM: Finished restoring cached yarn cache
10:33:35 AM: Installing yarn at version 1.22.4
10:33:35 AM: Installing Yarn!
10:33:35 AM: > Downloading tarball…
10:33:35 AM: [1/2]: https://yarnpkg.com/downloads/1.22.4/yarn-v1.22.4.tar.gz → /tmp/yarn.tar.gz.rexCqIWR5D
10:33:35 AM: % Total % Received % Xferd Average Speed Time Time Time Current
10:33:35 AM: Dload Upload Total Spent Left Speed
10:33:36 AM: 0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
10:33:36 AM: 100 80 100 80 0 0 450 0 --:–:-- --:–:-- --:–:-- 451
10:33:36 AM: 0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
10:33:36 AM: 100 93 100 93 0 0 214 0 --:–:-- --:–:-- --:–:-- 476
10:33:36 AM: 100 625 100 625 0 0 911 0 --:–:-- --:–:-- --:–:-- 911
10:33:36 AM: 100 1215k 100 1215k 0 0 1174k 0 0:00:01 0:00:01 --:–:-- 1174k
10:33:36 AM: [2/2]: https://yarnpkg.com/downloads/1.22.4/yarn-v1.22.4.tar.gz.asc → /tmp/yarn.tar.gz.rexCqIWR5D.asc
10:33:37 AM: 100 84 100 84 0 0 1263 0 --:–:-- --:–:-- --:–:-- 1263
10:33:37 AM: 100 97 100 97 0 0 1031 0 --:–:-- --:–:-- --:–:-- 1031
10:33:37 AM: 100 629 100 629 0 0 5236 0 --:–:-- --:–:-- --:–:-- 5236
10:33:37 AM: 100 1028 100 1028 0 0 7849 0 --:–:-- --:–:-- --:–:-- 7849
10:33:37 AM: > Verifying integrity…
10:33:37 AM: gpg: Signature made Mon 09 Mar 2020 03:52:13 PM UTC using RSA key ID 69475BAA
10:33:37 AM: gpg: Good signature from “Yarn Packaging yarn@dan.cx
10:33:37 AM: gpg: Note: This key has expired!
10:33:37 AM: Primary key fingerprint: 72EC F46A 56B4 AD39 C907 BBB7 1646 B01B 86E5 0310
10:33:37 AM: Subkey fingerprint: 6D98 490C 6F1A CDDD 448E 4595 4F77 6793 6947 5BAA
10:33:37 AM: > GPG signature looks good
10:33:37 AM: > Extracting to ~/.yarn…
10:33:37 AM: > Adding to $PATH…
10:33:37 AM: > Successfully installed Yarn 1.22.4! Please open another terminal where the yarn command will now be available.
10:33:37 AM: Installing NPM modules using Yarn version 1.22.4
10:33:38 AM: yarn install v1.22.4
10:33:38 AM: [1/4] Resolving packages…
10:33:39 AM: warning Lockfile has incorrect entry for “fsevents@^1.2.7”. Ignoring it.
10:33:39 AM: warning gatsby > webpack-dev-server > chokidar > fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
10:33:40 AM: [2/4] Fetching packages…
10:33:45 AM: warning url-loader@1.1.2: Invalid bin field for “url-loader”.
10:34:04 AM: error Command failed.
10:34:04 AM: Exit code: 128
10:34:04 AM: Command: git
10:34:04 AM: Arguments: ls-remote --tags --heads ssh://git@github.com/Creatiwity/favicons-webpack-plugin.git
10:34:04 AM: Directory: /opt/build/repo
10:34:04 AM: Output:
10:34:04 AM: Host key verification failed.
10:34:04 AM: fatal: Could not read from remote repository.
10:34:04 AM: Please make sure you have the correct access rights
10:34:04 AM: and the repository exists.
10:34:04 AM: info Visit yarn install | Yarn for documentation about this command.
10:34:11 AM: Error during Yarn install
10:34:11 AM: Build was terminated: Build script returned non-zero exit code: 1
10:34:11 AM: Failing build: Failed to build site
10:34:11 AM: Failed during stage ‘building site’: Build script returned non-zero exit code: 1
10:34:11 AM: Finished processing build request in 46.527405223s

I have already tried relinking the private repo, but it did not work.

Since your website is private and so is the repo and we only have the build log which doesn’t have a clear indication of what’s wrong. From that, the problem that I can see is:

It maybe be because your repo is private or something. You can try creating a test public repo with demo content and see if it works. If that works fine, maybe you have not setup the access rights correctly as the error mentions.

I think I found the problem:
gatsby-plugin-favicon is using ssh, not https, for its github repo link.