openwhisk icon indicating copy to clipboard operation
openwhisk copied to clipboard

cannot update or delete actions with missing attachments

Open jberstler opened this issue 7 years ago • 4 comments

In the case that an action is missing its attachment, it cannot be updated or deleted. Updating results in a "concurrent modification" error from the CLI, and deleting has an error claiming that the resource doesn't exist.

The underlying cause of the problem is that WhiskAction.get attempts to fetch the attachment for the action and, upon failing to find it, then declares that the action itself does not exist.

Actions with missing attachments (however they happen) should be tolerated at least in that they can be updated and deleted.

jberstler avatar Mar 20 '17 21:03 jberstler

I have the same issue. Is there already any solution for this?

maSteinbach avatar Apr 27 '21 19:04 maSteinbach

😓 sorry you ran into this old issue - a workaround is to delete the document directly from couchdb (wskadmin db delete).

rabbah avatar Apr 28 '21 00:04 rabbah

Thank you for your fast reply!

I could also solve the problem via the UI from CouchDB. You can access it via http://OW_HOST_ADDRESS:32174/_utils/. In the database test_whisks you can then remove the respective functions.

maSteinbach avatar Apr 28 '21 12:04 maSteinbach

@rabbah I'd like to try to solve this issue. Or at least do conflict resolving from the couchdb provider since the real root issue is not having conflict resolution of couchdb within the controller. Do you have any more info we could sync on for me to attempt to debug, we see it frequently enough for users where for whatever reason the attachment is missing and then the document is in a corrupted state which requires sys admins to ameliorate? Any idea on how docs are getting uploaded without attachments?

bdoyle0182 avatar Aug 05 '22 17:08 bdoyle0182

closing should be fixed on master

bdoyle0182 avatar Dec 08 '22 22:12 bdoyle0182