Static directory error: decorate: lstat: no such file or directory

I have a site that was working fine a couple months ago, but when I went back today to make some updates it no longer loads the static directory correctly. At least, that is my understanding.

This is a very simple one-page site with no theme, just sass files. I’m updating it locally on Linux.

When I run Hugo Server, I see:

WARN 2021/06/09 16:41:46 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/06/09 16:41:46 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/06/09 16:41:46 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/06/09 16:41:46 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/06/09 16:41:46 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/06/09 16:41:46 found no layout file for "HTML" for kind "section": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/06/09 16:41:46 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/06/09 16:41:46 found no layout file for "HTML" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/06/09 16:41:46 found no layout file for "HTML" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
Total in 14 ms
Error: Error copying static files: decorate: lstat /home/local/Sites/embedded-stream-page/static/sites: no such file or directory

This is the content of my config.toml:

baseURL = ""
languageCode = "en-us"
title = "Live Stream"

[markup]
  [markup.goldmark]
    [markup.goldmark.renderer]
      unsafe = true

Which version of Hugo?

Do you have a broken symbolic link in your static directory?

hugo v0.83.1+extended

No symlinks

Please post the output from ls -al static/

Sure, here you go, and thanks for helping:

total 52
drwxrwxr-x  6 artemis artemis  4096 Jun  9 16:28 .
drwxrwxr-x 12 artemis artemis  4096 Jun  9 16:29 ..
lrwxrwxrwx  1 artemis artemis    37 Jun  9 15:58 favicon.ico -> sites/all/themes/frontier/favicon.ico
drwxrwxr-x  2 artemis artemis  4096 Jun  9 15:59 fonts
drwxrwxr-x  2 artemis artemis  4096 Jun  9 15:59 images
drwxrwxr-x  2 artemis artemis  4096 Jun  9 15:59 js
-rw-rw-r--  1 artemis artemis 13720 Jun  9 16:08 style.css
-rw-rw-r--  1 artemis artemis  9830 Jun  9 16:08 style.css.map
drwxrwxr-x  2 artemis artemis  4096 Jun  9 15:59 uploads


See the “L” at the beginning? That’s a symbolic link.

Please post the output from file favicon.ico

Weird, I definitely didn’t create that symlink! I’ve removed it and the problem is solved. Thank you!

So, does Hugo just not play well with symlinks? What is the actual issue here, for future reference?

The symlink was broken.

Okay, thank you.

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