Issue no menu, login window or buttons after upgrade from 26.x.x to 27.x.x, only the frame of the website

Hello Community,

I have a strange behaviour in one of the clouds I am supporting. I have good experienses over along time with nextcloud. Actually I support six different instances, all are always up to date. Nearly all problems in the past, I was able to solve by myself, because nextcloud is well documentated as you know.

I have this behaviour only in one of my instances, all the others are fine. But I could not find the reason for it. It is a cloud with many users (more than 100), so I use the updater via commandline. The updateprocess is running to the end without any errors, everything seems to be fine.

After the update is performed I have the following problem:

  • if my browser has catched my Login, only the frame of the website is visible, but there`s no other function visible like the folder button, the menu link, notifications and so one, the frame is blank
  • if I am not authenticated in the browser on the loginpage, the prompt and fields are even not visible

I don`t know what is causing this issue, clean the browsercache, changing to different browsers (tested with Edge, Firefox and Chrome) did not change anything on this.

Nextcloud version: 26.0.8
Operating system and version : Ubuntu 20.04.6 LTS
Apache: 2.4.41
PHP version : 8.2.12

The issue you are facing:

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

Steps to replicate it:

  1. Start Nextcloud Update via commandline
  2. Perform the update
  3. Open Website of Nextcloud instance

The output of your Nextcloud log in Admin > Logging:
Hint: I guess this is not helpful, because after the update is performed, logging is stopping here too, this is the last entry, there is no error hint to see in this log

{"reqId":"pVkM6bwWoE9TDfn1UvHU","level":1,"time":"2023-11-17T06:58:08+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::resetLogLevel: Reset log level to Warning(2)","userAgent":"--","version":"27.1.3.2","data":{"app":"updater"}}

Additional, and may be more helpful, here is the updater log, but I can see no error here:

2023-11-17T06:56:58+0000 ugdS4WZ2WM [info] getChangelogURL()
2023-11-17T06:56:58+0000 ugdS4WZ2WM [info] end of checkForUpdate() Update to Nextcloud 27.1.3 available. (channel: “stable”)
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-27.1.3.zip
Open changelog ↗
2023-11-17T06:56:58+0000 ugdS4WZ2WM [info] updater run in non-interactive mode
2023-11-17T06:56:58+0000 ugdS4WZ2WM [info] updater started
2023-11-17T06:56:58+0000 ugdS4WZ2WM [info] executeStep request for step “1”
2023-11-17T06:56:58+0000 ugdS4WZ2WM [info] startStep(“1”)
2023-11-17T06:56:58+0000 ugdS4WZ2WM [info] checkForExpectedFilesAndFolders()
2023-11-17T06:56:58+0000 ugdS4WZ2WM [info] end of checkForExpectedFilesAndFolders()
2023-11-17T06:56:58+0000 ugdS4WZ2WM [info] endStep(“1”)
2023-11-17T06:56:58+0000 ugdS4WZ2WM [info] executeStep request for step “2”
2023-11-17T06:56:58+0000 ugdS4WZ2WM [info] startStep(“2”)
2023-11-17T06:56:58+0000 ugdS4WZ2WM [info] checkWritePermissions()
2023-11-17T06:56:58+0000 ugdS4WZ2WM [info] end of checkWritePermissions()
2023-11-17T06:56:58+0000 ugdS4WZ2WM [info] endStep(“2”)
2023-11-17T06:56:58+0000 ugdS4WZ2WM [info] executeStep request for step “3”
2023-11-17T06:56:58+0000 ugdS4WZ2WM [info] startStep(“3”)
2023-11-17T06:56:58+0000 ugdS4WZ2WM [info] createBackup()
2023-11-17T06:56:58+0000 ugdS4WZ2WM [info] backup folder location: /var/ncdata/updater-ocy9r9oj7fyg/backups/nextcloud-26.0.8.2-1700204218/
2023-11-17T06:57:09+0000 ugdS4WZ2WM [info] end of createBackup()
2023-11-17T06:57:09+0000 ugdS4WZ2WM [info] endStep(“3”)
2023-11-17T06:57:09+0000 ugdS4WZ2WM [info] executeStep request for step “4”
2023-11-17T06:57:09+0000 ugdS4WZ2WM [info] startStep(“4”)
2023-11-17T06:57:09+0000 ugdS4WZ2WM [info] downloadUpdate()
2023-11-17T06:57:09+0000 ugdS4WZ2WM [info] getUpdateServerResponse()
2023-11-17T06:57:09+0000 ugdS4WZ2WM [info] updaterServer: https://updates.nextcloud.com/updater_server/
2023-11-17T06:57:09+0000 ugdS4WZ2WM [info] releaseChannel: stable
2023-11-17T06:57:09+0000 ugdS4WZ2WM [info] internal version: 26.0.8.2
2023-11-17T06:57:09+0000 ugdS4WZ2WM [info] updateURL: https://updates.nextcloud.com/updater_server/?version=26x0x8x2xxxstablexx2023-10-26T17%3A40%3A31%2B00%3A00+1526013f426db26481adb4ea8170e8f95d56c5f8x8x2x12
2023-11-17T06:57:09+0000 ugdS4WZ2WM [info] getUpdateServerResponse response: Array
(
[version] => 27.1.3.2
[versionstring] => Nextcloud 27.1.3
[url] => https://download.nextcloud.com/server/releases/nextcloud-27.1.3.zip
[web] => https://docs.nextcloud.com/server/27/admin_manual/maintenance/upgrade.html
[changes] => https://updates.nextcloud.com/changelog_server/?version=27.1.3
[autoupdater] => 1
[eol] => 0
[signature] => Xq8MHdDc/C5cRZiT5JoT9Empo0WAOyBP3ufwRjFXAfxl3aGBk7f8UL1UNcobaf49
3O8Jf4g4e4ad4lE+B16p9L96X3J3+W54UPp5exQzSP7TJ7km/cX2MB+DExjOJ6Hx
ZmFVok1asIPRSTz3fw2kPem4gNx1/xOsgdB9XuiysdgdZy9CMYCEsdHnkQkMhO08
9BqphwWy7dWYHE8YE3B2CSru11kIjTZj3/0S5cMEe1otkKg2ukoPSUHNQe+RKPyS
3pzFuf0rb84rPdTS3iX254g+KlXg8fNy8leBgTLuB7CFTliVv/IH0coWpo6Gl0gb
nvxG0m2MWJoFS1OI1OB3JQ==
)

