Skip to content

[BUG] Generate graph functionality appears broken #204

@Erasure5959

Description

@Erasure5959

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When attempting to use the Generate function on any graph, you are redirected to localhost/{path} rather than the IP address or FQDN. I have tested this through reverse proxy as well as directly via IP address with the same result. Testing this on the host which is running the container works (obviously, as localhost is valid).

I have furthermore tried this with my own compose file as well as creating on a separate VM and using the compose file provided - same result.

If you modify the redirected URL and update it to IP/FQDN instead of localhost, the graph renders as expected.

Expected Behavior

The graph generate function should generate a graph and redirect correctly, not to localhost.

Steps To Reproduce

  • Run Smokeping in Docker (run/compose).
  • Choose any graph or destination.
  • Enter any timerange or leave as is and click Generate.
  • Observe redirect to localhost.
Image Image

Environment

- OS: Debian 12 (Bookworm).
- How docker service was installed: Docker repository via apt.

CPU architecture

x86-64

Docker creation

services:

 smokeping:
    container_name: "smokeping"
    hostname: smokeping
    image: "lscr.io/linuxserver/smokeping"
    environment:
      PUID: "1001"
      PGID: "1001"
      TZ: "Africa/Johannesburg"
    networks:
      - "smokeping"
    healthcheck:
      test: ["CMD", "curl", "-s", "-f", "-i", "http://localhost/smokeping/"]
      interval: 60s
      timeout: 15s
      start_period: 15s
    volumes:
      - type: bind                                                    
        source: /opt/docker/smokeping/config
        target: /config
      - type: bind                                                    
        source: /opt/docker/smokeping/data
        target: /data
    ports:
      # To be able to listen on port 80
      - mode: host
        published: 80
        target: 80
        protocol: tcp
    restart: "unless-stopped"
    deploy:
      resources:
        limits:
          cpus: '0.50'
          memory: 200M
          pids: 50
    security_opt:
      - no-new-privileges:true

networks:

  smokeping:
    name: "smokeping"
    enable_ipv6: true

Container logs

[migrations] started
[migrations] no migrations found
usermod: no changes
───────────────────────────────────────

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

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

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

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

User UID:    1001
User GID:    1001
───────────────────────────────────────
Linuxserver.io version: 2.9.0-r0-ls146
Build-date: 2025-08-26T20:42:48+00:00
───────────────────────────────────────
    
[custom-init] No custom files found, skipping...
Connection to localhost (::1) 80 port [tcp/http] succeeded!
[ls.io-init] done.
WARNING: Hostname 'ipv6.google.com' does currently not resolve to an IPv4 address
### parsing dig output...OK
Smokeping version 2.009000 successfully launched.
Entering multiprocess mode.
Child process 213 started for probe FPing.
FPing: probing 35 targets with step 300 s and offset 264 s.
Child process 214 started for probe DNS.
DNS: probing 14 targets with step 300 s and offset 201 s.
Child process 215 started for probe FPing6.
All probe processes started successfully.FPing6: probing 1 targets with step 300 s and offset 244 s.

/usr/sbin/fping -C 20 -q -B1 -r1 -i10 www.uea.ac.uk 208.67.222.222 www.indiana.edu twin-cities.umn.edu cam.ac.uk 9.9.9.9 4.2.2.1 jupiterbroadcasting.com cixp.web.cern.ch 1.0.0.1 ucsd.edu 2606:4700:4700::1001 208.67.220.220 4.2.2.2 youtube.com linuxserver.io 8.8.4.4 www.berkeley.edu 2620:fe::fe www.telefonica.de osuosl.org 8.8.8.8 google.com 2606:4700:4700::1111 1.1.1.1 web.mit.edu 2620:fe::9 149.112.112.112 facebook.com returned with exit code 512. run with debug enabled to get more information at /usr/share/smokeping/Smokeping.pm line 1837.
/usr/bin/dig @4.2.2.2 google.com returned with exit code 2304. run with debug enabled to get more information at /usr/share/smokeping/Smokeping.pm line 1837.
/usr/bin/dig @4.2.2.1 google.com returned with exit code 2304. run with debug enabled to get more information at /usr/share/smokeping/Smokeping.pm line 1837.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions