Error creating new user

Added by Andi R 2 months ago

Hello,

I'm still quite new to Nexenta and got it installed in a VM on VMware Workstation. So far everything works apart from creating new users, I get the following error report when I don't enter an email address for the new user. Below the text field it says "Optional e-mail address for this user." so I guess it shouldn't be required but it won't work when I dont enter one.

NMV Issue Report
------------------------------------------------------------------------
Title: NMV Internal Error: 
Date:  Wed Jun 16 15:37:52 2010

Request: GET /settings/users/?this_form=users_form&operation=adduser&username=andi&pass1=password1&pass2=password1&display_name=Andi&email_address=&about=&unix_user=on&unix_group=staff&home_folder=&can_view=on&btn_submit=Create+New HTTP/1.1
Headers:
Accept = text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Charset = ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Encoding = gzip,deflate
Accept-Language = de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
Connection = keep-alive
Content-Length = 
Content-Type = 
Cookie = ys-jobviewer_expanded=b%3A0; nmv_session=f3b1a3d20d51d6bb0ce263be38a2db92270568bb; session_id=5acfaecced9ae89106d00781191e589aaf9a477c
Host = 192.168.0.40:2000
Keep-Alive = 115
Referer = http://192.168.0.40:2000/settings/users/?this_form=users_form&operation=adduser
Remote-Addr = 192.168.0.42
User-Agent = Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.3) Gecko/20100401 FireDownload/2.0.1 Firefox/3.6.3

Cookies:
nmv_session = f3b1a3d20d51d6bb0ce263be38a2db92270568bb
session_id = 5acfaecced9ae89106d00781191e589aaf9a477c
ys-jobviewer_expanded = b%3A0

Params:
about = 
btn_submit = Create New
can_view = on
display_name = Andi
email_address = 
home_folder = 
operation = adduser
pass1 = password
pass2 = password
this_form = users_form
unix_group = staff
unix_user = on
username = andi

Details:
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/nmv/httptools.py", line 53, in _loop_iter
  File "/usr/lib/pymodules/python2.5/cherrypy/_cphttptools.py", line 273, in main
    body = page_handler(*virtual_path, **self.params)
  File "", line 3, in index
  File "/usr/lib/pymodules/python2.5/turbogears/controllers.py", line 360, in expose
    *args, **kw)
  File "", line 5, in run_with_transaction
  File "/usr/lib/pymodules/python2.5/turbogears/database.py", line 363, in so_rwt
    retval = func(*args, **kw)
  File "", line 5, in _expose
  File "/usr/lib/pymodules/python2.5/turbogears/controllers.py", line 373, in 
    mapping, fragment, args, kw)))
  File "/usr/lib/pymodules/python2.5/turbogears/controllers.py", line 410, in _execute_func
    output = errorhandling.try_call(func, *args, **kw)
  File "/usr/lib/pymodules/python2.5/turbogears/errorhandling.py", line 77, in try_call
    return func(self, *args, **kw)
  File "", line 3, in index
  File "/usr/lib/python2.5/site-packages/nmv/workarounds/__init__.py", line 111, in expose
  File "", line 3, in index
  File "/usr/lib/pymodules/python2.5/turbogears/identity/conditions.py", line 210, in require
    return fn(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/nmv/subcontrollers/settingsUsers.py", line 1059, in index
  File "/usr/lib/python2.5/site-packages/nmv/subcontrollers/settingsUsers.py", line 735, in handle_request
  File "/usr/lib/python2.5/site-packages/sqlobject/main.py", line 1221, in __init__
    self._create(id, **kw)
  File "/usr/lib/python2.5/site-packages/sqlobject/main.py", line 1269, in _create
    self._SO_finishCreate(id)
  File "/usr/lib/python2.5/site-packages/sqlobject/main.py", line 1293, in _SO_finishCreate
    id, names, values)
  File "/usr/lib/python2.5/site-packages/sqlobject/dbconnection.py", line 710, in queryInsertID
    self._connection, soInstance, id, names, values)
  File "/usr/lib/python2.5/site-packages/sqlobject/sqlite/sqliteconnection.py", line 220, in _queryInsertID
    self._executeRetry(conn, c, q)
  File "/usr/lib/python2.5/site-packages/sqlobject/sqlite/sqliteconnection.py", line 190, in _executeRetry
    raise DuplicateEntryError(msg)
DuplicateEntryError: ('column email_address is not unique', >)

Replies

RE: Error creating new user - Added by Eric V 2 months ago

Try this:

http://www.nexentastor.org/boards/2/topics/571