panic: http: multiple registrations for /debug/pprof/ when importing the juju api

Bug #1944740 reported by Peter Jose De Sousa
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Unassigned

Bug Description

Hi,

When importing the juju api a panic occurs, the panic appears to be caused by a call to pprof in the juju vendor folder.

Calling code: https://github.com/VariableDeclared/autoscaler/blob/pj/kubernetes-client-go/cluster-autoscaler/cloudprovider/juju/juju_cli.go#L63

Error: https://paste.ubuntu.com/p/ZbmPhsRZKb/

Link in juju: https://github.com/juju/httpprof/blob/master/pprof.go#L62-L67

Thanks,

Peter

summary: - panic: http: multiple registrations for /debug/pprof/
+ panic: http: multiple registrations for /debug/pprof/ when importing the
+ juju api
Changed in juju:
status: New → Triaged
assignee: nobody → Simon Richardson (simonrichardson)
importance: Undecided → High
Revision history for this message
Simon Richardson (simonrichardson) wrote :

This is the first part of the fix. Removing the debugstatus dependency in the v7 client. https://github.com/juju/charmrepo/pull/184 - Additional steps might be required.

Revision history for this message
Simon Richardson (simonrichardson) wrote :
Changed in juju:
status: Triaged → Fix Committed
Harry Pidcock (hpidcock)
Changed in juju:
milestone: none → 3.0.0
Changed in juju:
assignee: Simon Richardson (simonrichardson) → nobody
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.