-
Notifications
You must be signed in to change notification settings - Fork 73
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
commit goes 2 times #488
Comments
No, there should not be two commit callbacks: one per plugin. |
My (unfounded) suspicion is that the plugin is registered twice? Sometimes extra .so plugins could be lying around in the plugin dir.
Would it be possible to run a gdb session of clixon_backend, break in the two occurrences of eg. commit_commit and see what the back-trace is in the two different calls. What differs? |
I'am not understand
does he download the same plugin 2 times? |
interesting
if I run it like this, it loads 1 time, I don't understand what the problem is? |
The syslog looks strange.
The second log entry does not have a syslog header. Maybe one is stderr, and the other syslog? |
|
maybe you were right, but then I don't understand anything, then the plugin loads 1 time, how does it turn out that the plugin loads 2 times? very interesting |
yes, you were right, I experimented with this configuration, the output to the log is not duplicated
add
log:
but this does not solve the problem in duplicate commit :((( |
plugin
unit
commit 2 times :((((( |
I found this pattern: if I make a commit from the cli, it turns out 2 commits, and if through netconf, then 1 commit
send log cli
log netconf
|
I can confirm that the commit entry in
|
Updated example cli code. |
Thanks, I did it. It was
now
I don't want to say that I use it, but for understanding, is this functionality planned to be supported in the future? |
No thats the workaround. the committed fix is:
Note that this is just example code. |
Okay, thanks very much |
my plug
put the directory
systemctl restart clixon-backend
I log into the cli and make a commit
commit stages are executed 2 times, is this how it should be? or did I do something wrong?? Need help, thanks
The text was updated successfully, but these errors were encountered: