I have a provider hosted app with AppInstalled, AppUninstalling and AppUpgraded event receivers. Remote web for this app is hosted on Azure VM. App is available to all site collection through App Catalog site. I installed this app on one of my site collection. While testing the app upgrade feature, I encountered following error:
The content database on the server is temporarily unavailable. Details: 0x80070002 There is no Web named "/_Copy.
I retried multiple times but no luck. I also tried on different site collections but I get the same error.
Furthermore, I observed that it is happening only with 'AppUpgraded' event receiver added. Upgrade works when I remove this event receiver.