-
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 🚀 |
I am also facing issues with the log page as my browser tab will hang due to the amount of information in the logs. I can replicate this on Chrome, Edge and Firefox. This ticket is surprisingly old and the situation does not seem to be resolved. Is there an ETA on when an improvement could be expected? |
Hello @panzerscope , Thank you for bringing it up again. I agree this would be very useful to fix. Situation was improved already this year with migration to Vue, although stil happening in some cases (high RAM load, not specific to any browser). Unfortunately, this is not scheduled to fix yet (due to low impact, I might assume, as we do not have a lot of feedback on it from community / enterprise clients). However, we are welcoming any contributions and can assist with reviewing and completing it. Would you (or anyone else) perhaps be up for implementing this? I left some references in the comment above, this should be a manage-able task for any frontenders interested. |
Happy to try whatever will improve the situation. I assume Vue is not something I would need to implement on the front end as it has already been integrated into Nextcloud already? |
Yes, I think what missing should be solved by wrapping this component: logreader/src/components/table/LogTable.vue Lines 38 to 41 in 61dab73
into this wrapper from external lib: |
I appreciate the feedback but if this is something I need to change/add on my end, I would need a more "dummy" explanation on what steps I need to undertake. Would this also be a one time change made to instance of Nextcloud? |
Sorry for misinterpretation here. No, I was talking about a development contributions, which would require:
Then we review it from our side, merge into codebase and possibly backport, so that everyone can download fixed version ☘ |
I came to this issue because of the extreme high memory usage in Firefox when I open the Nextcloud log viewer and I scroll and click there a little. Effectively, reading the Nextcloud logs via the Firefox does not work. In the past I did not experience this, as far as I remember. Did something change recently? |
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: