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

Nextcloud not fully loading in Edge, Chrome works - related somehow to default.conf #402

Closed
1 task done
Intenos opened this issue Dec 26, 2023 · 24 comments · Fixed by #405
Closed
1 task done

Nextcloud not fully loading in Edge, Chrome works - related somehow to default.conf #402

Intenos opened this issue Dec 26, 2023 · 24 comments · Fixed by #405
Assignees
Labels
work-in-progress Stale exempt

Comments

@Intenos
Copy link

Intenos commented Dec 26, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I upgraded Nextcloud from 27.X to 28.0.1.1 with the latest Docker release build and replaced the default.conf by the newly provided default.conf.sample.

Whereas in Chrom Nextcloud works properly, it doesn´t fully load in Edge. It starts that on the login page that it shows "Anmelden bei {productName}" instead of "Anmelden bei Nextcloud". After loging in and showing the Dashboard, it is neither able to load the files, nor the mails or weather. When switching to the Files App, it doesn´t show any files. In the development sidebar of Edge, a lot "..404 (Not Found)" errors are shown.

image

Expected Behavior

It should work in Edge as in Chrome

Steps To Reproduce

After playing around a bit and trying out different things, I found that it works again when removing the following (new) part of the default.conf below "location ~ .(?:css|js|mjs|svg|gif|png|jpg|ico|wasm|tflite|map|ogg|flac)$ {":

location ~ \.js$ {
         default_type text/javascript;
     }

     location ~ \.mjs$ {
         default_type text/javascript;
     }

Whether the above is just a (not proper workaround) for resolving the actual problem or really the solutions, I don´t know.

Environment

- OS: OpenMediaVault 6.9.11-2 (Shaitan) on Linux 5.10.0-26-amd64
- How docker service was installed: Portainer

CPU architecture

x86-64

Docker creation

