-
Notifications
You must be signed in to change notification settings - Fork 164
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
Randomly deleting keys #126
Comments
Did some quick visual stack tracking and problem seems to likely stem from
|
Hello calvn, I was taking a look at the code and I'm trying to understand how did you figure out that the error came from a consul.kv.get call.... From what I understand after reading guillaumeger's logs, the key_name is not defined would come from "consul.kv.del" in the file_deleted function (right after Deleting key logger trace) Thanks a lot for the clues! |
@samifruit514 you are right, it seems that the exception is thrown by
Now, I wonder why it thinks |
Hello calvn, We just noticed that we had this error message when running with 0.12.12 which has few paths where key_name is not defined (in lib/consul/index.js):
These calls are located in handle_expanded_keys_with_different_file_types function. Again, this is in 0.12.12. 0.12.13 seem to had fixed this. I will try to reproduce this error in 0.12.12 to be sure this wont happend in 0.12.13 once we run it in our production environment. Thanks again! |
It seems that git2consul is deleting keys when there is a problem with consul:
{"name":"git2consul","hostname":"git2consul-1489113718-3a5mk","pid":1,"level":40,"msg":"Failed
to handle pull due to Error: consul: kv.get: rpc error: No cluster leader, clearing cache and retrying","time":"2016-11-23T23:56:35.436Z","v":0}
{"name":"git2consul","hostname":"git2consul-1489113718-3a5mk","pid":1,"level":40,"msg":"Purging branch cache /var/lib/git2consul_cache/lp/production for branch production in repo lp","time":"2016-11-23T23:56:35.436Z","v":0}
{"name":"git2consul","hostname":"git2consul-1489113718-3a5mk","pid":1,"level":10,"msg":"Deleting key lp/production/faq-bo","time":"2016-11-23T23:56:36.186Z","v":0}
{"name":"git2consul","hostname":"git2consul-1489113718-3a5mk","pid":1,"level":50,"msg":"Uncaught exception ReferenceError: key_name is not defined","time":"2016-11-23T23:56:36.234Z","v":0}
The text was updated successfully, but these errors were encountered: