-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
New objects not getting added to parent object - couchdb #4293
Comments
@AdamElliott-AB Which version of Open MCT were you using before you updated to 1.7.7/1.7.5? |
We were using 1.7.5. We did not notice the problem until we updated to 1.7.7 We afterwards reverted to 1.7.5 but the problem was still present. |
@AdamElliott-AB A couple of questions:
|
|
@AdamElliott-AB Thanks for the info. Which version of Couch are you using? We are not seeing exactly what you're describing in our own deployments, but we are tracking an issue with some similarities. The issue we have observed is transient though and we haven't managed to reproduce it reliably. |
couchdb v 3.1.1 The issue we saw was consistent once it started. It continued after server restart, reverting to an earlier version of OpenMCT, and even deleting all couch documents. That last one I found particularly strange as it seems to indicate that OpenMCT's interaction with couch is somehow affected by deleted documents. I did back up the problematic database before completely wiping it out. I think I can get that isolated to a shareable state if interested. |
@AdamElliott-AB Is it possible that your browser or proxy have cached 1.7.7, and that after you reverted to 1.7.5 you were actually still using 1.7.7? This can happen sometimes when switching versions. You can confirm the version by clicking on the Open MCT logo in the top right. Also, are you seeing any errors when this problem occurs? In the network tab, in the JavaScript console, or in the UI? |
I hadn't considered caching after the version change. I doubt it though as I have browser cache disabled setting whenever browser dev tools is open, and I had that open frequently when troubleshooting. I did not see any errors in the server log, javascript console or the UI. I did not notice any errors in the network tab either, although I was not monitoring that all of the time. |
We just ran into this again. I still have not been able to identify the trigger, but once OpenMCT gets into this state it stays that way until I delete the couchdb 'openmct' database and re-import our objects from json into a fresh database as described earlier. |
@AdamElliott-AB Thanks for the update. |
This is happening because the parent composition does not get updated and saved. |
Closing this as an environment specific problem. |
Summary
We are using couchdb for persistence. Recently started having problems creating new objects. New objects seem to be created fine at first. They can be viewed and edited, but if the page is refreshed the new object is gone. Looking at the network traffic and couchdb database revealed that new object documents are getting added to couchdb, but the parent object document is not getting updated to include the new child object. No errors were reported on the browser console or couchdb logs.
Troubleshooting
Workaround
Steps to Reproduce
Environment
The problem was observed using openmct versions 1.7.7 and 1.7.5
The text was updated successfully, but these errors were encountered: