Collabora own server broken after Nextcloud 30.0.4 update

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 30.0.4
  • Operating system and version (e.g., Ubuntu 24.04):
    • Linux 6.1.0-rpi8-rpi-2712 aarch64
  • Web server and version (e.g, Apache 2.4.25):
    • Apache 2.4.57
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • --
  • PHP version (e.g, 8.3):
    • 8.2.7
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • after updating to Nextcloud 30.0.4
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Bare Metal
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

Nextcloud Office not working because it cannot connect to the Built-in Collabora server. It was working great before the update. I starte to see a lot of error in the log file.

Steps to replicate it (hint: details matter!):

  1. Update nextcloud to latest stable
  2. open an office document through the web browser
  3. failed with error 500

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

[richdocuments] Error: Failed to fetch discovery: Server error: `GET https://myserver.net:6443/apps/richdocumentscode_arm64/proxy.php?req=/hosting/discovery` resulted in a `500 Internal Server Error` response
	from ? by -- at Dec 21, 2024, 1:32:04 PM

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

NA

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

[Sat Dec 21 13:27:55.898308 2024] [php:warn] [pid 1870040] [client 192.168.0.113:49034] PHP Warning:  file_get_contents(http://localhost:9983/hosting/capabilities): Failed to open stream: HTTP request failed! in /var/www/html/nextcloud/apps/richdocumentscode_arm64/proxy.php on line 268
[Sat Dec 21 13:28:55.959047 2024] [php:error] [pid 1825752] [client 192.168.0.113:49038] PHP Fatal error:  Uncaught TypeError: implode(): Argument #1 ($pieces) must be of type array, string given in /var/www/html/nextcloud/apps/richdocumentscode_arm64/proxy.php:404\nStack trace:\n#0 /var/www/html/nextcloud/apps/richdocumentscode_arm64/proxy.php(404): implode()\n#1 {main}\n  thrown in /var/www/html/nextcloud/apps/richdocumentscode_arm64/proxy.php on line 404
[Sat Dec 21 13:28:56.107247 2024] [core:info] [pid 1827207] [client 189.141.120.42:61493] AH00128: File does not exist: /var/www/html/nextcloud/hosting/discovery
[Sat Dec 21 13:28:56.133355 2024] [core:info] [pid 1827207] [client 189.141.120.42:61493] AH00128: File does not exist: /var/www/html/nextcloud/hosting/capabilities
[Sat Dec 21 13:29:34.193708 2024] [php:warn] [pid 1875607] [client 189.141.120.42:61566] PHP Warning:  file_get_contents(http://localhost:9983/hosting/capabilities): Failed to open stream: HTTP request failed! in /var/www/html/nextcloud/apps/richdocumentscode_arm64/proxy.php on line 268
[Sat Dec 21 13:29:35.291907 2024] [php:warn] [pid 1825752] [client 189.141.120.42:61568] PHP Warning:  file_get_contents(http://localhost:9983/hosting/capabilities): Failed to open stream: HTTP request failed! in /var/www/html/nextcloud/apps/richdocumentscode_arm64/proxy.php on line 268
[Sat Dec 21 13:29:36.364599 2024] [php:warn] [pid 1825752] [client 189.141.120.42:61568] PHP Warning:  file_get_contents(http://localhost:9983/hosting/capabilities): Failed to open stream: HTTP request failed! in /var/www/html/nextcloud/apps/richdocumentscode_arm64/proxy.php on line 268
[Sat Dec 21 13:29:37.489974 2024] [php:warn] [pid 1825752] [client 189.141.120.42:61568] PHP Warning:  file_get_contents(http://localhost:9983/hosting/capabilities): Failed to open stream: HTTP request failed! in /var/www/html/nextcloud/apps/richdocumentscode_arm64/proxy.php on line 268
[Sat Dec 21 13:30:03.561121 2024] [php:warn] [pid 1875594] [client 192.168.0.113:33862] PHP Warning:  file_get_contents(http://localhost:9983/hosting/capabilities): Failed to open stream: HTTP request failed! in /var/www/html/nextcloud/apps/richdocumentscode_arm64/proxy.php on line 268
[Sat Dec 21 13:31:03.672146 2024] [php:error] [pid 1870040] [client 192.168.0.113:42648] PHP Fatal error:  Uncaught TypeError: implode(): Argument #1 ($pieces) must be of type array, string given in /var/www/html/nextcloud/apps/richdocumentscode_arm64/proxy.php:404\nStack trace:\n#0 /var/www/html/nextcloud/apps/richdocumentscode_arm64/proxy.php(404): implode()\n#1 {main}\n  thrown in /var/www/html/nextcloud/apps/richdocumentscode_arm64/proxy.php on line 404
[Sat Dec 21 13:31:04.751591 2024] [php:warn] [pid 1825752] [client 192.168.0.113:34838] PHP Warning:  file_get_contents(http://localhost:9983/hosting/capabilities): Failed to open stream: HTTP request failed! in /var/www/html/nextcloud/apps/richdocumentscode_arm64/proxy.php on line 268
[Sat Dec 21 13:32:04.842610 2024] [php:error] [pid 1875607] [client 192.168.0.113:34846] PHP Fatal error:  Uncaught TypeError: implode(): Argument #1 ($pieces) must be of type array, string given in /var/www/html/nextcloud/apps/richdocumentscode_arm64/proxy.php:404\nStack trace:\n#0 /var/www/html/nextcloud/apps/richdocumentscode_arm64/proxy.php(404): implode()\n#1 {main}\n  thrown in /var/www/html/nextcloud/apps/richdocumentscode_arm64/proxy.php on line 404

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

[Sat Dec 21 13:27:55.898308 2024] [php:warn] [pid 1870040] [client 192.168.0.113:49034] PHP Warning:  file_get_contents(http://localhost:9983/hosting/capabilities): Failed to open stream: HTTP request failed! in /var/www/html/nextcloud/apps/richdocumentscode_arm64/proxy.php on line 268
[Sat Dec 21 13:28:55.959047 2024] [php:error] [pid 1825752] [client 192.168.0.113:49038] PHP Fatal error:  Uncaught TypeError: implode(): Argument #1 ($pieces) must be of type array, string given in /var/www/html/nextcloud/apps/richdocumentscode_arm64/proxy.php:404\nStack trace:\n#0 /var/www/html/nextcloud/apps/richdocumentscode_arm64/proxy.php(404): implode()\n#1 {main}\n  thrown in /var/www/html/nextcloud/apps/richdocumentscode_arm64/proxy.php on line 404
[Sat Dec 21 13:28:56.107247 2024] [core:info] [pid 1827207] [client 189.141.120.42:61493] AH00128: File does not exist: /var/www/html/nextcloud/hosting/discovery
[Sat Dec 21 13:28:56.133355 2024] [core:info] [pid 1827207] [client 189.141.120.42:61493] AH00128: File does not exist: /var/www/html/nextcloud/hosting/capabilities
[Sat Dec 21 13:29:34.193708 2024] [php:warn] [pid 1875607] [client 189.141.120.42:61566] PHP Warning:  file_get_contents(http://localhost:9983/hosting/capabilities): Failed to open stream: HTTP request failed! in /var/www/html/nextcloud/apps/richdocumentscode_arm64/proxy.php on line 268
[Sat Dec 21 13:29:35.291907 2024] [php:warn] [pid 1825752] [client 189.141.120.42:61568] PHP Warning:  file_get_contents(http://localhost:9983/hosting/capabilities): Failed to open stream: HTTP request failed! in /var/www/html/nextcloud/apps/richdocumentscode_arm64/proxy.php on line 268
[Sat Dec 21 13:29:36.364599 2024] [php:warn] [pid 1825752] [client 189.141.120.42:61568] PHP Warning:  file_get_contents(http://localhost:9983/hosting/capabilities): Failed to open stream: HTTP request failed! in /var/www/html/nextcloud/apps/richdocumentscode_arm64/proxy.php on line 268
[Sat Dec 21 13:29:37.489974 2024] [php:warn] [pid 1825752] [client 189.141.120.42:61568] PHP Warning:  file_get_contents(http://localhost:9983/hosting/capabilities): Failed to open stream: HTTP request failed! in /var/www/html/nextcloud/apps/richdocumentscode_arm64/proxy.php on line 268
[Sat Dec 21 13:30:03.561121 2024] [php:warn] [pid 1875594] [client 192.168.0.113:33862] PHP Warning:  file_get_contents(http://localhost:9983/hosting/capabilities): Failed to open stream: HTTP request failed! in /var/www/html/nextcloud/apps/richdocumentscode_arm64/proxy.php on line 268
[Sat Dec 21 13:31:03.672146 2024] [php:error] [pid 1870040] [client 192.168.0.113:42648] PHP Fatal error:  Uncaught TypeError: implode(): Argument #1 ($pieces) must be of type array, string given in /var/www/html/nextcloud/apps/richdocumentscode_arm64/proxy.php:404\nStack trace:\n#0 /var/www/html/nextcloud/apps/richdocumentscode_arm64/proxy.php(404): implode()\n#1 {main}\n  thrown in /var/www/html/nextcloud/apps/richdocumentscode_arm64/proxy.php on line 404
[Sat Dec 21 13:31:04.751591 2024] [php:warn] [pid 1825752] [client 192.168.0.113:34838] PHP Warning:  file_get_contents(http://localhost:9983/hosting/capabilities): Failed to open stream: HTTP request failed! in /var/www/html/nextcloud/apps/richdocumentscode_arm64/proxy.php on line 268
[Sat Dec 21 13:32:04.842610 2024] [php:error] [pid 1875607] [client 192.168.0.113:34846] PHP Fatal error:  Uncaught TypeError: implode(): Argument #1 ($pieces) must be of type array, string given in /var/www/html/nextcloud/apps/richdocumentscode_arm64/proxy.php:404\nStack trace:\n#0 /var/www/html/nextcloud/apps/richdocumentscode_arm64/proxy.php(404): implode()\n#1 {main}\n  thrown in /var/www/html/nextcloud/apps/richdocumentscode_arm64/proxy.php on line 404

Apps

The output of occ app:list (if possible).

Enabled:

  • activity: 3.0.0
  • admin_audit: 1.20.0
  • admin_notifications: 1.0.2
  • app_api: 4.0.3
  • audioplayer: 3.4.1
  • bruteforcesettings: 3.0.0
  • camerarawpreviews: 0.8.6
  • cloud_federation_api: 1.13.0
  • comments: 1.20.1
  • contactsinteraction: 1.11.0
  • dashboard: 7.10.0
  • dav: 1.31.1
  • external: 5.5.2
  • federatedfilesharing: 1.20.0
  • federation: 1.20.0
  • files: 2.2.0
  • files_downloadlimit: 3.0.0
  • files_external: 1.22.0
  • files_pdfviewer: 3.0.0
  • files_reminders: 1.3.0
  • files_sharing: 1.22.0
  • files_trashbin: 1.20.1
  • files_versions: 1.23.0
  • firstrunwizard: 3.0.0
  • guests: 4.0.1
  • imageconverter: 2.0.4
  • logreader: 3.0.0
  • lookup_server_connector: 1.18.0
  • maps: 1.5.0
  • memories: 7.4.1
  • metadata: 0.21.0
  • music: 2.0.1
  • nextcloud_announcements: 2.0.0
  • notes: 4.11.0
  • notifications: 3.0.0
  • oauth2: 1.18.1
  • password_policy: 2.0.0
  • photos: 3.0.2
  • previewgenerator: 5.7.0
  • privacy: 2.0.0
  • provisioning_api: 1.20.0
  • recognize: 8.2.0
  • recommendations: 3.0.0
  • related_resources: 1.5.0
  • richdocuments: 8.5.3
  • richdocumentscode_arm64: 24.4.1002
  • serverinfo: 2.0.0
  • settings: 1.13.0
  • sharebymail: 1.20.0
  • spreed: 20.1.1
  • support: 2.0.0
  • survey_client: 2.0.0
  • systemtags: 1.20.0
  • tasks: 0.16.1
  • text: 4.1.0
  • theming: 2.5.0
  • twofactor_backupcodes: 1.19.0
  • twofactor_totp: 12.0.0-dev
  • unsplash: 3.0.3
  • updatenotification: 1.20.0
  • user_status: 1.10.0
  • viewer: 3.0.0
  • weather_status: 1.10.0
  • webhook_listeners: 1.1.0-dev
  • workflowengine: 2.12.0
    Disabled:
  • circles: 30.0.0 (installed 27.0.1)
  • duplicatefinder: 1.3.0 (installed 1.3.0)
  • encryption: 2.18.0
  • end_to_end_encryption: 1.16.1 (installed 1.16.1)
  • extract: 1.3.6 (installed 1.3.6)
  • files_accesscontrol: 1.20.1 (installed 1.20.1)
  • files_automatedtagging: 1.20.0 (installed 1.20.0)
  • files_rightclick: 0.15.1 (installed 1.6.0)
  • flow_notifications: 1.10.0 (installed 1.10.0)
  • integration_dropbox: 3.0.3 (installed 3.0.3)
  • mailnotifier: 0.0.3 (installed 0.0.3)
  • occweb: 0.2.0 (installed 0.2.0)
  • richdocumentscode: 24.4.1002
  • suspicious_login: 8.0.0
  • twofactor_nextcloud_notification: 4.0.0
  • user_ldap: 1.21.0
  • workflow_script: 1.15.0 (installed 1.15.0)

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

I see two different URLs from your logs

both are weird as they include strange ports and definitely only the first one could work at all. The second one might result from missing proxy X-Forwarded-For headers. Please review Collabora integration guide for the right way to setup.

both URLs use ports that were defined as that at installation time, not strange only different from the default and they were working correctly prior to the update. “myserver.net” is referencing my domain name and localhost is for internal reference. So unless these were changed by the update process, they were working correctly as is.