Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors in zola serve with hard_link_static = true #2081

Open
Keats opened this issue Jan 20, 2023 · 1 comment
Open

Errors in zola serve with hard_link_static = true #2081

Keats opened this issue Jan 20, 2023 · 1 comment
Labels

Comments

@Keats
Copy link
Collaborator

Keats commented Jan 20, 2023

From #1217 (comment) by @koitsu

Can confirm: the issue only happens when using hard_link_static = true, and happens regardless if you have any static assets or not. It's as easy as this:

Terminal 1: make sure you have a zola site that is working/building correctly
Terminal 2: zola serve + whatever args (sans -f)
Terminal 1: modify an .md file -- literally just open it up in vi, change nothing, and write it
Terminal 2: Zola begins to report bizarre and unhelpful errors (I sure wish it showed what file/directory it was accessing that resulted in errno EEXIST).

Demonstration of above:

$ zola serve -i 0.0.0.0 -p 1111
Building site...
Checking all internal links with anchors.
> Successfully checked 0 internal link(s) with anchors.
-> Creating 1 pages (0 orphan) and 1 sections
Done in 124ms.

Listening for changes in /home/jdc/blog20{config.toml, content, sass, static, templates}
Press Ctrl+C to stop

Web server is available at http://0.0.0.0:1111

Change detected @ 2022-05-30 20:38:37
-> Content changed /home/jdc/blog20/content/blog/2022-05-30-welcome-to-dumb.md
Checking all internal links with anchors.
> Successfully checked 0 internal link(s) with anchors.
-> Creating 1 pages (0 orphan) and 1 sections
Failed to build the site
Error: File exists (os error 17)
Done in 6ms.
@Raymi306
Copy link
Contributor

Raymi306 commented May 2, 2023

run touch $FILENAME to save a few key strokes when causing failures

@Raymi306 Raymi306 mentioned this issue May 2, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants