metal-stack / metal-hammer

metal-hammer is used to boot bare metal servers with ipxe and the metal-stack kernel
GNU Affero General Public License v3.0
42 stars 6 forks source link

Nilpointer during createBmcSuperuser #128

Closed majst01 closed 6 months ago

majst01 commented 6 months ago

{"time":"2024-05-31T12:28:36.725260443Z","level":"INFO","msg":"autoreboot set to","machineID":"48eb9200-be80-11e9-8000-3cecef22fc1a","after":"24h0m0s","spread":"24h0m0s"}                                                                                                                                                    
panic: runtime error: invalid memory address or nil pointer dereference                                                                                                                                                                                                                                                       
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xeae002]                                                                                                                                                                                                                                                        

goroutine 1 [running]:                                                                                                                                                                                                                                                                                                        
github.com/metal-stack/metal-hammer/cmd.(*MetalAPIClient).BootService(...)                                                                                                                                                                                                                                                    
        /work/cmd/metal-client.go:81                                                                                                                                                                                                                                                                                          
github.com/metal-stack/metal-hammer/cmd.(*Hammer).createBmcSuperuser(0xc000531b30)                                                                                                                                                                                                                                            
        /work/cmd/supwd.go:14 +0x42                                                                                                                                                                                                                                                                                           
github.com/metal-stack/metal-hammer/cmd.Run(0xc000582580, 0xc00061a000, {0x134adf0, 0xc0004821a0})                                                                                                                                                                                                                            
        /work/cmd/root.go:76 +0x613                                                                                                                                                                                                                                                                                           
main.main()                                                                                                                                                                                                                                                                                                                   
        /work/main.go:92 +0xbf2