Name registration fails with no helpful message

Bug #1636023 reported by Josh Arenson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
New
Undecided
Unassigned

Bug Description

Terminal output is pretty explanatory

josh@blackbox:~/mysnap$ snapcraft login
Enter your Ubuntu One SSO credentials.
Email: <email address hidden>
Password:
Second-factor auth: XXXXXX

Login successful.
josh@blackbox:~/mysnap$ snapcraft register <actual-unique-snap-name>
Registering <actual-unique-snap-name>.
Registration failed.

??? But why?

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Note that Josh got a permission error, even after login out and back in again to regenerate a macaroon:
"POST /dev/api/register-name/ HTTP/1.1" 403 None
Traceback (most recent call last):
  File "/usr/bin/snapcraft", line 31, in <module>
    snapcraft.main.main()
  File "/usr/lib/python3/dist-packages/snapcraft/main.py", line 223, in main
    return run(args, project_options)
  File "/usr/lib/python3/dist-packages/snapcraft/main.py", line 266, in run
    _run_store_command(args)
  File "/usr/lib/python3/dist-packages/snapcraft/main.py", line 308, in _run_store_command
    snapcraft.register(args['<snap-name>'], args['--private'])
  File "/usr/lib/python3/dist-packages/snapcraft/_store.py", line 191, in register
    store.register(snap_name, is_private)
  File "/usr/lib/python3/dist-packages/snapcraft/storeapi/__init__.py", line 175, in register
    self.sca.register, snap_name, is_private, constants.DEFAULT_SERIES)
  File "/usr/lib/python3/dist-packages/snapcraft/storeapi/__init__.py", line 158, in _refresh_if_necessary
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/snapcraft/storeapi/__init__.py", line 410, in register
    raise errors.StoreRegistrationError(snap_name, response)

Revision history for this message
Josh Arenson (josharenson) wrote :

Update:
I was able to register my snap name through the web interface. The webUI asked me to create a developer namespace, something the cli tool had not asked me to do. I assume that had something to do with it working. Ping me on IRC @josharenson (GMT -8) for any more info.

Michael Vogt (mvo)
affects: snappy → snapcraft
Revision history for this message
Leo Arias (elopio) wrote :

Thanks Josh. We have a handful of bugs to report better error messages when something is missing in the store.

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.