Hi, there, may I ask a help related to the deployment of my website(/Users/administrator/Documents/liechi) from repo(https://github.com/rbind/liechi).
I wrote a blog in RStudio and using blogdown and pushed it to my above mentioned repo for autopublishing through netlify. But the email from netify said that my recent builds had failed. I checked the repo, and found the blog was pushed to the folder under the repo correctly.
The error message said:
failed during stage 'preparing repo': git ref refs/heads/master does not exist
I checked my .git files and I could see the "HEAD" there.
I checked the deploy logs and found this:
2:20:36 PM: Build ready to start
2:20:37 PM: build-image version: 42bca793ccd33055023c56c4ca8510463a56d317
2:20:37 PM: buildbot version: 15854c92f1b74f9c77ad951b5536193c76eff25e
2:20:37 PM: Fetching cached dependencies
2:20:38 PM: Failed to fetch cache, continuing with build
2:20:38 PM: Starting to prepare the repo for build
2:20:38 PM: git ref refs/heads/master does not exist or you do not have permission
2:20:38 PM: Failing build: Failed to prepare repo
2:20:38 PM: failed during stage 'preparing repo': git ref refs/heads/master does not exist
2:20:38 PM: Finished processing build request in 774.672806ms
I used hugo 0.19 to build my site before. When I found this building failure, I updated the hugo to 0.50, because some google search suggested the older version of hugo was not supported.
But it did not solve the problem. It has been quite a while since the last time I wrote blogs, so maybe something has changed? Is there any idea?
BTW, I did not use hashtags in my posts, so the issue seemed to be different from that of issue #195.
Hi everyone. I am using blogdown for my site for a while now and i love it. However on my latest post, i tried to serve_site() locallyand got a strange error message, i could not resolve. Tried to reinstall blogdown and other pkgs, like xfun butnothing. The error msg is as follows:
Error in get(name, envir = asNamespace(pkg), inherits = FALSE) :
object 'sans_ext' not found
Anyone hasideahow i could resolve this issue? Thanks in advance!
* knitting content/en/2019-04-28-a-test-post.Rmd
Error in get(name, envir = asNamespace(pkg), inherits = FALSE) :
object 'sans_ext' not found
Calls: local ... eval.parent -> eval -> eval -> eval -> eval -> ::: -> get
Execution halted
Error in build_one(unlist(files[i, ])) :
Failed to compile content/en/2019-04-28-a-test-post.Rmd to content/en/2019-04-28-a-test-post.md
Execution halted
Error in run_script("R/build.R", as.character(local)) :
Failed to run R/build.R
> blogdown:::serve_site()
* knitting content/cn/2019-04-29-a-second-test.Rmd
Error in get(name, envir = asNamespace(pkg), inherits = FALSE) :
object 'sans_ext' not found
Calls: local ... eval.parent -> eval -> eval -> eval -> eval -> ::: -> get
Execution halted
Error in build_one(unlist(files[i, ])) :
Failed to compile content/cn/2019-04-29-a-second-test.Rmd to content/cn/2019-04-29-a-second-test.md
Execution halted
Error in run_script("R/build.R", as.character(local)) :
Failed to run R/build.R
This is my sessionInf:
> sessionInfo()
R version 3.6.0 (2019-04-26)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Sierra 10.12.6
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
I used rmd file for some posts two years ago, and it worked well, but most of the time I used md format for blogging. Recently I hoped to make some statistics learning notes with rmd, and met this issue.
sans_ext()
was changed from knitr
to xfun
, and the blogdown:::readUTF8()
and blogdown:::writeUTF8()
were changed to xfun:::read_utf8()
and xfun:::write_utf8()
. These changes affected R/build_one.R
, instead of R/build.R
, so the rmd files were not knitted.
git push
to my repo. I checked the repo, the md file is there under the en
directory, and the netlify sent me notification emails saying "we just published a new production deploy." The deploy summary said:"All files already uploaded. All files already uploaded by a previous deploy with the same commits." But I do have uploaded a new file to the en
directory. I comfirmed that the changes of file under cn
directory could be published successfully, but not under en
. The deploy log looked like this:
2:33:16 AM: Build ready to start
2:33:19 AM: build-image version: 9eeed52f6b95fa5f3838ee7b24b78fd68423ad6f
2:33:19 AM: build-image tag: v2.7.4
2:33:19 AM: buildbot version: 873914ead406888d4b46ecb363c89d5bf7360075
2:33:19 AM: Fetching cached dependencies
2:33:19 AM: Starting to download cache of 188.4MB
2:33:21 AM: Finished downloading cache in 2.140189171s
2:33:21 AM: Starting to extract cache
2:33:27 AM: Finished extracting cache in 5.362835825s
2:33:27 AM: Finished fetching cache in 7.641798201s
2:33:27 AM: Starting to prepare the repo for build
2:33:27 AM: Preparing Git Reference refs/heads/master
2:33:28 AM: Starting build script
2:33:28 AM: Installing dependencies
2:33:28 AM: Started restoring cached node version
2:33:30 AM: Finished restoring cached node version
2:33:30 AM: v8.16.0 is already installed.
2:33:31 AM: Now using node v8.16.0 (npm v6.4.1)
2:33:31 AM: Attempting ruby version 2.3.6, read from environment
2:33:33 AM: Using ruby version 2.3.6
2:33:33 AM: Using PHP version 5.6
2:33:33 AM: Installing Hugo 0.50
2:33:33 AM: Hugo Static Site Generator v0.50 linux/amd64 BuildDate: 2018-10-29T09:52:34Z
2:33:33 AM: Started restoring cached go cache
2:33:35 AM: Finished restoring cached go cache
2:33:35 AM: Installing Go version 1.10
2:33:35 AM: unset GOOS;
2:33:35 AM: unset GOARCH;
2:33:35 AM: export GOROOT='/opt/buildhome/.gimme_cache/versions/go1.10.linux.amd64';
2:33:35 AM: export PATH="/opt/buildhome/.gimme_cache/versions/go1.10.linux.amd64/bin:${PATH}";
2:33:35 AM: go version >&2;
2:33:35 AM: export GIMME_ENV='/opt/buildhome/.gimme_cache/env/go1.10.linux.amd64.env';
2:33:35 AM: go version go1.10 linux/amd64
2:33:35 AM: Installing missing commands
2:33:35 AM: Verify run directory
2:33:35 AM: Executing user command: hugo
2:33:35 AM: Building sites …
2:33:35 AM: | EN
2:33:35 AM: +------------------+----+
2:33:35 AM: Pages | 71
2:33:35 AM: Paginator pages | 0
2:33:35 AM: Non-page files | 2
2:33:35 AM: Static files | 26
2:33:35 AM: Processed images | 0
2:33:35 AM: Aliases | 0
2:33:35 AM: Sitemaps | 1
2:33:35 AM: Cleaned | 0
2:33:35 AM: Total in 410 ms
2:33:35 AM: Build script success
2:33:35 AM: Starting cache prep script
2:33:35 AM: Caching artifacts
2:33:35 AM: Started saving pip cache
2:33:35 AM: Finished saving pip cache
2:33:35 AM: Started saving emacs cask dependencies
2:33:36 AM: Finished saving emacs cask dependencies
2:33:36 AM: Started saving maven dependencies
2:33:36 AM: Finished saving maven dependencies
2:33:36 AM: Started saving boot dependencies
2:33:36 AM: Finished saving boot dependencies
2:33:36 AM: Started saving go dependencies
2:33:37 AM: Finished saving go dependencies
2:33:39 AM: Cache script success
2:33:39 AM: Starting to deploy site from 'public'
2:33:39 AM: Creating deploy tree
2:33:39 AM: 0 new files to upload
2:33:39 AM: 0 new functions to upload
2:33:39 AM: Starting post processing
2:33:40 AM: Post processing done
2:33:40 AM: Site is live
2:34:14 AM: Finished processing build request in 55.124789746s
2:34:14 AM: Shutting down logging, 0 messages pending