Slow performance after update to 27

Nextcloud version: 27.0.1
Operating system and version : Debian
Apache or nginx version : nginx -v
PHP version : 8.2

The issue you are facing:
since updating to nc27 performance has dropped significantly and im getting a few new errors. im using php FPM and it ran great before.

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

 	
2023/08/05 10:34:49 [error] 1741121#1741121: *67364 FastCGI sent in stderr: "Passing INI directive through FastCGI: only classic entries are allowed" while reading response header from upstream, client: 10.71.1.160, server: nextcloud.xxx.com, request: "GET /apps/files/ajax/getstoragestats?dir=%2FPhotos HTTP/2.0", upstream: "fastcgi://127.0.0.1:17005", host: "nextcloud.xxx.com" 

i think that new error is telling but a quick google was not helpful

config just in case:

<?php
$CONFIG = array (
  'instanceid' => 'xxx',
  'passwordsalt' => 'xxx',
  'secret' => 'xxx',
  'trusted_domains' => 
  array (
    0 => '10.71.1.8',
    1 => 'nextcloud.xxx.com',
  ),
  'datadirectory' => '/nextcloud-data',
  'dbtype' => 'mysql',
  'version' => '27.0.1.2',
  'overwrite.cli.url' => 'https://nextcloud.xxx.com',
  'dbname' => 'ncdb',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'ncuser',
  'dbpassword' => 'xxx',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtphost' => 'mail1.xxx.com',
  'mail_from_address' => 'nextcloud',
  'mail_domain' => 'xxx.com',
  'maintenance' => false,
  'filesystem_check_changes' => 1,
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'filelocking.enabled' => true,
  'default_phone_region' => 'US',
  'theme' => '',
  'loglevel' => 2,
  'preview_libreoffice_path' => '/ usr / bin / libreoffice',
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => 6379,
    'timeout' => 0.0,
  ),
  'enable_previews' => true,
  'enabledPreviewProviders' => 
  array (
0 => 'OC\\Preview\\Movie',
    1 => 'OC\\Preview\\PNG',
    2 => 'OC\\Preview\\JPEG',
    3 => 'OC\\Preview\\GIF',
    4 => 'OC\\Preview\\BMP',
    5 => 'OC\\Preview\\XBitmap',
    6 => 'OC\\Preview\\MP3',
    7 => 'OC\\Preview\\MP4',
    8 => 'OC\\Preview\\TXT',
    9 => 'OC\\Preview\\MarkDown',
    10 => 'OC\\Preview\\PDF',
  ),
  'mail_smtpport' => '25',
  'app_install_overwrite' => 
  array (
    0 => 'apporder',
    1 => 'caniupdate',
    2 => 'gallery',
    3 => 'registration',
    4 => 'preview_webp',
    5 => 'pdfdraw',
    6 => 'impersonate',
    7 => 'documentserver_community',
    8 => 'files_downloadactivity',
  ),
  'updater.release.channel' => 'stable',
  'data-fingerprint' => 'xxx',
  'mail_sendmailmode' => 'smtp',
);

also things im passing to my php (i use cloudpanel)

date.timezone=America/New_York;
display_errors=off;
output_buffering=0;
opcache.enable_cli=1;
opcache.save_comments=1;
opcache.revalidate_freq=60;
opcache.interned_strings_buffer=15;
opcache.jit=1255;
opcache.jit_buffer_size=128M;
opcache.max_accelerated_files=10000;
env[PATH]=/usr/local/bin:/usr/bin:/bin;

I can’t say if this is the exact cause of your problem, but I noticed a couple of things:

this is a performance killer:

  'filesystem_check_changes' => 1,

read filesystem-check-changes - Manual ←


About this:

  'app_install_overwrite' => 
  array (
    0 => 'apporder',
    1 => 'caniupdate',
    2 => 'gallery',
    3 => 'registration',
    4 => 'preview_webp',
    5 => 'pdfdraw',
    6 => 'impersonate',
    7 => 'documentserver_community',
    8 => 'files_downloadactivity',
  ),
  • 1 => 'caniupdate',
    

“caniupdate” is obsoleted with Nextcloud 14. The functionality of the “caniupdate” app has been merged into the update notifications app for Nextcloud 14. You can savely uninstall and delete the “caniupdate” app, because it does not do anything anymore.

  • 2 => 'gallery',
    

“gallery” was replaced by “photos”. The “photos” app is a shipped (included with the server) app, enabled by default.

  • 3 => 'registration',
    

“registration” is suported in Nextcloud 27, so no need to maintain in this array.

  • 4 => 'preview_webp',
    

What app is that? I’ve never heard of it and can’t find it in the appstore nor after extensive internet searching. But I could have missed something.
Use this preview provider instead:

  • 'enabledPreviewProviders' =>
    array (
      11 => 'OC\\Preview\\WebP',
    ),
    

to create previews from webp. Or did I miss the purpose of the legacy “preview_webp” app?

  • 5 => 'pdfdraw',
    

“pdfdraw” is suported until Nextcloud 20 and requires a separate nodejs server running on the backend to distribute the signaling messages between clients. Does that work and run smooth?

  • 6 => 'impersonate',
    

“impersonate” is suported in Nextcloud 27, so no need to maintain in this array.

Hope this helps,
much luck!

1 Like

wow thanks for the valuable insight! a lot of that stuff was legacy stuff and i didn’t know nextcloud added suport for webp thats great!

i cleaned it down to this:

'app_install_overwrite' => 
  array (
    0 => 'apporder',
    1 => 'gallery',
    2 => 'documentserver_community',
    3 => 'files_downloadactivity',
  ),

performance is still o so very slow haha but my config file got shorter that’s always a good thing

1 Like

also i still use gallery because photos is bad, it doesn’t work like i want it at all haha unless something drastic has changed, i guess il try it just in case