[upload] Catch name registration issue and explain how

Bug #1572399 reported by Daniel Holbach
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Wishlist
Sergio Schvezov

Bug Description

Earlier I got this:
-----------------
Uploading existing moon-buggy_1.0.51.9_amd64.snap.

Uploading moon-buggy_1.0.51.9_amd64.snap [================================] 100%
Checking package status... |

Upload did not complete.
Some errors were detected:

You must register moon-buggy name for 16 before uploading, please register it and try again.
-----------------

It'd be nice if snapcraft linked to https://myapps.developer.ubuntu.com/dev/click-apps/register-name/

Revision history for this message
Vincent Ladeuil (vila) wrote :

There is WIP to issue:

Oops! It looks like you don’t own the “moon-buggy” name. See “snapcraft register-name” for guidance on reserving snap names.

Changed in snapcraft:
status: New → In Progress
assignee: nobody → Vincent Ladeuil (vila)
Changed in snapcraft:
importance: Undecided → High
milestone: none → 2.8.4
Vincent Ladeuil (vila)
Changed in snapcraft:
assignee: Vincent Ladeuil (vila) → nobody
status: In Progress → Confirmed
Changed in snapcraft:
milestone: 2.8.4 → none
Revision history for this message
Natalia Bidart (nataliabidart) wrote :

Just as a side note, the error message should not point the user to the server, given the CLI will allow for name registration, and we don't want to break the CLI workflow by giong to the web.

Revision history for this message
Claudio André (claudioandre.br) wrote :

I would like to see a clear direction in the error message and the URL is the best one.

I failed to find any useful documentation about name registration in google (top items) only a few bug reports. Even inside (https://myapps.developer.ubuntu.com/dev/click-apps/) I found no link like 'register a name'.

So, it will help packagers a lot if a clear direction is seen inside the error message: That said, +1 to:

-----------------
It'd be nice if snapcraft linked to https://myapps.developer.ubuntu.com/dev/click-apps/register-name/

Revision history for this message
Thomi Richards (thomir-deactivatedaccount) wrote :

I just spent 30 minutes uploading a snap, only to be told *afterwards* that I hadn't registered the name. At the very least snapcraft should check before starting the upload. Ideally it'd give me the option to do it right then and there, since it's almost always what I want to do anyway...

Revision history for this message
Gustavo Niemeyer (niemeyer) wrote :

There's a whole new workflow coming for this soon. You'll be able to actually register the name from the command line too.

Revision history for this message
Mark Shuttleworth (sabdfl) wrote : Re: [Bug 1572399] Re: [upload] Catch name registration issue and explain how

As Gustavo said, sorry about this, the fix is in the queue now.

Mark

Changed in snapcraft:
importance: High → Wishlist
milestone: none → 2.11
Leo Arias (elopio)
Changed in snapcraft:
status: Confirmed → Triaged
assignee: nobody → Leo Arias (elopio)
Revision history for this message
Leo Arias (elopio) wrote :

In order to fix this as Natalia suggest, we first need to implement the register command. That's bug #1595013.

Changed in snapcraft:
assignee: Leo Arias (elopio) → nobody
Changed in snapcraft:
milestone: 2.12 → 2.13
Simon Quigley (tsimonq2)
Changed in snapcraft:
assignee: nobody → Simon Quigley (tsimonq2)
status: Triaged → In Progress
Revision history for this message
Simon Quigley (tsimonq2) wrote :

It seems to me like this is a server-side issue as there is no message in the code indicating that this is client-side. I've looked at all of the files that could be responsible and I also grepped. Nothing. So this looks to me like this isn't an issue with Snapcraft.

Can anybody confirm/deny my findings?

Revision history for this message
Leo Arias (elopio) wrote :

The store will return a 404 if the snap was not registered before the upload. But there's something else we are missing. We start the upload by pushing the files to up/down, in the unscanned-upload. Before that, we need to check if the user is allowed to push the snap. There is no dry-run for the upload, so I think we are missing some work from the store.

@nessita, could you please confirm?

Revision history for this message
Sergio Schvezov (sergiusens) wrote :
Changed in snapcraft:
assignee: Simon Quigley (tsimonq2) → Sergio Schvezov (sergiusens)
Revision history for this message
Simon Quigley (tsimonq2) wrote :

Thanks Sergio :)

Changed in snapcraft:
status: In Progress → Fix Committed
Changed in snapcraft:
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.