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

controller/ER file watcher strange behavior #2480

Closed
ekoby opened this issue Oct 11, 2024 · 0 comments
Closed

controller/ER file watcher strange behavior #2480

ekoby opened this issue Oct 11, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ekoby
Copy link
Member

ekoby commented Oct 11, 2024

on macOS with HA: 3 controllers, 1 ER running

  1. it appears to trigger file watcher event for unrelated files:
[  45.803]    INFO identity.(*ID).queueReload.func1: reloading identity configuration
[ 427.432]    INFO identity.(*ID).startWatching.func1: identity file watcher received event, queuing reload: CREATE        "kc1.json"
[ 427.432]    INFO identity.(*ID).startWatching.func1: identity file watcher received event, queuing reload: CREATE        "sample_enroll"
[ 427.432]    INFO identity.(*ID).startWatching.func1: identity file watcher received event, queuing reload: CREATE        "ziti"
[ 427.432]    INFO identity.(*ID).startWatching.func1: identity file watcher received event, queuing reload: CREATE        "ziti-prox-c"
[ 427.432]    INFO identity.(*ID).startWatching.func1: identity file watcher received event, queuing reload: CREATE        "ziti_mfa"
[ 427.433]    INFO identity.(*ID).startWatching.func1: identity file watcher received event, queuing reload: WRITE|CHMOD   "kc1.json"
  1. some events put file watcher in a busy loop (for all controllers and ER):
[ 509.968]    INFO identity.(*ID).startWatching.func1: identity file watcher received event, queuing reload: WRITE         ""
[ 509.968]    INFO identity.(*ID).startWatching.func1: identity file watcher received event, queuing reload: WRITE         ""
[ 509.968]    INFO identity.(*ID).startWatching.func1: identity file watcher received event, queuing reload: WRITE         ""
[ 509.968]    INFO identity.(*ID).startWatching.func1: identity file watcher received event, queuing reload: WRITE         ""
[ 509.968]    INFO identity.(*ID).startWatching.func1: identity file watcher received event, queuing reload: WRITE         ""
[ 509.968]    INFO identity.(*ID).startWatching.func1: identity file watcher received event, queuing reload: WRITE         ""
[ 509.968]    INFO identity.(*ID).startWatching.func1: identity file watcher received event, queuing reload: WRITE         ""
[ 509.968]    INFO identity.(*ID).startWatching.func1: identity file watcher received event, queuing reload: WRITE         ""
[ 509.968]    INFO identity.(*ID).startWatching.func1: identity file watcher received event, queuing reload: WRITE         ""

I was able to trigger it by creating an identity and enrolling it (new jwt and json file) in this directory

@andrewpmartinez andrewpmartinez self-assigned this Oct 11, 2024
@andrewpmartinez andrewpmartinez added the bug Something isn't working label Oct 11, 2024
andrewpmartinez added a commit to openziti/identity that referenced this issue Oct 18, 2024
…rectory

fixes openziti/ziti#2480 empty configuration values were returning true as file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants