[Support Guide] I’ve deployed my site but I still see "Page not found”

You’ll want to debug in the way described at the top of this article, @MESYETI . I checked, and your current deploy has only a single file in it which is probably not what you intended - only readme.md is deployed. I suspect your build did not work as you expected, which is something you’ll have to debug.

In the meantime I’d recommend rolling back to a prior working deploy while you troubleshoot. You can use the button at the top of any successful build page to publish that older deploy, for instance this one: Netlify App

Edit: The website works now

yeah, the website was linked to the wrong GitHub repo, I fixed that and the problem still exists, I don’t understand the error, but I am very certain that index.html is there. Here is the failed deploy log.
8:40:30 PM: Build ready to start

8:40:31 PM: build-image version: 09c2cdcdf242cf2f57c9ee0fcad9d298fad9ad41

8:40:31 PM: build-image tag: v3.5.0

8:40:31 PM: buildbot version: 8df8a50b1177b0b57364d20e0ea150448924cebf

8:40:32 PM: Fetching cached dependencies

8:40:32 PM: Starting to download cache of 21.0MB

8:40:32 PM: Finished downloading cache in 645.465542ms

8:40:34 PM: Failed during stage ‘Reading and parsing configuration files’:
Base directory does not exist: /opt/build/repo/https:/github.com/MESYETI/mesyetigq

: exit status 1

8:40:32 PM: Starting to extract cache

8:40:32 PM: Finished extracting cache in 158.83028ms

8:40:32 PM: Finished fetching cache in 813.570174ms

8:40:32 PM: Starting to prepare the repo for build

8:40:33 PM: Preparing Git Reference refs/heads/main

8:40:34 PM: Failing build: Failed to parse configuration

8:40:34 PM: Finished processing build request in 2.750170851s

And link to the deploy Netlify App

Sorry, there are NO files in the deploy you linked. You would have seen that if you had downloaded the site zipfile as that thread asks you to. We really do need you to help us with this process as an active participant, reading articles thoroughly and following the suggestions - we wrote those because they usually help :slight_smile:

I think you need to be testing your build in our build image to make sure everything is where you expect it to be:

Hi, I deployed my app and get the “Page not found” error.

  • I looked at the deployment console, no errors showing
  • I downloaded the site zip file from my published deploy and everything is ok
  • index.html file is at the root of the zip file
  • I also deployed this zip file on a local server and the app is working properly

For some reason whenever I try to see the app live, it says “Page Not Found” and gives me 404 error page.

Here’s my deploy console

Build ready to start
9:59:57 PM: build-image version: 09c2cdcdf242cf2f57c9ee0fcad9d298fad9ad41
9:59:57 PM: build-image tag: v3.5.0
9:59:57 PM: buildbot version: 8df8a50b1177b0b57364d20e0ea150448924cebf
9:59:57 PM: Fetching cached dependencies
9:59:57 PM: Starting to download cache of 157.7MB
9:59:58 PM: Finished downloading cache in 809.288511ms
9:59:58 PM: Starting to extract cache
10:00:05 PM: Finished extracting cache in 7.403755856s
10:00:05 PM: Finished fetching cache in 8.262543236s
10:00:05 PM: Starting to prepare the repo for build
10:00:06 PM: Preparing Git Reference refs/heads/main
10:00:08 PM: Starting build script
10:00:08 PM: Installing dependencies
10:00:08 PM: Python version set to 2.7
10:00:08 PM: Started restoring cached node version
10:00:11 PM: Finished restoring cached node version
10:00:11 PM: v12.18.0 is already installed.
10:00:12 PM: Now using node v12.18.0 (npm v6.14.4)
10:00:12 PM: Started restoring cached build plugins
10:00:12 PM: Finished restoring cached build plugins
10:00:12 PM: Attempting ruby version 2.7.1, read from environment
10:00:14 PM: Using ruby version 2.7.1
10:00:14 PM: Using PHP version 5.6
10:00:14 PM: Started restoring cached node modules
10:00:14 PM: Finished restoring cached node modules
10:00:14 PM: Started restoring cached go cache
10:00:14 PM: Finished restoring cached go cache
10:00:14 PM: go version go1.14.4 linux/amd64
10:00:14 PM: go version go1.14.4 linux/amd64
10:00:14 PM: Installing missing commands
10:00:14 PM: Verify run directory
10:00:16 PM: ​
10:00:16 PM: ────────────────────────────────────────────────────────────────
10:00:16 PM:   Netlify Build                                                 
10:00:16 PM: ────────────────────────────────────────────────────────────────
10:00:16 PM: ​
10:00:16 PM: ❯ Version
10:00:16 PM:   @netlify/build 5.3.3
10:00:16 PM: ​
10:00:16 PM: ❯ Flags
10:00:16 PM:   deployId: 5fc4602b3f35bd0007787c57
10:00:16 PM:   mode: buildbot
10:00:16 PM: ​
10:00:16 PM: ❯ Current directory
10:00:16 PM:   /opt/build/repo
10:00:16 PM: ​
10:00:16 PM: ❯ Config file
10:00:16 PM:   No config file was defined: using default values.
10:00:16 PM: ​
10:00:16 PM: ❯ Context
10:00:16 PM:   production
10:00:16 PM: ​
10:00:16 PM: ────────────────────────────────────────────────────────────────
10:00:16 PM:   1. Build command from Netlify app                             
10:00:16 PM: ────────────────────────────────────────────────────────────────
10:00:16 PM: ​
10:00:16 PM: $ ng build
10:00:40 PM: Generating ES5 bundles for differential loading...
10:00:42 PM: ES5 bundle generation complete.
10:00:46 PM: chunk {polyfills} polyfills-es2015.js, polyfills-es2015.js.map (polyfills) 141 kB [initial] [rendered]
10:00:46 PM: chunk {polyfills-es5} polyfills-es5.js, polyfills-es5.js.map (polyfills-es5) 656 kB [initial] [rendered]
10:00:46 PM: chunk {runtime} runtime-es2015.js, runtime-es2015.js.map (runtime) 6.16 kB [entry] [rendered]
10:00:46 PM: chunk {runtime} runtime-es5.js, runtime-es5.js.map (runtime) 6.16 kB [entry] [rendered]
10:00:46 PM: chunk {vendor} vendor-es2015.js, vendor-es2015.js.map (vendor) 4.52 MB [initial] [rendered]
10:00:46 PM: chunk {vendor} vendor-es5.js, vendor-es5.js.map (vendor) 5.1 MB [initial] [rendered]
10:00:46 PM: chunk {styles} styles-es2015.js, styles-es2015.js.map (styles) 13.6 kB [initial] [rendered]
10:00:46 PM: chunk {styles} styles-es5.js, styles-es5.js.map (styles) 15.2 kB [initial] [rendered]
10:00:46 PM: chunk {main} main-es2015.js, main-es2015.js.map (main) 383 kB [initial] [rendered]
10:00:46 PM: chunk {main} main-es5.js, main-es5.js.map (main) 398 kB [initial] [rendered]
10:00:46 PM: Date: 2020-11-30T03:00:46.185Z - Hash: 33ee881cbd74137adbe3 - Time: 25910ms
10:00:46 PM: ​
10:00:46 PM: (build.command completed in 30s)
10:00:46 PM: ​
10:00:46 PM: ────────────────────────────────────────────────────────────────
10:00:46 PM:   Netlify Build Complete                                        
10:00:46 PM: ────────────────────────────────────────────────────────────────
10:00:46 PM: ​
10:00:46 PM: (Netlify Build completed in 30s)
10:00:46 PM: Caching artifacts
10:00:46 PM: Started saving node modules
10:00:46 PM: Finished saving node modules
10:00:46 PM: Started saving build plugins
10:00:46 PM: Finished saving build plugins
10:00:46 PM: Started saving pip cache
10:00:46 PM: Finished saving pip cache
10:00:46 PM: Started saving emacs cask dependencies
10:00:46 PM: Finished saving emacs cask dependencies
10:00:46 PM: Started saving maven dependencies
10:00:46 PM: Finished saving maven dependencies
10:00:46 PM: Started saving boot dependencies
10:00:46 PM: Finished saving boot dependencies
10:00:46 PM: Started saving go dependencies
10:00:46 PM: Finished saving go dependencies
10:00:46 PM: Build script success
10:00:46 PM: Starting to deploy site from 'dist'
10:00:46 PM: Creating deploy tree 
10:00:46 PM: Creating deploy upload records
10:00:46 PM: 4 new files to upload
10:00:46 PM: 0 new functions to upload
10:00:47 PM: Starting post processing
10:00:47 PM: Post processing - HTML
10:00:47 PM: Post processing - header rules
10:00:47 PM: Post processing - redirect rules
10:00:47 PM: Post processing done
10:00:47 PM: Site is live ✨
10:01:18 PM: Finished processing build request in 1m21.466479771s

default subdomain : https://demo-website-prints.netlify.app/

Hi, @lmicho. You do not have index.html in the base of the publish directory. That file is nested under a subdirectory of “laurianemichaud”.

So, this URL doesn’t work:

https://demo-website-prints.netlify.app/

However, this URL does work … for the HTML file:

https://demo-website-prints.netlify.app/laurianemichaud/

There are 404s for the javascript files on that page for the same reason. They are now nested under laurianemichaud so they are not found if you try to request them without that path prefix.

$ curl -svo /dev/null  https://demo-website-prints.netlify.app/laurianemichaud/runtime-es5.js  2>&1 | egrep '< HTTP'
< HTTP/2 200
$ curl -svo /dev/null  https://demo-website-prints.netlify.app/runtime-es5.js  2>&1 | egrep '< HTTP'
< HTTP/2 404

I get a 200 response for the first URL and a 404 without laurianemichaud for this reason.

If there are other questions about this, please let us know.

1 Like

Thank you. I haven’t notice that a sub directory was created in /dist folder on building. I redeployed with proper publish directory setting and everything works now. Thanks for the fast reply!

Page Not Found

Looks like you’ve followed a broken link or entered a URL that doesn’t exist on this site.

Back to our site

If this is your site, and you weren’t expecting a 404 for this path, please visit Netlify’s “page not found” support guide for troubleshooting tips.

Hi, @sonytv. It appears you deleted that site. If there are other questions, please let us know.

Hello-
I am a newbie, and even though it does seem my index.html is in the correct spot, I still continue to get “page not found” for https://gallant-booth-fc3e7f.netlify.app/
Any assistance would be greatly appreciated. Thank you!

@Michelle6818 Welcome to the Netlify community.

If your index.html file was in the right place, it wouldn’t look like this unless your index.html page has this “page not found” code.

Please help us help you by writing a good post!

Build issues: Tell us about your workflow, including what SSG you are using.

If you are deploying via git, give us the URL of the repository.

Let us know what you have already tried and what the results were.

The better the post = the faster we can help!

Thank you for your speedy response. I actually kept working the issue and was finally successful. I’ll remember to write a more thorough post the next time I have an issue.

Thanks again,
Michelle

@Michelle6818 What did you do that finally got things working?

I followed directions to open a new terminal in Visual Studio Code and push from there. That seemed to work. This is my very first time using any of these applications, so I find myself struggling to communicate my issues using the correct terminology. It is such an amazing feeling when it works, though. Again, I am so grateful for your time. It’s nice to know you and your community are so willing to help us.

1 Like

Newbie here -
on my new tour website - our gift certificate page is showing page not found maybe 75% of the time .

this is only page on site showing this behavior.

Have update all the hard coded links in the announcement pop over
404 error also intermittent from link in menu
cleared cache…
any help will defiantly be appreciated

Page Not Found

Looks like you’ve followed a broken link or entered a URL that doesn’t exist on this site

Hello! I have a problem with site deploying. I have watched several video on YT, read articles, tryied to make chances according to the advances, cleared browsing data, addad _redirects file, but it still doesn’t work. I have tryied 2 ways - first from the GH, and second made a copy of project folder and manualy deployed.

  1. GH Repo
    GitHub - Ainika-Kos/react_snake
    https://cranky-hermann-c4757b.netlify.app/
    Screenshot - 548347849b48025acd650d0e538029ac - Gyazo
    Page is blanc

  2. From VSC
    Screenshot - 142eae5ab4a7306b7bd188d208803f4b - Gyazo
    https://snake-react-ts.netlify.app/
    Deploy is live, but page is not found
    Screenshot - a8842c10ffa913a1289d90d670b4a534 - Gyazo

I have deployed sites before by netlify, and if I had any problems, I saw them in Deploy log, fixed problems and after it all was working fine. Now deploy log status is 10:12:57 AM: Site is live :sparkles:, but it doesn’t work in fact.

Could you explain, what could be my problem?

Hi, @SFtours. I looked at the deployed files and there is no file named /gift-certificates.html or /gift-certificates/index.html` which would be the two possible files served for that URL.

https://electrictourcompany.com/gift-certificates/

Do you see that file in your downloaded deploy? I checked the redirects and there is nothing that targets that path to redirect it either. You will need to deploy content at the URL to have it displayed (or redirect that URL to content alternatively).

For the first site above, @Ainika, the index.html references the wrong location for the other assets. For example this script tag:

<script src="/%7Badd%20your%20homepage%20here%7D/static/js/2.f721494d.chunk.js"></script>

Should probably be this instead:

<script src="/static/js/2.f721494d.chunk.js"></script>

For the second site, I see index.html under the directory public:

https://snake-react-ts.netlify.app/public/

This index.html again contains invalid references to other assets:

    <link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
    <!--
      Notice the use of %PUBLIC_URL% in the tags above.
      It will be replaced with the URL of the `public` folder during the build.
      Only files inside the `public` folder can be referenced from the HTML.

      Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
      work correctly both with client-side routing and a non-root public URL.
      Learn how to configure a non-root public URL by running `npm run build`.
    -->

You will need to take a close look at what your site is building. The file are being served, @Ainika. However, I think what the files contains needs to be fixed.

If there are other questions, please let us know.

1 Like

Thank you, I will serach the way, how can I fix invalid reference :wink:

Hi! It is showing my site is live but the page is not found. I have uploaded by dropping the folder and not git.
https://gracecayford.netlify.app/

hi grace, we’d need to know if your first file is called index.html. that is the problem most of the time that causes these kind of issues.

No, it isn’t. Should I rename it?