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

GET /1272f6e9e8f9d6bfd6de.png results in 404 #2781

Closed
Emporea opened this issue May 16, 2024 · 6 comments
Closed

GET /1272f6e9e8f9d6bfd6de.png results in 404 #2781

Emporea opened this issue May 16, 2024 · 6 comments

Comments

@Emporea
Copy link

Emporea commented May 16, 2024

Docker image 4.0.4
Behind nginx reverse proxy

When accessing glances via web ui I get a 404 error in the console because the 1272f6e9e8f9d6bfd6de.png file can not be found, even tho its present in the glances/outputs/static/public directory.

@RazCrimson
Copy link
Collaborator

@Emporea

Could you please share the docker-compose file for this setup?

@Emporea
Copy link
Author

Emporea commented May 16, 2024

Of course!


services:
  proxy:
    image: nginxproxy/nginx-proxy:alpine
    restart: unless-stopped
    container_name: proxy
    ports:
      - 80:80
      - 443:443
    labels:
      com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
    volumes:
      - proxy_certs:/etc/nginx/certs:z,ro
      - proxy_vhost.d:/etc/nginx/vhost.d:z
      - proxy_html:/usr/share/nginx/html:z
      - /var/run/docker.sock:/tmp/docker.sock:z,ro

  letsencrypt-companion:
    image: nginxproxy/acme-companion:latest
    restart: unless-stopped
    container_name: letsencrypt-companion
    volumes:
      - proxy_certs:/etc/nginx/certs:z
      - proxy_acme:/etc/acme.sh:z
      - proxy_vhost.d:/etc/nginx/vhost.d:z
      - proxy_html:/usr/share/nginx/html:z
      - /var/run/docker.sock:/var/run/docker.sock:z,ro

  glances:
    container_name: glances
    image: nicolargo/glances:4.0.4
    restart: unless-stopped
    environment:
      - GLANCES_OPT=-w
      - VIRTUAL_HOST=${GLANCES_HOST}
      - LETSENCRYPT_HOST=${GLANCES_HOST}
      - VIRTUAL_PORT=61208
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - /etc/os-release:/etc/os-release:ro
    pid: "host"

volumes:
  proxy_certs:
  proxy_acme:
  proxy_vhost.d:
  proxy_html:

@Emporea
Copy link
Author

Emporea commented May 18, 2024

Is it reproducible?

@nicolargo
Copy link
Owner

nicolargo commented May 25, 2024

Same issue here.

It is not a proxy issue.

image

@nicolargo
Copy link
Owner

The URL should be http://localhost:61208/static/1272f6e9e8f9d6bfd6de.png not http://localhost:61208/1272f6e9e8f9d6bfd6de.png.

The file 1272f6e9e8f9d6bfd6de.png is dynamically generated from glances/outputs/static/images/glances.png by the make webui target (ref in ./glances/outputs/static/css/style.scss).

@nicolargo nicolargo added this to the Glances 4.1.0 milestone May 25, 2024
@nicolargo
Copy link
Owner

Logo removed from the landing page.

No more error.

Available in the develop branch.

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

No branches or pull requests

3 participants