bogus error message when trying to upgrade-charm : ERROR cannot upload charm: already exists

Bug #1805990 reported by Junien F
This bug report is a duplicate of:  Bug #1653562: race condition in charm upload. Edit Remove
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
New
Undecided
Unassigned

Bug Description

Hi,

juju 2.4.5, the following happened multiple times. First run :

$ juju upgrade-charm --switch $JUJU_REPOSITORY/nrpe nrpe
ERROR cannot upload charm: already exists

and a few seconds later, the same command works :

$ juju upgrade-charm --switch $JUJU_REPOSITORY/nrpe nrpe
Added charm "local:xenial/nrpe-1" to the model.

I'll try to get more logs, although I doubt they will help :)

Thanks

Revision history for this message
Junien F (axino) wrote :

Controller log :

2018-11-30 08:21:22 ERROR juju.apiserver charms.go:479 returning error from POST /model/<uuid>/charms?%3Amodeluuid=<uuid>&revision=0&schema=local&series=xenial: [{github.com/juju/juju/apiserver/charms.go:69: } {github.com/juju/juju/apiserver/charms.go:61: cannot upload charm} {github.com/juju/juju/apiserver/charms.go:104: } {github.com/juju/juju/apiserver/charms.go:256: } {github.com/juju/juju/state/charm.go:678: } {github.com/juju/juju/state/charm.go:169: already exists}]

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.