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

Certain pages won't load in iframes, but pages load correctly on their own. #86

Open
MDKAOD opened this issue Sep 29, 2023 · 2 comments

Comments

@MDKAOD
Copy link

MDKAOD commented Sep 29, 2023

Problem description

Certain pages (getting started, settings, maybe playing) won't load in the iframe section below the booksonic blue bar menu.

Steps to reproduce

Log in. Before today, I never clicked the "Dont show me this again" link on the getting started page, so typically that should load. When opening "Home" in a new tab, I was able to click "Don't show me this again" and the "Home" page now shows up correctly, but settings tab still doesn't load. 'Playing' does nothing, but I don't have anything running at the moment.

  1. Log in
  2. Observe white screen
  3. Slap around trying to see what else works or doesn't

System information

  • 2201.1.0 : the version listed on the About page
  • Unraid docker: the operating system you're running Airsonic on.
    Linux, what distribution; Windows or Mac, what version?
  • linuxserver.io docker : the Java version you are using to run Airsonic.
  • nginx proxy manager via docker (unsure version, and remote. Can verify if needed) : if running Airsonic behind a proxy, what server and
    version? Otherwise,
    None
  • Chrome & Firefox : what browser and version you use to access the Airsonic web
    interface, or the name and version of another app you're using.
  • English : which langauge/internationalization is in use

Additional notes

image
image

Include any extra notes here. Otherwise you may remove this section.

2023-09-29 09:14:20.191 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 6500 entries.

2023-09-29 09:14:20.392 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 6750 entries.
2023-09-29 09:14:20.570 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 7000 entries.
2023-09-29 09:14:20.731 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 7250 entries.
2023-09-29 09:14:20.935 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 7500 entries.
2023-09-29 09:14:21.079 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 7750 entries.
2023-09-29 09:14:21.265 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 8000 entries.
2023-09-29 09:14:21.461 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 8250 entries.
2023-09-29 09:14:21.643 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 8500 entries.
2023-09-29 09:14:21.830 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 8750 entries.
2023-09-29 09:14:22.090 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 9000 entries.
2023-09-29 09:14:22.353 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 9250 entries.
2023-09-29 09:14:22.600 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 9500 entries.
2023-09-29 09:14:22.857 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 9750 entries.
2023-09-29 09:14:23.126 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 10000 entries.
2023-09-29 09:14:23.375 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 10250 entries.
2023-09-29 09:14:23.657 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 10500 entries.
2023-09-29 09:14:23.891 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 10750 entries.
2023-09-29 09:14:24.138 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 11000 entries.
2023-09-29 09:14:24.402 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 11250 entries.
2023-09-29 09:14:24.640 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 11500 entries.
2023-09-29 09:14:24.901 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 11750 entries.
2023-09-29 09:14:25.226 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 12000 entries.
2023-09-29 09:14:25.405 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 12250 entries.
2023-09-29 09:14:25.677 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 12500 entries.
2023-09-29 09:14:25.953 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 12750 entries.
2023-09-29 09:14:26.228 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 13000 entries.
2023-09-29 09:14:26.465 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 13250 entries.
2023-09-29 09:14:26.735 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 13500 entries.
2023-09-29 09:14:26.953 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 13750 entries.
2023-09-29 09:14:27.224 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 14000 entries.
2023-09-29 09:14:27.473 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 14250 entries.
2023-09-29 09:14:27.695 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 14500 entries.
2023-09-29 09:14:27.948 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 14750 entries.
2023-09-29 09:14:28.169 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 15000 entries.
2023-09-29 09:14:28.432 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 15250 entries.
2023-09-29 09:14:28.664 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 15500 entries.
2023-09-29 09:14:28.932 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 15750 entries.
2023-09-29 09:14:29.185 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 16000 entries.
2023-09-29 09:14:29.444 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 16250 entries.
2023-09-29 09:14:29.661 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 16500 entries.
2023-09-29 09:14:29.849 INFO --- o.a.p.s.MediaScannerService : Scanned media library with 16676 entries.
2023-09-29 09:14:29.849 INFO --- o.a.p.s.MediaScannerService : Marking non-present files.
2023-09-29 09:14:29.853 INFO --- o.a.p.s.MediaScannerService : Marking non-present artists.
2023-09-29 09:14:29.854 INFO --- o.a.p.s.MediaScannerService : Marking non-present albums.
2023-09-29 09:14:29.855 INFO --- o.a.p.s.MediaScannerService : Completed media library scan.
2023-09-29 09:14:30.219 INFO --- o.a.p.service.PlaylistService : Starting playlist import.
2023-09-29 09:14:30.219 INFO --- o.a.p.service.PlaylistService : Completed playlist import.
2023-09-29 09:16:28.956 INFO --- o.a.p.s.MediaScannerService : Automatic media library scanning scheduled to run every 1 day(s), starting at 2023-09-30T03:00:00.956625
2023-09-29 09:18:19.690 INFO --- o.a.p.service.VersionService : Resolved local Airsonic version to: 2201.1.0

@henriquevcosta
Copy link

henriquevcosta commented Dec 27, 2023

Just to add a bit of information, for me this seems to be happening because I have Booksonic running in docker behind a reverse proxy (Traefik) terminating TLS and that is causing Booksonic to generate http links instead of https - thus generating a mixed content error in the browser console:

[blocked] The page at https://booksonic.myexample.domain/index was not allowed to display insecure content from http://booksonic.myexample.domain/home.view.

According to Traefik docs the X-Forwarded-* headers should be getting delivered to the Booksonic container, so the information to generate the correct URLs is there

I'm happy to try to help investigate the issue if maintainers need more info.

EDIT: After checking the airsonic docs I stopped the application, did this change in the config to use forward headers, and after starting the application it now works correctly for me - https://airsonic.github.io/docs/proxy/prerequisites/#forward-headers

@mrcongliu
Copy link

@henriquevcosta Thanks, Henrique Costa! You saved me hours of debugging!
This resolved my error on the initial load of Booksonic:
Mixed Content: The page at 'https://mydomain.com/index' was loaded over HTTPS, but requested an insecure frame 'http://mydomain.com/home.view'. This request has been blocked; the content must be served over HTTPS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants