[Bug 1206675] [NEW] [13.04] sudo maas createsuperuser not a valid command

Manoj Iyer 1206675 at bugs.launchpad.net
Tue Jul 30 20:36:50 UTC 2013


Public bug reported:

ubuntu at c01:~$ sudo maas createsuperuser
Traceback (most recent call last):
  File "/usr/bin/django-admin", line 5, in <module>
    management.execute_from_command_line()
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 196, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 232, in execute
    output = self.handle(*args, **options)
  File "/usr/lib/python2.7/dist-packages/django/contrib/auth/management/commands/createsuperuser.py", line 70, in handle
    default_username = get_default_username()
  File "/usr/lib/python2.7/dist-packages/django/contrib/auth/management/__init__.py", line 105, in get_default_username
    default_username = get_system_username()
  File "/usr/lib/python2.7/dist-packages/django/contrib/auth/management/__init__.py", line 85, in get_system_username
    return getpass.getuser().decode(locale.getdefaultlocale()[1])
TypeError: decode() argument 1 must be string, not None

The new command is sudo maas createadmin --username=ubuntu
--password=ubuntu --email=ubuntu at example.com

But the login in page still shows the older command, and MAAS command
should return an error instead of a traceback.

** Affects: maas
     Importance: Undecided
         Status: New

** Affects: maas (Ubuntu)
     Importance: High
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to maas in Ubuntu.
https://bugs.launchpad.net/bugs/1206675

Title:
  [13.04] sudo maas createsuperuser not a valid command

To manage notifications about this bug go to:
https://bugs.launchpad.net/maas/+bug/1206675/+subscriptions



More information about the Ubuntu-server-bugs mailing list