-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
[Bug]: DriverException during BackgroundJob #47275
Comments
|
Yep: #41740 (review) |
@hamza221 this should be easy to reproduce if you use mysql/mariadb and (temporarily) enable strict mode. Every SELECTed column has to be in the GROUP BY as well. Expand cr.* to the individual columns in SELECT and GROUP BY. |
I'm on the stable update channel and updated to 30.0.0 today. And now I have this bug. I cannot believe, that this is still open while pushing 30.0.0 to stable - this is very bad. |
Sure, under e.g. Ubuntu, edit the [mysqld]
sql_mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION" Then restart the MySQL server with: sudo systemctl restart mysql |
Same issue here, after updating to version 30.0.0 Calendar notifications are not working and I get hundreds of errors in the log like this one: My Nextcloud is on a shared hosting so I can't edit /etc/mysql/my.cnf |
is that the same if I am running nc under docker in ubuntu ? |
I’m sorry, but putting aside how old and well-known this bug is, I believe the suggested approach is conceptually wrong. You cannot ask users to modify the MySQL/MariaDB configuration file just to fix an issue related to NC. Please keep in mind that many people may have other software installed that also relies on MariaDB. Who can guarantee that this modification won’t negatively affect other services relying on MariaDB? I don’t think anyone can. |
Please, keep the discussion and support at https://help.nextcloud.com/t/error-after-upgrading-to-30-0-driver-exception/203947. The bug is known and tracked, we have a fix in QA and a planned backport. Feel free to apply the linked PR as patch, or wait for the next maintenance update. |
Bug description
On every backgroundjob I see an error at protocol:
DriverException
An exception occurred while executing a query: SQLSTATE[42803]: Grouping error: 7 ERROR: column "cr.id" must appear in the GROUP BY clause or be used in an aggregate function LINE 1: SELECT "cr".*, "co"."calendardata", "c"."displayname", "c"."... ^
Error while running background job OCA\DAV\BackgroundJob\EventReminderJob (id: 9156, arguments: null)
Steps to reproduce
Expected behavior
No error should be visible.
Installation method
None
Nextcloud Server version
30rc1
Operating system
Ubuntu 22.04
PHP engine version
8.2
Web server
Apache
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response
The text was updated successfully, but these errors were encountered: