# Build Failure: The path passed to gatsby-source-filesystem does not exist on your file system

**URL:** <https://answers.netlify.com/t/build-failure-the-path-passed-to-gatsby-source-filesystem-does-not-exist-on-your-file-system/12092>\
**Category:** Support\
**Tags:** git, building, gatsby, deployment\
**Created:** [April 10, 2020, 12:13am UTC](https://answers.netlify.com/t/build-failure-the-path-passed-to-gatsby-source-filesystem-does-not-exist-on-your-file-system/12092 "2020-04-10T00:13:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![truehello](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/truehello/32/8991_2.png) [@truehello](https://answers.netlify.com/u/truehello)\
**Post date:** [April 10, 2020, 12:13am UTC](https://answers.netlify.com/t/build-failure-the-path-passed-to-gatsby-source-filesystem-does-not-exist-on-your-file-system/12092/1 "2020-04-10T00:13:15Z")

</div>

I am getting a deployment failure when trying to build my site. It seems to stem from the following lines in the log:

```auto
9:21:24 AM: The path passed to gatsby-source-filesystem does not exist on your file system:
9:21:24 AM: /opt/build/repo/src/images/galleries/
9:21:24 AM: Please pick a path to an existing directory.

```

The path is to a collection of image folders. I’m wondering if this might be an issue with the limit of image files allowed ? The gatsby build command runs successfully locally, so I am currently stumped with the error. Any assistance is appreciated. Thank you

The site is kind-aryabhata-547ae6

The entire build log below:

```auto
9:20:13 AM: Build ready to start
9:20:15 AM: build-image version: 2dbd444fcdce00cf06325060a8238d5ae3e86774
9:20:15 AM: build-image tag: v3.3.7
9:20:15 AM: buildbot version: 901ee546b8b58e3bf9bdb8b69f0521510bb8ca29
9:20:15 AM: Fetching cached dependencies
9:20:16 AM: Failed to fetch cache, continuing with build
9:20:16 AM: Starting to prepare the repo for build
9:20:16 AM: No cached dependencies found. Cloning fresh repo
9:20:16 AM: git clone https://github.com/truehello/gatsby-photography-tailwind
9:20:26 AM: Preparing Git Reference refs/heads/master
9:20:28 AM: Starting build script
9:20:28 AM: Installing dependencies
9:20:29 AM: Downloading and installing node v10.20.0...
9:20:29 AM: Downloading https://nodejs.org/dist/v10.20.0/node-v10.20.0-linux-x64.tar.xz...
9:20:30 AM: 
#######
9:20:30 AM: 9.9%
9:20:30 AM: 
#######################################
9:20:30 AM: ################################# 100.0%
9:20:30 AM: Computing checksum with sha256sum
9:20:30 AM: Checksums matched!
9:20:33 AM: Now using node v10.20.0 (npm v6.14.4)
9:20:33 AM: Attempting ruby version 2.6.2, read from environment
9:20:34 AM: Using ruby version 2.6.2
9:20:35 AM: Using PHP version 5.6
9:20:35 AM: Started restoring cached node modules
9:20:35 AM: Finished restoring cached node modules
9:20:35 AM: Started restoring cached yarn cache
9:20:35 AM: Finished restoring cached yarn cache
9:20:35 AM: Installing yarn at version 1.17.0
9:20:35 AM: Installing Yarn!
9:20:35 AM: > Downloading tarball...
9:20:35 AM: [
9:20:35 AM: 1
9:20:35 AM: /
9:20:35 AM: 2
9:20:35 AM: ]
9:20:35 AM: :
9:20:35 AM: h
9:20:35 AM: t
9:20:35 AM: t
9:20:35 AM: p
9:20:35 AM: s
9:20:35 AM: :
9:20:35 AM: /
9:20:35 AM: /
9:20:35 AM: y
9:20:35 AM: a
9:20:35 AM: r
9:20:35 AM: n
9:20:35 AM: p
9:20:35 AM: k
9:20:35 AM: g
9:20:35 AM: .
9:20:35 AM: c
9:20:35 AM: o
9:20:35 AM: m
9:20:35 AM: /
9:20:35 AM: d
9:20:35 AM: o
9:20:35 AM: w
9:20:35 AM: n
9:20:35 AM: l
9:20:35 AM: o
9:20:35 AM: a
9:20:35 AM: d
9:20:35 AM: s
9:20:35 AM: /
9:20:35 AM: 1
9:20:35 AM: .
9:20:35 AM: 1
9:20:35 AM: 7
9:20:35 AM: .
9:20:35 AM: 0
9:20:35 AM: /
9:20:35 AM: y
9:20:35 AM: a
9:20:35 AM: r
9:20:35 AM: n
9:20:35 AM: -
9:20:35 AM: v
9:20:35 AM: 1
9:20:35 AM: .
9:20:35 AM: 1
9:20:35 AM: 7
9:20:35 AM: .
9:20:35 AM: 0
9:20:35 AM: .
9:20:35 AM: t
9:20:35 AM: a
9:20:35 AM: r
9:20:35 AM: .
9:20:35 AM: g
9:20:35 AM: z
9:20:35 AM: -
9:20:35 AM: -
9:20:35 AM: >
9:20:35 AM: /
9:20:35 AM: t
9:20:35 AM: m
9:20:35 AM: p
9:20:35 AM: /
9:20:35 AM: y
9:20:35 AM: a
9:20:35 AM: r
9:20:35 AM: n
9:20:35 AM: .
9:20:35 AM: t
9:20:35 AM: a
9:20:35 AM: r
9:20:35 AM: .gz.HtcM2iGEVY
9:20:35 AM: % Total % Rece
9:20:35 AM: ived % Xferd Average Speed Time Time
9:20:35 AM: Time Current
9:20:35 AM: Dload Upl
9:20:35 AM: oad Total Spent
9:20:35 AM: Left Speed
9:20:35 AM: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
9:20:35 AM: 0
9:20:35 AM: 
100
9:20:35 AM: 80 100 80 0 0 218 0 --:--:-- --:--:-- --:--:-- 219
9:20:35 AM: 
  0 0 0 0 0 0 0
9:20:35 AM: 0 --:--:-- --:--:-- --:--:-- 0
9:20:36 AM: 
100 93 100 93 0 0 134 0 -
9:20:36 AM: -:--:-- --:--:-- --:--:-- 390
9:20:36 AM: 1
9:20:36 AM: 0
9:20:36 AM: 0
9:20:36 AM: 6
9:20:36 AM: 3
9:20:36 AM: 0
9:20:36 AM: 1
9:20:36 AM: 0
9:20:36 AM: 0
9:20:36 AM: 6
9:20:36 AM: 3
9:20:36 AM: 0
9:20:36 AM: 0
9:20:36 AM: 0
9:20:36 AM: 6
9:20:36 AM: 5
9:20:36 AM: 5
9:20:36 AM: 0
9:20:36 AM: -
9:20:36 AM: -
9:20:36 AM: :
9:20:36 AM: -
9:20:36 AM: -
9:20:36 AM: :
9:20:36 AM: -
9:20:36 AM: -
9:20:36 AM: -
9:20:36 AM: -
9:20:36 AM: :
9:20:36 AM: -
9:20:36 AM: -
9:20:36 AM: :
9:20:36 AM: -
9:20:36 AM: -
9:20:36 AM: -
9:20:36 AM: -
9:20:36 AM: :
9:20:36 AM: -
9:20:36 AM: -
9:20:36 AM: :
9:20:36 AM: -
9:20:36 AM: -
9:20:36 AM: 6
9:20:36 AM: 5
9:20:36 AM: 5
9:20:36 AM: 
  1 1213k 1 16970 0 0 11711 0 0:01:46 0:00:01 0
9:20:36 AM: :01:45 11711
9:20:36 AM: 
100 1213k 100 1213k 0 0 760k 0 0:00:01 0:00:01 -
9:20:36 AM: -:--:-- 8141k
9:20:36 AM: [2/2]: https://yarnpkg.com/downloads/1.17.0/yarn-v1.17.0.tar.gz.asc --> /tmp/yarn.tar.gz.HtcM2iGEVY.asc
9:20:36 AM: 
100 84 100 84 0 0 2420
9:20:36 AM: 0 --:--:-- --:--:-- --:--:-- 2420
9:20:37 AM: 1
9:20:37 AM: 0
9:20:37 AM: 0
9:20:37 AM: 9
9:20:37 AM: 7
9:20:37 AM: 1
9:20:37 AM: 0
9:20:37 AM: 0
9:20:37 AM: 9
9:20:37 AM: 7
9:20:37 AM: 0
9:20:37 AM: 0
9:20:37 AM: 1
9:20:37 AM: 5
9:20:37 AM: 6
9:20:37 AM: 9
9:20:37 AM: 0
9:20:37 AM: -
9:20:37 AM: -
9:20:37 AM: :
9:20:37 AM: -
9:20:37 AM: -
9:20:37 AM: :
9:20:37 AM: -- --:--:-- --:
9:20:37 AM: --:-- 1569
9:20:37 AM: 
100 634 100 634 0 0 6454 0 --:--:-- --:--:-- --:--:-- 6454
9:20:37 AM: 
100 832 100 832 0 0 5874 0 --:--:-- --:--:-- --:--:-- 5874
9:20:37 AM: > Verifying integrity...
9:20:37 AM: gpg: Signature made Fri 14 Jun 2019 06:55:58 PM UTC using RSA key ID 69475BAA
9:20:37 AM: gpg: Good signature from "Yarn Packaging <yarn@dan.cx>"
9:20:37 AM: gpg: WARNING: This key is not certified with a trusted signature!
9:20:37 AM: gpg: There is no indication that the signature belongs to the owner.
9:20:37 AM: Primary key fingerprint: 72EC F46A 56B4 AD39 C907
9:20:37 AM: BBB7 1646 B01B 86E5 0310
9:20:37 AM: Subkey fingerprint: 6D98 490C 6F1A CDDD 448E 4595 4F77 6793 6947 5BAA
9:20:37 AM: > GPG signature looks good
9:20:37 AM: > Extracting to ~/.yarn...
9:20:37 AM: > Adding to $PATH...
9:20:37 AM: > Successfully installed Yarn 1.17.0! Please open another terminal where the `yarn` command will now be available.
9:20:38 AM: Installing NPM modules using Yarn version 1.17.0
9:20:39 AM: yarn install v1.17.0
9:20:39 AM: [1/4] Resolving packages...
9:20:40 AM: [2/4] Fetching packages...
9:21:05 AM: info fsevents@2.1.2: The platform "linux" is incompatible with this module.
9:21:05 AM: info "fsevents@2.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
9:21:05 AM: info fsevents@1.2.11: The platform "linux" is incompatible with this module.
9:21:05 AM: info "fsevents@1.2.11" is an optional dependency and failed compatibility check. Excluding it from installation.
9:21:05 AM: [3/4] Linking dependencies...
9:21:05 AM: warning "gatsby > react-hot-loader@4.12.20" has unmet peer dependency "@types/react@^15.0.0 || ^16.0.0".
9:21:05 AM: warning "gatsby > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
9:21:16 AM: [4/4] Building fresh packages...
9:21:20 AM: Done in 41.45s.
9:21:20 AM: NPM modules installed using Yarn
9:21:20 AM: Started restoring cached go cache
9:21:20 AM: Finished restoring cached go cache
9:21:20 AM: unset GOOS;
9:21:20 AM: unset GOARCH;
9:21:20 AM: export GOROOT='/opt/buildhome/.gimme/versions/go1.12.linux.amd64';
9:21:20 AM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
9:21:20 AM: go version >&2;
9:21:20 AM: export GIMME_ENV='/opt/buildhome/.gimme/env/go1.12.linux.amd64.env';
9:21:20 AM: go version go1.12 linux/amd64
9:21:20 AM: Installing missing commands
9:21:20 AM: Verify run directory
9:21:20 AM: Executing user command: yarn build
9:21:21 AM: yarn run v1.17.0
9:21:21 AM: $ gatsby build
9:21:23 AM: success open and validate gatsby-configs - 0.064s
9:21:24 AM: success load plugins - 0.911s
9:21:24 AM: success onPreInit - 0.003s
9:21:24 AM: success delete html and css files from previous builds - 0.015s
9:21:24 AM: success initialize cache - 0.009s
9:21:24 AM: success copy gatsby files - 0.089s
9:21:24 AM: success onPreBootstrap - 0.036s
9:21:24 AM: success createSchemaCustomization - 0.010s
9:21:24 AM: error
9:21:24 AM: The path passed to gatsby-source-filesystem does not exist on your file system:
9:21:24 AM: /opt/build/repo/src/images/galleries/
9:21:24 AM: Please pick a path to an existing directory.
9:21:24 AM: See docs here - https://www.gatsbyjs.org/packages/gatsby-source-filesystem/
9:21:24 AM: not finished source and transform nodes - 0.045s
9:21:25 AM: error Command failed with exit code 1.
9:21:25 AM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
9:21:25 AM: Skipping functions preparation step: no functions directory set
9:21:25 AM: Caching artifacts
9:21:25 AM: Started saving node modules
9:21:25 AM: Finished saving node modules
9:21:25 AM: Started saving yarn cache
9:21:25 AM: Finished saving yarn cache
9:21:25 AM: Started saving pip cache
9:21:25 AM: Finished saving pip cache
9:21:25 AM: Started saving emacs cask dependencies
9:21:25 AM: Finished saving emacs cask dependencies
9:21:25 AM: Started saving maven dependencies
9:21:25 AM: Finished saving maven dependencies
9:21:25 AM: Started saving boot dependencies
9:21:25 AM: Finished saving boot dependencies
9:21:25 AM: Started saving go dependencies
9:21:25 AM: Finished saving go dependencies
9:21:32 AM: Error running command: Build script returned non-zero exit code: 1
9:21:32 AM: Failing build: Failed to build site
9:21:32 AM: failed during stage 'building site': Build script returned non-zero exit code: 1
9:21:32 AM: Finished processing build request in 1m16.586546629s

```

---

<div class="post-metadata">

**Author:** ![perry](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/perry/32/16_2.png) [@perry](https://answers.netlify.com/u/perry)\
**Post date:** [April 13, 2020, 5:42pm UTC](https://answers.netlify.com/t/build-failure-the-path-passed-to-gatsby-source-filesystem-does-not-exist-on-your-file-system/12092/2 "2020-04-13T17:42:51Z")

</div>

hi there,

the issue definitely is that this folder:

```auto
9:21:24 AM: /opt/build/repo/src/images/galleries/

```

does not exist. We don’t have a limit on the amount of images that can exist (it is more a practical limit that we don’t allow your build to run for more than 15 minutes, but you quite far away from that).

The reason as to why that folder doesn’t exist I can’t say. It could be a naming mismatch, it could be a case sensitivity issue?

but i think if you figure out why that directory isn’t available, you’ll be able to fix your problem.

This might be helpful - if you download your deploy, maybe you can tell what **is** being generated as opposed to what you **think** is getting generated?

> [@\[Support Guide\] Netlify app builds locally but fails on deploy (case sensitivity)](https://answers.netlify.com/t/common-issue-problems-with-case-sensitivity-while-building-on-netlify/10754):
>
> Last updated by Netlify Support: July 2025 Are you struggling to understand why your project runs locally but errors out with missing files or logs that point toward issues with case when you try and build on Netlify? You are not alone. Often, case (as in: UPPERCASE or lowercase letters in filenames or paths) can cause problems. Here is a guide to understanding how case sensitivity issues present themselves, why they arise, and how you can fix them! 1. Errors you might see Case sensitivity iss…

> [@Can I download my website?](https://answers.netlify.com/t/can-i-download-my-website/3622):
>
> Hello! thanks for reading, I would like to solve this issue. So recently my computer has oxygenated, therefore i lost my computer- now I have a new one. I cant access my hard drive yet, and I have alot of projects there especially my netlify ones. I would like to download my own website which i have access to in my account, but I do not know how, it is already deployed. is there a way I can download a deployed build? i would really love to get my website back. I would be super glad if i get it…

---

<div class="post-metadata">

**Author:** ![truehello](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/truehello/32/8991_2.png) [@truehello](https://answers.netlify.com/u/truehello)\
**Post date:** [April 13, 2020, 8:58pm UTC](https://answers.netlify.com/t/build-failure-the-path-passed-to-gatsby-source-filesystem-does-not-exist-on-your-file-system/12092/3 "2020-04-13T20:58:56Z")

</div>

It was a case sensitivity issue. galleries needed to be Galleries. Thank you so much.

---

<div class="post-metadata">

**Author:** ![perry](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/perry/32/16_2.png) [@perry](https://answers.netlify.com/u/perry)\
**Post date:** [April 13, 2020, 8:59pm UTC](https://answers.netlify.com/t/build-failure-the-path-passed-to-gatsby-source-filesystem-does-not-exist-on-your-file-system/12092/4 "2020-04-13T20:59:39Z")

</div>

Perfect! it’s often the culprit. glad its working now 👍
