Skip to content

Adding chart through UI results in error. #28

Open
@gaby

Description

Logs:

ui_1 | 2019/04/05 04:22:01.082 [uploadChart.go:15] UploadFile
ui_1 | 2019/04/05 04:22:01.082 [uploadChart.go:25] fileName:/tmp/redis-6.4.4.tgz
ui_1 | 2019/04/05 04:22:01.082 [uploadChart.go:32] going into uploadChart()
chartmuseum_1 | 2019-04-05T04:22:01.092Z DEBUG [5] Incoming request: /api/charts {"reqID": "83095714-c363-4adc-be32-56a2383ad2ff"}
chartmuseum_1 | 2019-04-05T04:22:01.093Z DEBUG [5] Adding package to storage {"package": "redis-6.4.4.tgz", "reqID": "83095714-c363-4adc-be32-56a2383ad2ff"}
chartmuseum_1 | 2019-04-05T04:22:01.094Z ERROR [5] Request served {"path": "/api/charts", "comment": "", "latency": "1.600581ms", "clientIP": "172.20.0.2", "method": "POST", "statusCode": 500, "reqID": "83095714-c363-4adc-be32-56a2383ad2ff"}
ui_1 | 2019/04/05 04:22:01.095 [chartmuseum.go:36] combined out:
ui_1 | % Total % Received % Xferd Average Speed Time Time Time Current
ui_1 | Dload Upload Total Spent Left Speed
100 20285 100 59 100 20226 8297 2777k --:--:-- --:--:-- --:--:-- 2821k
ui_1 | {"error":"open /charts/redis-6.4.4.tgz: permission denied"}
ui_1 | 2019/04/05 04:22:01.095 [C] [asm_amd64.s:522] the request url is /receive/
ui_1 | 2019/04/05 04:22:01.095 [C] [asm_amd64.s:522] Handler crashed with error can't find templatefile in the path:views/uploadchartcontroller/post.tpl
ui_1 | 2019/04/05 04:22:01.095 [C] [asm_amd64.s:522] /usr/local/go/src/runtime/asm_amd64.s:522
ui_1 | 2019/04/05 04:22:01.095 [C] [asm_amd64.s:522] /usr/local/go/src/runtime/panic.go:513
ui_1 | 2019/04/05 04:22:01.095 [C] [asm_amd64.s:522] /go/src/quickstart/vendor/github.com/astaxie/beego/template.go:73
ui_1 | 2019/04/05 04:22:01.095 [C] [asm_amd64.s:522] /go/src/quickstart/vendor/github.com/astaxie/beego/controller.go:264
ui_1 | 2019/04/05 04:22:01.095 [C] [asm_amd64.s:522] /go/src/quickstart/vendor/github.com/astaxie/beego/controller.go:215
ui_1 | 2019/04/05 04:22:01.095 [C] [asm_amd64.s:522] /go/src/quickstart/vendor/github.com/astaxie/beego/controller.go:195
ui_1 | 2019/04/05 04:22:01.095 [C] [asm_amd64.s:522] /go/src/quickstart/vendor/github.com/astaxie/beego/router.go:859
ui_1 | 2019/04/05 04:22:01.095 [C] [asm_amd64.s:522] /usr/local/go/src/net/http/server.go:2741
ui_1 | 2019/04/05 04:22:01.095 [C] [asm_amd64.s:522] /usr/local/go/src/net/http/server.go:1847
ui_1 | 2019/04/05 04:22:01.095 [C] [asm_amd64.s:522] /usr/local/go/src/runtime/asm_amd64.s:1333
ui_1 | 2019/04/05 04:22:01.095 [server.go:2977] [HTTP] http: multiple response.WriteHeader calls
ui_1 | 2019/04/05 04:22:01.112 [main.go:16] I'm alive
chartmuseum_1 | 2019-04-05T04:22:01.114Z DEBUG [6] Incoming request: /api/charts {"reqID": "87bbf3e4-519f-41fd-9bde-8da532399ee0"}
chartmuseum_1 | 2019-04-05T04:22:01.114Z DEBUG [6] Entry found in cache store {"repo": "", "reqID": "87bbf3e4-519f-41fd-9bde-8da532399ee0"}
chartmuseum_1 | 2019-04-05T04:22:01.114Z DEBUG [6] Fetching chart list from storage {"repo": "", "reqID": "87bbf3e4-519f-41fd-9bde-8da532399ee0"}
chartmuseum_1 | 2019-04-05T04:22:01.114Z DEBUG [6] No change detected between cache and storage {"repo": "", "reqID": "87bbf3e4-519f-41fd-9bde-8da532399ee0"}
chartmuseum_1 | 2019-04-05T04:22:01.114Z INFO [6] Request served {"path": "/api/charts", "comment": "", "latency": "172.076µs", "clientIP": "172.20.0.2", "method": "GET", "statusCode": 200, "reqID": "87bbf3e4-519f-41fd-9bde-8da532399ee0"}
ui_1 | 2019/04/05 04:22:01.115 [D] [server.go:2741] | 172.20.0.1| 200 | 2.288606ms| match| GET / r:/
ui_1 | 2019/04/05 04:22:01.132 [D] [server.go:2741] | 172.20.0.1| 304 | 43.906µs| match| GET /static/js/reload.min.js
ui_1 | 2019/04/05 04:22:01.185 [D] [server.go:2741] | 172.20.0.1| 304 | 86.623µs| match| GET /static/img/plus.png
ui_1 | 2019/04/05 04:22:01.207 [D] [server.go:2741] | 172.20.0.1| 304 | 38.257µs| match| GET /static/img/logo_white.png

I'm using the following docker-compose file:

version: '2.0'
services:
ui:
image: idobry/chartmuseumui:latest
environment:
CHART_MUSESUM_URL: "http://chartmuseum:8080"
ports:
- 3000:8080
chartmuseum:
image: chartmuseum/chartmuseum:latest
volumes:
- /home/user/Desktop/test:/charts
restart: always
environment:
PORT: 8080
DEBUG: 1
STORAGE: local
STORAGE_LOCAL_ROOTDIR: /charts
ports:
- 8080:8080

The file is currently set to 0777 with 1000:1000 ownership.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions