cannot deploy r blogdown website on netlify

I am building my first site using r blogdown following Yihui's book.
It succeeded in the first deployment on netlify.
Then I tried to remove all example posts by deleting the folders of them which makes the contents an empty folder.
With blogdown::build_site(), it returns:

                   | EN  
-------------------+-----
  Pages            |  7  
  Paginator pages  |  0  
  Non-page files   |  0  
  Static files     | 11  
  Processed images |  0  
  Aliases          |  0  
  Sitemaps         |  1  
  Cleaned          |  0 

After commit and push, I tried to deploy again to see it, but it failed with the following info

12:31:56 PM: Build ready to start
12:31:58 PM: build-image version: d84c79427e8f83c1ba17bcdd7b3fe38059376b68
12:31:58 PM: build-image tag: v3.6.1
12:31:58 PM: buildbot version: 734b021f1afb208e332629f2580fef69fda9a3bc
12:31:58 PM: Building without cache
12:31:58 PM: Starting to prepare the repo for build
12:31:58 PM: No cached dependencies found. Cloning fresh repo
12:31:58 PM: git clone https://github.com/myname/myname.github.io
12:31:59 PM: Preparing Git Reference refs/heads/master
12:32:00 PM: Failing build: Failed to parse configuration
12:32:00 PM: Failed during stage 'Reading and parsing configuration files': 
Base directory does not exist: /opt/build/repo/xiangli-xl.github.io

: exit status 1
12:32:00 PM: Finished processing build request in 2.485909192s

How should I fix it?
Thank you so much~

Have you try running the new checks functions in last version of blogdown ?
They could help find what could be wrong.

Try running blogdown::check_site()

Yes, it returns


― Check complete: config.yaml

― Checking .gitignore
| Checking for items to remove...
○ Nothing to see here - found no items to remove.
| Checking for items you can safely ignore...
● [TODO] You can safely add to .gitignore: .DS_Store, Thumbs.db
| Checking for items to ignore if you build the site on Netlify...
○ Found! You have safely ignored: public
● [TODO] When Netlify builds your site, you can safely add to .gitignore: resources
― Check complete: .gitignore

― Checking Hugo
| Checking Hugo version...
○ Found Hugo. You are using Hugo 0.80.0.
| Checking .Rprofile for Hugo version used by blogdown...
○ blogdown is using Hugo 0.80.0 to build site locally.
― Check complete: Hugo

― Checking netlify.toml...
○ Found HUGO_VERSION = 0.80.0 in [build] context of netlify.toml.
| Checking that Netlify & local Hugo versions match...
○ It's a match! Blogdown and Netlify are using the same Hugo version (0.80.0).
| Checking that Netlify & local Hugo publish directories match...
○ Good to go - blogdown and Netlify are using the same publish directory: public
― Check complete: netlify.toml

― Checking content files
| Checking for validity of YAML metadata in posts...
○ All YAML metadata appears to be syntactically valid.
| Checking for previewed content that will not be published...
○ Found 0 files with future publish dates.
○ Found 0 files marked as drafts.
| Checking your R Markdown content...
○ All R Markdown files have been knitted.
○ All R Markdown output files are up to date with their source files.
| Checking for .html/.md files to clean up...
○ Found 0 duplicate .html output files.
○ Found 0 incompatible .html files to clean up.
| Checking for the unnecessary 'content/' directory in theme...
○ Great! Your theme does not contain the content/ directory.
― Check complete: Content

Netlify failed again:

11:50:27 AM: Build ready to start
11:50:29 AM: build-image version: d84c79427e8f83c1ba17bcdd7b3fe38059376b68
11:50:29 AM: build-image tag: v3.6.1
11:50:29 AM: buildbot version: b5aa40ef41f8f8b302713d535e9a3180a3b0e301
11:50:29 AM: Building without cache
11:50:29 AM: Starting to prepare the repo for build
11:50:30 AM: No cached dependencies found. Cloning fresh repo
11:50:30 AM: git clone https://github.com/xiangli-xl/xiangli-xl.github.io
11:50:30 AM: Preparing Git Reference refs/heads/master
11:50:32 AM: Failing build: Failed to parse configuration
11:50:32 AM: Failed during stage 'Reading and parsing configuration files': 
Base directory does not exist: /opt/build/repo/xiangli-xl.github.io

: exit status 1
11:50:32 AM: Finished processing build request in 2.581551856s

I just found my last reply is hidden.....
I tried, it looks everything is going well there.....

Thanks I fix the post not showing.

It seems there is an issue in Netlify configuration then. Can you check on there website ?

Could this be related ?

you can ask maybe on their community for this deployment issue ?

Yes, I think so. blogdown::check_site() tells the R project goes well.
Thank you anyway. :grinning:

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.