2023-11-17T06:57:09+0000 ugdS4WZ2WM [info] storage location exists
2023-11-17T06:57:33+0000 ugdS4WZ2WM [info] end of downloadUpdate()
2023-11-17T06:57:33+0000 ugdS4WZ2WM [info] endStep(“4”)
2023-11-17T06:57:33+0000 ugdS4WZ2WM [info] executeStep request for step “5”
2023-11-17T06:57:33+0000 ugdS4WZ2WM [info] startStep(“5”)
2023-11-17T06:57:33+0000 ugdS4WZ2WM [info] verifyIntegrity()
2023-11-17T06:57:33+0000 ugdS4WZ2WM [info] getUpdateServerResponse()
2023-11-17T06:57:33+0000 ugdS4WZ2WM [info] updaterServer: https://updates.nextcloud.com/updater_server/
2023-11-17T06:57:33+0000 ugdS4WZ2WM [info] releaseChannel: stable
2023-11-17T06:57:33+0000 ugdS4WZ2WM [info] internal version: 26.0.8.2
2023-11-17T06:57:33+0000 ugdS4WZ2WM [info] updateURL: https://updates.nextcloud.com/updater_server/?version=26x0x8x2xxxstablexx2023-10-26T17%3A40%3A31%2B00%3A00+1526013f426db26481adb4ea8170e8f95d56c5f8x8x2x12
2023-11-17T06:57:33+0000 ugdS4WZ2WM [info] getUpdateServerResponse response: Array
(
[version] => 27.1.3.2
[versionstring] => Nextcloud 27.1.3
[url] => https://download.nextcloud.com/server/releases/nextcloud-27.1.3.zip
[web] => How to upgrade — Nextcloud latest Administration Manual latest documentation
[changes] => https://updates.nextcloud.com/changelog_server/?version=27.1.3
[autoupdater] => 1
[eol] => 0
[signature] => Xq8MHdDc/C5cRZiT5JoT9Empo0WAOyBP3ufwRjFXAfxl3aGBk7f8UL1UNcobaf49
3O8Jf4g4e4ad4lE+B16p9L96X3J3+W54UPp5exQzSP7TJ7km/cX2MB+DExjOJ6Hx
ZmFVok1asIPRSTz3fw2kPem4gNx1/xOsgdB9XuiysdgdZy9CMYCEsdHnkQkMhO08
9BqphwWy7dWYHE8YE3B2CSru11kIjTZj3/0S5cMEe1otkKg2ukoPSUHNQe+RKPyS
3pzFuf0rb84rPdTS3iX254g+KlXg8fNy8leBgTLuB7CFTliVv/IH0coWpo6Gl0gb
nvxG0m2MWJoFS1OI1OB3JQ==
)

2023-11-17T06:57:33+0000 ugdS4WZ2WM [info] storage location: /var/ncdata/updater-ocy9r9oj7fyg/downloads/
2023-11-17T06:57:33+0000 ugdS4WZ2WM [info] end of verifyIntegrity()
2023-11-17T06:57:33+0000 ugdS4WZ2WM [info] endStep(“5”)
2023-11-17T06:57:33+0000 ugdS4WZ2WM [info] executeStep request for step “6”
2023-11-17T06:57:33+0000 ugdS4WZ2WM [info] startStep(“6”)
2023-11-17T06:57:33+0000 ugdS4WZ2WM [info] extractDownload()
2023-11-17T06:57:33+0000 ugdS4WZ2WM [info] storage location: /var/ncdata/updater-ocy9r9oj7fyg/downloads/
2023-11-17T06:57:37+0000 ugdS4WZ2WM [info] end of extractDownload()
2023-11-17T06:57:37+0000 ugdS4WZ2WM [info] endStep(“6”)
2023-11-17T06:57:37+0000 ugdS4WZ2WM [info] executeStep request for step “7”
2023-11-17T06:57:37+0000 ugdS4WZ2WM [info] startStep(“7”)
2023-11-17T06:57:37+0000 ugdS4WZ2WM [info] setMaintenanceMode(“true”)
2023-11-17T06:57:37+0000 ugdS4WZ2WM [info] configFileName /var/www/nextcloud/updater/…/config/config.php
2023-11-17T06:57:37+0000 ugdS4WZ2WM [info] end of setMaintenanceMode()
2023-11-17T06:57:37+0000 ugdS4WZ2WM [info] endStep(“7”)
2023-11-17T06:57:37+0000 ugdS4WZ2WM [info] executeStep request for step “8”
2023-11-17T06:57:37+0000 ugdS4WZ2WM [info] startStep(“8”)
2023-11-17T06:57:37+0000 ugdS4WZ2WM [info] replaceEntryPoints()
2023-11-17T06:57:37+0000 ugdS4WZ2WM [info] replace index.php
2023-11-17T06:57:37+0000 ugdS4WZ2WM [info] replace status.php
2023-11-17T06:57:37+0000 ugdS4WZ2WM [info] replace remote.php
2023-11-17T06:57:37+0000 ugdS4WZ2WM [info] replace public.php
2023-11-17T06:57:37+0000 ugdS4WZ2WM [info] replace ocs/v1.php
2023-11-17T06:57:37+0000 ugdS4WZ2WM [info] replace ocs/v2.php
2023-11-17T06:57:37+0000 ugdS4WZ2WM [info] end of replaceEntryPoints()
2023-11-17T06:57:37+0000 ugdS4WZ2WM [info] endStep(“8”)
2023-11-17T06:57:37+0000 ugdS4WZ2WM [info] executeStep request for step “9”
2023-11-17T06:57:37+0000 ugdS4WZ2WM [info] startStep(“9”)
2023-11-17T06:57:37+0000 ugdS4WZ2WM [info] deleteOldFiles()
2023-11-17T06:57:37+0000 ugdS4WZ2WM [info] config sample exists
2023-11-17T06:57:37+0000 ugdS4WZ2WM [info] themes README exists
2023-11-17T06:57:37+0000 ugdS4WZ2WM [info] end of deleteOldFiles()
2023-11-17T06:57:37+0000 ugdS4WZ2WM [info] endStep(“9”)
2023-11-17T06:57:37+0000 ugdS4WZ2WM [info] executeStep request for step “10”
2023-11-17T06:57:37+0000 ugdS4WZ2WM [info] startStep(“10”)
2023-11-17T06:57:37+0000 ugdS4WZ2WM [info] moveNewVersionInPlace()
2023-11-17T06:57:37+0000 ugdS4WZ2WM [info] storage location: /var/ncdata/updater-ocy9r9oj7fyg/downloads/nextcloud/
2023-11-17T06:57:38+0000 ugdS4WZ2WM [info] end of moveNewVersionInPlace()
2023-11-17T06:57:38+0000 ugdS4WZ2WM [info] endStep(“10”)
2023-11-17T06:57:38+0000 ugdS4WZ2WM [info] executeStep request for step “12”
2023-11-17T06:57:38+0000 ugdS4WZ2WM [info] startStep(“12”)
2023-11-17T06:57:38+0000 ugdS4WZ2WM [info] finalize()
2023-11-17T06:57:38+0000 ugdS4WZ2WM [info] storage location: /var/ncdata/updater-ocy9r9oj7fyg/downloads/nextcloud/
2023-11-17T06:57:38+0000 ugdS4WZ2WM [info] call opcache_reset()
2023-11-17T06:57:38+0000 ugdS4WZ2WM [info] end of finalize()
2023-11-17T06:57:38+0000 ugdS4WZ2WM [info] endStep(“12”)
2023-11-17T06:57:38+0000 ugdS4WZ2WM [info] update of code successful.
2023-11-17T06:57:38+0000 ugdS4WZ2WM [info] updater run in non-interactive mode - occ upgrade is started
2023-11-17T06:58:08+0000 ugdS4WZ2WM [info] updater run in non-interactive mode - disabling maintenance mode
2023-11-17T06:58:09+0000 ugdS4WZ2WM [info] maintenance mode is disabled - return code: 0

I know there`s a bigger more detailed log for that, but even there, no errors or hints for this behaviour…

config.php Info:

  <?php
$CONFIG = array (
  'passwordsalt' => '######',
  'secret' => '######',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => 'local IP,
    2 => '######',
    3 => '######',
    4 => '######',
    5 => '######',
    6 => '######',
    7 => '######',
  ),
  'trusted_proxies' =>
  array (
    0 => '######',
    1 => '######',
    2 => '######',
    3 => '######',
  ),
  'datadirectory' => '/var/ncdata',
  'default_phone_region' => 'DE',
  'overwrite.cli.url' => '######',
  'dbtype' => 'mysql',
  'version' => '26.0.8.2',
  'dbname' => 'nextcloud_db',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => '######',
  'dbpassword' => '######',
  'logtimezone' => 'UTC',
  'installed' => true,
  'instanceid' => '######',
  'appstore.experimental.enabled' => 'true',
  'mail_smtpmode' => 'smtp',
  'mail_smtpport' => '25',
  'mail_smtphost' => '######',
  'mail_smtpstreamoptions' =>
  array (
    'ssl' =>
    array (
      'allow_self_signed' => true,
      'verify_peer' => false,
      'verify_peer_name' => false,
    ),
  ),
  'mail_from_address' => '######',
  'mail_domain' => '######',
  'preview_libreoffice_path' => '/usr/bin/libreoffice',
  'filelocking.enabled' => true,
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0,
    'dbindex' => 0,
  ),
  'maintenance' => false,
  'skeletondirectory' => '',
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => '\\OCA\\User_LDAP\\LDAPProviderFactory',
  'loglevel' => 2,
  'theme' => '',
  'updater.release.channel' => 'stable',
  'mysql.utf8mb4' => true,
  'has_rebuilt_cache' => true,
  'app_install_overwrite' =>
  array (
    0 => 'calendar',
  ),
);

The output of your Apache2 log in :

error log is empty, everything seems to be fine here too

So, if someone has an idea what is faulty here, it would be great.

I compared permissions and settings, php versions, php modules and so on to the other servers and instances, but I`m running in cycles.

