-
-
Notifications
You must be signed in to change notification settings - Fork 127
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] JavaScript loading issue #410
Comments
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid. |
This isn't an issue with the LSIO nextcloud image (LSIO packaging of the application), but one you're experiencing with the Quick search there pulls up a couple hits, including this one; just noting as it might be helpful - asking there would be your best bet. |
Thank you! I have moved to nextcloud-aio image and the issue doesn't exist there using the same TOTP. |
I have this exact issue as @ahavriluk explains in first post. I am not using the TOTP plugin at all (it's disabled). This is a new fresh install. Also sharing a folder from the browser does not work as the sidebar just loads forever. Might be related to above issue. Everything seems to work nice from Android app. |
I have the same issue when sharing a folder and I already reported nextcloud/server#43049 |
The file definitely exist in my case. If you examine the latest PRs, they were messing up with js and mime types. Somethings to look at since it is not working. I am pretty positive it is the image packaging related issue, since other images like nextcloud-aio don't have this problem. |
Update 2024-02-04: The ''''fix''''' I propose makes other things worse, retracted old replyI found a way to modify the I hard-coded my instance id here,
If lookup of the file fails, it tries to map e.g. the missing The sidebar now loads just fine. But this weird hack doesn't seem like it's really doing what it is supposed to do. |
@DivineDominion What did you docker-nextcloud/root/defaults/nginx/site-confs/default.conf.sample Lines 136 to 146 in 9e19c87
[1] https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html |
I take everything back -- after a day the Nextcloud nginx serves @joshtrichards I used the current one on master as reference. Wanted to get double fallbacks. Got the syntax wrong it seems |
This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions. |
I know this is closed, but I also had this same issue with the missing I looked closer at my default.conf nginx config, and noticed I had this:
The culprit seemed to be this part:
Once I removed that, everything worked just fine and the file was accessible without After looking closer at the response headers for that file I see its set to |
Just had a look and that block isn't in our default config in the container, is yours using a current default.conf or is it custom/outdated? |
Going to close this off - there's been quite a few bugs in the 28 release of NC that have been slowly weeded out, with a few changes of our own mixed in (and reversed) I suspect this is OK now. Make sure you're using the most up to date versions of the Reopen if issues are still there! |
My solution was here: |
Is there an existing issue for this?
Current Behavior
Loading JavaScript produces error in browser console:
Refused to execute script from 'https://REDACTED/login/selectchallenge?redirect_url=/js/core/merged-template-prepend.js?v%3D4c410a93-0' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
This issue has beed addressed lately resulting in multiple commits but it is still not fixed. I am running the latest image in Uraid OS in a docker container.
Expected Behavior
No response
Steps To Reproduce
Environment
CPU architecture
x86-64
Docker creation
Container logs
The text was updated successfully, but these errors were encountered: