Describe the bug
Updating from 20.0.5 to 20.0.6 failed. I had to manually disable the bookmarks app to make Nextcloud work again. I got the following error.
An exception occurred while executing 'SELECT "b"."id" FROM "bookmarks" "b" LEFT JOIN "bookmarks_tree" "t" ON b.id = t.id AND ? WHERE "t"."id" IS NULL' with params ["bookmark"]: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for type boolean: "bookmark"
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Updating correctly with Bookmarks enabled.
Desktop (please complete the following information):
Server (please complete the following information):
- Nextcloud configuration: [the output of running `sudo -u www-data php occ config:list system`]
{
"system": {
"memcache.local": "\OC\Memcache\APCu",
"apps_paths": [
{
"path": "\/var\/www\/html\/apps",
"url": "\/apps",
"writable": false
},
{
"path": "\/var\/www\/html\/custom_apps",
"url": "\/custom_apps",
"writable": true
}
],
"instanceid": "REMOVED SENSITIVE VALUE",
"passwordsalt": "REMOVED SENSITIVE VALUE",
"secret": "REMOVED SENSITIVE VALUE",
"trusted_domains": [
"REMOVED SENSITIVE VALUE"
],
"datadirectory": "REMOVED SENSITIVE VALUE",
"overwrite.cli.url": "REMOVED SENSITIVE VALUE",
"dbtype": "pgsql",
"version": "20.0.6.1",
"dbname": "REMOVED SENSITIVE VALUE",
"dbhost": "REMOVED SENSITIVE VALUE",
"dbport": "",
"dbtableprefix": "",
"dbuser": "REMOVED SENSITIVE VALUE",
"dbpassword": "REMOVED SENSITIVE VALUE",
"installed": true,
"loglevel": 0,
"maintenance": false,
"mail_smtpmode": "smtp",
"mail_smtpauthtype": "LOGIN",
"mail_smtpauth": 1,
"mail_from_address": "REMOVED SENSITIVE VALUE",
"mail_domain": "REMOVED SENSITIVE VALUE",
"mail_smtpsecure": "ssl",
"mail_smtphost": "REMOVED SENSITIVE VALUE",
"mail_smtpport": "465",
"theme": "",
"trusted_proxies": "REMOVED SENSITIVE VALUE",
"overwriteprotocol": "https",
"app_install_overwrite": [
"cookbook"
]
}
}
- Nextcloud external user backend: none
**Nextcloud log (nextcloud/data/nextcloud.log)**
This happens when trying to enable the app:
[settings] Error: Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'SELECT "b"."id" FROM "bookmarks" "b" LEFT JOIN "bookmarks_tree" "t" ON b.id = t.id AND ? WHERE "t"."id" IS NULL' with params ["bookmark"]:
SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for type boolean: "bookmark" at <
POST /settings/apps/enable
from REMOVED SENSITIVE VALUE by bas at 2021-01-26T19:55:47+00:00
```
Same here.
The system gets quite confused as upon trying to upgrade and failing it thinks it is trying to upgrade the entire Nextcloud system to 20.0.5. So surfing to your Nextcloud site states the uprade to 20.0.05 failed and offers to start over. Which continues to fail.
Below command solves it for now. (as reported by Bas)
sudo -u www-data php /var/www/nextcloud/occ app:disable bookmarks
Deleting and reinstalling yields the same (SQL) error mentioned in the original bug report, but the system continues to function.
same here, on a quite fresh 20.0.5 installation.
same issue.
It's because there is no file named "bookmarks-4.0.7.tar.gz" uploaded to releases on Github. It should be at https://github.com/nextcloud/bookmarks/releases/download/v4.0.7/bookmarks-4.0.7.tar.gz but the script of Nextcloud fails to find it.
Update v4.0.7 had a bug, I've removed the build from the download section, publishing a new release as we speak.
Update: v4.0.8 is released.
Update v4.0.7 had a bug, I've removed the build from the download section, publishing a new release as we speak.
Update: v4.0.8 is released.
Thank you!
Do you know perhaps when does it gets updated on Nextcloud?
I'm not sure how often nextcloud polls the update server
Works now. Thanks for fixing it so quickly!
Thanks for the fix!
Most helpful comment
Update v4.0.7 had a bug, I've removed the build from the download section, publishing a new release as we speak.
Update: v4.0.8 is released.