Re: [edx-code] Creating a new user fails

22 views
Skip to first unread message

Mahyar Damavand

unread,
Oct 17, 2016, 11:54:26 AM10/17/16
to General Open edX discussion
Hi Erik,
Seems that you registered with an existing email address,
Try with a new one and take a look here : Optional Password Policy Enforcement

Regards,
mahyar

On Fri, Oct 14, 2016 at 4:53 PM Erik Van de Water <erik...@gmail.com> wrote:
I have installed the eucalyptus 2 release of Open edX.  From this Confluence page, the command to create a new user is: sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings aws create_user -e us...@example.com

Running this created a traceback:

root@ip-172-31-21-85:/edx/app/edxapp/edx-platform# sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings aws create_user -e erik...@gmail.com
2016-10-14 09:12:05,054 INFO 22863 [dd.dogapi] dog_stats_api.py:66 - Initializing dog api to use statsd: localhost, 8125
Traceback (most recent call last):
  File "./manage.py", line 116, in <module>
    execute_from_command_line([sys.argv[0]] + django_args)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
    utility.execute()
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 346, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/base.py", line 394, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/edx/app/edxapp/edx-platform/common/djangoapps/track/management/tracked_command.py", line 59, in execute
    super(TrackedCommand, self).execute(*args, **options)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/base.py", line 445, in execute
    output = self.handle(*args, **options)
  File "/edx/app/edxapp/edx-platform/common/djangoapps/student/management/commands/create_user.py", line 99, in handle
    user, _, reg = _do_create_account(form)
  File "/edx/app/edxapp/edx-platform/common/djangoapps/student/views.py", line 1484, in _do_create_account
    raise ValidationError(errors)
django.core.exceptions.ValidationError: {'password': [u'A valid password is required'], 'email': [u'It looks like erik...@gmail.com belongs to an existing account. Try again with a different email address.']}


Any thoughts on solving this?

--
You received this message because you are subscribed to the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/cf223cb3-2a74-4a2f-a5de-5ae9315f4ab5%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages