ajvb / kala

Modern Job Scheduler
MIT License
2.11k stars 187 forks source link

404 at /webui/ #246

Closed alexanderfefelov closed 3 years ago

alexanderfefelov commented 3 years ago

I run Kala 0.8.4 under Docker (Dockerfile, run script).

API seems to work fine:

$ http http://kala.backpack.test:12345/api/v1/stats/
HTTP/1.1 200 OK
Content-Encoding: gzip
Content-Length: 164
Content-Type: application/json;charset=UTF-8
Date: Sat, 23 Jan 2021 21:13:04 GMT
Vary: Accept-Encoding

{
    "Stats": {
        "active_jobs": 0,
        "created": "2021-01-24T00:13:04.657355114+03:00",
        "disabled_jobs": 0,
        "error_count": 0,
        "jobs": 0,
        "last_attempted_run": "0001-01-01T00:00:00Z",
        "next_run_at": "0001-01-01T00:00:00Z",
        "success_count": 0
    }
}

but UI in not available:

$ http http://kala.backpack.test:12345/webui/
HTTP/1.1 404 Not Found
Content-Encoding: gzip
Content-Length: 43
Content-Type: text/plain; charset=utf-8
Date: Sat, 23 Jan 2021 21:14:58 GMT
Vary: Accept-Encoding
X-Content-Type-Options: nosniff

404 page not found
alexanderfefelov commented 3 years ago

Solution for my case:

https://github.com/alexanderfefelov/docker-backpack/blob/969d2f7f300933de1a5f535c642f39861f3d86df/workload-automation/kala/Dockerfile#L20