When starting Artifactory, you may run into the below panic error message that’s related to the Router service (jf-router).
And other microservices will not connect to the Router service and Artifactory will fail to start.
panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xb11b65] goroutine 1 [running]: os.(*File).Name(...) /go/src/os/file.go:57 jfrog.com/jfrog-router/v7/internal/pkg/utils/fileutils.AtomicWriteFile({0x7fe3fff74f30, 0xc00064ca80}, {0xc0005212c0, 0x4b}, {0xc000b4a000, 0x74f, 0x771}) … jfrog.com/jfrog-router/v7/internal/app/application.(*application).Start(0xc0009e0b00) /src/router/internal/app/application/application.go:54 +0xa6 main.runApplication(0x2f77aa8, 0xc000440ff0) /src/router/cmd/jf-router/main.go:44 +0x331 main.main() /src/router/cmd/jf-router/main.go:29 +0x65
And other microservices will not connect to the Router service and Artifactory will fail to start.
[jfac ] Retry 150 Elapsed 1.24 minutes failed: Registration with router on URL http://localhost:8046 failed with error: UNAVAILABLE: io exception. Trying again [jfrt ] Cluster join: Retry 70: Service registry ping failed, will retry. Error while trying to connect to local router at address 'http://localhost:8046/access': Connect to localhost:8046 [localhost/127.0.0.1] failed: Connection refused (Connection refused)