-
Notifications
You must be signed in to change notification settings - Fork 27
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
Better handling of big log files to avoid crash of the viewer #719
Comments
I have the same issue, logging page is not loading anything, just spinning forever... |
We can trigger the issue when changing log settings or enabling auto refresh. |
I had the very same issue, logging page was not loading anything, just spinning forever... Nextcloud 24(.0.4) the logfile was 24M big, with 4554 lines:
I renamed the original logfile and touch'ed and chown'ed a new logfile, now the logging page is loading just fine (and saying that there are no log entries yet) but the logger doesnt seem to write anything to the new logfile now, even with debug loglevel enabled, the file is still empty edit: while executing |
Note: the underlying React error message is |
same here with
|
Quickly checked at Nextcloud 28 with 10k+ rows in a logfile, requests to logfile are chunked by 50 rows,
Frontend handling can be improved with virtual scroller 🚀 |
Steps to reproduce
config/config.php
to 0 ('loglevel' => 0
).Expected behaviour
The log viewer displays the log.
If the log is too big to be displayed, truncate to the newest n entries (where n is a value which can be handled by the frontend - for example 1000 or 5000) or paginate the log.
Actual behaviour
The log viewer crashes, so the page will get blank. It's not clear when exactly this happens. I have seen this with a logfile which counts about 62000 entries, but I believe the actual limit is lower and also depends on what browser and runtime environment you use.
Server configuration
Operating system: Ubuntu 20.04
Web server: Apache 2.4.41-4ubuntu3.10
Database: MariaDB 10.5.15
PHP version: 7.4
Nextcloud version: 24.0.0
Where did you install Nextcloud from: nextcloud.com
List of activated apps:
Nextcloud configuration:
Client configuration
Browser:
Vivaldi 5.2.2623.46 (Stable channel) (64-Bit)
Operating system:
Windows 10
Logs
Nextcloud log (data/owncloud.log)
(not relevant)
Browser log
The text was updated successfully, but these errors were encountered: