I was trying to run the container today and saw the following error pop up each time. I then tried building the image locally and ended up with the same issue. I don't think it's a permissions thing as I've checked all permissions for the file and they seem to be fine:
ts=2021-10-14T21:49:13Z msg="loading config file" level=info app=irs component=Service file=/configs/config.default.yml
ts=2021-10-14T21:49:13Z msg="pkger unable to load /configs/config.default.yml: open /configs/config.default.yml: no such file or directory" component=Service file=/configs/config.default.yml level=info app=irs errored=true
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xa1dd82]
I was trying to run the container today and saw the following error pop up each time. I then tried building the image locally and ended up with the same issue. I don't think it's a permissions thing as I've checked all permissions for the file and they seem to be fine:
ts=2021-10-14T21:49:13Z msg="loading config file" level=info app=irs component=Service file=/configs/config.default.yml ts=2021-10-14T21:49:13Z msg="pkger unable to load /configs/config.default.yml: open /configs/config.default.yml: no such file or directory" component=Service file=/configs/config.default.yml level=info app=irs errored=true panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xa1dd82]
goroutine 1 [running]: main.glob..func1(0x1157280, {0xc02599, 0x0, 0x0}) /src/cmd/irs/main.go:45 +0x122 github.com/spf13/cobra.(Command).execute(0x1157280, {0x11e98b0, 0x0, 0x0}) /go/pkg/mod/github.com/spf13/cobra@v1.2.1/command.go:856 +0x60e github.com/spf13/cobra.(Command).ExecuteC(0x1157c80) /go/pkg/mod/github.com/spf13/cobra@v1.2.1/command.go:974 +0x3bc github.com/spf13/cobra.(*Command).Execute(...) /go/pkg/mod/github.com/spf13/cobra@v1.2.1/command.go:902 main.main() /src/cmd/irs/main.go:215 +0x25