Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
4 of 8 tasks
ostasevych opened this issue Oct 16, 2023 · 3 comments
Open
4 of 8 tasks

Comments

@ostasevych
Copy link

ostasevych commented Oct 16, 2023

⚠️ 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

@susnux
Copy link
Contributor

susnux commented Oct 31, 2023

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?

@nickvergessen
Copy link
Member

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

@ostasevych
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants