nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.31k stars 4.06k forks source link

Click to display the most recently active accounts interface and the error status code is 500 #48920

Open yykgit opened 4 days ago

yykgit commented 4 days ago

⚠️ This issue respects the following points: ⚠️

Bug description

NC版本:30.0.1 容器部署 点击显示最近活跃账号接口报错500状态码 /ocs/v2.php/cloud/users/recent?offset=0&limit=25&search= 该接口报错500

错误日志:DbalException An exception occurred while executing a query: SQLSTATE[HY000]: General error: 3065 Expression #1 of ORDER BY clause is not in SELECT list, references column 'nextcloud30.p.configvalue' which is not in SELECT list; this is incompatible with DISTINCT

Image

Steps to reproduce

1.登录nextcloud,右上角点击账号 2.点击最近活跃账号

Expected behavior

接口报错,返回请求期间发生错误。无法继续。

Nextcloud Server version

30

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.3

Web server

Nginx

Database engine version

MySQL

Is this bug present after an update or on a fresh install?

Fresh Nextcloud Server install

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

Configuration report

{ "system": { "datadirectory": "REMOVED SENSITIVE VALUE", "instanceid": "REMOVED SENSITIVE VALUE", "passwordsalt": "REMOVED SENSITIVE VALUE", "secret": "REMOVED SENSITIVE VALUE", "trusteddomains": [ "192.168.74.131:7443" ], "dbtype": "mysql", "version": "30.0.1.2", "overwrite.cli.url": "https:\/\/192.168.74.131:7443", "dbname": "REMOVED SENSITIVE VALUE", "dbhost": "REMOVED SENSITIVE VALUE", "dbport": "", "dbtableprefix": "oc", "mysql.utf8mb4": true, "dbuser": "REMOVED SENSITIVE VALUE", "dbpassword": "REMOVED SENSITIVE VALUE", "installed": true } }

List of activated Apps

Enabled:

Nextcloud Signing status

No response

Nextcloud Logs

DbalException An exception occurred while executing a query: SQLSTATE[HY000]: General error: 3065 Expression #1 of ORDER BY clause is not in SELECT list, references column 'nextcloud30.p.configvalue' which is not in SELECT list; this is incompatible with DISTINCT

Additional info

No response

sbe-arg commented 1 day ago

same here on 3 servers running 30.0.1

An exception occurred while executing a query: SQLSTATE[HY000]: General error: 3065 Expression #1 of ORDER BY clause is not in SELECT list, references column 'nextcloud.p.configvalue' which is not in SELECT list; this is incompatible with DISTINCT
benjaminfrombe commented 18 hours ago

same here ..

sbe-arg commented 11 hours ago

Its in the list of fixes coming on 30.0.2 apparently so we need to wait.