Problem with documents not opening after 30.04 update

Hi
After updating to the latest version of Nextcloud, I can no longer open documents using ColabraOnline.
web server : apache2
database : mysql
php: 8.3

error log : Client error: POST https://192.168.7.109/cool/convert-to/png` resulted in a 413 Request Entity Too Large response: 413 Request Entity Too Large

413 Request Entity Too Large

< (truncated…)
Failed to convert preview: Client error: POSTcool/convert-to/png resulted in a 413 Request Entity Too Large response: 413 Request Entity Too Large

413 Request Entity Too Large

< (truncated…)
`

config.php

<?php
$CONFIG = array (
  'instanceid' => 'oc0fwcp4hp0a',
  'passwordsalt' => 'riCcJmjkTG4lhOrN38qXIF8H137UR4',
  'secret' => '0ZB/3fzJhRMhwL8T2QKQltUwRpprWeEhMzTzUAfSvAG7DN4M',
  'trusted_domains' =>
  array (
    1 => '192.168.110.2',
    3 => '192.168.15.2',
  ),
  'datadirectory' => '/var/www/data',
  'dbtype' => 'mysql',
  'version' => '30.0.4.1',
  'overwrite.cli.url' => 'https://****',
  'dbname' => '*****',
  'dbhost' => 'localhost:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '******',
  'dbpassword' => '******',
  'installed' => true,
  'enable_preview' => false,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'filelocking.enabled' => true,
  'redis' =>
  array (
    'host' => 'localhost',
    'port' => '6379',
    'timeout' => 0,
    'dbindex' => 0,
  ),
  'trusted_proxies' =>
  array (
    0 => '192.168.110.0/30',
    1 => '192.168.15.2',
  ),
  'default_phone_region' => 'IR',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => '*****',
'mail_domain' => 'gmail.com',
  'mail_smtphost' => 'smtp.gmail.com',
  'mail_smtpport' => '465',
  'mail_smtpauth' => 1,
  'mail_smtpname' => '******',
  'mail_smtppassword' => 'jgjc fcrn kgjk foxh',
  'maintenance' => false,
  'maintenance_window_start' => 1,
  'allow_local_remote_servers' => true,
  'session_lifefime' => 21600,
  'session_keepalive' => true,
  'remember_login_cookie_lifetime' => 1296000,
  'davstorage.request_timeout' => 30,
  'session_relaxed_expiry' => false,
  'theme' => '',
  'updater.release.channel' => 'stable',
  'log_type' => 'file',
  'logfile' => '/var/www/html/data/nextcloud.log',
  'loglevel' => 2,
  'debug' => false,
  'check_for_working_htaccess' => true,
  'files_no_background_scan' => false,
  'defaultapp' => 'dashboard,files,spreed,announcementcenter',
  'mail_smtpsecure' => 'ssl',
  'app_install_overwrite' =>
  array (
    0 => 'side_menu',
  ),
);


I have the same problem. I am running AIO. I could open the documents before the update.

My error is different though. Anyone have any suggestions?

@Venantius_Kumar welcome to the community

just guessing here, but it seems your instance is not telling the collabora server who is connecting… maybe your Nextcloud is not transmitting the correct URL which could point to overwrite_cli

my wiki’s refer to Nextcloud snap but the configuration should be similar.

see How to configure collabora CODE with docker · nextcloud-snap/nextcloud-snap Wiki · GitHub and Hosts & FQDN configuration

I am not sure whether this will help, as for me this happened using a self host collabora server. If you have access to server/proxy that is running collabora then it might.

I think the reason might be that nextcloud decided to use larger chunks when uploading documents to Collabora then before. My server was setting behind an nginx proxy with the default setting of lient_max_body_size. When I did use a setting of 512MB it worked again.

Now my nginx config has

    # set max upload size and increase upload timeout:
    client_max_body_size 512M;
    client_body_timeout 300s;

If that is not possible for you then you might to search how to change the chunk size that nextcloud uses when uploading to collabora.