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

Session.arguments.download-dir-free-space sgementfalut keeping restart,what's wrong? #31

Open
xinmans opened this issue Mar 26, 2022 · 1 comment

Comments

@xinmans
Copy link

xinmans commented Mar 26, 2022

sudo docker run -d --restart=always -p 19091:19091 metalmatze/transmission-exporter

Transmission: 3.00 (bb6b5a062e), RPC: 16

2022/03/26 04:35:38 starting transmission-exporter
2022/03/26 04:35:53 failed to get session: json: cannot unmarshal number -1 into Go struct field Session.arguments.download-dir-free-space of type uint64
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x7ba909]
goroutine 31 [running]:
main.(*SessionCollector).Collect(0xc000102770, 0xc000084c00)
/go/src/github.com/metalmatze/transmission-exporter/cmd/transmission-exporter/session_collector.go:134 +0xc9
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/[email protected]/prometheus/registry.go:430 +0x19d
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/[email protected]/prometheus/registry.go:522 +0xe12
2022/03/26 04:35:54 starting transmission-exporter

@xinmans
Copy link
Author

xinmans commented Mar 26, 2022

fix. in #26

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

No branches or pull requests

1 participant