You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report. Which application did you want to upgrade with occ upgrade? Was it maybe the objectstore? Because what I can read from the log and by looking at the functions in the exception stack, this is roughly what happens:
The ownCloud Updater loops through all the installed applications and updates the ones requiring an update in the function Updater::doAppUpgrade(). The same function also loads all the "priority" apps, including any apps declaring the type filesystem. The Music app is such an app.
When the Music app is being loaded, it tries to get the rootFolder. This requires setting up the filesystem, and as objectstore has been configured to be used, the function OC_Util::initObjectStoreRootFS($config) gets called.
The aforementioned function tries to load the ObjectStore application but that results in OC\NeedsUpdateException being thrown. I assume this is because the ObjectStore app on the disc is actually newer than the previously installed one, and it would need to be updated first.
So ultimately, I believe the root cause of this is in ownCloud updater's inability to handle the case where a filesystem type app registers filesystem hooks, and an app providing an ObjectStoreRootFS needs an update.
The only thing we could change on the Music app side would be to remove the filesystem type from the app. I'm not certain if this would cause any other issues except that then the admin would be able to disable the Music app from some of the users. This, on the other hand, would cause the problems described in #604.
You could probably work around the problem by disabling Music app, running the occ upgrade and then enabling the Music app again. Then, run occ upgrade again if also the Music app needs to be updated.
Music App is not able to handle root storage, in case objectstore is used as primary storage;
Used apps;
Issue occurs when doing an ownCloud occ upgrade command.
(edit by @paulijar: reformatted the log above for easier reading)
The text was updated successfully, but these errors were encountered: