Collabora stops working after nextcloud update from 18.0.3 to 18.0.5

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

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:

Nextcloud version (eg, 18.0.2): 18.0.5
Operating system and version (eg, Ubuntu 20.04): Ubuntu 18.04.4 LTS
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.29
PHP version (eg, 7.1): 7.2.24-0ubuntu0.18.04.6

The issue you are facing:
after nextcloud update from 18.0.3 to 18.0.5 collabora stops working. the admin console via browser is still working but nextcloud isn’t able to connect to collabora server. if i press “save” in collabora online tab (where the URL is configured), the status changes to “connected”. if i make a refresh, the status is going back to “Could not establish connection to the Collabora Online server.”. in apache log, i’m facing “access denied” error messages.

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:

{"reqId":"qHPLLJc8jtF8XB6FefPA","level":1,"time":"2020-06-07T10:10:12+00:00","remoteAddr":"176.198.227.131","user":"--","app":"updater","method":"GET","url":"/core/ajax/update.php?requesttoken=HMtyfOKwee6xyFAXeQje5AjRM0FYZRin47TvleDGALk%3D%3AfY9AM5HkPtrV52NAGie4plC9angpUi7i2vyapNCJYvw%3D","message":"\\OC\\Updater::resetLogLevel: Reset log level to Warning(2)","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0","version":"18.0.5.1","id":"5edd0a0c02206"}

[updater] Info: \OC\Updater::maintenanceDisabled: Turned off maintenance mode

GET /core/ajax/update.php?requesttoken=HMtyfOKwee6xyFAXeQje5AjRM0FYZRin47TvleDGALk%3D%3AfY9AM5HkPtrV52NAGie4plC9angpUi7i2vyapNCJYvw%3D
from 176.198.227.131 at 2020-06-07T10:10:12+00:00

[updater] Info: \OC\Updater::updateEnd: Update successful

GET /core/ajax/update.php?requesttoken=HMtyfOKwee6xyFAXeQje5AjRM0FYZRin47TvleDGALk%3D%3AfY9AM5HkPtrV52NAGie4plC9angpUi7i2vyapNCJYvw%3D
from 176.198.227.131 at 2020-06-07T10:10:12+00:00


The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

dlewando@nc-nas:/var/www/html/nextcloud/config$ sudo cat config.php 
[sudo] Passwort für dlewando: 
<?php
$CONFIG = array (
  'instanceid' => 'oco8frpwpmuc',
  'passwordsalt' => 'Wsct//***',
  'secret' => '*******',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => 'wando.selfhost.eu',
    2 => 'cloud.***.eu',
    3 => 'collabora.***.eu',
  ),
  'datadirectory' => '/nextcloud_data',
  'dbtype' => 'mysql',
  'version' => '18.0.5.1',
  'overwrite.cli.url' => 'https://localhost/nextcloud',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => '***',
  'installed' => true,
  'theme' => '',
  'loglevel' => 2,
  'maintenance' => false,
  'mail_smtpmode' => 'smtp',
  'mail_smtphost' => 'smtp.goneo.de',
  'mail_smtpport' => '465',
  'mail_smtpsecure' => 'ssl',
  'mail_from_address' => 'Cloud',
  'mail_domain' => '***.eu',
  'mail_smtpauthtype' => 'PLAIN',
  'mail_smtpauth' => 1,
  'mail_smtpname' => '***.eu',
  'mail_smtppassword' => '***',
  'updater.release.channel' => 'stable',
  'mail_sendmailmode' => 'smtp',
  'has_rebuilt_cache' => true,
  'app_install_overwrite' => 
  array (
    0 => 'mail',
    1 => 'radio',
  ),
  'updater.secret' => '$2y$10$***',
);

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

[Sun Jun 07 12:05:31.427724 2020] [access_compat:error] [pid 864:tid 139938376890112] [client 176.198.227.131:47796] AH01797: client denied by server configuration: /var/www/html/nextcloud/config
[Sun Jun 07 12:10:36.437503 2020] [access_compat:error] [pid 863:tid 139938612016896] [client 176.198.227.131:47840] AH01797: client denied by server configuration: /var/www/html/nextcloud/config
[Sun Jun 07 12:11:07.560631 2020] [access_compat:error] [pid 864:tid 139938536482560] [client 176.198.227.131:47846] AH01797: client denied by server configuration: /var/www/html/nextcloud/config
[Sun Jun 07 12:11:39.592768 2020] [access_compat:error] [pid 863:tid 139938612016896] [client 176.198.227.131:47850] AH01797: client denied by server configuration: /var/www/html/nextcloud/config
[Sun Jun 07 12:12:11.562350 2020] [access_compat:error] [pid 863:tid 139938612016896] [client 176.198.227.131:47856] AH01797: client denied by server configuration: /var/www/html/nextcloud/config
[Sun Jun 07 12:12:43.612074 2020] [access_compat:error] [pid 864:tid 139938536482560] [client 176.198.227.131:47860] AH01797: client denied by server configuration: /var/www/html/nextcloud/config
[Sun Jun 07 12:13:15.585562 2020] [access_compat:error] [pid 863:tid 139938612016896] [client 176.198.227.131:47872] AH01797: client denied by server configuration: /var/www/html/nextcloud/config
[Sun Jun 07 12:13:47.600084 2020] [access_compat:error] [pid 863:tid 139938376890112] [client 176.198.227.131:47878] AH01797: client denied by server configuration: /var/www/html/nextcloud/config
[Sun Jun 07 12:13:53.562612 2020] [access_compat:error] [pid 864:tid 139938418894592] [client 176.198.227.131:47882] AH01797: client denied by server configuration: /var/www/html/nextcloud/config
[Sun Jun 07 12:26:00.301322 2020] [proxy:error] [pid 863:tid 139938317985536] (9)Bad file descriptor: [client 176.198.227.131:47936] AH03307: ap_proxy_transfer_between_connections: error on sock - ap_pass_brigade
[Sun Jun 07 12:26:01.254342 2020] [mpm_event:notice] [pid 858:tid 139938780564416] AH00491: caught SIGTERM, shutting down
[Sun Jun 07 12:27:30.385517 2020] [mpm_event:notice] [pid 1034:tid 140005146803136] AH00489: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 configured -- resuming normal operations
[Sun Jun 07 12:27:30.415141 2020] [core:notice] [pid 1034:tid 140005146803136] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jun 07 12:27:49.303355 2020] [access_compat:error] [pid 1036:tid 140004734727936] [client 176.198.227.131:48410] AH01797: client denied by server configuration: /var/www/html/nextcloud/config
[Sun Jun 07 17:18:40.484338 2020] [proxy_fcgi:error] [pid 1035:tid 140004575663872] [client 94.191.127.232:36412] AH01071: Got error 'Primary script unknown\n'
[Sun Jun 07 17:18:40.747405 2020] [proxy_fcgi:error] [pid 1035:tid 140004692625152] [client 94.191.127.232:36412] AH01071: Got error 'Primary script unknown\n'
[Sun Jun 07 17:18:41.021199 2020] [proxy_fcgi:error] [pid 1035:tid 140004533700352] [client 94.191.127.232:36412] AH01071: Got error 'Primary script unknown\n'

i had the same issue after updating both nextcloud and collabora (docker-image).

resolution for me was to update the apache-proxy config according to the example configuration found here: https://nextcloud.com/collaboraonline/
(i was missing the last paragraph "Endpoint with information about availability of various features"

the solution for me was to remove collabora and change to onlyoffice.