Form not submitted

Hi Sheeraz,

Just pasting my answer from the other thread for posterity:

It looks like your kafka setup is incomplete. You can try restarting the
kafka container on docker and also running ./manage.py create_kafka_topics.

··· On Wed, Oct 5, 2016 at 4:02 AM, Sheeraz Mahmood wrote:

Hi everyone!

I have installed Comm-care HQ on Ubuntu 14.04 . I am using Docker to run
server.
I successfully synced from android
However when I try to submitted form its not submitted and on terminal it
shows me the following error

Internal Server Error: /a/test-commcare/receiver/secure/
2e44b229583520e48832789100203e7d/
web_1 | Traceback (most recent call last):
web_1 | File “/vendor/lib/python2.7/site-
packages/django/core/handlers/base.py”, line 111, in get_response
web_1 | response = wrapped_callback(request,
*callback_args, **callback_kwargs)
web_1 | File “/vendor/lib/python2.7/site-
packages/django/views/decorators/csrf.py”, line 57, in wrapped_view
web_1 | return view_func(*args, **kwargs)
web_1 | File “/vendor/lib/python2.7/site-
packages/django/views/decorators/http.py”, line 41, in inner
web_1 | return func(request, *args, **kwargs)
web_1 | File “/mnt/commcare-hq/corehq/apps/receiverwrapper/views.py”,
line 227, in secure_post
web_1 | return decorated_view(request, domain,
app_id=app_id)
web_1 | File “/mnt/commcare-hq/corehq/apps/ota/utils.py”,
line 181, in _inner
web_1 | response = f(request, domain, *args, **kwargs)
web_1 | File “/mnt/commcare-hq/corehq/apps/domain/decorators.py”,
line 180, in safe_fn
web_1 | return _inner(request, domain, *args, **kwargs)
web_1 | File “/mnt/commcare-hq/corehq/apps/domain/decorators.py”,
line 305, in _inner
web_1 | return fn(request, *args, **kwargs)
web_1 | File “/mnt/commcare-hq/corehq/apps/domain/auth.py”,
line 80, in wrapper
web_1 | return view(request, *args, **kwargs)
web_1 | File “/mnt/commcare-hq/corehq/apps/domain/decorators.py”,
line 238, in _inner
web_1 | return fn(request, domain, *args, **kwargs)
web_1 | File “/mnt/commcare-hq/corehq/apps/domain/decorators.py”,
line 176, in _inner
web_1 | return fn(request, domain, *args, **kwargs)
web_1 | File “/mnt/commcare-hq/corehq/apps/receiverwrapper/views.py”,
line 207, in _secure_post_basic
web_1 | authenticated=True,
web_1 | File “/mnt/commcare-hq/corehq/util/datadog/utils.py”,
line 22, in _inner
web_1 | response = fn(*args, **kwargs)
web_1 | File “/mnt/commcare-hq/corehq/apps/receiverwrapper/views.py”,
line 83, in process_form
web_1 | openrosa_headers=couchforms.
get_openrosa_headers(request),
web_1 | File “/mnt/commcare-hq/corehq/form_processor/submission_post.py”,
line 244, in get_response
web_1 | response, , _ = self.run()
web_1 | File “/mnt/commcare-hq/corehq/form_processor/submission_post.py”,
line 154, in run
web_1 | self.interface.save_processed_models([instance])
web_1 | File "/mnt/commcare-hq/corehq/form

processor/interfaces/processor.py", line 126, in save_processed_models
web_1 | stock_result=stock_result,
web_1 | File "/mnt/commcare-hq/corehq/form

processor/backends/sql/processor.py", line 89, in save_processed_models
web_1 | cls.publish_changes(processed_forms, cases,
stock_result)
web_1 | File "/mnt/commcare-hq/corehq/form

processor/backends/sql/processor.py", line 94, in publish_changes
web_1 | publish_form_saved(processed_forms.submitted)
web_1 | File "/mnt/commcare-hq/corehq/form

processor/change_publishers.py", line 23, in publish_form_saved
web_1 | producer.send_change(topics.FORM_SQL,
change_meta_from_sql_form(form))
web_1 | File “/mnt/commcare-hq/corehq/apps/change_feed/producer.py”,
line 74, in send_change
web_1 | send_to_kafka(self.producer, topic, change_meta)
web_1 | File “/mnt/commcare-hq/corehq/apps/change_feed/producer.py”,
line 26, in send_to_kafka
web_1 | _send_to_kafka()
web_1 | File “/mnt/commcare-hq/corehq/apps/change_feed/producer.py”,
line 17, in _send_to_kafka
web_1 | bytes(json.dumps(change_meta.to_json())),
web_1 | File “/vendor/lib/python2.7/site-
packages/kafka/producer/keyed.py”, line 43, in send_messages
web_1 | return self._send_messages(topic, partition, *msg,
key=key)
web_1 | File “/vendor/lib/python2.7/site-
packages/kafka/producer/base.py”, line 390, in _send_messages
web_1 | fail_on_error=self.sync_fail_on_error
web_1 | File “/vendor/lib/python2.7/site-packages/kafka/client.py”,
line 480, in send_produce_request
web_1 | (not fail_on_error or not
self._raise_on_response_error(resp))]
web_1 | File “/vendor/lib/python2.7/site-packages/kafka/client.py”,
line 247, in _raise_on_response_error
web_1 | raise resp
web_1 | FailedPayloadsError
web_1 | ERROR:django.request:Internal Server Error:
/a/test-commcare/receiver/secure/2e44b229583520e48832789100203e7d/
web_1 | Traceback (most recent call last):
web_1 | File “/vendor/lib/python2.7/site-
packages/django/core/handlers/base.py”, line 111, in get_response
web_1 | response = wrapped_callback(request,
*callback_args, **callback_kwargs)
web_1 | File “/vendor/lib/python2.7/site-
packages/django/views/decorators/csrf.py”, line 57, in wrapped_view
web_1 | return view_func(*args, **kwargs)
web_1 | File “/vendor/lib/python2.7/site-
packages/django/views/decorators/http.py”, line 41, in inner
web_1 | return func(request, *args, **kwargs)
web_1 | File “/mnt/commcare-hq/corehq/apps/receiverwrapper/views.py”,
line 227, in secure_post
web_1 | return decorated_view(request, domain,
app_id=app_id)
web_1 | File “/mnt/commcare-hq/corehq/apps/ota/utils.py”,
line 181, in _inner
web_1 | response = f(request, domain, *args, **kwargs)
web_1 | File “/mnt/commcare-hq/corehq/apps/domain/decorators.py”,
line 180, in safe_fn
web_1 | return _inner(request, domain, *args, **kwargs)
web_1 | File “/mnt/commcare-hq/corehq/apps/domain/decorators.py”,
line 305, in _inner
web_1 | return fn(request, *args, **kwargs)
web_1 | File “/mnt/commcare-hq/corehq/apps/domain/auth.py”,
line 80, in wrapper
web_1 | return view(request, *args, **kwargs)
web_1 | File “/mnt/commcare-hq/corehq/apps/domain/decorators.py”,
line 238, in _inner
web_1 | return fn(request, domain, *args, **kwargs)
web_1 | File “/mnt/commcare-hq/corehq/apps/domain/decorators.py”,
line 176, in _inner
web_1 | return fn(request, domain, *args, **kwargs)
web_1 | File “/mnt/commcare-hq/corehq/apps/receiverwrapper/views.py”,
line 207, in _secure_post_basic
web_1 | authenticated=True,
web_1 | File “/mnt/commcare-hq/corehq/util/datadog/utils.py”,
line 22, in _inner
web_1 | response = fn(*args, **kwargs)
web_1 | File “/mnt/commcare-hq/corehq/apps/receiverwrapper/views.py”,
line 83, in process_form
web_1 | openrosa_headers=couchforms.
get_openrosa_headers(request),
web_1 | File “/mnt/commcare-hq/corehq/form_processor/submission_post.py”,
line 244, in get_response
web_1 | response, , _ = self.run()
web_1 | File “/mnt/commcare-hq/corehq/form_processor/submission_post.py”,
line 154, in run
web_1 | self.interface.save_processed_models([instance])
web_1 | File "/mnt/commcare-hq/corehq/form

processor/interfaces/processor.py", line 126, in save_processed_models
web_1 | stock_result=stock_result,
web_1 | File "/mnt/commcare-hq/corehq/form

processor/backends/sql/processor.py", line 89, in save_processed_models
web_1 | cls.publish_changes(processed_forms, cases,
stock_result)
web_1 | File "/mnt/commcare-hq/corehq/form

processor/backends/sql/processor.py", line 94, in publish_changes
web_1 | publish_form_saved(processed_forms.submitted)
web_1 | File "/mnt/commcare-hq/corehq/form

processor/change_publishers.py", line 23, in publish_form_saved
web_1 | producer.send_change(topics.FORM_SQL,
change_meta_from_sql_form(form))
web_1 | File “/mnt/commcare-hq/corehq/apps/change_feed/producer.py”,
line 74, in send_change
web_1 | send_to_kafka(self.producer, topic, change_meta)
web_1 | File “/mnt/commcare-hq/corehq/apps/change_feed/producer.py”,
line 26, in send_to_kafka
web_1 | _send_to_kafka()
web_1 | File “/mnt/commcare-hq/corehq/apps/change_feed/producer.py”,
line 17, in _send_to_kafka
web_1 | bytes(json.dumps(change_meta.to_json())),
web_1 | File “/vendor/lib/python2.7/site-
packages/kafka/producer/keyed.py”, line 43, in send_messages
web_1 | return self._send_messages(topic, partition, *msg,
key=key)
web_1 | File “/vendor/lib/python2.7/site-
packages/kafka/producer/base.py”, line 390, in _send_messages
web_1 | fail_on_error=self.sync_fail_on_error
web_1 | File “/vendor/lib/python2.7/site-packages/kafka/client.py”,
line 480, in send_produce_request
web_1 | (not fail_on_error or not
self._raise_on_response_error(resp))]
web_1 | File “/vendor/lib/python2.7/site-packages/kafka/client.py”,
line 247, in _raise_on_response_error
web_1 | raise resp

Thanks for your help

Sheeraz


You received this message because you are subscribed to the Google Groups
"CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.