Skip to content

bug: libp2p error while multi-publish #67

@hpsing

Description

@hpsing

checkout this:

https://github.com/getoptimum/optimum-dev-setup-guide/blob/main/grpc_p2p_client/cmd/multi-publish/main.go

error:

{"timestamp":1769419475,"_level":"error","short_message":"unable to        
  receive command","commit":"0e09255","version":"dev","error":"rpc error:    
  code = Canceled desc = context canceled"}                                  
  panic: runtime error: index out of range [-1]                              
                                                                             
  goroutine 241 [running]:                                                   
  github.com/libp2p/go-libp2p/p2p/net/connmgr.(*segments).get(...)           
                                                                             
  /p2pnode/vendor/github.com/libp2p/go-libp2p/p2p/net/connmgr/connmgr.go:76  
  github.com/libp2p/go-libp2p/p2p/net/connmgr.(*decayer).process(0xc0002f03f 
  0)                                                                         
                                                                             
  /p2pnode/vendor/github.com/libp2p/go-libp2p/p2p/net/connmgr/decay.go:222   
  +0x1028                                                                    
  created by github.com/libp2p/go-libp2p/p2p/net/connmgr.NewDecayer in       
  goroutine 1                                                                
                                                                             
  /p2pnode/vendor/github.com/libp2p/go-libp2p/p2p/net/connmgr/decay.go:96    
  +0x245                                                                     
  {"timestamp":1769419476,"_level":"info","short_message":"p2p node          
  starting...","commit":"0e09255","version":"dev","mode":"optimum","identity 
  ":"/identity","cluster_id":"k8s-test","http_api_port":8081,"sidecar_port": 
  33212,"publisher_shard_multiplier":"1.20"}                                 
Running this command, it kills the container
./p2p-multi-publish -topic=test-topic -ipfile=../ip.txt -count=10 -output=publish.tsv

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions