Skip to content

SyntaxError: Unexpected token '<', " #1

@daedric7

Description

@daedric7

Run into a error on first try. -- SyntaxError: Unexpected token '<', "

Logs:

diskchart  | 127.0.0.1 - - [28/Feb/2024 10:40:36] "GET /api/diskchart/mountpoints HTTP/1.0" 200 32
diskchart  | 172.20.0.86 - - [28/Feb/2024:10:40:36 +0000] "GET / HTTP/1.1" 200 2049 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
diskchart  | 172.20.0.86 - - [28/Feb/2024:10:40:36 +0000] "GET /chart.umd.js HTTP/1.1" 200 205125 "https://diskspace.aguiarvieira.pt/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
diskchart  | 172.20.0.86 - - [28/Feb/2024:10:40:36 +0000] "GET /diskchart.js HTTP/1.1" 200 7640 "https://diskspace.aguiarvieira.pt/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
diskchart  | 172.20.0.86 - - [28/Feb/2024:10:40:36 +0000] "GET /favicon.ico HTTP/1.1" 404 548 "https://diskspace.aguiarvieira.pt/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
diskchart  | get mountpoints!
diskchart  | 172.20.0.86 - - [28/Feb/2024:10:40:36 +0000] "GET /api/diskchart/mountpoints HTTP/1.1" 200 32 "https://diskspace.aguiarvieira.pt/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
diskchart  | Executing command:  find "/mnt/share" -mindepth 1 -maxdepth 1 | while read -r i; do if ! mountpoint -q "$i"; then du -xs "$i"; else echo "skipping $i for being a mount point"; fi; done 2>&1
diskchart  | 172.20.0.86 - - [28/Feb/2024:10:42:09 +0000] "GET /api/diskchart?target=/share HTTP/1.1" 499 0 "https://diskspace.aguiarvieira.pt/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"

Docker Compose:

services:
    diskchart:
        container_name: diskchart
        image: leandrocm86/diskchart:latest
        restart: unless-stopped
        #ports:
        #    - 1024:80
        volumes:
            - /:/mnt/main:ro
            - /share:/mnt/share:ro
        environment:
            # THIS VARIABLE MUST DECLARE (IN JSON FORMAT) EACH BIND-MOUNTED VOLUME BY ITS RESPECTIVE LABEL.
            # THESE WILL BE THE STARTING POINTS AVAILABLE FOR THE CHART, AND SHOULD MIMIC THE VOLUMES SECTION.
            - BINDINGS={"/":"/mnt/main", "/share":"/mnt/share"}

            # Timezone (optional). Used to show the right time on docker logs.
            - TZ=Europe/Lisbon

        networks:
            - npm-nw

networks:
  npm-nw:
    external: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions