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

[Bug]: admin selects apps menu gets error message "An error occurred during the request. Unable to proceed." #49042

Open snetAT opened 9 hours ago

snetAT commented 9 hours ago

⚠️ This issue respects the following points: ⚠️

Bug description

After upgrading to 30.0.2 RC1, the error message “An error occurred during the request. Unable to proceed” appears in the apps menu.

Expected behavior

apps management works

Nextcloud Server version

30

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.3

Web server

Nginx

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

{ "system": { "allowed_admin_ranges": [ "127.0.0.1\/8", ], "instanceid": "REMOVED SENSITIVE VALUE", "passwordsalt": "REMOVED SENSITIVE VALUE", "secret": "REMOVED SENSITIVE VALUE", "trusted_domains": [ "xxx.xx", "x.x.x.x" ], "trusted_proxies": "REMOVED SENSITIVE VALUE", "allow_local_remote_servers": true, "datadirectory": "REMOVED SENSITIVE VALUE", "version": "30.0.2.0", "overwrite.cli.url": "https:\/\/xxx.xx", "overwriteprotocol": "https", "htaccess.IgnoreFrontController": false, "check_for_workinghtaccess": true, "dbtype": "pgsql", "dbname": "REMOVED SENSITIVE VALUE", "dbuser": "REMOVED SENSITIVE VALUE", "dbpassword": "REMOVED SENSITIVE VALUE", "dbhost": "REMOVED SENSITIVE VALUE", "dbtableprefix": "oc", "dbport": "5432", "installed": true, "default_phone_region": "AT", "redis": { "host": "REMOVED SENSITIVE VALUE", "port": 6379, "timeout": 0, "password": "REMOVED SENSITIVE VALUE", "dbindex": 0 }, "memcache.local": "\OC\Memcache\APCu", "memcache.locking": "\OC\Memcache\Redis", "lost_password_link": "disabled", "htaccess.RewriteBase": "\/", "session_lifetime": 86400, "remember_login_cookie_lifetime": 1296000, "updater.release.channel": "beta", "app_install_overwrite": [ "user_external", "files_bpm", "to_gif_example" ], "log_type": "file", "loglevel": 2, "updatechecker": true, "defaultapp": "dashboard", "maintenance": false, "theme": "", "mail_smtpmode": "smtp", "mail_from_address": "REMOVED SENSITIVE VALUE", "mail_domain": "REMOVED SENSITIVE VALUE", "mail_smtpdebug": false, "mail_smtpauthtype": "PLAIN", "mail_smtpauth": 1, "mail_smtphost": "REMOVED SENSITIVE VALUE", "mail_smtpport": "587", "mail_smtpname": "REMOVED SENSITIVE VALUE", "mail_smtppassword": "REMOVED SENSITIVE VALUE", "mail_sendmailmode": "smtp", "gs.enabled": false, "gs.federation": "internal", "maintenance_window_start": "01:00", "user_backends": [ { "class": "\OCA\UserExternal\API", "arguments": [ "https:\/\/api.xxx.xx\/nxc\/login", false ] } ], "forbidden_filename_basenames": [ "con", "prn", "aux", "nul", "com0", "com1", "com2", "com3", "com4", "com5", "com6", "com7", "com8", "com9", "com\u00b9", "com\u00b2", "com\u00b3", "lpt0", "lpt1", "lpt2", "lpt3", "lpt4", "lpt5", "lpt6", "lpt7", "lpt8", "lpt9", "lpt\u00b9", "lpt\u00b2", "lpt\u00b3" ], "forbidden_filename_characters": [ "<", ">", ":", "\"", "|", "?", "*", "\", "\/" ], "forbidden_filename_extensions": [ " ", ".", ".filepart", ".part" ], "forwarded_for_headers": [ "HTTP_X_FORWARDED", "HTTP_FORWARDED_FOR", "HTTP_X_FORWARDED_FOR" ] } }

List of activated Apps

Enabled:

Nextcloud Signing status

No response

Nextcloud Logs

{ "reqId": "RV0wSx4hrAVMbvsdPEcO", "level": 3, "time": "2024-11-01T14:20:07+00:00", "remoteAddr": "x.x.x.x", "user": "admin", "app": "index", "method": "GET", "url": "/settings/apps/list", "message": "OCA\Settings\Controller\AppSettingsController::createProxyPreviewUrl(): Argument #1 ($url) must be of type string, array given, called in /var/www/html/apps/settings/lib/Controller/AppSettingsController.php on line 259 in file '/var/www/html/apps/settings/lib/Controller/AppSettingsController.php' line 245", "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36", "version": "30.0.2.0", "exception": { "Exception": "Exception", "Message": "OCA\Settings\Controller\AppSettingsController::createProxyPreviewUrl(): Argument #1 ($url) must be of type string, array given, called in /var/www/html/apps/settings/lib/Controller/AppSettingsController.php on line 259 in file '/var/www/html/apps/settings/lib/Controller/AppSettingsController.php' line 245", "Code": 0, "Trace": [ { "file": "/var/www/html/lib/private/AppFramework/App.php", "line": 161, "function": "dispatch", "class": "OC\AppFramework\Http\Dispatcher", "type": "->" }, { "file": "/var/www/html/lib/private/Route/Router.php", "line": 302, "function": "main", "class": "OC\AppFramework\App", "type": "::" }, { "file": "/var/www/html/lib/base.php", "line": 1001, "function": "match", "class": "OC\Route\Router", "type": "->" }, { "file": "/var/www/html/index.php", "line": 24, "function": "handleRequest", "class": "OC", "type": "::" } ], "File": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php", "Line": 146, "Previous": { "Exception": "TypeError", "Message": "OCA\Settings\Controller\AppSettingsController::createProxyPreviewUrl(): Argument #1 ($url) must be of type string, array given, called in /var/www/html/apps/settings/lib/Controller/AppSettingsController.php on line 259", "Code": 0, "Trace": [ { "file": "/var/www/html/apps/settings/lib/Controller/AppSettingsController.php", "line": 259, "function": "createProxyPreviewUrl", "class": "OCA\Settings\Controller\AppSettingsController", "type": "->", "args": [ " sensitive parameters replaced " ] }, { "file": "/var/www/html/apps/settings/lib/Controller/AppSettingsController.php", "line": 304, "function": "fetchApps", "class": "OCA\Settings\Controller\AppSettingsController", "type": "->" }, { "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php", "line": 208, "function": "listApps", "class": "OCA\Settings\Controller\AppSettingsController", "type": "->" }, { "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php", "line": 114, "function": "executeController", "class": "OC\AppFramework\Http\Dispatcher", "type": "->" }, { "file": "/var/www/html/lib/private/AppFramework/App.php", "line": 161, "function": "dispatch", "class": "OC\AppFramework\Http\Dispatcher", "type": "->" }, { "file": "/var/www/html/lib/private/Route/Router.php", "line": 302, "function": "main", "class": "OC\AppFramework\App", "type": "::" }, { "file": "/var/www/html/lib/base.php", "line": 1001, "function": "match", "class": "OC\Route\Router", "type": "->" }, { "file": "/var/www/html/index.php", "line": 24, "function": "handleRequest", "class": "OC", "type": "::" } ], "File": "/var/www/html/apps/settings/lib/Controller/AppSettingsController.php", "Line": 245 }, "message": "OCA\Settings\Controller\AppSettingsController::createProxyPreviewUrl(): Argument #1 ($url) must be of type string, array given, called in /var/www/html/apps/settings/lib/Controller/AppSettingsController.php on line 259 in file '/var/www/html/apps/settings/lib/Controller/AppSettingsController.php' line 245", "exception": {}, "CustomMessage": "OCA\Settings\Controller\AppSettingsController::createProxyPreviewUrl(): Argument #1 ($url) must be of type string, array given, called in /var/www/html/apps/settings/lib/Controller/AppSettingsController.php on line 259 in file '/var/www/html/apps/settings/lib/Controller/AppSettingsController.php' line 245" } }

Additional info

No response

joshtrichards commented 9 hours ago

Wild guess from a quick look: we need to backport #48912 to v30

joshtrichards commented 8 hours ago

Backport pending in #49044 if you feel like testing it.

snetAT commented 7 hours ago

Backport pending in #49044 if you feel like testing it.

Thanks patch works .

GerardWoldendorp commented 7 hours ago

I also had this error and that patch worked for me as well! Thanks!