Strange problem after upgrading from NC19 to 20.0.2

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): 20.0.2
Operating system and version (eg, Ubuntu 20.04): Centos 7.8
Apache or nginx version (eg, Apache 2.4.25): Apache

2.4.6
PHP version (eg, 7.1): 7.4

The issue you are facing:
Strange garbage on screen after upgrading

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

Steps to replicate it:

  1. Upgrade to NC 20.0.2 via web interface
  2. Finish upgrade
  3. Go to site

The output of your Nextcloud log in Admin > Logging:

Can't get into interface to check

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

<?php
$CONFIG = array (
  'instanceid' => 'redacted',
  'passwordsalt' => 'verysalty',
  'secret' => '-------',
  'trusted_domains' => 
  array (
    0 => '',
  ),
  'datadirectory' => '/home/phil/cloud/data',
  'dbtype' => 'mysql',
  'version' => '20.0.2.2',
  'overwrite.cli.url' => 'https://serveraddress/newcloud',
  'dbname' => 'newcloud',
  'dbhost' => 'localhost:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'dbuser',
  'dbpassword' => 'secretdbpassword',
  'installed' => true,
);

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

==> ../../logs/access_log <==
xx.xxx.xxx.xx - - [27/Nov/2020:11:55:46 +0100] "GET /newcloud/ HTTP/1.1" 302 - "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:82.0) Gecko/20100101 Firefox/82.0"
xx.xxx.xxx.xxx - - [27/Nov/2020:11:55:47 +0100] "GET /newcloud/index.php/login HTTP/1.1" 200 4409 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:82.0) Gecko/20100101 Firefox/82.0"

You were running php7.4 on NC 19 already? As far as I know, it is officially supported from the next major version. If it was running on NC 19, it should probably on NC 20 as well.

Can you check from command line the occ command if that gives a reasonable output (https://docs.nextcloud.com/server/20/admin_manual/configuration_server/occ_command.html)? Just show the list of apps installed or something else that doesn’t change anything.
From the symbols, it could be some encoding problem but what is strange that it changed with the Nextcloud version (normally I’d expect such things if you update the webserver, php or your system). Did you change anything else at the same time?

Thanks for the reply,

The occ commend seems to work normally:

$ php occ app:list
Enabled:

  • activity: 2.13.3
  • bruteforcesettings: 2.0.1
  • cloud_federation_api: 1.3.0
  • comments: 1.10.0
  • contactsinteraction: 1.1.0
  • dashboard: 7.0.0
  • dav: 1.16.1
  • federatedfilesharing: 1.10.1
  • federation: 1.10.1
  • files: 1.15.0
  • files_pdfviewer: 2.0.1
  • files_rightclick: 0.17.0
  • files_sharing: 1.12.0
  • files_trashbin: 1.10.1
  • files_versions: 1.13.0
  • files_videoplayer: 1.9.0
  • firstrunwizard: 2.9.0
  • logreader: 2.5.0
  • lookup_server_connector: 1.8.0
  • nextcloud_announcements: 1.9.0
  • notifications: 2.8.0
  • oauth2: 1.8.0
  • password_policy: 1.10.1
  • photos: 1.2.0
  • privacy: 1.4.0
  • provisioning_api: 1.10.0
  • recommendations: 0.8.0
  • serverinfo: 1.10.0
  • settings: 1.2.0
  • sharebymail: 1.10.0
  • support: 1.3.0
  • survey_client: 1.8.0
  • systemtags: 1.10.0
  • text: 3.1.0
  • twofactor_backupcodes: 1.9.0
  • updatenotification: 1.10.0
  • user_status: 1.0.1
  • viewer: 1.4.0
  • weather_status: 1.0.0
  • workflowengine: 2.2.0
    Disabled:
  • accessibility
  • admin_audit
  • encryption
  • files_external
  • theming
  • user_ldap

Half thinking of a clean install on this to see if it solves it.

Then run the occ upgrade command from command line, then disable the maintenance mode and you should be good.

I have php7.4 with NC19 running without problems, and the update to 20 was flawless too.

It really looks like an encoding problem. Perhaps encoding from database/php/webserver do not match, normally everything is UTF-8.