500 when adding users quickly to groups

[10:31:07 AM] Mohini Bhavsar: when i look at the creatinga group screen
[10:31:28 AM] Mohini Bhavsar: i clicked on every ASHA name one after
the other that I wanted to add to the pilot ASHAs groups
[10:31:57 AM] Mohini Bhavsar: the page refreshes after clicking on one name
[10:32:03 AM] Mohini Bhavsar: adds to the group and then i can add another
[10:32:16 AM] Mohini Bhavsar: if i click on too many users, i get a 500 eror

··· ---------- Forwarded message ---------- From: Date: Wed, Oct 26, 2011 at 10:24 AM Subject: [Django] Error (EXTERNAL IP): /a/wvindia/groups/join_group/6a3faf7c7bd11b548f3bcd5167fc52e7/WV5CDBZ9ZL0ITM1JVHJMXT34W/ To: commcarehq-dev+www-notifications@dimagi.com

Traceback (most recent call last):

File “/opt/www.commcarehq.org_project/env/cchq_www/lib/python2.6/site-packages/django/core/handlers/base.py”,
line 100, in get_response
response = callback(request, *callback_args, **callback_kwargs)

File “/opt/www.commcarehq.org_project/src/commcare-hq/submodules/core-hq-src/corehq/apps/users/decorators.py”,
line 8, in _inner
return login_and_domain_required(view_func)(request, domain, *args, **kwargs)

File “/opt/www.commcarehq.org_project/src/commcare-hq/submodules/core-hq-src/corehq/apps/domain/decorators.py”,
line 62, in _inner
return view_func(req, domain_name, *args, **kwargs)

File “/opt/www.commcarehq.org_project/src/commcare-hq/submodules/core-hq-src/corehq/apps/groups/views.py”,
line 56, in join_group
group.add_user(couch_user_id)

File “/opt/www.commcarehq.org_project/src/commcare-hq/submodules/core-hq-src/corehq/apps/groups/models.py”,
line 28, in add_user
self.save()

File “/opt/www.commcarehq.org_project/src/commcare-hq/submodules/core-hq-src/corehq/apps/groups/models.py”,
line 88, in save
super(Group, self).save()

File “/opt/www.commcarehq.org_project/env/cchq_www/lib/python2.6/site-packages/couchdbkit/schema/base.py”,
line 429, in save
db.save_doc(doc, **params)

File “/opt/www.commcarehq.org_project/env/cchq_www/lib/python2.6/site-packages/couchdbkit/client.py”,
line 422, in save_doc
**params).json_body

File “/opt/www.commcarehq.org_project/env/cchq_www/lib/python2.6/site-packages/restkit/resource.py”,
line 153, in put
headers=headers, params_dict=params_dict, **params)

File “/opt/www.commcarehq.org_project/env/cchq_www/lib/python2.6/site-packages/couchdbkit/resource.py”,
line 130, in request
response=e.response)

ResourceConflict: Document update conflict.

<WSGIRequest
GET:<QueryDict: {}>,
POST:<QueryDict: {u’redirect_url’: [u’group_members’]}>,
COOKIES:{’__utma’: ‘166502700.797983540.1304097952.1319633187.1319636605.309’,
’__utmb’: ‘166502700.33.10.1319636605’,
’__utmc’: ‘166502700’,
’__utmz’: ‘166502700.1319636605.309.197.utmcsr=myewb.ca|utmccn=(referral)|utmcmd=referral|utmcct=/posts/88775/’,
‘appsMenuHidden’: ‘true’,
‘csrftoken’: ‘a807fed045d70000336974f8a20403e9’,
‘lang’: ‘hin’,
‘sessionid’: ‘4c50759f1d9b01d42618e0072a92ec67’},
META:{‘ACTUAL_SERVER_PROTOCOL’: ‘HTTP/1.1’,
‘CONTENT_LENGTH’: ‘26’,
‘CONTENT_TYPE’: ‘application/x-www-form-urlencoded’,
‘HTTPS’: ‘on’,
‘HTTP_ACCEPT’:
‘text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8’,
‘HTTP_ACCEPT_CHARSET’: ‘ISO-8859-1,utf-8;q=0.7,*;q=0.3’,
‘HTTP_ACCEPT_ENCODING’: ‘gzip,deflate,sdch’,
‘HTTP_ACCEPT_LANGUAGE’: ‘en-US,en;q=0.8’,
‘HTTP_CACHE_CONTROL’: ‘max-age=0’,
‘HTTP_CONNECTION’: ‘close’,
‘HTTP_COOKIE’: ‘csrftoken=a807fed045d70000336974f8a20403e9;
sessionid=4c50759f1d9b01d42618e0072a92ec67; lang=hin;
appsMenuHidden=true;
__utma=166502700.797983540.1304097952.1319633187.1319636605.309;
__utmb=166502700.33.10.1319636605; __utmc=166502700;
__utmz=166502700.1319636605.309.197.utmcsr=myewb.ca|utmccn=(referral)|utmcmd=referral|utmcct=/posts/88775/’,
‘HTTP_HOST’: ‘10.84.168.241:8001’,
‘HTTP_ORIGIN’: ‘https://www.commcarehq.org’,
‘HTTP_REFERER’:
https://www.commcarehq.org/a/wvindia/users/groups/6a3faf7c7bd11b548f3bcd5167fc52e7/’,
‘HTTP_USER_AGENT’: ‘Mozilla/5.0 (Windows NT 6.1; WOW64)
AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202
Safari/535.1’,
‘HTTP_VIA’: ‘1.1 www.commcarehq.org’,
‘HTTP_X_FORWARDED_FOR’: ‘115.242.85.15’,
‘HTTP_X_FORWARDED_HOST’: ‘www.commcarehq.org’,
‘HTTP_X_FORWARDED_SERVER’: ‘www.commcarehq.org’,
‘PATH_INFO’: u’/a/wvindia/groups/join_group/6a3faf7c7bd11b548f3bcd5167fc52e7/WV5CDBZ9ZL0ITM1JVHJMXT34W/’,
‘QUERY_STRING’: ‘’,
‘REMOTE_ADDR’: ‘10.84.168.243’,
‘REMOTE_PORT’: ‘41680’,
‘REQUEST_METHOD’: ‘POST’,
‘REQUEST_URI’:
’/a/wvindia/groups/join_group/6a3faf7c7bd11b548f3bcd5167fc52e7/WV5CDBZ9ZL0ITM1JVHJMXT34W/’,
‘SCRIPT_NAME’: u’’,
‘SERVER_NAME’: ‘localhost’,
‘SERVER_PORT’: ‘8001’,
‘SERVER_PROTOCOL’: ‘HTTP/1.1’,
‘SERVER_SOFTWARE’: ‘CherryPy/3.2.0 Server’,
‘SSL_SERVER_I_DN’: ‘/O=Dimagi Inc./L=Charlestown/ST=Massachusetts/C=US’,
‘SSL_SERVER_I_DN_C’: ‘US’,
‘SSL_SERVER_I_DN_L’: ‘Charlestown’,
‘SSL_SERVER_I_DN_O’: ‘Dimagi Inc.’,
‘SSL_SERVER_I_DN_ST’: ‘Massachusetts’,
‘SSL_SERVER_M_SERIAL’: 1048579L,
‘SSL_SERVER_M_VERSION’: 0,
‘SSL_SERVER_S_DN’: ‘/C=US/ST=Massachusetts/O=Dimagi
Inc./CN=b.dimagi.vmracks.com’,
‘SSL_SERVER_S_DN_C’: ‘US’,
‘SSL_SERVER_S_DN_CN’: ‘b.dimagi.vmracks.com’,
‘SSL_SERVER_S_DN_O’: ‘Dimagi Inc.’,
‘SSL_SERVER_S_DN_ST’: ‘Massachusetts’,
‘wsgi.errors’: <open file ‘’, mode ‘w’ at 0x7fa5ed9821e0>,
‘wsgi.input’: <cherrypy.wsgiserver.KnownLengthRFile object at 0x761bd10>,
‘wsgi.multiprocess’: False,
‘wsgi.multithread’: True,
‘wsgi.run_once’: False,
‘wsgi.url_scheme’: ‘https’,
‘wsgi.version’: (1, 0)}>

Sorry this was supposed to go to our support list. You can ignore it.

··· On Wed, Oct 26, 2011 at 10:35 AM, Cory Zue wrote: > [10:31:07 AM] Mohini Bhavsar: when i look at the creatinga group screen > [10:31:28 AM] Mohini Bhavsar: i clicked on every ASHA name one after > the other that I wanted to add to the pilot ASHAs groups > [10:31:57 AM] Mohini Bhavsar: the page refreshes after clicking on one name > [10:32:03 AM] Mohini Bhavsar: adds to the group and then i can add another > [10:32:16 AM] Mohini Bhavsar: if i click on too many users, i get a 500 eror > > > ---------- Forwarded message ---------- > From: > Date: Wed, Oct 26, 2011 at 10:24 AM > Subject: [Django] Error (EXTERNAL IP): > /a/wvindia/groups/join_group/6a3faf7c7bd11b548f3bcd5167fc52e7/WV5CDBZ9ZL0ITM1JVHJMXT34W/ > To: commcarehq-dev+www-notifications@dimagi.com > > > Traceback (most recent call last): > > File "/opt/www.commcarehq.org_project/env/cchq_www/lib/python2.6/site-packages/django/core/handlers/base.py", > line 100, in get_response > response = callback(request, *callback_args, **callback_kwargs) > > File "/opt/www.commcarehq.org_project/src/commcare-hq/submodules/core-hq-src/corehq/apps/users/decorators.py", > line 8, in _inner > return login_and_domain_required(view_func)(request, domain, *args, **kwargs) > > File "/opt/www.commcarehq.org_project/src/commcare-hq/submodules/core-hq-src/corehq/apps/domain/decorators.py", > line 62, in _inner > return view_func(req, domain_name, *args, **kwargs) > > File "/opt/www.commcarehq.org_project/src/commcare-hq/submodules/core-hq-src/corehq/apps/groups/views.py", > line 56, in join_group > group.add_user(couch_user_id) > > File "/opt/www.commcarehq.org_project/src/commcare-hq/submodules/core-hq-src/corehq/apps/groups/models.py", > line 28, in add_user > self.save() > > File "/opt/www.commcarehq.org_project/src/commcare-hq/submodules/core-hq-src/corehq/apps/groups/models.py", > line 88, in save > super(Group, self).save() > > File "/opt/www.commcarehq.org_project/env/cchq_www/lib/python2.6/site-packages/couchdbkit/schema/base.py", > line 429, in save > db.save_doc(doc, **params) > > File "/opt/www.commcarehq.org_project/env/cchq_www/lib/python2.6/site-packages/couchdbkit/client.py", > line 422, in save_doc > **params).json_body > > File "/opt/www.commcarehq.org_project/env/cchq_www/lib/python2.6/site-packages/restkit/resource.py", > line 153, in put > headers=headers, params_dict=params_dict, **params) > > File "/opt/www.commcarehq.org_project/env/cchq_www/lib/python2.6/site-packages/couchdbkit/resource.py", > line 130, in request > response=e.response) > > ResourceConflict: Document update conflict. > > > GET:, > POST:, > COOKIES:{'__utma': '166502700.797983540.1304097952.1319633187.1319636605.309', > '__utmb': '166502700.33.10.1319636605', > '__utmc': '166502700', > '__utmz': '166502700.1319636605.309.197.utmcsr=myewb.ca|utmccn=(referral)|utmcmd=referral|utmcct=/posts/88775/', > 'appsMenuHidden': 'true', > 'csrftoken': 'a807fed045d70000336974f8a20403e9', > 'lang': 'hin', > 'sessionid': '4c50759f1d9b01d42618e0072a92ec67'}, > META:{'ACTUAL_SERVER_PROTOCOL': 'HTTP/1.1', > 'CONTENT_LENGTH': '26', > 'CONTENT_TYPE': 'application/x-www-form-urlencoded', > 'HTTPS': 'on', > 'HTTP_ACCEPT': > 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', > 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3', > 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch', > 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8', > 'HTTP_CACHE_CONTROL': 'max-age=0', > 'HTTP_CONNECTION': 'close', > 'HTTP_COOKIE': 'csrftoken=a807fed045d70000336974f8a20403e9; > sessionid=4c50759f1d9b01d42618e0072a92ec67; lang=hin; > appsMenuHidden=true; > __utma=166502700.797983540.1304097952.1319633187.1319636605.309; > __utmb=166502700.33.10.1319636605; __utmc=166502700; > __utmz=166502700.1319636605.309.197.utmcsr=myewb.ca|utmccn=(referral)|utmcmd=referral|utmcct=/posts/88775/', > 'HTTP_HOST': '10.84.168.241:8001', > 'HTTP_ORIGIN': 'https://www.commcarehq.org', > 'HTTP_REFERER': > 'https://www.commcarehq.org/a/wvindia/users/groups/6a3faf7c7bd11b548f3bcd5167fc52e7/', > 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) > AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 > Safari/535.1', > 'HTTP_VIA': '1.1 www.commcarehq.org', > 'HTTP_X_FORWARDED_FOR': '115.242.85.15', > 'HTTP_X_FORWARDED_HOST': 'www.commcarehq.org', > 'HTTP_X_FORWARDED_SERVER': 'www.commcarehq.org', > 'PATH_INFO': u'/a/wvindia/groups/join_group/6a3faf7c7bd11b548f3bcd5167fc52e7/WV5CDBZ9ZL0ITM1JVHJMXT34W/', > 'QUERY_STRING': '', > 'REMOTE_ADDR': '10.84.168.243', > 'REMOTE_PORT': '41680', > 'REQUEST_METHOD': 'POST', > 'REQUEST_URI': > '/a/wvindia/groups/join_group/6a3faf7c7bd11b548f3bcd5167fc52e7/WV5CDBZ9ZL0ITM1JVHJMXT34W/', > 'SCRIPT_NAME': u'', > 'SERVER_NAME': 'localhost', > 'SERVER_PORT': '8001', > 'SERVER_PROTOCOL': 'HTTP/1.1', > 'SERVER_SOFTWARE': 'CherryPy/3.2.0 Server', > 'SSL_SERVER_I_DN': '/O=Dimagi Inc./L=Charlestown/ST=Massachusetts/C=US', > 'SSL_SERVER_I_DN_C': 'US', > 'SSL_SERVER_I_DN_L': 'Charlestown', > 'SSL_SERVER_I_DN_O': 'Dimagi Inc.', > 'SSL_SERVER_I_DN_ST': 'Massachusetts', > 'SSL_SERVER_M_SERIAL': 1048579L, > 'SSL_SERVER_M_VERSION': 0, > 'SSL_SERVER_S_DN': '/C=US/ST=Massachusetts/O=Dimagi > Inc./CN=b.dimagi.vmracks.com', > 'SSL_SERVER_S_DN_C': 'US', > 'SSL_SERVER_S_DN_CN': 'b.dimagi.vmracks.com', > 'SSL_SERVER_S_DN_O': 'Dimagi Inc.', > 'SSL_SERVER_S_DN_ST': 'Massachusetts', > 'wsgi.errors': <open file '', mode 'w' at 0x7fa5ed9821e0>, > 'wsgi.input': , > 'wsgi.multiprocess': False, > 'wsgi.multithread': True, > 'wsgi.run_once': False, > 'wsgi.url_scheme': 'https', > 'wsgi.version': (1, 0)}> >