-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
NC24: InvalidArgumentException: Column "oc_bookmarks"."url" is type String, but exceeding the 4.000 length limit. #1785
Comments
I'm running into the exact same issue upgrading to 24.0.0 beta 2 |
Huh, this breaking change was not mentioned in the v24 issue @kesselb also see nextcloud/server#31791 |
Indeed. I were not involved in Nextcloud 24 due some health issues and don't know why this new requirement is not documented. |
Same here while updating to NC24; system env: Arch, PHP 8.0(!), MariaDB, Redis |
Are we sure that this is a bookmarks app issue? To continue with the upgrade 23→24b2, I manually disabled and removed the bookmarks app and re-issued
Disabling dashboard is possible but does not change the outcome of
To continue with the upgrade I manually moved
Disabling After finishing the upgrade and adding the uninstallable apps to the
The first install was partially necessary since only then NC recognizes that it was manually deleted. I also could restore dashboard by installing/enabling, moving back its app directory and restoring its db content. To do the same for
I now reproduced the issue after upgrading another staging instance and could solve the issue without un/installing anything by modifying the tables in the database using these commands:
|
I also ran into the same issue just now. Is @nursoda's solution a safe workaround for now to continue the upgrade? It seems... risky. |
Installing a beta always is. I took the risk to be able to update PHP (to 8.1, I'm on Arch). Turns out that may have not been a good choice: At first it seemed that all instances just ran fine, but one instance is in maintenance mode the second time now for no reason I can think of. Investigating…according to the log it seems to be caused by the Backup app…disabling it. Most probably these issues are unrelated to cropping the column length. I expect that the migrations would do just that (if the limit is kept). |
Hmm, now I'm considering a complete fresh install, unfortunately. I'm not sure I want to manually mess with the database schema like that; you never know what it might break now or in the future. I guess you're right in that it's my own fault for installing a beta, but still. It's a very simple instance and I wonder what went wrong here, and if there's a clean fix. Until then, I can't easily access my files on some devices. |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
The fix is in, once beta 3 is out and I have time, I'll make a release with v24 support. |
Awesome, thanks! |
beta3 is out |
upgrade ok - overall check shows green some PHP errors: (when calling cron.php) [PHP] Error: Class OCA\Bookmarks\Service\FileCache contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (OCP\ICache::isAvailable) at /var/www/html/nextcloud/apps/bookmarks/lib/Service/FileCache.php#17 at 2022-04-08T16:00:06+02:00 [cron] Error: Error: Call to undefined method OCA\Survey_Client\BackgroundJobs\MonthlyReport::setTimeSensitivity() at <>
at 2022-04-08T15:30:14+02:00 [PHP] Error: Error: file_put_contents(/media/appdata_ocxjkdoykhhr/preview/a/f/3/3/0/3/f/1897/4096-4096-max.png): failed to open stream: No such file or directory at /var/www/html/nextcloud/lib/private/Files/Storage/Local.php#292 at <>
GET /core/preview?fileId=1897&x=250&y=250 |
Background job of Survey client is fixed here: nextcloud/survey_client#128 |
thx Joas |
Fixed by e70ccbe |
https://github.com/nextcloud/bookmarks/releases/tag/v10.3.0 is now published with support for nc24 |
How to use GitHub
Bug description
Meldung des Web-Updaters:
Aktualisierung auf 24.0.0 beta 2
InvalidArgumentException: Column "oc_bookmarks"."url" is type String, but exceeding the 4.000 length limit.
Detaillierte Protokollmeldungen
Update vorbereiten
Log-Level auf "debug" gesetzt
Wartungsmodus eingeschaltet
Repair MySQL collation
All tables already have the correct collation -> nothing to do
Repair SQLite autoincrement
Copy data from accounts table when migrating from ownCloud
Drop account terms table when migrating from ownCloud
Das Datenbankschema wird aktualisiert
InvalidArgumentException: Column "oc_bookmarks"."url" is type String, but exceeding the 4.000 length limit.
Steps to reproduce
Web Update
Expected behavior
Normalen Durchlauf
Installation method
Manual installation
Operating system
Debian/Ubuntu
PHP engine version
No response
Web server
Apache (supported)
Database engine version
No response
Is this bug present after an update or on a fresh install?
No response
Are you using the Nextcloud Server Encryption module?
No response
What user-backends are you using?
Configuration report
No response
List of activated Apps
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: