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

agbot not give new agreement after device got deleted from the exchange #299

Closed
linggao opened this issue Aug 14, 2017 · 1 comment
Closed
Assignees
Labels

Comments

@linggao
Copy link
Member

linggao commented Aug 14, 2017

  1. start anax and register for an agreement that uses property and counterpartyproperty attributes to points to one agbot.
  2. got an agreement from that agbot
  3. restart anax, delete the device from the exchange and re-register the device with the same device id, register for an agreement for the same service.
  4. the device does not get new agreement for about 30 minutes.
@linggao linggao added the bug label Aug 14, 2017
@bmpotter bmpotter added the p3 label May 6, 2019
@dabooz dabooz self-assigned this Oct 14, 2019
@dabooz
Copy link
Member

dabooz commented Oct 22, 2019

This is a 2 year old issue. The closest I can get to recreate this (something like step 3) with current code is to get a device registered and running workloads, and then:
sudo apt-get purge --auto-remove bluehorizon.

Everything gets cleaned up on the device. I was able to re-install the deb packages, and register the device again using policy. The agbot sent agreement proposals as expected. The originally reported problem appears to be gone.

However, I did notice a small thing at the end of the apt-get purge output:
dpkg: warning: while removing horizon, directory '/var/run/horizon' not empty so not removed
This error message is pointing out that /var/run/horizon/essapi.sock has not been cleaned up by the horizon.postrm script that runs when the horizon package is uninstalled.

This is something we can fix in the deb packager: open-horizon/horizon-deb-packager#260

@dabooz dabooz closed this as completed Oct 22, 2019
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

3 participants