-
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
[Bug]: NC28 syntax error accessing /settings/admin/logging #1073
Comments
Hi, try to restart php-fpm.service |
Hi! The issue continues after restarting both nginx & php-fpm |
I just noticed my issue appears to be with the logreader app, and this is a duplicate of #1064 |
I am running into the same issue after the upgrade to 28.0.0.11. |
I am running into the same issue after the upgrade to 28.0.0.11 |
I can confirm i have the same issue, fresh install via docker , fpm image. |
exact same issue here. after updating nextcloud to v28, error 500, same syntax error in logs. |
A workaround while #1075 is pending is the following:
|
I’m also experiencing the same issue, but along with Logging, Activity is blank too. Also, there are missing settings under Notification. The workaround above didn't work for me. |
The empty activity and logging is related to the fpm/nginx setup. I had that too and its because *.mjs is delivered as octet/stream instead of application/javascipt (and being blocked by the browser then). I've added mjs to the mime.types in nginx folder and activity + and logging is showing up again. |
I run my nextcloud on LIGHTTPD and I just get an error message in top right corner: |
Just to tack onto this very helpful comment, to fix the Activity stream by adding
|
Works like a charm, thank you! |
Same error after upgrade from 27 to 28 with the latest docker image (28.0.0)
|
This is part of the upgrade guide since Nextcloud 27: |
A fix will be released with Nextcloud 28.0.1, until then use the workaround from #1073 (comment) |
should we set back to "true" if this not helps and wait for update ?
|
Same here thanks @AmatorPhasma that resolves my final issue! |
Depends on your config/style You can put it in the
or you can add this to the config file in
|
Just FYI: NC docs as well as https://www.ietf.org/rfc/rfc9239.pdf says it should be text/javascript not application/javascript, but that also creates other nginx problems. Working on it at the moment, but i suspect it also causes issues with some browsers. |
https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types Separately, lighttpd 1.4.71 and later provide a default set of mime types (include .js and .mjs) if One more data point: on a modern Fedora system, .js and .mjs in /etc/mime.types are listed as text/javascript. |
Just FYI, i don't think this issue is the place to discuss it ;) |
In my implementation (docker fpm) it was down to missing See https://docs.nextcloud.com/server/27/admin_manual/installation/nginx.html#nextcloud-in-the-webroot-of-nginx and compare to what you may have (or haven't) in your .conf. |
Same issue on two servers with apache2 configuration without using PHP-FPM. One on Ubuntu 22.04 // PHP 8.2 // Apache 2.4.52 One on Ubuntu 20.04 // PHP 8.2 // Apache 2.4.41 #1073 (comment) fix the internal error and show some logs. |
Neither the above suggested modifications nor the update to Nextcloud v28.0.1 helped on latest Debian with PHP v8.2 and latest nginx (tested with latest Firefox and latest Chrome). Some other suggestions? Anyone? |
What issue do you face? This issue here is used for quite some off topic, because here are three different issues that are mixed up:
This issue here is about (1) meaning you see only the "Internal server error" notice For (2) you see a Nextcloud page but the app is not loaded there is a empty app page. For (3) you see the Logreader UI but no log entries. |
With the workaround suggested in #1073 the error disappeared, but the logging page is now empty. Also the update to 28.0.1 didn't change anything, logs page is still completely blank. |
Please check #1073 (comment) |
Thanks, adding the mime-type |
Ah yes... obviously. Sorry for that: Besides: My config/stlye lays within |
For those of us that faced that issue after solving the 500 errors, the cause of no logs was an ad blocker. For me it was ublock origin, but it stands to reason other ad blockers could have the same issue |
Thanks for the hint. But actually I read that, too. I'm using no browser ad blocker add-in at all, I'm afraid (I have a PiHole in place what makes such a plugin unneccessary). |
I nearly suggested a pihole might be the cause, but I thought that was being presumptuous. It would be helpful to know if a pihole causes this issue as well since you have an opportunity to test |
I just deactivated PiHole in order to be sure; It does have no effect on the logging issue if I do. |
@VinceMasuka can you check the browser console if there are any errors and check also the network tab |
I tested on a native minimal NC 28.0.1 (which does include #1079) installation without any network security/privacy appliances but the issue (described in detail in nextcloud/server#42370 (comment)) is still present for me. In another NC many-apps-installed-instance on the same server, /settings/admin/logging immediately loads correctly – 🤔 |
Also not fixed for me. I have this for so many apps / plugins. For example activity-api.mjs:1, activity-sidebar.mjs:1 files_zip-main.mjs:1 and also logreader-main.mjs:1. The page for logs is just blank. |
Your webserver is not serving the mjs file extension properly. If not using Nginx check if your webserver is serving the mjs file extension with |
@bai-ivan you are right. It's an old example issue. They have changed the things I have set up. I guess there will be a bunch of people having this issue and I can help now. Just update your |
Bug description
After upgrading to NC28, I get 500 errors accessing the settings/admin/logging page
The logs indicate a syntax error
Steps to reproduce
Expected behavior
View logs
Installation method
Community Manual installation with Archive
Nextcloud Server version
28
Operating system
None
PHP engine version
PHP 8.2
Web server
Nginx
Database engine version
PostgreSQL
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?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: