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

"Could not load log entries" #1058

Closed
ChristophWurst opened this issue Nov 24, 2023 · 14 comments
Closed

"Could not load log entries" #1058

ChristophWurst opened this issue Nov 24, 2023 · 14 comments

Comments

@ChristophWurst
Copy link
Member

Steps to reproduce

  1. ???

Expected behaviour

I can read the logs

Actual behaviour

I get an error toast with "Could not load log entries"

Bildschirmfoto vom 2023-11-24 11-49-40

The browser network logs shows that the request for logs errors with HTTP500.

Server configuration

Operating system:

Web server:

Database:

PHP version:

Nextcloud version: 28.0.0 RC1

Where did you install Nextcloud from:

List of activated apps:

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder

Nextcloud configuration:

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder

or

Insert your config.php content here
Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …)

Client configuration

Browser:

Operating system:

Logs

Nextcloud log (data/owncloud.log)

Insert your Nextcloud log here

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...
@susnux
Copy link
Contributor

susnux commented Nov 24, 2023

The browser network logs shows that the request for logs errors with HTTP500.

Is there any message in the response body of the failing request? Or could you have a look at the logfile manually?
I can not reproduce this, neither with a local dev setup nor on tech preview.

@ChristophWurst
Copy link
Member Author

It's empty

image

@ChristophWurst
Copy link
Member Author

OOOOOOF

blocked by uBlock origin

@ChristophWurst ChristophWurst closed this as not planned Won't fix, can't repro, duplicate, stale Nov 24, 2023
@BrianBlaze
Copy link

Just updated from the latest 27 version to 28.0.

I have a similar/same issue. On my admin overview it says: 33 errors in the logs since December 5, 2023.

Checking the logging tab I have the same result : "Could not load log enteries"

Checking my log manually I see this in my logs: nextcloud/photos#2187

I am not sure if it's connected, and not sure what other info I can give to help push this along, but I thought more input is better than less :)

@susnux
Copy link
Contributor

susnux commented Dec 12, 2023

@BrianBlaze Could you check that if you use an adblocker that it does not block that request? Otherwise disable it and report that false positive to your adblocker.

@BrianBlaze
Copy link

@BrianBlaze Could you check that if you use an adblocker that it does not block that request? Otherwise disable it and report that false positive to your adblocker.

100% an adblock thing! Thank you for such a quick response :)

@drifter75
Copy link

Just deployed version 28.0 and got this error.... but wait for few seconds the logs will be shown without disabling uBlock. With uBlock for site disabled it appeared without any delay.

@susnux
Copy link
Contributor

susnux commented Dec 23, 2023

but wait for few seconds the logs will be shown without disabling uBlock. With uBlock for site disabled it appeared without any delay.

Yes as said above uBlock uses a block list from AdblockPlus that has a false positive on the logging API... So the initial loading of log entries will fail and only if polling is enabled it will work later.

So I recommend you to disable your adblocker on your Nextcloud instance and report this to your adblocker issue tracker to get the entry out of the list.

@proninyaroslav
Copy link

Same problem with uBlock Lite.

@Henk57
Copy link

Henk57 commented Jan 26, 2024

Same problem with Ghostery.

@furai
Copy link

furai commented Feb 2, 2024

https://github.com/easylist/easylist/blob/af99b850d37219eac88e33c4e4d80f1643bf9e9b/easyprivacy/easyprivacy_general.txt#L305

This is actually caused by this entry in easylist. It's been there for 7 years so I don't think it's going anywhere. Only thing one can probably do is to just add the sites to whitelist or not use easylist but that's probably out of question. :)

@magikmw
Copy link

magikmw commented Feb 16, 2024

So I recommend you to disable your adblocker on your Nextcloud instance and report this to your adblocker issue tracker to get the entry out of the list.

This is actually caused by this entry in easylist. It's been there for 7 years so I don't think it's going anywhere. Only thing one can probably do is to just add the sites to whitelist or not use easylist but that's probably out of question. :)

I would like to ask maintainers to reopen this issue in light of above.

While correcting due to user's particular adblocking issues is not a common theme among any open source developement, I would postulate we can avoid the whole issue by changing the URL that gets caught by the adblocker to something that doesn't.

For example, while /api/log? appears in the mentioned filter list, /api/logs doesn't.

If I understand correctly, this change would actually need to happen first on the nextcloud/server project's side.

This is especially important in larger instances in organizations that allow use of adblockers, but don't enforce rules on users beyond defaults. I was certain it was an error in Nextcloud itself or my particular deployment.

@susnux
Copy link
Contributor

susnux commented Feb 16, 2024

It does not look like too many users are affected by this, otherwise there would be already a bug report for easylist for blocking a that generic item.

Feel free to open an issue at easylist so they can fix it - or create a PR for adjusting the API endpoint here :)

@joshtrichards
Copy link
Member

Hi @magikmw Also, there's already a dedicated Issue for tracking this possibility here so no need to fill this closed issue with further discussion that'll get overlooked/lost. Instead use #1136

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

9 participants