I hope someone can help me with this,.

Can you check the browser developer tools, if it fails to load some resources?

Do you use a customized theming?

Hi tflidd,

both hints are good ones, thank you.

Yes, in this cloud I`m using customize themes and I found some empty strings in the configuration. I corrected this, but the behaviour was the same. Even if I go back to the default themes of nextcloud, no changes.

Your first hint to check what the browser develpement tools say brings me a new information. It seems like no js libarys can be load after after the update.

But till now I dont know why js is not loading, this could be a hint that theres something wrong with the proxysettings in the cloud, but I cant prove it, this proxyconfiguration worked for round about 10 years without any issue, I will write it down here again, if I know more.

Regarding javascript, there was a change:

Hi tflidd,

thank you for the link. You are right, there was a change. After reading the changelog I compared the setting of this cloud with another one with focus on the apache conf and the mime types because of the link you sent me.

After that I renewed the whole apache2 conf and added some missing libapache mods. The mime js mjs was already set in etc/mime.types and grabbed by /etc/apache2/mods-enable/mime.conf too. I renewed all because this is the only cloud where I was not the one who build it. On all other instances, I did everything from installing the os to the nextcloud installation/configuration. This was a out of the box distribution and I overtook this after it was running for a few years, so I like to cleanup step by step things when I find them. And the last years this cloud was running fine with all updates and less problems.

To be sure the mime (js mjs) is really set I temporarely used hard code in .htaccess (which no one should do, if she or he is not knowing what she or he is doing there), but the result is always the same.

I was pretty sure that mimes are the problem while I was reading the article you sent. On the good site is I found some dirty configurations which I could clenaup. But on the bad site is that I am on the start now. I have the same behaviour after an update, can`t find any helping logs, the only thing I can say is that js are not loading anymore after the update, without catching the cause.

:roll_eyes:

Hi, there seems to be a general issue with javascript. On Sites with js generated content, there are missmatching chars like wrong displayed german umlauts. I exported the db to doublecheck it, the chars in the db are correct encoded with utf-8, like it is configured in apache2 and in system too.

Only JS generated contents are involved to that. Upload, download, sync files with chars like ä, ö, ü and so on are no problem. That indicates that the charset settings seems to be correct.

That brings me to a confusing Situation where for Example a “ä” in the backend/setting section of the nextcloud is shown correct because its grabbed as string from the db bysite a wrong displayed "ä" because its JS generated.

I checked the charset and mimes settings from the OS Ubuntu itself, of apache2 and of the nextcloud configuration, all seems to be correctly and working fine.

So my question is if somebody knows if there`s a conf to doublecheck how js is interpreting charsets? I hope to find there my Cause of this Situation.

I can’t help zou with the js generation, what I’d check (if not already done) if there is not an app causing this. Especially more “exotic” (less commonly used) ones, perhaps some issues arise in a certain combination of them.

And can you access the instance without passing through a proxy? Just to make sure that it is not the proxy messing up things.

Very Thanks to tflidd, with your hint to doublecheck the proxy itselfs, I did the trick.

Finally, I got it. This was making me crazy. I did so much things, changing PHP from 8.0 to 8.2 to 8.1 to 8.3 and back to 8.2, raise server from 20.04 to 22.04, moving ncdata path include changes in Mysql, changed from mysql to mariaDB and several other things with the occ.

But at least, the server itself was not the fault. The server is running behind a reverse proxy as I already wrote before. It was running without any Issues for many years. The proxy is a Sophos utm, at least there was a missconfiguration in the webapplication firewall settings of the sophos utm. Because this has nothing to do with the server itselfs, there were no logs generated about what is faulty.

The Sophos configuration was working fine as long only js and not mjs was in use. So the Cloud was breaking in an Update to 27.x.x where mjs was in use.

With this knowledge I found this article which helped me to adjust the correct setting for the cloud:

NextCloud mit Sophos UTM Webserver Protection - AdminLabs

Now, everything is running fine and smoothly, all chars are correct again and everything works. :grinning:

May be this is helpful for other people too?!

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.