Closed mattansb closed 3 years ago
This is a Hugo error it seems. Unfortunately, I can't run your site for other issue with the template - so can't look into myself. Anyway, can you set the verbose option in a clean session ?
blogdown::build_site(args = "--verbose")
Also, was the site built or not ? it seems it was built correctly but you have an error at the end.
Thank you.
@cderv can it be a Hugo issue if Hugo hasn't been updated? I know it worked in Aug 2020, before updating blogdown
.
> blogdown::build_site(args = "--verbose")
INFO 2021/02/16 11:07:13 No translation bundle found for default language "en"
INFO 2021/02/16 11:07:13 Translation func for language en not found, use default.
INFO 2021/02/16 11:07:13 i18n not initialized; if you need string translations, check that you have a bundle in /i18n that matches the site language or the default language.
INFO 2021/02/16 11:07:13 Using config file:
Building sites … INFO 2021/02/16 11:07:13 syncing static files to C:\Users\USER\Documents\R\blog_netlify\public\
Total in 9269 ms
Error: Error copying static files: chtimes C:\Users\USER\Documents\R\blog_netlify\public\apple-touch-icon-144-precomposed.png: Access is denied.
(Note that the same error is now for a different file..., but the same error about "access".)
Also, was the site built or not ? it seems it was built correctly but you have an error at the end.
It doesn't add any new files to the /public
folder, so it seems not (the files currently in /public
are from a previous build).
blogdown::build_site
is only running for you
hugo -d public --themesDir themes -t "hyde-hyde"
So I believe this is a Hugo error. I don't know if it comes from a Hugo version or not. You can now manage hugo version so may be able to try several: https://blog.rstudio.com/2021/01/18/blogdown-v1.0/#hugo-versioning-system
Error: Error copying static files: chtimes C:\Users\USER\Documents\R\blog_netlify\public\apple-touch-icon-144-precomposed.png: Access is denied.
It seems there is an issue when Hugo tries to copy some static files. Hugo can't access the file (for a reason I don't know).
As your follow your public/
folder on GIT, this would be low risk IMO: You can try delete the current public folder for a clean state and try building new for your source.
It seems Hugo has also a log flag so you can try activate it but it may not be more info that in Console
blogdown::build_site(args = "--logFile=build.log")
I don't really know what can happen here: have you search through https://discourse.gohugo.io/ already ?
As your follow your public/ folder on GIT, this would be low risk IMO: You can try delete the current public folder for a clean state and try building new for your source.
No - still got the same error :(
I will try on the hugo forum - will update here if I get this resolved.
Thanks!
Just curious: I suppose USER
is replaced here or is it the real username on your environment ?
C:\Users\USER\Documents\R\blog_netlify\public\posts\IJR.csv
If so, in your real username do you have a space ? Sometimes space in file paths can cause issues.
Access issues can be caused by antivirus software too. Like files are created, they are analysed by Windows or another program and another third party program tries to move them - it can't because the file is locked so access is denied.
That is juts hints; Hopefully the Hugo community will be able to help you. Keep us posted ! thanks!
Just curious: I suppose USER is replaced here or is it the real username on your environment ?
Nope, USER
is actually my user directory - I was very lazy when setting up this machine 😅
Okay, it works now. I don't know exactly what made it work, but here are things that happend, chronologically, between it not working and it yes working:
blogdown::build_site()
hugo.exe
was safe (which it never asked before) - I said "uh, duh!"blogdown::build_site()
again.Hope this helps anyone!
My antivirus asked me if hugo.exe was safe (which it never asked before) - I said "uh, duh!"
I think this was the thing blocked you before.
Glad it works now. Thanks for sharing !
Yeah, me too. Weird that it only popped up after I closed Github for Desktop. Wonder what that's about...
I am not longer able to build the site with
blogdown::serve_site()
since V1.0.I get the following error:
(I am still able to serve the site.)
The full repo is here for testing: https://github.com/mattansb/blog_netlify
Session info:
Checklist
When filing a bug report, please check the boxes below to confirm that you have provided us with the information we need. Have you:
[x] formatted your issue so it is easier for us to read?
[x] used
blogdown::check_site()
function to diagnose your site and corrected potential problems?[x] included a minimal, self-contained, and reproducible example?
[x] pasted the output from
xfun::session_info('blogdown')
in your issue?[x] upgraded all your packages to their latest versions (including your versions of R, the RStudio IDE, and relevant R packages)?
[x] installed and tested your bug with the development version of the blogdown package using
remotes::install_github('rstudio/blogdown')
?