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

watcher does not detect changes made by another pod #7930

Closed
shaozi opened this issue Nov 4, 2020 · 2 comments
Closed

watcher does not detect changes made by another pod #7930

shaozi opened this issue Nov 4, 2020 · 2 comments

Comments

@shaozi
Copy link

shaozi commented Nov 4, 2020

What version of Hugo are you using (hugo version)?

$ hugo version
Hugo Static Site Generator v0.78.0-FD62817B linux/amd64 BuildDate: 2020-11-03T13:16:39Z

Does this issue reproduce with the latest release?

Yes

Did not see this issue with v 0.73.0. Upgrade to 0.76.5 and saw this issue, also verified 0.78.0 has it too.

Description

** Edit: found it cannot detect changes caused by another pod modifying the content **

I have a kubernetes pod that runs hugo -w and watching content folder:

/documents $ hugo -w
Start building sites …

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

Watching for changes in /documents/{archetypes,content,layouts}
Press Ctrl+C to stop
Watching for config changes in /documents/config.yaml

/documents is an nfs share on k8s node and is mapped into the pod with a persistent volume.

When I change the file in content folder, hugo does not rebuild. If I modify the config.yaml, it rebuilds.

When change content from the same container, it works fine. However, if I change content from another pod, which share the same disk through the same persistent volume, it does not detect the change.

@shaozi shaozi changed the title watcher does not rebuild in nfs environment when content changes watcher does not detect changes made by another pod Nov 4, 2020
@moorereason
Copy link
Contributor

We use fsnotify for file watching capabilities. From their README:

Why don't notifications work with NFS filesystems or filesystem in userspace (FUSE)?

fsnotify requires support from underlying OS to work. The current NFS protocol does not provide network level support for file notifications.

@bep bep modified the milestones: v0.79, v0.80 Nov 27, 2020
@bep bep modified the milestones: v0.80, v0.81 Jan 2, 2021
@bep bep modified the milestones: v0.81, v0.82 Feb 19, 2021
@bep bep modified the milestones: v0.82, v0.83 Mar 21, 2021
@bep bep modified the milestones: v0.83, v0.84 May 1, 2021
@bep bep modified the milestones: v0.84, v0.85 Jun 18, 2021
@bep bep added the Enhancement label Jul 3, 2021
@bep bep self-assigned this Jul 3, 2021
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 18, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants