logreader icon indicating copy to clipboard operation
logreader copied to clipboard

[Bug]: After upgrade the webUI page with logs started to decline to be shown

Open oleua opened this issue 2 years ago • 3 comments

⚠️ This issue respects the following points: ⚠️

Bug description

After the upgrade from 26.. to 27.. I've found that the webUI log page is often not shown, but the infinite loop with circle. Only forced removing or renaming nextcloud.log helps to solve issue, but I am loosing the journal. The size of the last nextcloud.log, when the UI was frozen is 90MB.

Steps to reproduce

  1. Work with nextcloud for a certain time.
  2. Go to logging (journal)
  3. Observe infinite loop trying to show the content of the web page.
  4. SSH to your server, rename or remove nextcloud.log
  5. Observe, that the logging page is shown again but without saved journal with earlier data.

Expected behavior

The nextcloud.log file should rotate more frequently or the UI subsystem must be more adjusted to show the content of the log page.

Installation method

Community Web installer on a VPS or web space

Nextcloud Server version

27

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.1

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Upgraded to a MAJOR version (ex. 22 to 23)

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • [ ] Default user-backend (database)
  • [ ] LDAP/ Active Directory
  • [ ] SSO - SAML
  • [ ] Other

Configuration report

config.php contains:

logtype = file
loglevel = 0
logfile = /mnt/data/nextcloud.log

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

oleua avatar Oct 16 '23 18:10 oleua

You can adjust the log rotation in your config with log_rotate_size

For the UI problem: Do you have any log messages in the browser console?

susnux avatar Oct 31 '23 21:10 susnux

On our instance the problem is:

PHP message: PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in …/apps/logreader/lib/Log/LogIterator.php on line 83PHP message: PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in …/lib/private/Log/ErrorHandler.php on line 55

nickvergessen avatar Nov 15 '23 04:11 nickvergessen

You can adjust the log rotation in your config with log_rotate_size

For the UI problem: Do you have any log messages in the browser console?

I have corrected the log level and the issue has gone. It seems the log viewing doesn't work well, when the log file is bigger then XXX hundere MBs.

oleua avatar Nov 16 '23 06:11 oleua