![image](https://github.com/linuxserver/docker-nextcloud/assets/44039580/e9bf3398-dfa0-4b98-a421-85a81e9bb3cf)

Container logs

[mod-init] Attempting to run Docker Modification Logic
[mod-init] Adding linuxserver/mods:universal-package-install to container
[mod-init] linuxserver/mods:universal-package-install at sha256:179666823e425c84f903183aa0b76eb4fe6ce386fdeb55ca85b56b7791669140 has been previously applied skipping
[migrations] started
[migrations] 01-nginx-site-confs-default: skipped
[migrations] 02-default-location: skipped
[migrations] done
usermod: no changes
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗ 
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝ 

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    911
User GID:    911
───────────────────────────────────────

using keys found in /config/keys
**** The following site-confs have extensions other than .conf ****
**** This may be due to user customization. ****
**** You should review the files and rename them to use the .conf extension or remove them. ****
**** nginx.conf will only include site-confs with the .conf extension. ****
/config/nginx/site-confs/default.conf.20230623
/config/nginx/site-confs/default.conf.20231216
/config/nginx/site-confs/default.conf.20230616
**** Adding nodejs to OS package install list ****
**** Adding npm to OS package install list ****
[mod-init] **** Installing all mod packages ****
fetch http://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz
OK: 361 MiB in 261 packages
[custom-init] No custom files found, skipping...
[ls.io-init] done.
@OvernightPancake
Copy link

I am facing a similar issue on Firefox, albeit I am having far less of the page load than you seem to. Removing those lines seems to only resolve the issue for me if I also spoof my user agent to Chrome.

@cravas
Copy link

cravas commented Dec 28, 2023

#388 (comment)

I saw that issue a while ago.
Had to revert those changes and just live with the warn on the log.

@drizuid drizuid pinned this issue Dec 28, 2023
@atlanticfirst
Copy link

same issue,had to revert those changes to get nextcloud properly work

@drizuid
Copy link
Member

drizuid commented Jan 2, 2024

we have a PR being confirmed now to resolve this. applies to #403 also

@drizuid drizuid added the work-in-progress Stale exempt label Jan 2, 2024
This was referenced Jan 2, 2024
@nemchik nemchik closed this as completed Jan 2, 2024
@LinuxServer-CI LinuxServer-CI moved this from Issues to Done in Issue & PR Tracker Jan 2, 2024
@Intenos
Copy link
Author

Intenos commented Jan 2, 2024

@drizuid
Thank you very much for your work. But unfortunately it didn´t solve the issue. I still have to out-comment the mentioned parts.

@drizuid drizuid reopened this Jan 2, 2024
@drizuid
Copy link
Member

drizuid commented Jan 2, 2024

@drizuid Thank you very much for your work. But unfortunately it didn´t solve the issue. I still have to out-comment the mentioned parts.

can you provide full container logs please note i need the container logs before you made changes/commented things

@LinuxServer-CI LinuxServer-CI moved this from Done to Issues in Issue & PR Tracker Jan 2, 2024
@Intenos
Copy link
Author

Intenos commented Jan 2, 2024

This one?

[mod-init] Attempting to run Docker Modification Logic
[mod-init] Adding linuxserver/mods:universal-package-install to container
[mod-init] Downloading linuxserver/mods:universal-package-install from lscr.io
[mod-init] Installing linuxserver/mods:universal-package-install
[mod-init] linuxserver/mods:universal-package-install applied to container
[migrations] started
[migrations] 01-nginx-site-confs-default: skipped
[migrations] 02-default-location: skipped
[migrations] done
usermod: no changes
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗ 
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝ 

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    911
User GID:    911
───────────────────────────────────────

using keys found in /config/keys
Initializing nextcloud 28.0.1.1 (this can take a while) ...
Setting permissions
Initializing finished
**** The following site-confs have extensions other than .conf ****
**** This may be due to user customization. ****
**** You should review the files and rename them to use the .conf extension or remove them. ****
**** nginx.conf will only include site-confs with the .conf extension. ****
/config/nginx/site-confs/default.conf.20230623
/config/nginx/site-confs/default.conf.20240102
/config/nginx/site-confs/default.conf.20230616
**** Adding nodejs to OS package install list ****
**** Adding npm to OS package install list ****
[mod-init] **** Installing all mod packages ****
fetch http://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz
(1/3) Installing c-ares (1.19.1-r0)
(2/3) Installing nodejs (18.18.2-r0)
(3/3) Installing npm (9.6.6-r0)
Executing busybox-1.36.1-r5.trigger
OK: 361 MiB in 261 packages
[custom-init] No custom files found, skipping...
[ls.io-init] done.

@drizuid
Copy link
Member

drizuid commented Jan 2, 2024

yep, and this is using the new site-confs/default.conf as shipped, with no changes?

@Intenos
Copy link
Author

Intenos commented Jan 2, 2024

Yes, I copied the default.conf.sample to default.conf to overwrite my adaptations and additionally re-created the container.

@drizuid
Copy link
Member

drizuid commented Jan 2, 2024

ok, thanks! give us a bit

@drizuid
Copy link
Member

drizuid commented Jan 2, 2024

just to be sure, after you copied the sample to default.conf, did you restart the container for the change to take effect?

@Intenos
Copy link
Author

Intenos commented Jan 2, 2024

Yes, I restarted the container. And by the way, the logviewer page in Nextcloud stays empty and doesn´t show anything. This worked in between after it has been fixed by the update to 28.0.1 and the new container.

@drizuid drizuid self-assigned this Jan 3, 2024
@drizuid
Copy link
Member

drizuid commented Jan 3, 2024

i can replicate the issue and i am working on a PR

@Intenos
Copy link
Author

Intenos commented Jan 3, 2024

Great! Thanks a lot.

@drizuid
Copy link
Member

drizuid commented Jan 3, 2024

mr pr is here, but isn't covering all the issues yet. you're still welcome to play with it. #405

@drizuid
Copy link
Member

drizuid commented Jan 3, 2024

hi guys, please test lspipepr/nextcloud:amd64-28.0.1-pkg-1497da69-dev-4030be827853102c904c898015197f9583a2f5fb-pr-405 and report back

@Intenos
Copy link
Author

Intenos commented Jan 3, 2024

Great job! It works again. With Chrome, Edge as well as the Nextcloud logging page. Thank you.

@drizuid drizuid linked a pull request Jan 3, 2024 that will close this issue
@drizuid
Copy link
Member

drizuid commented Jan 3, 2024

sorry for any inconvenience, we caught a couple inconsistencies that have been resolved now. do you mind testing lspipepr/nextcloud:amd64-28.0.1-pkg-1497da69-dev-ca6cd4b47ecedde586350bba27124a174d9fb14c-pr-405 for me?

@LinuxServer-CI LinuxServer-CI moved this from Issues to Done in Issue & PR Tracker Jan 3, 2024
@Intenos
Copy link
Author

Intenos commented Jan 4, 2024

I quickly tested lspipepr/nextcloud:amd64-28.0.1-pkg-1497da69-dev-ca6cd4b47ecedde586350bba27124a174d9fb14c-pr-405.

It is somehow really strange. In principle Nextcloud works. But the logging page of Nextcloud now properly works in Edge whereas it doesn´t show anything in Chrome.

@Intenos
Copy link
Author

Intenos commented Jan 4, 2024

Just for completeness. I´m not sure if I tested the logging page with the previous versions on both browsers. I could test it this evening or tomorrow if required. The next hours I´m not available.

@Intenos
Copy link
Author

Intenos commented Jan 7, 2024

@drizuid : Can you reproduce that the logging page is blank with Chrome whereas it shows it in Edge?

@nemchik
Copy link
Member

nemchik commented Jan 7, 2024

I can reproduce the logging page being blank in chrome when I have adblock (ublock origin lite) enabled 😄 It works as expected with adblock disabled though.

@drizuid
Copy link
Member

drizuid commented Jan 7, 2024

i use pihole, without making any adjustments to it, i can access the logging page fine

@Intenos
Copy link
Author

Intenos commented Jan 8, 2024

I´m not aware of any ad-blocker and haven´t found one in the extensions. Anyhow, you might be right. On my mobile phone it shows up in Chrome. Thanks a lot for your support.

@linuxserver linuxserver locked as resolved and limited conversation to collaborators Jan 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
work-in-progress Stale exempt
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

6 participants