The requested alias "PreviewManager" is depreacted

Hi

my logs are getting spammed with The requested alias "PreviewManager" is depreacted whitch is a Debug log message from the app serverDI.
Nextcloud generates the message like 5 per sec.

Nextcloud version (eg, 18.0.2): 19.0.0 (nextcloud:fpm docker)
Operating system and version (eg, Ubuntu 20.04): ubuntu server 18.04.4 LTS
Apache or nginx version (eg, Apache 2.4.25): nginx docker image

config.php:

<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'instanceid' => '***',
  'passwordsalt' => '***',
  'secret' => '***',
  'trusted_domains' => 
  array (
    0 => '***',
    1 => '***',
  ),
  'datadirectory' => '/var/www/html/data',
  'overwrite.cli.url' => '***',
  'dbtype' => 'mysql',
  'dbname' => 'nextcloud',
  'dbhost' => 'db',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => '***',
  'installed' => true,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 0,
  'version' => '19.0.0.12',
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'tls',
  'mail_sendmailmode' => 'smtp',
  'mail_smtphost' => '***',
  'mail_smtpport' => '***',
  'mail_smtpauth' => 1,
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' => 'mail',
  'mail_domain' => '***',
  'mail_smtpname' => '***',
  'mail_smtppassword' => '***',
);
1 Like

Please paste some of the original log content.

Do not know this app.

0 => log messages with level debug
1 => log messages with level info
2 => log messages with level warning

Default is warning but sometimes the value is set to 0 after a upgrade. Change it to 1 or 2 and your log is clear again.

Afaik there is nothing to worry. The PreviewManager is just called in a deprecated way. That will be fixed by a newer release.

1 Like