添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

I have upgraded to NextCloud 22 with MariaDB it was perfect at first but when I go to Logging tab on the administration, I have lots of error for one of the users. Below are the first line of the log

Doctrine\DBAL\Exception\SyntaxErrorException: An exception occurred while executing a query: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘configvalue + 1) WHERE ( userid = ‘X’) AND ( configkey = ‘read’) AND (`…’ at line 1

I have only one user at this time, and when he’s log in this error keep on pop up for many times. Does anyone knows the cause and how to fix this? Or is it a bug?

I face the same issue, I’ve opened After NC 22 Docker Upgrade, Database Error when trying to preview images/SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax · Issue #28036 · nextcloud/server · GitHub
but unfortunately it has been closed too fast. The contributers say, that its the fault from MariaDB, using the compressed table reading. I completely disabled this feature, also tested with MAriaDB 10.5
Still the same result.

Description: If set (the default), ROW_FORMAT=COMPRESSED tables will be read-only. Commandline: --innodb-read-only-compressed , --skip-innodb-read-only-compressed
  • Scope:
  • Dynamic:
  • Data Type: boolean Default Value: ON Introduced: MariaDB 10.6.0 Thanks for reporting issues back to Nextcloud! Note: This is the **issu

    I started seeing these errors as well today, I upgraded from 21 to 22.1.1 and images are not loading.

    Doctrine\DBAL\Exception\SyntaxErrorException: An exception occurred while executing a query: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax;

    I am doing systematic point of elimination now in order to locate what it might be, I will disable half my apps and take it on turns.

    EDIT: My solution for the images

    So I had issues having any previews generating. I would get 500 “internal server error” responses trying to load the previews. How did I solve it? I enabled “Preview Generator” app, as it had been disabled after my upgrade.

    Now, all is back to normal.