Case Forwarding in commcare HQ

Hello Guys,

We have setup commcarehq in our local machine and we are trying to
forward case from comcarehq to our application(running locally) using
the case forwarding mechanism.

We added our application url to case forwarding option and tested
the link and we got a 200-OK response. But when we submit a case
from the emulator the forward is not happening. We are also unable
to see the list of case in the Report->CaseList section.

We posted this on Support-commcare group and we were asked to
start both celery and couch-lucene. We have done that but still unable
to move on. Is there any configuration changes that is required

Any help is Appreciated. Thanks!

Regards,
Balaji G

Hi,

We posted this on Support-commcare group and we were asked to
start both celery and couch-lucene. We have done that but still unable
to move on. Is there any configuration changes that is required

Can you confirm how you have set these up and configured them?

Note that we don't actively support hosted CommCare HQ installations
outside of our cloud servers, so we may not be able to provide great
support on this front.

thanks,
Cory

··· On Mon, Apr 9, 2012 at 3:30 AM, G Balaji wrote:

Any help is Appreciated. Thanks!

Regards,
Balaji G

Hi Cory,

Finally we have got the case Forwarding to work . There was a change in
the way we ran celery .

Based on the cchq_celeryd.conf
(https://github.com/dimagi/commcare-hq/blob/master/utilities/deployment/cchq_celeryd.conf)
we started celeryd using the command

" ./manage.py celeryd -v 2 -B -s celery -E "

I beleive it would help if we can add the below 2 configuration
in the github help page

  1. Enable Lucene setting
··· On Monday, April 9, 2012 1:00:59 PM UTC+5:30, G Balaji wrote: > > > Hello Guys, > > We have setup commcarehq in our local machine and we are trying to > forward case from comcarehq to our application(running locally) using > the case forwarding mechanism. > > We added our application url to case forwarding option and tested > the link and we got a 200-OK response. But when we submit a case > from the emulator the forward is not happening. We are also unable > to see the list of case in the Report->CaseList section. > > We posted this on Support-commcare group and we were asked to > start both celery and couch-lucene. We have done that but still unable > to move on. Is there any configuration changes that is required > > Any help is Appreciated. Thanks! > > Regards, > Balaji G >

On Monday, April 9, 2012 1:00:59 PM UTC+5:30, G Balaji wrote:

Hello Guys,

We have setup commcarehq in our local machine and we are trying to
forward case from comcarehq to our application(running locally) using
the case forwarding mechanism.

We added our application url to case forwarding option and tested
the link and we got a 200-OK response. But when we submit a case
from the emulator the forward is not happening. We are also unable
to see the list of case in the Report->CaseList section.

We posted this on Support-commcare group and we were asked to
start both celery and couch-lucene. We have done that but still unable
to move on. Is there any configuration changes that is required

Any help is Appreciated. Thanks!

Regards,
Balaji G

Hi Cory,

1 .We followed the steps given in GitHub - dimagi/commcare-hq: CommCareHQ is the server backend for CommCare, the world's largest platform for designing, managing, and deploying robust, offline-first, mobile applications to frontline workers worldwide
2. We used cherrypy from GitHub - dimagi/django-cpserver: Management commands for serving Django via CherryPy's built-in WSGI server and
followed the steps for setting it up
3. Started celery using the command './manage.py celeryd -B' (Did not
make any configuration changes in settings.py)
4. Started couch-lucene with the command 'couch-lucene run' (Changed
'Lucene Enable' flag to true - settings.py )

After changing the 'Lucene Enable' flag to true in settings.py, we are
able to see case list in the report section. But not sure on what we
need to change w.r.t celery.

Is there any celery related configuration that i am missing to enable?

I have copied over the console logs for your reference herehttp://pastie.org/3757064

  • Setting this up on Mac/centos systems

Thanks!
Balaji G

··· On Monday, April 9, 2012 8:51:25 PM UTC+5:30, Cory Zue wrote: > > Hi, > > On Mon, Apr 9, 2012 at 3:30 AM, G Balaji wrote: > >> >> We posted this on Support-commcare group and we were asked to >> start both celery and couch-lucene. We have done that but still unable >> to move on. Is there any configuration changes that is required >> > > Can you confirm how you have set these up and configured them? > > Note that we don't actively support hosted CommCare HQ installations > outside of our cloud servers, so we may not be able to provide great > support on this front. > > thanks, > Cory > > >> Any help is Appreciated. Thanks! >> >> Regards, >> Balaji G >> > >

me (G Balaji change)
Post reply
[image: More message actions]
11:36 AM (less than a minute ago)
Hi Cory,

Finally we have got the case Forwarding to work . There was a change in
the way we ran celery .

Based on the cchq_celeryd.conf (
https://github.com/dimagi/commcare-hq/blob/master/utilities/deployment/cchq_celeryd.conf)
we started celeryd using the command

" ./manage.py celeryd -v 2 -B -s celery -E "

I beleive it would help if we can add the below 2 configuration
in the github help page

  1. Enable Lucene settings in settings.py (to view case list in the
    Report section)

  2. For case Forwarding start celery process using " ./manage.py celeryd
    -v 2 -B -s celery -E "

Thanks for your help

Regards,
Balaji G/Sathish

··· On Tuesday, April 10, 2012 11:36:55 AM UTC+5:30, G Balaji wrote: > > Hi Cory, > > Finally we have got the case Forwarding to work . There was a change > in the way we ran celery . > > Based on the cchq_celeryd.conf ( > https://github.com/dimagi/commcare-hq/blob/master/utilities/deployment/cchq_celeryd.conf) > we started celeryd using the command > > " ./manage.py celeryd -v 2 -B -s celery -E " > > > I beleive it would help if we can add the below 2 configuration > in the github help page > > 1. Enable Lucene setting > > > > On Monday, April 9, 2012 1:00:59 PM UTC+5:30, G Balaji wrote: >> >> >> Hello Guys, >> >> We have setup commcarehq in our local machine and we are trying to >> forward case from comcarehq to our application(running locally) using >> the case forwarding mechanism. >> >> We added our application url to case forwarding option and tested >> the link and we got a 200-OK response. But when we submit a case >> from the emulator the forward is not happening. We are also unable >> to see the list of case in the Report->CaseList section. >> >> We posted this on Support-commcare group and we were asked to >> start both celery and couch-lucene. We have done that but still unable >> to move on. Is there any configuration changes that is required >> >> Any help is Appreciated. Thanks! >> >> Regards, >> Balaji G >> > > On Monday, April 9, 2012 1:00:59 PM UTC+5:30, G Balaji wrote: >> >> >> Hello Guys, >> >> We have setup commcarehq in our local machine and we are trying to >> forward case from comcarehq to our application(running locally) using >> the case forwarding mechanism. >> >> We added our application url to case forwarding option and tested >> the link and we got a 200-OK response. But when we submit a case >> from the emulator the forward is not happening. We are also unable >> to see the list of case in the Report->CaseList section. >> >> We posted this on Support-commcare group and we were asked to >> start both celery and couch-lucene. We have done that but still unable >> to move on. Is there any configuration changes that is required >> >> Any help is Appreciated. Thanks! >> >> Regards, >> Balaji G >> >

Hi,

Hi Cory,

1 .We followed the steps given in
GitHub - dimagi/commcare-hq: CommCareHQ is the server backend for CommCare, the world's largest platform for designing, managing, and deploying robust, offline-first, mobile applications to frontline workers worldwide
2. We used cherrypy from GitHub - dimagi/django-cpserver: Management commands for serving Django via CherryPy's built-in WSGI server and
followed the steps for setting it up
3. Started celery using the command './manage.py celeryd -B' (Did not
make any configuration changes in settings.py)
4. Started couch-lucene with the command 'couch-lucene run' (Changed
'Lucene Enable' flag to true - settings.py )

After changing the 'Lucene Enable' flag to true in settings.py, we
are able to see case list in the report section. But not sure on what
we need to change w.r.t celery.

Is there any celery related configuration that i am missing to enable?

This all sounds right to me.

I have copied over the console logs for your reference herehttp://pastie.org/3757064

Interesting. This doesn't look familiar to me. My initial thought is that
you should add debug/logging statements to the fire() method of the
repeaters to see if there's an exception getting swallowed by that logic.

Cory

··· On Mon, Apr 9, 2012 at 2:24 PM, Balaji rags wrote:
  • Setting this up on Mac/centos systems

Thanks!
Balaji G

On Monday, April 9, 2012 8:51:25 PM UTC+5:30, Cory Zue wrote:

Hi,

On Mon, Apr 9, 2012 at 3:30 AM, G Balaji gbalaji@thoughtworks.comwrote:

We posted this on Support-commcare group and we were asked to
start both celery and couch-lucene. We have done that but still unable
to move on. Is there any configuration changes that is required

Can you confirm how you have set these up and configured them?

Note that we don't actively support hosted CommCare HQ installations
outside of our cloud servers, so we may not be able to provide great
support on this front.

thanks,
Cory

Any help is Appreciated. Thanks!

Regards,
Balaji G

Hey,

Finally we have got the case Forwarding to work . There was a change
in the way we ran celery .

Based on the cchq_celeryd.conf (Dimagi · GitHub**
commcare-hq/blob/master/**utilities/deployment/cchq_**celeryd.confhttps://github.com/dimagi/commcare-hq/blob/master/utilities/deployment/cchq_celeryd.conf)
we started celeryd using the command

" ./manage.py celeryd -v 2 -B -s celery -E "

Glad to hear it!

I beleive it would help if we can add the below 2 configuration
in the github help page

  1. Enable Lucene settings in settings.py (to view case list in the
    Report section)

  2. For case Forwarding start celery process using " ./manage.py
    celeryd -v 2 -B -s celery -E "

Thanks for the input. It would be great if you could make these changes to
the README file and submit them as a pull request!

cheers,
Cory

··· On Tue, Apr 10, 2012 at 2:10 AM, G Balaji wrote:

Thanks for your help

Regards,
Balaji G/Sathish

On Tuesday, April 10, 2012 11:36:55 AM UTC+5:30, G Balaji wrote:

Hi Cory,

Finally we have got the case Forwarding to work . There was a change
in the way we ran celery .

Based on the cchq_celeryd.conf (Dimagi · GitHub**
commcare-hq/blob/master/**utilities/deployment/cchq_**celeryd.confhttps://github.com/dimagi/commcare-hq/blob/master/utilities/deployment/cchq_celeryd.conf)
we started celeryd using the command

" ./manage.py celeryd -v 2 -B -s celery -E "

I beleive it would help if we can add the below 2
configuration in the github help page

  1. Enable Lucene setting

On Monday, April 9, 2012 1:00:59 PM UTC+5:30, G Balaji wrote:

Hello Guys,

We have setup commcarehq in our local machine and we are trying to
forward case from comcarehq to our application(running locally) using
the case forwarding mechanism.

We added our application url to case forwarding option and tested
the link and we got a 200-OK response. But when we submit a case
from the emulator the forward is not happening. We are also unable
to see the list of case in the Report->CaseList section.

We posted this on Support-commcare group and we were asked to
start both celery and couch-lucene. We have done that but still unable
to move on. Is there any configuration changes that is required

Any help is Appreciated. Thanks!

Regards,
Balaji G

On Monday, April 9, 2012 1:00:59 PM UTC+5:30, G Balaji wrote:

Hello Guys,

We have setup commcarehq in our local machine and we are trying to
forward case from comcarehq to our application(running locally) using
the case forwarding mechanism.

We added our application url to case forwarding option and tested
the link and we got a 200-OK response. But when we submit a case
from the emulator the forward is not happening. We are also unable
to see the list of case in the Report->CaseList section.

We posted this on Support-commcare group and we were asked to
start both celery and couch-lucene. We have done that but still unable
to move on. Is there any configuration changes that is required

Any help is Appreciated. Thanks!

Regards,
Balaji G