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

[BUG] Traefik v3 breaks calibre-web UI #294

Closed
1 task done
zaggash opened this issue May 7, 2024 · 9 comments
Closed
1 task done

[BUG] Traefik v3 breaks calibre-web UI #294

zaggash opened this issue May 7, 2024 · 9 comments

Comments

@zaggash
Copy link

zaggash commented May 7, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

All JS Jquery are not working.

The most obvious issues are the dropdown menu which are not working.
Or the "+" menu in the admin area are not opening.

If anyone has an idea !

Expected Behavior

The dropdown menu should open a show options
The "+" menus in the admin area should expand

Steps To Reproduce

Add traefik v3 in front of calibre web.

Environment

- OS: Unraid
- How docker service was installed: docker compose with traefik as reverse.

CPU architecture

x86-64

Docker creation

https://github.com/zaggash/homelab/blob/main/unraid-homelab/media/calibre-web-compose.yaml

Container logs

No log in the container.
Copy link

github-actions bot commented May 7, 2024

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@j0nnymoe
Copy link
Member

j0nnymoe commented May 7, 2024

Hey @zaggash long time no speak 😊.
You need to report this to calibre web or it's a problem with your traefik config, if it's working fine without traefik, it's not something we need to change in the container.

@zaggash
Copy link
Author

zaggash commented May 7, 2024

Hello :)
Yup I agree, opened here in case it happens to someone.
I'll cross post upstream.

@zaggash
Copy link
Author

zaggash commented May 7, 2024

My bad after further testing, it seems to be something in my config.
I'll dig further and report here the wrong setup

@zaggash
Copy link
Author

zaggash commented May 7, 2024

For some reason the compression is causing issues in this version:

middlewares:
    compress-all:
      compress:
        excludedContentTypes:
          - text/event-stream

Closing !

@zaggash zaggash closed this as completed May 7, 2024
@LinuxServer-CI LinuxServer-CI moved this from Issues to Done in Issue & PR Tracker May 7, 2024
@zaggash
Copy link
Author

zaggash commented May 7, 2024

For tracking purpose
Maybe traefik/traefik#9734 ?

@danepowell
Copy link

I don't think traefik/traefik#9734 is the whole story, since I'm on v3.0.2 (supposedly fixed) and still seeing the issue.

I first noticed the menu dropdown not working on mobile after upgrading to Traefik v3 and traced it back to all the JS files served by calibre-web being just 1 byte (a semicolon).

#294 (comment) didn't fix it for me. I had to disable the compress middleware altogether.

@zaggash
Copy link
Author

zaggash commented Jun 14, 2024

Yup.
Mee too.
I pasted the config here.
But I had to disable the compress middleware completely.

@danepowell
Copy link

Yeah, I had to apply a custom middleware to the calibre service to disable compression. Definitely still a bug in traefik and/or calibre though.

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

No branches or pull requests

3 participants