-
Notifications
You must be signed in to change notification settings - Fork 55
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
Loss of service groups and devices after agent restart #392
Comments
That’s not the usual behavior. You may have some configuration, deployment issues that make the agent lose the DB location/configuration when it restarts.
I recommend to ask for help in stack overflow giving as much detail as possible about your current deployment characteristics.
Anyway we will take a look just in case something unexpected happened.
… El 26 oct 2019, a las 19:52, Daniel Berenguer ***@***.***> escribió:
Version 1.10.0
Every time the UL agent is restarted all service groups and devices are lost. The database still contains the items but the API only returns empty lists. As result, UL devices can no longer transmit values to the agent (HTTP 404 response).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Like issue #391 doing IOTA_REGISTRY_TYPE=mongodb fixes this problem. I just confirm that this is the default behavior for IOTA_REGISTRY_TYPE commented out. |
Yes, that's correct. Please find the following piece of documentation about it (https://github.com/telefonicaid/iotagent-node-lib/blob/master/doc/installationguide.md):
All real-world utilization cases use mongodb as registry. Memory registry only makes sense for testing and things like that. Maybe what could be done in the scope of thi issue is to change de default to mongodb (as far as I understand the default right now, i.e. if IOTA_REGISTRY_TYPE is not provided, is memory). |
Version 1.10.0
Every time the UL agent is restarted all service groups and devices are lost. The database still contains the items but the API only returns empty lists. As result, UL devices can no longer transmit values to the agent (HTTP 404 response).
The text was updated successfully, but these errors were encountered: