Site fails to deploy, then deploys successfully but just shows error

So after I added a couple of pages to my blog post ( https://624c7af5d5b16d7ad8a79c10--numbersinnature.netlify.app/ ) that displayed fine in my preview application (Rstudio) I received this error when trying to deploy the site after clearing the cache:

10:14:35 AM: Build ready to start
10:14:37 AM: build-image version: d2c6dbeac570350a387d832f64bc980dc964ad65 (focal)
10:14:37 AM: build-image tag: v4.8.0
10:14:37 AM: buildbot version: e552b142336b2b1222a93a4fd4cbed0019c77b46
10:14:37 AM: Building without cache
10:14:37 AM: Starting to prepare the repo for build
10:14:37 AM: No cached dependencies found. Cloning fresh repo
10:14:37 AM: git clone https://github.com/samshott/NumbersInNature
10:14:39 AM: Preparing Git Reference refs/heads/master
10:14:40 AM: Error checking out submodules: Submodule 'NumbersInNature' (https://github.com/samshott/NumbersInNature) registered for path 'NumbersInNature'
Cloning into '/opt/build/repo/NumbersInNature'...
fatal: could not read Username for 'https://github.com': No such device or address
fatal: clone of 'https://github.com/samshott/NumbersInNature' into submodule path '/opt/build/repo/NumbersInNature' failed
Failed to clone 'NumbersInNature'. Retry scheduled
Cloning into '/opt/build/repo/NumbersInNature'...
fatal: could not read Username for 'https://github.com': No such device or address
fatal: clone of 'https://github.com/samshott/NumbersInNature' into submodule path '/opt/build/repo/NumbersInNature' failed
Failed to clone 'NumbersInNature' a second time, aborting
10:14:40 AM: Creating deploy upload records
10:14:40 AM: Failing build: Failed to prepare repo
10:14:40 AM: Failed during stage 'preparing repo': Error checking out submodules: Submodule 'NumbersInNature' (https://github.com/samshott/NumbersInNature) registered for path 'NumbersInNature'
Cloning into '/opt/build/repo/NumbersInNature'...
fatal: could not read Username for 'https://github.com': No such device or address
fatal: clone of 'https://github.com/samshott/NumbersInNature' into submodule path '/opt/build/repo/NumbersInNature' failed
Failed to clone 'NumbersInNature'. Retry scheduled
Cloning into '/opt/build/repo/NumbersInNature'...
fatal: could not read Username for 'https://github.com': No such device or address
fatal: clone of 'https://github.com/samshott/NumbersInNature' into submodule path '/opt/build/repo/NumbersInNature' failed
Failed to clone 'NumbersInNature' a second time, aborting
: exit status 1
10:14:41 AM: Finished processing build request in 4.101271009s

if I then try re-deploying my website without clearing the cache it deploys successfully, but the page is blank and only shows the following:
“version Redirecting… oid sha256:63926377a1369e68b5d8b7957d256d5287ee77879dbd6c21c77ecdfdb0f0c174 size 900”

here is the log for the successful deploy:

10:23:01 AM: Build ready to start
10:23:12 AM: build-image version: d2c6dbeac570350a387d832f64bc980dc964ad65 (focal)
10:23:12 AM: build-image tag: v4.8.0
10:23:12 AM: buildbot version: e552b142336b2b1222a93a4fd4cbed0019c77b46
10:23:12 AM: Fetching cached dependencies
10:23:13 AM: Starting to download cache of 373.9MB
10:23:16 AM: Finished downloading cache in 3.957553618s
10:23:16 AM: Starting to extract cache
10:23:21 AM: Finished extracting cache in 4.470890949s
10:23:21 AM: Finished fetching cache in 8.478419582s
10:23:21 AM: Starting to prepare the repo for build
10:23:21 AM: Preparing Git Reference refs/heads/master
10:23:22 AM: Parsing package.json dependencies
10:23:22 AM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'public' versus '.' in the Netlify UI
10:23:23 AM: Starting build script
10:23:23 AM: Installing dependencies
10:23:23 AM: Python version set to 2.7
10:23:23 AM: Started restoring cached node version
10:23:24 AM: Finished restoring cached node version
10:23:24 AM: v16.14.2 is already installed.
10:23:25 AM: Now using node v16.14.2 (npm v8.5.0)
10:23:25 AM: Started restoring cached build plugins
10:23:25 AM: Finished restoring cached build plugins
10:23:25 AM: Attempting ruby version 2.7.2, read from environment
10:23:26 AM: Using ruby version 2.7.2
10:23:26 AM: Using PHP version 8.0
10:23:26 AM: Installing Hugo 0.96.0
10:23:26 AM: hugo v0.96.0-2fd4a7d3d6845e75f8b8ae3a2a7bd91438967bbb+extended linux/amd64 BuildDate=2022-03-26T09:15:58Z VendorInfo=gohugoio
10:23:26 AM: Started restoring cached go cache
10:23:26 AM: Finished restoring cached go cache
10:23:27 AM: go version go1.16.5 linux/amd64
10:23:27 AM: go version go1.16.5 linux/amd64
10:23:27 AM: Installing missing commands
10:23:27 AM: Verify run directory
10:23:28 AM: ​
10:23:28 AM: ────────────────────────────────────────────────────────────────
10:23:28 AM:   Netlify Build                                                 
10:23:28 AM: ────────────────────────────────────────────────────────────────
10:23:28 AM: ​
10:23:28 AM: ❯ Version
10:23:28 AM:   @netlify/build 26.5.2
10:23:28 AM: ​
10:23:28 AM: Creating deploy upload records
10:23:28 AM: ❯ Flags
10:23:28 AM:   baseRelDir: true
10:23:28 AM:   buildId: 624c7af5d5b16d7ad8a79c0e
10:23:28 AM:   deployId: 624c7af5d5b16d7ad8a79c10
10:23:28 AM: ​
10:23:28 AM: ❯ Current directory
10:23:28 AM:   /opt/build/repo
10:23:28 AM: ​
10:23:28 AM: ❯ Config file
10:23:28 AM:   /opt/build/repo/netlify.toml
10:23:28 AM: ​
10:23:28 AM: ❯ Context
10:23:28 AM:   production
10:23:28 AM: ​
10:23:28 AM: ────────────────────────────────────────────────────────────────
10:23:28 AM:   1. build.command from netlify.toml                            
10:23:28 AM: ────────────────────────────────────────────────────────────────
10:23:28 AM: ​
10:23:28 AM: $ hugo
10:23:28 AM: Start building sites …
10:23:28 AM: hugo v0.96.0-2fd4a7d3d6845e75f8b8ae3a2a7bd91438967bbb+extended linux/amd64 BuildDate=2022-03-26T09:15:58Z VendorInfo=gohugoio
10:23:28 AM:                    | EN-US
10:23:28 AM: -------------------+--------
10:23:28 AM:   Pages            |    13
10:23:28 AM:   Paginator pages  |     0
10:23:28 AM:   Non-page files   |     3
10:23:28 AM:   Static files     |    85
10:23:28 AM:   Processed images |     0
10:23:28 AM:   Aliases          |     0
10:23:28 AM:   Sitemaps         |     1
10:23:28 AM:   Cleaned          |     0
10:23:28 AM: Total in 92 ms
10:23:28 AM: ​
10:23:28 AM: (build.command completed in 144ms)
10:23:28 AM: ​
10:23:28 AM: ────────────────────────────────────────────────────────────────
10:23:28 AM:   2. Deploy site                                                
10:23:28 AM: ────────────────────────────────────────────────────────────────
10:23:28 AM: ​
10:23:28 AM: Starting to deploy site from 'public'
10:23:28 AM: Creating deploy tree 
10:23:29 AM: 0 new files to upload
10:23:29 AM: 0 new functions to upload
10:23:29 AM: Site deploy was successfully initiated
10:23:29 AM: ​
10:23:29 AM: (Deploy site completed in 408ms)
10:23:29 AM: ​
10:23:29 AM: ────────────────────────────────────────────────────────────────
10:23:29 AM:   Netlify Build Complete                                        
10:23:29 AM: ────────────────────────────────────────────────────────────────
10:23:29 AM: ​
10:23:29 AM: (Netlify Build completed in 580ms)
10:23:29 AM: Caching artifacts
10:23:29 AM: Started saving build plugins
10:23:29 AM: Finished saving build plugins
10:23:29 AM: Started saving pip cache
10:23:29 AM: Finished saving pip cache
10:23:29 AM: Started saving emacs cask dependencies
10:23:29 AM: Finished saving emacs cask dependencies
10:23:31 AM: Starting post processing
10:23:29 AM: Started saving maven dependencies
10:23:29 AM: Finished saving maven dependencies
10:23:29 AM: Started saving boot dependencies
10:23:29 AM: Finished saving boot dependencies
10:23:29 AM: Started saving rust rustup cache
10:23:29 AM: Finished saving rust rustup cache
10:23:29 AM: Started saving go dependencies
10:23:29 AM: Finished saving go dependencies
10:23:29 AM: Build script success
10:23:31 AM: Post processing - HTML
10:23:33 AM: Post processing - header rules
10:23:33 AM: Post processing - redirect rules
10:23:34 AM: Post processing done
10:23:39 AM: Site is live ✨
10:23:57 AM: Finished processing build request in 45.005490516s

Not really sure what is going on here, if it has to do with my use of github’s large file storage?

Hey there, @samshott :wave:

Apologies for the delay here! Are you still encountering obstacles? If so, can you share what additional troubleshooting steps you have taken in the past week?

Thanks so much!