-
Notifications
You must be signed in to change notification settings - Fork 197
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
App Update Required - Music - Cannot login to Nextcloud server #889
Comments
Sorry for the problem, this seems to be the same issue as #883. The bug is that updating directly from Music < 1.0.0 to version >=1.2.1 doesn't work on Nextcloud. You could try to first install https://github.com/owncloud/music/releases/tag/v1.2.0 and then retry with the v1.3.1. Alternatively, drop all DB-content related to the Music app like described in that linked issue, but then you will lose any user-created playlists and be forced to rescan the library. I shall make a fix for the underlying issue, but it will probably take at least a few days before I can do that. |
How do I install 1.2.0 first and then install the other? Is there an occ command? I haven't really used it much because I don't have any music on nextcloud yet, what would be the command to type to remove all DB-content? Thanks for your assistance! Cordially, |
You should be able to install the old version like this:
For the DB management stuff, do you know how to access the console of your database management system? Which database system is that? Are you at all familiar with the SQL syntax? |
I cannot find a folder "music" under /path to nextcloud/apps, I do not even have that folder. There is a folder /apps under /nextcloud/html/apps. But there is no folder called "music" though many other apps seem to have a folder there. Could it be under Nextcloud/data/ ? |
Interesting, I didn't know that the location of the installed apps in the directory tree may vary on Nextcloud. You could try Looking at the nextcloud sample config.php file, there seems to be the key |
I found it, it was under I was not able to extract the files to that folder, but extracted it in Downloads, deleted the music folder in the path above and then moved the new folder into its place. I then tried the command you suggested but it just said occ app:disable music SQLSTATE[HY000]: General error: 4047 InnoDB refuses to write tables with ROW_FORMAT=COMPRESSED or KEY_BLOCK_SIZE. |
I'm a bit confused, what's your usual way to run occ? Anyway, if you can run it with your method, then that should be fine. Looking at that last error message, would this be relevant for your case: https://techoverflow.net/2021/08/17/how-to-fix-nextcloud-4047-innodb-refuses-to-write-tables-with-row_formatcompressed-or-key_block_size/ ? Are you running Nextcloud in a docker container? That's something I'm not familiar with and may have some quirks I'm not aware of. |
Yes, Docker. The only way I was able to figure it out. Thank you for doing so much to help me solve the problem. If I understand this correctly I should just edit my docker yml file and add the following: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb-file-per-table=1 --skip-innodb-read-only-compressed I will try and see if it works and let you know asap. |
Or rather this full text: nextcloud-db: |
It didn't help :-( I do not know what to do now... |
When defining the DB schema for Nextcloud was moved to use the migrations mechanism in v1.2.1 (commit 6982d91), a problem was introduced: The migration worked only either on a clean database (no earlier versions of Music installed) or on v1.0.0 or newer. Installing over any v0.x.y got broken. This was because the auto-generated migration script Version010200Date20210513171803 newer altered the DB schema of existing tables; it just created tables which were missing. The not so well-working migration script has now been replaced with the hand-written Version010000Date20210903000000. This script checks separately that each needed column exists in the database and creates the missing ones. It also removes couple of obsolete columns (removed over the years) if those are still present in the database. This new script should be able to migrate the database from any version starting from v0.4.0 to the v1.0.0 level. Most of these versions have not been tested, though. refs owncloud#889 refs owncloud#883
There seems to be a lot of discussion about the |
Thanks! I will keep looking. :-) |
As solved here: https://help.nextcloud.com/t/music-app-stuck-without-being-able-to-update-general-error-4047-innodb/122845
|
Thank you Paulijar for trying to help! |
The application update over any older Music (database) version should now work with Music v1.3.2. |
As subject states I am forced to update an app and otherwise I cannot login.
When I try to update the app there is an error message.
I am not on the newest Nextcloud, maybe on NC 19 or 20.
This is what comes up
The text was updated successfully, but these errors were encountered: