# Commcare Production goes well but errors of cloudcare

**URL:** <https://forum.dimagi.com/t/commcare-production-goes-well-but-errors-of-cloudcare/3673>\
**Category:** Developers\
**Created:** [August 15, 2017, 10:45pm UTC](https://forum.dimagi.com/t/commcare-production-goes-well-but-errors-of-cloudcare/3673 "2017-08-15T22:45:23Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Danish\_Fayaz](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@Danish\_Fayaz](https://forum.dimagi.com/u/Danish_Fayaz)\
**Post date:** [August 15, 2017, 10:45pm UTC](https://forum.dimagi.com/t/commcare-production-goes-well-but-errors-of-cloudcare/3673/1 "2017-08-15T22:45:23Z")

</div>

Hello,

I am doing a research demo for my university and I actually need some of your assistance.

I am currently trying to deploy the commcare production app from github on a server. I've followed the production instructions carefully and able to run the app. But when I make an application and try to edit it I get the following errors (screenshot attached). As if formplayer isn't running, also I see an ajax request to my domain gives an error of "Disallowed".

[https://lh3.googleusercontent.com/-MYOSgjQEuck/WZN5ec\_WJTI/AAAAAAAAlts/f1OYNSNTy38AixhxaWZ-PmxnUIBqc8gTACLcBGAs/s1600/commcare-error.png](https://lh3.googleusercontent.com/-MYOSgjQEuck/WZN5ec_WJTI/AAAAAAAAlts/f1OYNSNTy38AixhxaWZ-PmxnUIBqc8gTACLcBGAs/s1600/commcare-error.png)

Can you please guide me if there's a proper documentation available or where I need to look for. It means a lot to me. Thank you for your time.

---

<div class="post-metadata">

**Author:** ![William\_Pride](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/w/b19c9b/32.png) [@William\_Pride](https://forum.dimagi.com/u/William_Pride)\
**Post date:** [August 16, 2017, 12:06pm UTC](https://forum.dimagi.com/t/commcare-production-goes-well-but-errors-of-cloudcare/3673/2 "2017-08-16T12:06:22Z")

</div>

Can you confirm that you have Formplayer running per the instructions here  
[https://github.com/dimagi/formplayer](https://github.com/dimagi/formplayer)?

If so can you provide the exception you're seeing in your browser (and in  
Formplayer/HQ if such exists)

Thanks,  
Will

> **···**
>
> On Tue, Aug 15, 2017 at 6:45 PM, Danish Fayaz wrote:
> 
> > Hello,
> > 
> > I am doing a research demo for my university and I actually need some of your assistance.
> > 
> > I am currently trying to deploy the commcare production app from github on a server. I've followed the production instructions carefully and able to run the app. But when I make an application and try to edit it I get the following errors (screenshot attached). As if formplayer isn't running, also I see an ajax request to my domain gives an error of "Disallowed".
> > 
> > [https://lh3.googleusercontent.com/-MYOSgjQEuck/WZN5ec\_WJTI/AAAAAAAAlts/f1OYNSNTy38AixhxaWZ-PmxnUIBqc8gTACLcBGAs/s1600/commcare-error.png](https://lh3.googleusercontent.com/-MYOSgjQEuck/WZN5ec_WJTI/AAAAAAAAlts/f1OYNSNTy38AixhxaWZ-PmxnUIBqc8gTACLcBGAs/s1600/commcare-error.png)
> > 
> > Can you please guide me if there's a proper documentation available or where I need to look for. It means a lot to me. Thank you for your time.
> > 
> > --
> > 
> > * * *
> > 
> > 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](mailto:commcare-developers+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Danish\_Fayaz](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@Danish\_Fayaz](https://forum.dimagi.com/u/Danish_Fayaz)\
**Post date:** [August 16, 2017, 10:11pm UTC](https://forum.dimagi.com/t/commcare-production-goes-well-but-errors-of-cloudcare/3673/3 "2017-08-16T22:11:55Z")

</div>

Thank you so much for your reply, yes william I've cloned Formplayer in the  
commcarehq root directory and updated submodules as instructed.  
Further I think the supervisor runs the formplayer so I changed the  
deployment config of supervisor in the  
services/supervisor/changeme\_supervisor\_formplayer\_spring.conf

Changed the name of dir from formplayer\_build to formplayer (as per  
cloned).

Still when I go to the application page I get the same error and when I  
click the start Icon in the App (in screenshot) I get the same error as in  
the screenshot.

I checked the console, following errors occur:

_OPTIONS [http://dev.commcare:8080/delete\_application\_dbs](http://dev.commcare:8080/delete_application_dbs)  
net::ERR\_CONNECTION\_REFUSED_  
_Disallowed origin [http://dev.commcare](http://dev.commcare)_

Also when I click on Users (screenshot) I get the following in the console:

_GET  
 [http://dev.commcare/a/test.org/cloudcare/api/login\_as/users/?query=&limit=10&page=1](http://dev.commcare/a/test.org/cloudcare/api/login_as/users/?query=&limit=10&page=1)  
500 (Internal Server Error)_

I'd appreciate it if someone can guide me on this. Thank you so much for  
the forum and the community's help.

> **···**
>
> On Wednesday, 16 August 2017 16:06:24 UTC+4, William Pride wrote: \> \> Can you confirm that you have Formplayer running per the instructions here \> ? \> \> If so can you provide the exception you're seeing in your browser (and in \> Formplayer/HQ if such exists) \> \> Thanks, \> Will \> \> On Tue, Aug 15, 2017 at 6:45 PM, Danish Fayaz \<danish...@gmail.com \> wrote: \> \>\> Hello, \>\> \>\> \>\> I am doing a research demo for my university and I actually need some of your assistance. \>\> \>\> \>\> I am currently trying to deploy the commcare production app from github on a server. I've followed the production instructions carefully and able to run the app. But when I make an application and try to edit it I get the following errors (screenshot attached). As if formplayer isn't running, also I see an ajax request to my domain gives an error of "Disallowed". \>\> \>\> \>\> \>\> \>\> Can you please guide me if there's a proper documentation available or where I need to look for. It means a lot to me. Thank you for your time. \>\> \>\> \>\> -- \>\> \>\> --- \>\> 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. \>\> \> \>

---

<div class="post-metadata">

**Author:** ![Danish\_Fayaz](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@Danish\_Fayaz](https://forum.dimagi.com/u/Danish_Fayaz)\
**Post date:** [August 16, 2017, 10:39pm UTC](https://forum.dimagi.com/t/commcare-production-goes-well-but-errors-of-cloudcare/3673/4 "2017-08-16T22:39:05Z")

</div>

Just now, I've also tried running formplayer seperately, it builds and runs  
all fine. But still I am getting the disallowed origin error. Options (pre  
flight requests failing).

> **···**
>
> On Thursday, 17 August 2017 02:11:55 UTC+4, Danish Fayaz wrote: \> \> Thank you so much for your reply, yes william I've cloned Formplayer in \> the commcarehq root directory and updated submodules as instructed. \> Further I think the supervisor runs the formplayer so I changed the \> deployment config of supervisor in the \> services/supervisor/changeme\_supervisor\_formplayer\_spring.conf \> \> Changed the name of dir from formplayer\_build to formplayer (as per \> cloned). \> \> Still when I go to the application page I get the same error and when I \> click the start Icon in the App (in screenshot) I get the same error as in \> the screenshot. \> \> I checked the console, following errors occur: \> \> \*OPTIONS http://dev.commcare:8080/delete\_application\_dbs \> \> net::ERR\_CONNECTION\_REFUSED\* \> \*Disallowed origin http://dev.commcare \* \> \> Also when I click on Users (screenshot) I get the following in the console: \> \> \*GET \> http://dev.commcare/a/test.org/cloudcare/api/login\_as/users/?query=&limit=10&page=1 \> \> 500 (Internal Server Error)\* \> \> I'd appreciate it if someone can guide me on this. Thank you so much for \> the forum and the community's help. \> \> \> On Wednesday, 16 August 2017 16:06:24 UTC+4, William Pride wrote: \>\> \>\> Can you confirm that you have Formplayer running per the instructions \>\> here ? \>\> \>\> If so can you provide the exception you're seeing in your browser (and in \>\> Formplayer/HQ if such exists) \>\> \>\> Thanks, \>\> Will \>\> \>\> On Tue, Aug 15, 2017 at 6:45 PM, Danish Fayaz wrote: \>\> \>\>\> Hello, \>\>\> \>\>\> \>\>\> I am doing a research demo for my university and I actually need some of your assistance. \>\>\> \>\>\> \>\>\> I am currently trying to deploy the commcare production app from github on a server. I've followed the production instructions carefully and able to run the app. But when I make an application and try to edit it I get the following errors (screenshot attached). As if formplayer isn't running, also I see an ajax request to my domain gives an error of "Disallowed". \>\>\> \>\>\> \>\>\> \>\>\> \>\>\> Can you please guide me if there's a proper documentation available or where I need to look for. It means a lot to me. Thank you for your time. \>\>\> \>\>\> \>\>\> -- \>\>\> \>\>\> --- \>\>\> 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. \>\>\> \>\> \>\>

---

<div class="post-metadata">

**Author:** ![William\_Pride](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/w/b19c9b/32.png) [@William\_Pride](https://forum.dimagi.com/u/William_Pride)\
**Post date:** [August 17, 2017, 8:36pm UTC](https://forum.dimagi.com/t/commcare-production-goes-well-but-errors-of-cloudcare/3673/5 "2017-08-17T20:36:40Z")

</div>

Hi Danish,

Looks like a CORS  
[https://en.wikipedia.org/wiki/Cross-origin\_resource\_sharing](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing) issue - Web  
Apps and App Builder make cross domain requests in order to communicate  
directly with Formplayer. Thus we configure Ajax and Spring to accept cross  
domain requests. I'm not sure whether this configuration would be  
sufficient in all browsers/servers (for example if these intentionally  
disallowed cross-domain requests). Does Formplayer log the requests?

Cheers,  
Will

> **···**
>
> On Wed, Aug 16, 2017 at 18:39 Danish Fayaz wrote:
> 
> > Just now, I've also tried running formplayer seperately, it builds and  
> > runs all fine. But still I am getting the disallowed origin error. Options  
> > (pre flight requests failing).
> > 
> > On Thursday, 17 August 2017 02:11:55 UTC+4, Danish Fayaz wrote:
> > 
> > > Thank you so much for your reply, yes william I've cloned Formplayer in  
> > > the commcarehq root directory and updated submodules as instructed.  
> > > Further I think the supervisor runs the formplayer so I changed the  
> > > deployment config of supervisor in the services/supervisor/changeme\_  
> > > supervisor\_formplayer\_spring.conf
> > > 
> > > Changed the name of dir from formplayer\_build to formplayer (as per  
> > > cloned).
> > > 
> > > Still when I go to the application page I get the same error and when I  
> > > click the start Icon in the App (in screenshot) I get the same error as in  
> > > the screenshot.
> > > 
> > > I checked the console, following errors occur:
> > > 
> > > _OPTIONS [http://dev.commcare:8080/delete\_application\_dbs](http://dev.commcare:8080/delete_application_dbs)  
> > > [http://dev.commcare:8080/delete\_application\_dbs](http://dev.commcare:8080/delete_application_dbs)  
> > > net::ERR\_CONNECTION\_REFUSED_  
> > > _Disallowed origin [http://dev.commcare](http://dev.commcare) [http://dev.commcare](http://dev.commcare)_
> > > 
> > > Also when I click on Users (screenshot) I get the following in the  
> > > console:
> > > 
> > > _GET  
> > > [http://dev.commcare/a/test.org/cloudcare/api/login\_as/users/?query=&limit=10&page=1](http://dev.commcare/a/test.org/cloudcare/api/login_as/users/?query=&limit=10&page=1)  
> > > [http://dev.commcare/a/test.org/cloudcare/api/login\_as/users/?query=&limit=10&page=1](http://dev.commcare/a/test.org/cloudcare/api/login_as/users/?query=&limit=10&page=1)  
> > > 500 (Internal Server Error)_
> > > 
> > > I'd appreciate it if someone can guide me on this. Thank you so much for  
> > > the forum and the community's help.
> > > 
> > > On Wednesday, 16 August 2017 16:06:24 UTC+4, William Pride wrote:
> > > 
> > > > Can you confirm that you have Formplayer running per the instructions  
> > > > here [https://github.com/dimagi/formplayer](https://github.com/dimagi/formplayer)?
> > > > 
> > > > If so can you provide the exception you're seeing in your browser (and  
> > > > in Formplayer/HQ if such exists)
> > > > 
> > > > Thanks,  
> > > > Will
> > > > 
> > > > On Tue, Aug 15, 2017 at 6:45 PM, Danish Fayaz [danish...@gmail.com](mailto:danish...@gmail.com) wrote:
> > > > 
> > > > > Hello,
> > > > > 
> > > > > I am doing a research demo for my university and I actually need some of your assistance.
> > > > > 
> > > > > I am currently trying to deploy the commcare production app from github on a server. I've followed the production instructions carefully and able to run the app. But when I make an application and try to edit it I get the following errors (screenshot attached). As if formplayer isn't running, also I see an ajax request to my domain gives an error of "Disallowed".
> > > > > 
> > > > > [https://lh3.googleusercontent.com/-MYOSgjQEuck/WZN5ec\_WJTI/AAAAAAAAlts/f1OYNSNTy38AixhxaWZ-PmxnUIBqc8gTACLcBGAs/s1600/commcare-error.png](https://lh3.googleusercontent.com/-MYOSgjQEuck/WZN5ec_WJTI/AAAAAAAAlts/f1OYNSNTy38AixhxaWZ-PmxnUIBqc8gTACLcBGAs/s1600/commcare-error.png)
> > > > > 
> > > > > Can you please guide me if there's a proper documentation available or where I need to look for. It means a lot to me. Thank you for your time.
> > > > > 
> > > > > --
> > > > > 
> > > > > * * *
> > > > > 
> > > > > 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](mailto:commcare-developers+unsubscribe@googlegroups.com).  
> > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > 
> > > > --
> > 
> > * * *
> > 
> > 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](mailto:commcare-developers+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Danish\_Fayaz](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@Danish\_Fayaz](https://forum.dimagi.com/u/Danish_Fayaz)\
**Post date:** [August 17, 2017, 9:34pm UTC](https://forum.dimagi.com/t/commcare-production-goes-well-but-errors-of-cloudcare/3673/6 "2017-08-17T21:34:08Z")

</div>

Following is the formplayer-spring.log. It seems to be starting fine I  
think.. still getting the disallowed. I've added access origin headers  
everywhere just to check if it works (nginx, django server settings) .

. \_\_\_\_ \_ \_\_ \_ \_  
/\ / _' \_\_ \_ () \_\_ \_\_ \_ \ \ \   
( ( )\__\_ | '\_ | '_| | '_ / _` | \ \ \   
\/ )| |)| | | | | || (| | ) ) ) )  
' | __| .\_\_|| |_|_| |_\__ , | / / / /  
=========|_|==============|_/=///_/  
:: Spring Boot :: (v1.4.3.RELEASE)

OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support  
was removed in 8.0

. \_\_\_\_ \_ \_\_ \_ \_  
/\ / _' \_\_ \_ () \_\_ \_\_ \_ \ \ \   
( ( )\__\_ | '\_ | '_| | '_ / _` | \ \ \   
\/ )| |)| | | | | || (| | ) ) ) )  
' | __| .\_\_|| |_|_| |_\__ , | / / / /  
=========|_|==============|_/=///_/  
:: Spring Boot :: (v1.4.3.RELEASE)

2017-08-17 21:29:40.307 WARN 7427 --- [main]  
figurationPropertiesBindingPostProcessor : Multiple  
PropertySourcesPlaceholderConfigurer beans registered [swaggerProperties,  
propertiesResolver], falling back to Environment  
2017-08-17 21:29:51.395 INFO 7427 --- [ost-startStop-1]  
o.s.web.context.ContextLoader : Root WebApplicationContext:  
initialization completed in 36700 ms  
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support  
was removed in 8.0

. \_\_\_\_ \_ \_\_ \_ \_  
/\ / _' \_\_ \_ () \_\_ \_\_ \_ \ \ \   
( ( )\__\_ | '\_ | '_| | '_ / _` | \ \ \   
\/ )| |)| | | | | || (| | ) ) ) )  
' | __| .\_\_|| |_|_| |_\__ , | / / / /  
=========|_|==============|_/=///_/  
:: Spring Boot :: (v1.4.3.RELEASE)

2017-08-17 21:30:31.664 WARN 8457 --- [main]  
figurationPropertiesBindingPostProcessor : Multiple  
PropertySourcesPlaceholderConfigurer beans registered [swaggerProperties,  
propertiesResolver], falling back to Environment  
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support  
was removed in 8.0

. \_\_\_\_ \_ \_\_ \_ \_  
/\ / _' \_\_ \_ () \_\_ \_\_ \_ \ \ \   
( ( )\__\_ | '\_ | '_| | '_ / _` | \ \ \   
\/ )| |)| | | | | || (| | ) ) ) )  
' | __| .\_\_|| |_|_| |_\__ , | / / / /  
=========|_|==============|_/=///_/  
:: Spring Boot :: (v1.4.3.RELEASE)

2017-08-17 21:31:23.456 WARN 8768 --- [main]  
figurationPropertiesBindingPostProcessor : Multiple  
PropertySourcesPlaceholderConfigurer beans registered [swaggerProperties,  
propertiesResolver], falling back to Environment  
2017-08-17 21:31:29.574 INFO 8768 --- [ost-startStop-1]  
o.s.web.context.ContextLoader : Root WebApplicationContext:  
initialization completed in 29139 ms  
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support  
was removed in 8.0

. \_\_\_\_ \_ \_\_ \_ \_  
/\ / _' \_\_ \_ () \_\_ \_\_ \_ \ \ \   
( ( )\__\_ | '\_ | '_| | '_ / _` | \ \ \   
\/ )| |)| | | | | || (| | ) ) ) )  
' | __| .\_\_|| |_|_| |_\__ , | / / / /  
=========|_|==============|_/=///_/  
:: Spring Boot :: (v1.4.3.RELEASE)

2017-08-17 21:31:56.286 WARN 9152 --- [main]  
figurationPropertiesBindingPostProcessor : Multiple  
PropertySourcesPlaceholderConfigurer beans registered [swaggerProperties,  
propertiesResolver], falling back to Environment  
2017-08-17 21:32:05.293 INFO 9152 --- [ost-startStop-1]  
o.s.web.context.ContextLoader : Root WebApplicationContext:  
initialization completed in 19518 ms  
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support  
was removed in 8.0

. \_\_\_\_ \_ \_\_ \_ \_  
/\ / _' \_\_ \_ () \_\_ \_\_ \_ \ \ \   
( ( )\__\_ | '\_ | '_| | '_ / _` | \ \ \   
\/ )| |)| | | | | || (| | ) ) ) )  
' | __| .\_\_|| |_|_| |_\__ , | / / / /  
=========|_|==============|_/=///_/  
:: Spring Boot :: (v1.4.3.RELEASE)

2017-08-17 21:32:28.030 WARN 9503 --- [main]  
figurationPropertiesBindingPostProcessor : Multiple  
PropertySourcesPlaceholderConfigurer beans registered [swaggerProperties,  
propertiesResolver], falling back to Environment

> **···**
>
> On Friday, 18 August 2017 00:36:42 UTC+4, William Pride wrote: \> \> Hi Danish, \> \> Looks like a CORS \> issue - Web \> Apps and App Builder make cross domain requests in order to communicate \> directly with Formplayer. Thus we configure Ajax and Spring to accept cross \> domain requests. I'm not sure whether this configuration would be \> sufficient in all browsers/servers (for example if these intentionally \> disallowed cross-domain requests). Does Formplayer log the requests? \> \> Cheers, \> Will \> \> On Wed, Aug 16, 2017 at 18:39 Danish Fayaz \<danish...@gmail.com \> wrote: \> \>\> Just now, I've also tried running formplayer seperately, it builds and \>\> runs all fine. But still I am getting the disallowed origin error. Options \>\> (pre flight requests failing). \>\> \>\> \>\> On Thursday, 17 August 2017 02:11:55 UTC+4, Danish Fayaz wrote: \>\>\> \>\>\> Thank you so much for your reply, yes william I've cloned Formplayer in \>\>\> the commcarehq root directory and updated submodules as instructed. \>\>\> Further I think the supervisor runs the formplayer so I changed the \>\>\> deployment config of supervisor in the \>\>\> services/supervisor/changeme\_supervisor\_formplayer\_spring.conf \>\>\> \>\>\> Changed the name of dir from formplayer\_build to formplayer (as per \>\>\> cloned). \>\>\> \>\>\> Still when I go to the application page I get the same error and when I \>\>\> click the start Icon in the App (in screenshot) I get the same error as in \>\>\> the screenshot. \>\>\> \>\>\> I checked the console, following errors occur: \>\>\> \>\>\> \*OPTIONS http://dev.commcare:8080/delete\_application\_dbs \>\>\> \>\>\> net::ERR\_CONNECTION\_REFUSED\* \>\>\> \*Disallowed origin http://dev.commcare \* \>\>\> \>\>\> Also when I click on Users (screenshot) I get the following in the \>\>\> console: \>\>\> \>\>\> \*GET \>\>\> http://dev.commcare/a/test.org/cloudcare/api/login\_as/users/?query=&limit=10&page=1 \>\>\> \>\>\> 500 (Internal Server Error)\* \>\>\> \>\>\> I'd appreciate it if someone can guide me on this. Thank you so much for \>\>\> the forum and the community's help. \>\>\> \>\>\> \>\>\> On Wednesday, 16 August 2017 16:06:24 UTC+4, William Pride wrote: \>\>\>\> \>\>\>\> Can you confirm that you have Formplayer running per the instructions \>\>\>\> here ? \>\>\>\> \>\>\>\> If so can you provide the exception you're seeing in your browser (and \>\>\>\> in Formplayer/HQ if such exists) \>\>\>\> \>\>\>\> Thanks, \>\>\>\> Will \>\>\>\> \>\>\>\> On Tue, Aug 15, 2017 at 6:45 PM, Danish Fayaz wrote: \>\>\>\> \>\>\>\>\> Hello, \>\>\>\>\> \>\>\>\>\> \>\>\>\>\> I am doing a research demo for my university and I actually need some of your assistance. \>\>\>\>\> \>\>\>\>\> \>\>\>\>\> I am currently trying to deploy the commcare production app from github on a server. I've followed the production instructions carefully and able to run the app. But when I make an application and try to edit it I get the following errors (screenshot attached). As if formplayer isn't running, also I see an ajax request to my domain gives an error of "Disallowed". \>\>\>\>\> \>\>\>\>\> \>\>\>\>\> \>\>\>\>\> \>\>\>\>\> Can you please guide me if there's a proper documentation available or where I need to look for. It means a lot to me. Thank you for your time. \>\>\>\>\> \>\>\>\>\> \>\>\>\>\> -- \>\>\>\>\> \>\>\>\>\> --- \>\>\>\>\> 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. \>\>\>\>\> \>\>\>\> \>\>\>\> -- \>\> \>\> --- \>\> 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. \>\> \>

---

<div class="post-metadata">

**Author:** ![Danish\_Fayaz](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@Danish\_Fayaz](https://forum.dimagi.com/u/Danish_Fayaz)\
**Post date:** [August 17, 2017, 11:10pm UTC](https://forum.dimagi.com/t/commcare-production-goes-well-but-errors-of-cloudcare/3673/7 "2017-08-17T23:10:27Z")

</div>

I was able to fix the formplayer-spring error. It was due to the run  
command (heap size was to be set). Now its running fine. But error is  
there, I checked forms-player (touchform server) it was giving similar  
error, so I set heap size and updated the jython.jar path in the command to  
load the right classpath. But I am getting following error when I run:

Note: I am using the recommended jython 2.5.3

Exception in thread "main" java.lang.NoClassDefFoundError:  
com/google/common/collect/MapMaker  
at org.python.core.PyType.fromClass(PyType.java:1280)  
at org.python.core.PyObject.(PyObject.java:66)  
at org.python.core.PyBuiltinCallable.(PyBuiltinCallable.java:21)  
at org.python.core.PyBuiltinMethod.(PyBuiltinMethod.java:16)  
at  
org.python.core.PyBuiltinMethodNarrow.(PyBuiltinMethodNarrow.java:24)  
at org.python.core.PyType$type\_\_\_subclasses\_\_\_exposer.(Unknown Source)  
at org.python.core.PyType$PyExposer.(Unknown Source)  
at org.python.core.PyType.(PyType.java)  
at org.python.core.PyObject.(PyObject.java:66)  
at org.python.core.PyBuiltinCallable.(PyBuiltinCallable.java:21)  
at org.python.core.PyBuiltinMethod.(PyBuiltinMethod.java:16)  
at  
org.python.core.PyBuiltinMethodNarrow.(PyBuiltinMethodNarrow.java:24)  
at  
org.python.core.PyDataDescr$getset\_descriptor\_\_\_get\_\_\_exposer.(Unknown  
Source)  
at org.python.core.PyDataDescr$PyExposer.(Unknown Source)  
at org.python.core.PyDataDescr.(PyDataDescr.java)  
at org.python.core.PyBuiltinCallable$PyExposer.(Unknown Source)  
at org.python.core.PyBuiltinCallable.(PyBuiltinCallable.java)  
at org.python.core.PyObject$PyExposer.(Unknown Source)  
at org.python.core.PyObject.(PyObject.java)  
at org.python.util.jython.run(jython.java:150)  
at org.python.util.jython.main(jython.java:129)  
Caused by: java.lang.ClassNotFoundException:  
com.google.common.collect.MapMaker  
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)  
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)  
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)  
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)  
... 21 more

> **···**
>
> On Friday, 18 August 2017 00:36:42 UTC+4, William Pride wrote: \> \> Hi Danish, \> \> Looks like a CORS \> issue - Web \> Apps and App Builder make cross domain requests in order to communicate \> directly with Formplayer. Thus we configure Ajax and Spring to accept cross \> domain requests. I'm not sure whether this configuration would be \> sufficient in all browsers/servers (for example if these intentionally \> disallowed cross-domain requests). Does Formplayer log the requests? \> \> Cheers, \> Will \> \> On Wed, Aug 16, 2017 at 18:39 Danish Fayaz \<danish...@gmail.com \> wrote: \> \>\> Just now, I've also tried running formplayer seperately, it builds and \>\> runs all fine. But still I am getting the disallowed origin error. Options \>\> (pre flight requests failing). \>\> \>\> \>\> On Thursday, 17 August 2017 02:11:55 UTC+4, Danish Fayaz wrote: \>\>\> \>\>\> Thank you so much for your reply, yes william I've cloned Formplayer in \>\>\> the commcarehq root directory and updated submodules as instructed. \>\>\> Further I think the supervisor runs the formplayer so I changed the \>\>\> deployment config of supervisor in the \>\>\> services/supervisor/changeme\_supervisor\_formplayer\_spring.conf \>\>\> \>\>\> Changed the name of dir from formplayer\_build to formplayer (as per \>\>\> cloned). \>\>\> \>\>\> Still when I go to the application page I get the same error and when I \>\>\> click the start Icon in the App (in screenshot) I get the same error as in \>\>\> the screenshot. \>\>\> \>\>\> I checked the console, following errors occur: \>\>\> \>\>\> \*OPTIONS http://dev.commcare:8080/delete\_application\_dbs \>\>\> \>\>\> net::ERR\_CONNECTION\_REFUSED\* \>\>\> \*Disallowed origin http://dev.commcare \* \>\>\> \>\>\> Also when I click on Users (screenshot) I get the following in the \>\>\> console: \>\>\> \>\>\> \*GET \>\>\> http://dev.commcare/a/test.org/cloudcare/api/login\_as/users/?query=&limit=10&page=1 \>\>\> \>\>\> 500 (Internal Server Error)\* \>\>\> \>\>\> I'd appreciate it if someone can guide me on this. Thank you so much for \>\>\> the forum and the community's help. \>\>\> \>\>\> \>\>\> On Wednesday, 16 August 2017 16:06:24 UTC+4, William Pride wrote: \>\>\>\> \>\>\>\> Can you confirm that you have Formplayer running per the instructions \>\>\>\> here ? \>\>\>\> \>\>\>\> If so can you provide the exception you're seeing in your browser (and \>\>\>\> in Formplayer/HQ if such exists) \>\>\>\> \>\>\>\> Thanks, \>\>\>\> Will \>\>\>\> \>\>\>\> On Tue, Aug 15, 2017 at 6:45 PM, Danish Fayaz wrote: \>\>\>\> \>\>\>\>\> Hello, \>\>\>\>\> \>\>\>\>\> \>\>\>\>\> I am doing a research demo for my university and I actually need some of your assistance. \>\>\>\>\> \>\>\>\>\> \>\>\>\>\> I am currently trying to deploy the commcare production app from github on a server. I've followed the production instructions carefully and able to run the app. But when I make an application and try to edit it I get the following errors (screenshot attached). As if formplayer isn't running, also I see an ajax request to my domain gives an error of "Disallowed". \>\>\>\>\> \>\>\>\>\> \>\>\>\>\> \>\>\>\>\> \>\>\>\>\> Can you please guide me if there's a proper documentation available or where I need to look for. It means a lot to me. Thank you for your time. \>\>\>\>\> \>\>\>\>\> \>\>\>\>\> -- \>\>\>\>\> \>\>\>\>\> --- \>\>\>\>\> 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. \>\>\>\>\> \>\>\>\> \>\>\>\> -- \>\> \>\> --- \>\> 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. \>\> \>

---

<div class="post-metadata">

**Author:** ![William\_Pride](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/w/b19c9b/32.png) [@William\_Pride](https://forum.dimagi.com/u/William_Pride)\
**Post date:** [August 18, 2017, 1:33pm UTC](https://forum.dimagi.com/t/commcare-production-goes-well-but-errors-of-cloudcare/3673/8 "2017-08-18T13:33:20Z")

</div>

Hi Danish,.

If you are running Formplayer then you shouldn't need to run Jython. The  
Formplayer code replaced the now-deprecated Jython code.

Cheers,  
Will

> **···**
>
> On Thu, Aug 17, 2017 at 7:10 PM, Danish Fayaz wrote:
> 
> > I was able to fix the formplayer-spring error. It was due to the run  
> > command (heap size was to be set). Now its running fine. But error is  
> > there, I checked forms-player (touchform server) it was giving similar  
> > error, so I set heap size and updated the jython.jar path in the command to  
> > load the right classpath. But I am getting following error when I run:
> > 
> > Note: I am using the recommended jython 2.5.3
> > 
> > Exception in thread "main" java.lang.NoClassDefFoundError:  
> > com/google/common/collect/MapMaker  
> > at org.python.core.PyType.fromClass(PyType.java:1280)  
> > at org.python.core.PyObject.(PyObject.java:66)  
> > at org.python.core.PyBuiltinCallable.(PyBuiltinCallable.java:21)  
> > at org.python.core.PyBuiltinMethod.(PyBuiltinMethod.java:16)  
> > at org.python.core.PyBuiltinMethodNarrow.(  
> > PyBuiltinMethodNarrow.java:24)  
> > at org.python.core.PyType$type\_\_\_subclasses\_\_\_exposer.(Unknown  
> > Source)  
> > at org.python.core.PyType$PyExposer.(Unknown Source)  
> > at org.python.core.PyType.(PyType.java)  
> > at org.python.core.PyObject.(PyObject.java:66)  
> > at org.python.core.PyBuiltinCallable.(PyBuiltinCallable.java:21)  
> > at org.python.core.PyBuiltinMethod.(PyBuiltinMethod.java:16)  
> > at org.python.core.PyBuiltinMethodNarrow.(  
> > PyBuiltinMethodNarrow.java:24)  
> > at org.python.core.PyDataDescr$getset\_descriptor\_\_\_get\_\_\_exposer.(Unknown  
> > Source)  
> > at org.python.core.PyDataDescr$PyExposer.(Unknown Source)  
> > at org.python.core.PyDataDescr.(PyDataDescr.java)  
> > at org.python.core.PyBuiltinCallable$PyExposer.(Unknown Source)  
> > at org.python.core.PyBuiltinCallable.(PyBuiltinCallable.java)  
> > at org.python.core.PyObject$PyExposer.(Unknown Source)  
> > at org.python.core.PyObject.(PyObject.java)  
> > at org.python.util.jython.run(jython.java:150)  
> > at org.python.util.jython.main(jython.java:129)  
> > Caused by: java.lang.ClassNotFoundException: com.google.common.collect.  
> > MapMaker  
> > at java.net.URLClassLoader.findClass(URLClassLoader.java:381)  
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:424)  
> > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)  
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:357)  
> > ... 21 more
> > 
> > On Friday, 18 August 2017 00:36:42 UTC+4, William Pride wrote:
> > 
> > > Hi Danish,
> > > 
> > > Looks like a CORS  
> > > [https://en.wikipedia.org/wiki/Cross-origin\_resource\_sharing](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing) issue -  
> > > Web Apps and App Builder make cross domain requests in order to communicate  
> > > directly with Formplayer. Thus we configure Ajax and Spring to accept cross  
> > > domain requests. I'm not sure whether this configuration would be  
> > > sufficient in all browsers/servers (for example if these intentionally  
> > > disallowed cross-domain requests). Does Formplayer log the requests?
> > > 
> > > Cheers,  
> > > Will
> > > 
> > > On Wed, Aug 16, 2017 at 18:39 Danish Fayaz [danish...@gmail.com](mailto:danish...@gmail.com) wrote:
> > > 
> > > > Just now, I've also tried running formplayer seperately, it builds and  
> > > > runs all fine. But still I am getting the disallowed origin error. Options  
> > > > (pre flight requests failing).
> > > > 
> > > > On Thursday, 17 August 2017 02:11:55 UTC+4, Danish Fayaz wrote:
> > > > 
> > > > > Thank you so much for your reply, yes william I've cloned Formplayer in  
> > > > > the commcarehq root directory and updated submodules as instructed.  
> > > > > Further I think the supervisor runs the formplayer so I changed the  
> > > > > deployment config of supervisor in the services/supervisor/changeme\_s  
> > > > > upervisor\_formplayer\_spring.conf
> > > > > 
> > > > > Changed the name of dir from formplayer\_build to formplayer (as per  
> > > > > cloned).
> > > > > 
> > > > > Still when I go to the application page I get the same error and when I  
> > > > > click the start Icon in the App (in screenshot) I get the same error as in  
> > > > > the screenshot.
> > > > > 
> > > > > I checked the console, following errors occur:
> > > > > 
> > > > > _OPTIONS [http://dev.commcare:8080/delete\_application\_dbs](http://dev.commcare:8080/delete_application_dbs)  
> > > > > [http://dev.commcare:8080/delete\_application\_dbs](http://dev.commcare:8080/delete_application_dbs)  
> > > > > net::ERR\_CONNECTION\_REFUSED_  
> > > > > _Disallowed origin [http://dev.commcare](http://dev.commcare) [http://dev.commcare](http://dev.commcare)_
> > > > > 
> > > > > Also when I click on Users (screenshot) I get the following in the  
> > > > > console:
> > > > > 
> > > > > _GET  
> > > > > [http://dev.commcare/a/test.org/cloudcare/api/login\_as/users/?query=&limit=10&page=1](http://dev.commcare/a/test.org/cloudcare/api/login_as/users/?query=&limit=10&page=1)  
> > > > > [http://dev.commcare/a/test.org/cloudcare/api/login\_as/users/?query=&limit=10&page=1](http://dev.commcare/a/test.org/cloudcare/api/login_as/users/?query=&limit=10&page=1)  
> > > > > 500 (Internal Server Error)_
> > > > > 
> > > > > I'd appreciate it if someone can guide me on this. Thank you so much  
> > > > > for the forum and the community's help.
> > > > > 
> > > > > On Wednesday, 16 August 2017 16:06:24 UTC+4, William Pride wrote:
> > > > > 
> > > > > > Can you confirm that you have Formplayer running per the instructions  
> > > > > > here [https://github.com/dimagi/formplayer](https://github.com/dimagi/formplayer)?
> > > > > > 
> > > > > > If so can you provide the exception you're seeing in your browser (and  
> > > > > > in Formplayer/HQ if such exists)
> > > > > > 
> > > > > > Thanks,  
> > > > > > Will
> > > > > > 
> > > > > > On Tue, Aug 15, 2017 at 6:45 PM, Danish Fayaz [danish...@gmail.com](mailto:danish...@gmail.com) wrote:
> > > > > > 
> > > > > > > Hello,
> > > > > > > 
> > > > > > > I am doing a research demo for my university and I actually need some of your assistance.
> > > > > > > 
> > > > > > > I am currently trying to deploy the commcare production app from github on a server. I've followed the production instructions carefully and able to run the app. But when I make an application and try to edit it I get the following errors (screenshot attached). As if formplayer isn't running, also I see an ajax request to my domain gives an error of "Disallowed".
> > > > > > > 
> > > > > > > [https://lh3.googleusercontent.com/-MYOSgjQEuck/WZN5ec\_WJTI/AAAAAAAAlts/f1OYNSNTy38AixhxaWZ-PmxnUIBqc8gTACLcBGAs/s1600/commcare-error.png](https://lh3.googleusercontent.com/-MYOSgjQEuck/WZN5ec_WJTI/AAAAAAAAlts/f1OYNSNTy38AixhxaWZ-PmxnUIBqc8gTACLcBGAs/s1600/commcare-error.png)
> > > > > > > 
> > > > > > > Can you please guide me if there's a proper documentation available or where I need to look for. It means a lot to me. Thank you for your time.
> > > > > > > 
> > > > > > > --
> > > > > > > 
> > > > > > > * * *
> > > > > > > 
> > > > > > > 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](mailto:commcare-developers+unsubscribe@googlegroups.com).  
> > > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > > 
> > > > > > --
> > > > 
> > > > * * *
> > > > 
> > > > 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](mailto:commcare-developers+unsubscribe@googlegroups.com).  
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --
> > 
> > * * *
> > 
> > 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](mailto:commcare-developers+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Danish\_Fayaz](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@Danish\_Fayaz](https://forum.dimagi.com/u/Danish_Fayaz)\
**Post date:** [August 19, 2017, 10:40pm UTC](https://forum.dimagi.com/t/commcare-production-goes-well-but-errors-of-cloudcare/3673/9 "2017-08-19T22:40:16Z")

</div>

Hey william,

You've been great help. Can I ask if you know why the web app (web form  
filling) menu link isn't appearing on top. Also the data sync via the  
mobile app in a survey isn't also appearing on the web app. Also my data  
exports are not working at all giving a "Server maintenance in progress.  
Please try again later. If the problem persists, please Report an Issue."  
warning after a few mins.

Appreciate the assist. Thanks

> **···**
>
> On Friday, 18 August 2017 17:33:22 UTC+4, William Pride wrote: \> \> Hi Danish,. \> \> If you are running Formplayer then you shouldn't need to run Jython. The \> Formplayer code replaced the now-deprecated Jython code. \> \> Cheers, \> Will \> \> On Thu, Aug 17, 2017 at 7:10 PM, Danish Fayaz \<danish...@gmail.com \> wrote: \> \>\> I was able to fix the formplayer-spring error. It was due to the run \>\> command (heap size was to be set). Now its running fine. But error is \>\> there, I checked forms-player (touchform server) it was giving similar \>\> error, so I set heap size and updated the jython.jar path in the command to \>\> load the right classpath. But I am getting following error when I run: \>\> \>\> Note: I am using the recommended jython 2.5.3 \>\> \>\> Exception in thread "main" java.lang.NoClassDefFoundError: \>\> com/google/common/collect/MapMaker \>\> at org.python.core.PyType.fromClass(PyType.java:1280) \>\> at org.python.core.PyObject.(PyObject.java:66) \>\> at org.python.core.PyBuiltinCallable.(PyBuiltinCallable.java:21) \>\> at org.python.core.PyBuiltinMethod.(PyBuiltinMethod.java:16) \>\> at \>\> org.python.core.PyBuiltinMethodNarrow.(PyBuiltinMethodNarrow.java:24) \>\> at org.python.core.PyType$type\_\_\_subclasses\_\_\_exposer.(Unknown \>\> Source) \>\> at org.python.core.PyType$PyExposer.(Unknown Source) \>\> at org.python.core.PyType.(PyType.java) \>\> at org.python.core.PyObject.(PyObject.java:66) \>\> at org.python.core.PyBuiltinCallable.(PyBuiltinCallable.java:21) \>\> at org.python.core.PyBuiltinMethod.(PyBuiltinMethod.java:16) \>\> at \>\> org.python.core.PyBuiltinMethodNarrow.(PyBuiltinMethodNarrow.java:24) \>\> at \>\> org.python.core.PyDataDescr$getset\_descriptor\_\_\_get\_\_\_exposer.(Unknown \>\> Source) \>\> at org.python.core.PyDataDescr$PyExposer.(Unknown Source) \>\> at org.python.core.PyDataDescr.(PyDataDescr.java) \>\> at org.python.core.PyBuiltinCallable$PyExposer.(Unknown Source) \>\> at org.python.core.PyBuiltinCallable.(PyBuiltinCallable.java) \>\> at org.python.core.PyObject$PyExposer.(Unknown Source) \>\> at org.python.core.PyObject.(PyObject.java) \>\> at org.python.util.jython.run(jython.java:150) \>\> at org.python.util.jython.main(jython.java:129) \>\> Caused by: java.lang.ClassNotFoundException: \>\> com.google.common.collect.MapMaker \>\> at java.net.URLClassLoader.findClass(URLClassLoader.java:381) \>\> at java.lang.ClassLoader.loadClass(ClassLoader.java:424) \>\> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) \>\> at java.lang.ClassLoader.loadClass(ClassLoader.java:357) \>\> ... 21 more \>\> \>\> \>\> \>\> On Friday, 18 August 2017 00:36:42 UTC+4, William Pride wrote: \>\>\> \>\>\> Hi Danish, \>\>\> \>\>\> Looks like a CORS \>\>\> issue - \>\>\> Web Apps and App Builder make cross domain requests in order to communicate \>\>\> directly with Formplayer. Thus we configure Ajax and Spring to accept cross \>\>\> domain requests. I'm not sure whether this configuration would be \>\>\> sufficient in all browsers/servers (for example if these intentionally \>\>\> disallowed cross-domain requests). Does Formplayer log the requests? \>\>\> \>\>\> Cheers, \>\>\> Will \>\>\> \>\>\> On Wed, Aug 16, 2017 at 18:39 Danish Fayaz wrote: \>\>\> \>\>\>\> Just now, I've also tried running formplayer seperately, it builds and \>\>\>\> runs all fine. But still I am getting the disallowed origin error. Options \>\>\>\> (pre flight requests failing). \>\>\>\> \>\>\>\> \>\>\>\> On Thursday, 17 August 2017 02:11:55 UTC+4, Danish Fayaz wrote: \>\>\>\>\> \>\>\>\>\> Thank you so much for your reply, yes william I've cloned Formplayer \>\>\>\>\> in the commcarehq root directory and updated submodules as instructed. \>\>\>\>\> Further I think the supervisor runs the formplayer so I changed the \>\>\>\>\> deployment config of supervisor in the services/supervisor/changeme\_s \>\>\>\>\> upervisor\_formplayer\_spring.conf \>\>\>\>\> \>\>\>\>\> Changed the name of dir from formplayer\_build to formplayer (as per \>\>\>\>\> cloned). \>\>\>\>\> \>\>\>\>\> Still when I go to the application page I get the same error and when \>\>\>\>\> I click the start Icon in the App (in screenshot) I get the same error as \>\>\>\>\> in the screenshot. \>\>\>\>\> \>\>\>\>\> I checked the console, following errors occur: \>\>\>\>\> \>\>\>\>\> \*OPTIONS http://dev.commcare:8080/delete\_application\_dbs \>\>\>\>\> \>\>\>\>\> net::ERR\_CONNECTION\_REFUSED\* \>\>\>\>\> \*Disallowed origin http://dev.commcare \* \>\>\>\>\> \>\>\>\>\> Also when I click on Users (screenshot) I get the following in the \>\>\>\>\> console: \>\>\>\>\> \>\>\>\>\> \*GET \>\>\>\>\> http://dev.commcare/a/test.org/cloudcare/api/login\_as/users/?query=&limit=10&page=1 \>\>\>\>\> \>\>\>\>\> 500 (Internal Server Error)\* \>\>\>\>\> \>\>\>\>\> I'd appreciate it if someone can guide me on this. Thank you so much \>\>\>\>\> for the forum and the community's help. \>\>\>\>\> \>\>\>\>\> \>\>\>\>\> On Wednesday, 16 August 2017 16:06:24 UTC+4, William Pride wrote: \>\>\>\>\>\> \>\>\>\>\>\> Can you confirm that you have Formplayer running per the instructions \>\>\>\>\>\> here ? \>\>\>\>\>\> \>\>\>\>\>\> If so can you provide the exception you're seeing in your browser \>\>\>\>\>\> (and in Formplayer/HQ if such exists) \>\>\>\>\>\> \>\>\>\>\>\> Thanks, \>\>\>\>\>\> Will \>\>\>\>\>\> \>\>\>\>\>\> On Tue, Aug 15, 2017 at 6:45 PM, Danish Fayaz wrote: \>\>\>\>\>\> \>\>\>\>\>\>\> Hello, \>\>\>\>\>\>\> \>\>\>\>\>\>\> \>\>\>\>\>\>\> I am doing a research demo for my university and I actually need some of your assistance. \>\>\>\>\>\>\> \>\>\>\>\>\>\> \>\>\>\>\>\>\> I am currently trying to deploy the commcare production app from github on a server. I've followed the production instructions carefully and able to run the app. But when I make an application and try to edit it I get the following errors (screenshot attached). As if formplayer isn't running, also I see an ajax request to my domain gives an error of "Disallowed". \>\>\>\>\>\>\> \>\>\>\>\>\>\> \>\>\>\>\>\>\> \>\>\>\>\>\>\> \>\>\>\>\>\>\> Can you please guide me if there's a proper documentation available or where I need to look for. It means a lot to me. Thank you for your time. \>\>\>\>\>\>\> \>\>\>\>\>\>\> \>\>\>\>\>\>\> -- \>\>\>\>\>\>\> \>\>\>\>\>\>\> --- \>\>\>\>\>\>\> 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. \>\>\>\>\>\>\> \>\>\>\>\>\> \>\>\>\>\>\> -- \>\>\>\> \>\>\>\> --- \>\>\>\> 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. \>\>\>\> \>\>\> -- \>\> \>\> --- \>\> 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. \>\> \> \>

---

<div class="post-metadata">

**Author:** ![William\_Pride](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/w/b19c9b/32.png) [@William\_Pride](https://forum.dimagi.com/u/William_Pride)\
**Post date:** [August 21, 2017, 11:28am UTC](https://forum.dimagi.com/t/commcare-production-goes-well-but-errors-of-cloudcare/3673/10 "2017-08-21T11:28:44Z")

</div>

Hi Danish,

Could you send pictures of what you mean about the "menu link" and "data  
sync" not appearing? Apologies but I'm not sure what's being referred to  
here.

The data exports issue sounds like a problem with Elastic Search - is ES  
running and error free?

Cheers,  
Will

> **···**
>
> On Sat, Aug 19, 2017 at 6:40 PM, Danish Fayaz wrote:
> 
> > Hey william,
> > 
> > You've been great help. Can I ask if you know why the web app (web form  
> > filling) menu link isn't appearing on top. Also the data sync via the  
> > mobile app in a survey isn't also appearing on the web app. Also my data  
> > exports are not working at all giving a "Server maintenance in progress.  
> > Please try again later. If the problem persists, please Report an Issue."  
> > warning after a few mins.
> > 
> > Appreciate the assist. Thanks
> > 
> > On Friday, 18 August 2017 17:33:22 UTC+4, William Pride wrote:
> > 
> > > Hi Danish,.
> > > 
> > > If you are running Formplayer then you shouldn't need to run Jython. The  
> > > Formplayer code replaced the now-deprecated Jython code.
> > > 
> > > Cheers,  
> > > Will
> > > 
> > > On Thu, Aug 17, 2017 at 7:10 PM, Danish Fayaz [danish...@gmail.com](mailto:danish...@gmail.com) wrote:
> > > 
> > > > I was able to fix the formplayer-spring error. It was due to the run  
> > > > command (heap size was to be set). Now its running fine. But error is  
> > > > there, I checked forms-player (touchform server) it was giving similar  
> > > > error, so I set heap size and updated the jython.jar path in the command to  
> > > > load the right classpath. But I am getting following error when I run:
> > > > 
> > > > Note: I am using the recommended jython 2.5.3
> > > > 
> > > > Exception in thread "main" java.lang.NoClassDefFoundError:  
> > > > com/google/common/collect/MapMaker  
> > > > at org.python.core.PyType.fromClass(PyType.java:1280)  
> > > > at org.python.core.PyObject.(PyObject.java:66)  
> > > > at org.python.core.PyBuiltinCallable.(PyBuiltinCallable.java:21)  
> > > > at org.python.core.PyBuiltinMethod.(PyBuiltinMethod.java:16)  
> > > > at org.python.core.PyBuiltinMethodNarrow.(PyBuiltinMethod  
> > > > Narrow.java:24)  
> > > > at org.python.core.PyType$type\_\_\_subclasses\_\_\_exposer.(Unknown  
> > > > Source)  
> > > > at org.python.core.PyType$PyExposer.(Unknown Source)  
> > > > at org.python.core.PyType.(PyType.java)  
> > > > at org.python.core.PyObject.(PyObject.java:66)  
> > > > at org.python.core.PyBuiltinCallable.(PyBuiltinCallable.java:21)  
> > > > at org.python.core.PyBuiltinMethod.(PyBuiltinMethod.java:16)  
> > > > at org.python.core.PyBuiltinMethodNarrow.(PyBuiltinMethod  
> > > > Narrow.java:24)  
> > > > at org.python.core.PyDataDescr$getset\_descriptor\_\_\_get\_\_\_exposer.(Unknown  
> > > > Source)  
> > > > at org.python.core.PyDataDescr$PyExposer.(Unknown Source)  
> > > > at org.python.core.PyDataDescr.(PyDataDescr.java)  
> > > > at org.python.core.PyBuiltinCallable$PyExposer.(Unknown Source)  
> > > > at org.python.core.PyBuiltinCallable.(PyBuiltinCallable.java)  
> > > > at org.python.core.PyObject$PyExposer.(Unknown Source)  
> > > > at org.python.core.PyObject.(PyObject.java)  
> > > > at org.python.util.jython.run(jython.java:150)  
> > > > at org.python.util.jython.main(jython.java:129)  
> > > > Caused by: java.lang.ClassNotFoundException:  
> > > > com.google.common.collect.MapMaker  
> > > > at java.net.URLClassLoader.findClass(URLClassLoader.java:381)  
> > > > at java.lang.ClassLoader.loadClass(ClassLoader.java:424)  
> > > > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)  
> > > > at java.lang.ClassLoader.loadClass(ClassLoader.java:357)  
> > > > ... 21 more
> > > > 
> > > > On Friday, 18 August 2017 00:36:42 UTC+4, William Pride wrote:
> > > > 
> > > > > Hi Danish,
> > > > > 
> > > > > Looks like a CORS  
> > > > > [https://en.wikipedia.org/wiki/Cross-origin\_resource\_sharing](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing) issue -  
> > > > > Web Apps and App Builder make cross domain requests in order to communicate  
> > > > > directly with Formplayer. Thus we configure Ajax and Spring to accept cross  
> > > > > domain requests. I'm not sure whether this configuration would be  
> > > > > sufficient in all browsers/servers (for example if these intentionally  
> > > > > disallowed cross-domain requests). Does Formplayer log the requests?
> > > > > 
> > > > > Cheers,  
> > > > > Will
> > > > > 
> > > > > On Wed, Aug 16, 2017 at 18:39 Danish Fayaz [danish...@gmail.com](mailto:danish...@gmail.com) wrote:
> > > > > 
> > > > > > Just now, I've also tried running formplayer seperately, it builds and  
> > > > > > runs all fine. But still I am getting the disallowed origin error. Options  
> > > > > > (pre flight requests failing).
> > > > > > 
> > > > > > On Thursday, 17 August 2017 02:11:55 UTC+4, Danish Fayaz wrote:
> > > > > > 
> > > > > > > Thank you so much for your reply, yes william I've cloned Formplayer  
> > > > > > > in the commcarehq root directory and updated submodules as instructed.  
> > > > > > > Further I think the supervisor runs the formplayer so I changed the  
> > > > > > > deployment config of supervisor in the services/supervisor/changeme\_s  
> > > > > > > upervisor\_formplayer\_spring.conf
> > > > > > > 
> > > > > > > Changed the name of dir from formplayer\_build to formplayer (as per  
> > > > > > > cloned).
> > > > > > > 
> > > > > > > Still when I go to the application page I get the same error and when  
> > > > > > > I click the start Icon in the App (in screenshot) I get the same error as  
> > > > > > > in the screenshot.
> > > > > > > 
> > > > > > > I checked the console, following errors occur:
> > > > > > > 
> > > > > > > _OPTIONS [http://dev.commcare:8080/delete\_application\_dbs](http://dev.commcare:8080/delete_application_dbs)  
> > > > > > > [http://dev.commcare:8080/delete\_application\_dbs](http://dev.commcare:8080/delete_application_dbs)  
> > > > > > > net::ERR\_CONNECTION\_REFUSED_  
> > > > > > > _Disallowed origin [http://dev.commcare](http://dev.commcare) [http://dev.commcare](http://dev.commcare)_
> > > > > > > 
> > > > > > > Also when I click on Users (screenshot) I get the following in the  
> > > > > > > console:
> > > > > > > 
> > > > > > > _GET  
> > > > > > > [http://dev.commcare/a/test.org/cloudcare/api/login\_as/users/?query=&limit=10&page=1](http://dev.commcare/a/test.org/cloudcare/api/login_as/users/?query=&limit=10&page=1)  
> > > > > > > [http://dev.commcare/a/test.org/cloudcare/api/login\_as/users/?query=&limit=10&page=1](http://dev.commcare/a/test.org/cloudcare/api/login_as/users/?query=&limit=10&page=1)  
> > > > > > > 500 (Internal Server Error)_
> > > > > > > 
> > > > > > > I'd appreciate it if someone can guide me on this. Thank you so much  
> > > > > > > for the forum and the community's help.
> > > > > > > 
> > > > > > > On Wednesday, 16 August 2017 16:06:24 UTC+4, William Pride wrote:
> > > > > > > 
> > > > > > > > Can you confirm that you have Formplayer running per the  
> > > > > > > > instructions here [https://github.com/dimagi/formplayer](https://github.com/dimagi/formplayer)?
> > > > > > > > 
> > > > > > > > If so can you provide the exception you're seeing in your browser  
> > > > > > > > (and in Formplayer/HQ if such exists)
> > > > > > > > 
> > > > > > > > Thanks,  
> > > > > > > > Will
> > > > > > > > 
> > > > > > > > On Tue, Aug 15, 2017 at 6:45 PM, Danish Fayaz [danish...@gmail.com](mailto:danish...@gmail.com) wrote:
> > > > > > > > 
> > > > > > > > > Hello,
> > > > > > > > > 
> > > > > > > > > I am doing a research demo for my university and I actually need some of your assistance.
> > > > > > > > > 
> > > > > > > > > I am currently trying to deploy the commcare production app from github on a server. I've followed the production instructions carefully and able to run the app. But when I make an application and try to edit it I get the following errors (screenshot attached). As if formplayer isn't running, also I see an ajax request to my domain gives an error of "Disallowed".
> > > > > > > > > 
> > > > > > > > > [https://lh3.googleusercontent.com/-MYOSgjQEuck/WZN5ec\_WJTI/AAAAAAAAlts/f1OYNSNTy38AixhxaWZ-PmxnUIBqc8gTACLcBGAs/s1600/commcare-error.png](https://lh3.googleusercontent.com/-MYOSgjQEuck/WZN5ec_WJTI/AAAAAAAAlts/f1OYNSNTy38AixhxaWZ-PmxnUIBqc8gTACLcBGAs/s1600/commcare-error.png)
> > > > > > > > > 
> > > > > > > > > Can you please guide me if there's a proper documentation available or where I need to look for. It means a lot to me. Thank you for your time.
> > > > > > > > > 
> > > > > > > > > --
> > > > > > > > > 
> > > > > > > > > * * *
> > > > > > > > > 
> > > > > > > > > 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](mailto:commcare-developers+unsubscribe@googlegroups.com).  
> > > > > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > > > > 
> > > > > > > > --
> > > > > > 
> > > > > > * * *
> > > > > > 
> > > > > > 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](mailto:commcare-developers+unsubscribe@googlegroups.com).  
> > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > 
> > > > > --
> > > > 
> > > > * * *
> > > > 
> > > > 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](mailto:commcare-developers+unsubscribe@googlegroups.com).  
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --
> > 
> > * * *
> > 
> > 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](mailto:commcare-developers+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Danish\_Fayaz](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@Danish\_Fayaz](https://forum.dimagi.com/u/Danish_Fayaz)\
**Post date:** [August 21, 2017, 10:05pm UTC](https://forum.dimagi.com/t/commcare-production-goes-well-but-errors-of-cloudcare/3673/11 "2017-08-21T22:05:35Z")

</div>

[https://lh3.googleusercontent.com/-7cqEUWWZnOA/WZtYwKj5pnI/AAAAAAAAmMM/y6UbrIEKz34munz9yCCYGWNpUlY-4J6RgCLcBGAs/s1600/commcare.png](https://lh3.googleusercontent.com/-7cqEUWWZnOA/WZtYwKj5pnI/AAAAAAAAmMM/y6UbrIEKz34munz9yCCYGWNpUlY-4J6RgCLcBGAs/s1600/commcare.png)

William,

[https://lh3.googleusercontent.com/-P52KFjyBLTo/WZtYuNS8EPI/AAAAAAAAmMI/OFTKYaqqg9ciT1t0e8XmXEN-a6lSHqvJgCLcBGAs/s1600/local.png](https://lh3.googleusercontent.com/-P52KFjyBLTo/WZtYuNS8EPI/AAAAAAAAmMI/OFTKYaqqg9ciT1t0e8XmXEN-a6lSHqvJgCLcBGAs/s1600/local.png)  
I really appreciate you taking time out and getting back at me. Attached  
are screenshots of commcare official and my production setup. I've marked  
the missing features.

The data sync is basically from mobile. Like I downloaded the commcare  
android app from playstore, used the barcodes when publishing my  
application to download them on the android app. Then after I filled a  
survey / case I sync it to the web to push the data. But I don't see it in  
the web platform. Although I see a message on mobile that the data was  
synced perfectly.

> **···**
>
> On Monday, 21 August 2017 15:28:47 UTC+4, William Pride wrote: \> \> Hi Danish, \> \> Could you send pictures of what you mean about the "menu link" and "data \> sync" not appearing? Apologies but I'm not sure what's being referred to \> here. \> \> The data exports issue sounds like a problem with Elastic Search - is ES \> running and error free? \> \> Cheers, \> Will \> \> On Sat, Aug 19, 2017 at 6:40 PM, Danish Fayaz \<danish...@gmail.com \> wrote: \> \>\> Hey william, \>\> \>\> You've been great help. Can I ask if you know why the web app (web form \>\> filling) menu link isn't appearing on top. Also the data sync via the \>\> mobile app in a survey isn't also appearing on the web app. Also my data \>\> exports are not working at all giving a "Server maintenance in progress. \>\> Please try again later. If the problem persists, please Report an Issue." \>\> warning after a few mins. \>\> \>\> Appreciate the assist. Thanks \>\> \>\> On Friday, 18 August 2017 17:33:22 UTC+4, William Pride wrote: \>\>\> \>\>\> Hi Danish,. \>\>\> \>\>\> If you are running Formplayer then you shouldn't need to run Jython. The \>\>\> Formplayer code replaced the now-deprecated Jython code. \>\>\> \>\>\> Cheers, \>\>\> Will \>\>\> \>\>\> On Thu, Aug 17, 2017 at 7:10 PM, Danish Fayaz wrote: \>\>\> \>\>\>\> I was able to fix the formplayer-spring error. It was due to the run \>\>\>\> command (heap size was to be set). Now its running fine. But error is \>\>\>\> there, I checked forms-player (touchform server) it was giving similar \>\>\>\> error, so I set heap size and updated the jython.jar path in the command to \>\>\>\> load the right classpath. But I am getting following error when I run: \>\>\>\> \>\>\>\> Note: I am using the recommended jython 2.5.3 \>\>\>\> \>\>\>\> Exception in thread "main" java.lang.NoClassDefFoundError: \>\>\>\> com/google/common/collect/MapMaker \>\>\>\> at org.python.core.PyType.fromClass(PyType.java:1280) \>\>\>\> at org.python.core.PyObject.(PyObject.java:66) \>\>\>\> at org.python.core.PyBuiltinCallable.(PyBuiltinCallable.java:21) \>\>\>\> at org.python.core.PyBuiltinMethod.(PyBuiltinMethod.java:16) \>\>\>\> at \>\>\>\> org.python.core.PyBuiltinMethodNarrow.(PyBuiltinMethodNarrow.java:24) \>\>\>\> at org.python.core.PyType$type\_\_\_subclasses\_\_\_exposer.(Unknown \>\>\>\> Source) \>\>\>\> at org.python.core.PyType$PyExposer.(Unknown Source) \>\>\>\> at org.python.core.PyType.(PyType.java) \>\>\>\> at org.python.core.PyObject.(PyObject.java:66) \>\>\>\> at org.python.core.PyBuiltinCallable.(PyBuiltinCallable.java:21) \>\>\>\> at org.python.core.PyBuiltinMethod.(PyBuiltinMethod.java:16) \>\>\>\> at \>\>\>\> org.python.core.PyBuiltinMethodNarrow.(PyBuiltinMethodNarrow.java:24) \>\>\>\> at \>\>\>\> org.python.core.PyDataDescr$getset\_descriptor\_\_\_get\_\_\_exposer.(Unknown \>\>\>\> Source) \>\>\>\> at org.python.core.PyDataDescr$PyExposer.(Unknown Source) \>\>\>\> at org.python.core.PyDataDescr.(PyDataDescr.java) \>\>\>\> at org.python.core.PyBuiltinCallable$PyExposer.(Unknown Source) \>\>\>\> at org.python.core.PyBuiltinCallable.(PyBuiltinCallable.java) \>\>\>\> at org.python.core.PyObject$PyExposer.(Unknown Source) \>\>\>\> at org.python.core.PyObject.(PyObject.java) \>\>\>\> at org.python.util.jython.run(jython.java:150) \>\>\>\> at org.python.util.jython.main(jython.java:129) \>\>\>\> Caused by: java.lang.ClassNotFoundException: \>\>\>\> com.google.common.collect.MapMaker \>\>\>\> at java.net.URLClassLoader.findClass(URLClassLoader.java:381) \>\>\>\> at java.lang.ClassLoader.loadClass(ClassLoader.java:424) \>\>\>\> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) \>\>\>\> at java.lang.ClassLoader.loadClass(ClassLoader.java:357) \>\>\>\> ... 21 more \>\>\>\> \>\>\>\> \>\>\>\> \>\>\>\> On Friday, 18 August 2017 00:36:42 UTC+4, William Pride wrote: \>\>\>\>\> \>\>\>\>\> Hi Danish, \>\>\>\>\> \>\>\>\>\> Looks like a CORS \>\>\>\>\> issue - \>\>\>\>\> Web Apps and App Builder make cross domain requests in order to communicate \>\>\>\>\> directly with Formplayer. Thus we configure Ajax and Spring to accept cross \>\>\>\>\> domain requests. I'm not sure whether this configuration would be \>\>\>\>\> sufficient in all browsers/servers (for example if these intentionally \>\>\>\>\> disallowed cross-domain requests). Does Formplayer log the requests? \>\>\>\>\> \>\>\>\>\> Cheers, \>\>\>\>\> Will \>\>\>\>\> \>\>\>\>\> On Wed, Aug 16, 2017 at 18:39 Danish Fayaz wrote: \>\>\>\>\> \>\>\>\>\>\> Just now, I've also tried running formplayer seperately, it builds \>\>\>\>\>\> and runs all fine. But still I am getting the disallowed origin error. \>\>\>\>\>\> Options (pre flight requests failing). \>\>\>\>\>\> \>\>\>\>\>\> \>\>\>\>\>\> On Thursday, 17 August 2017 02:11:55 UTC+4, Danish Fayaz wrote: \>\>\>\>\>\>\> \>\>\>\>\>\>\> Thank you so much for your reply, yes william I've cloned Formplayer \>\>\>\>\>\>\> in the commcarehq root directory and updated submodules as instructed. \>\>\>\>\>\>\> Further I think the supervisor runs the formplayer so I changed the \>\>\>\>\>\>\> deployment config of supervisor in the services/supervisor/changeme\_s \>\>\>\>\>\>\> upervisor\_formplayer\_spring.conf \>\>\>\>\>\>\> \>\>\>\>\>\>\> Changed the name of dir from formplayer\_build to formplayer (as per \>\>\>\>\>\>\> cloned). \>\>\>\>\>\>\> \>\>\>\>\>\>\> Still when I go to the application page I get the same error and \>\>\>\>\>\>\> when I click the start Icon in the App (in screenshot) I get the same error \>\>\>\>\>\>\> as in the screenshot. \>\>\>\>\>\>\> \>\>\>\>\>\>\> I checked the console, following errors occur: \>\>\>\>\>\>\> \>\>\>\>\>\>\> \*OPTIONS http://dev.commcare:8080/delete\_application\_dbs \>\>\>\>\>\>\> \>\>\>\>\>\>\> net::ERR\_CONNECTION\_REFUSED\* \>\>\>\>\>\>\> \*Disallowed origin http://dev.commcare \* \>\>\>\>\>\>\> \>\>\>\>\>\>\> Also when I click on Users (screenshot) I get the following in the \>\>\>\>\>\>\> console: \>\>\>\>\>\>\> \>\>\>\>\>\>\> \*GET \>\>\>\>\>\>\> http://dev.commcare/a/test.org/cloudcare/api/login\_as/users/?query=&limit=10&page=1 \>\>\>\>\>\>\> \>\>\>\>\>\>\> 500 (Internal Server Error)\* \>\>\>\>\>\>\> \>\>\>\>\>\>\> I'd appreciate it if someone can guide me on this. Thank you so much \>\>\>\>\>\>\> for the forum and the community's help. \>\>\>\>\>\>\> \>\>\>\>\>\>\> \>\>\>\>\>\>\> On Wednesday, 16 August 2017 16:06:24 UTC+4, William Pride wrote: \>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\> Can you confirm that you have Formplayer running per the \>\>\>\>\>\>\>\> instructions here ? \>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\> If so can you provide the exception you're seeing in your browser \>\>\>\>\>\>\>\> (and in Formplayer/HQ if such exists) \>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\> Thanks, \>\>\>\>\>\>\>\> Will \>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\> On Tue, Aug 15, 2017 at 6:45 PM, Danish Fayaz wrote: \>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\> Hello, \>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\> I am doing a research demo for my university and I actually need some of your assistance. \>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\> I am currently trying to deploy the commcare production app from github on a server. I've followed the production instructions carefully and able to run the app. But when I make an application and try to edit it I get the following errors (screenshot attached). As if formplayer isn't running, also I see an ajax request to my domain gives an error of "Disallowed". \>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\> Can you please guide me if there's a proper documentation available or where I need to look for. It means a lot to me. Thank you for your time. \>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\> -- \>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\> --- \>\>\>\>\>\>\>\>\> 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. \>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\> -- \>\>\>\>\>\> \>\>\>\>\>\> --- \>\>\>\>\>\> 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. \>\>\>\>\>\> \>\>\>\>\> -- \>\>\>\> \>\>\>\> --- \>\>\>\> 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. \>\>\>\> \>\>\> \>\>\> -- \>\> \>\> --- \>\> 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. \>\> \> \>

---

<div class="post-metadata">

**Author:** ![William\_Pride](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/w/b19c9b/32.png) [@William\_Pride](https://forum.dimagi.com/u/William_Pride)\
**Post date:** [August 22, 2017, 12:15pm UTC](https://forum.dimagi.com/t/commcare-production-goes-well-but-errors-of-cloudcare/3673/12 "2017-08-22T12:15:04Z")

</div>

Hi Danish,

In order for those features to appear you'll need your web user to have the  
correct subscription level and permissions  
[https://confluence.dimagi.com/display/commcarepublic/CommCareHQ+Web+Users](https://confluence.dimagi.com/display/commcarepublic/CommCareHQ+Web+Users).

As to your data - does this data appear in your databases (Couch or  
PostGres)? If yes and it doesn't appear in your reports, this could be an  
Elastic issue. If not then the issue could be with your host configuration

- you'll want to make sure that your CommCare application's PostURL points  
correctly to your instance and that you're able to receive POST requests at  
this URL.

Cheers,  
Will

> **···**
>
> On Mon, Aug 21, 2017 at 6:05 PM, Danish Fayaz wrote:
> 
> > [https://lh3.googleusercontent.com/-7cqEUWWZnOA/WZtYwKj5pnI/AAAAAAAAmMM/y6UbrIEKz34munz9yCCYGWNpUlY-4J6RgCLcBGAs/s1600/commcare.png](https://lh3.googleusercontent.com/-7cqEUWWZnOA/WZtYwKj5pnI/AAAAAAAAmMM/y6UbrIEKz34munz9yCCYGWNpUlY-4J6RgCLcBGAs/s1600/commcare.png)
> > 
> > William,
> > 
> > [https://lh3.googleusercontent.com/-P52KFjyBLTo/WZtYuNS8EPI/AAAAAAAAmMI/OFTKYaqqg9ciT1t0e8XmXEN-a6lSHqvJgCLcBGAs/s1600/local.png](https://lh3.googleusercontent.com/-P52KFjyBLTo/WZtYuNS8EPI/AAAAAAAAmMI/OFTKYaqqg9ciT1t0e8XmXEN-a6lSHqvJgCLcBGAs/s1600/local.png)  
> > I really appreciate you taking time out and getting back at me. Attached  
> > are screenshots of commcare official and my production setup. I've marked  
> > the missing features.
> > 
> > The data sync is basically from mobile. Like I downloaded the commcare  
> > android app from playstore, used the barcodes when publishing my  
> > application to download them on the android app. Then after I filled a  
> > survey / case I sync it to the web to push the data. But I don't see it in  
> > the web platform. Although I see a message on mobile that the data was  
> > synced perfectly.
> > 
> > On Monday, 21 August 2017 15:28:47 UTC+4, William Pride wrote:
> > 
> > > Hi Danish,
> > > 
> > > Could you send pictures of what you mean about the "menu link" and "data  
> > > sync" not appearing? Apologies but I'm not sure what's being referred to  
> > > here.
> > > 
> > > The data exports issue sounds like a problem with Elastic Search - is ES  
> > > running and error free?
> > > 
> > > Cheers,  
> > > Will
> > > 
> > > On Sat, Aug 19, 2017 at 6:40 PM, Danish Fayaz [danish...@gmail.com](mailto:danish...@gmail.com) wrote:
> > > 
> > > > Hey william,
> > > > 
> > > > You've been great help. Can I ask if you know why the web app (web form  
> > > > filling) menu link isn't appearing on top. Also the data sync via the  
> > > > mobile app in a survey isn't also appearing on the web app. Also my data  
> > > > exports are not working at all giving a "Server maintenance in progress.  
> > > > Please try again later. If the problem persists, please Report an Issue."  
> > > > warning after a few mins.
> > > > 
> > > > Appreciate the assist. Thanks
> > > > 
> > > > On Friday, 18 August 2017 17:33:22 UTC+4, William Pride wrote:
> > > > 
> > > > > Hi Danish,.
> > > > > 
> > > > > If you are running Formplayer then you shouldn't need to run Jython.  
> > > > > The Formplayer code replaced the now-deprecated Jython code.
> > > > > 
> > > > > Cheers,  
> > > > > Will
> > > > > 
> > > > > On Thu, Aug 17, 2017 at 7:10 PM, Danish Fayaz [danish...@gmail.com](mailto:danish...@gmail.com) wrote:
> > > > > 
> > > > > > I was able to fix the formplayer-spring error. It was due to the run  
> > > > > > command (heap size was to be set). Now its running fine. But error is  
> > > > > > there, I checked forms-player (touchform server) it was giving similar  
> > > > > > error, so I set heap size and updated the jython.jar path in the command to  
> > > > > > load the right classpath. But I am getting following error when I run:
> > > > > > 
> > > > > > Note: I am using the recommended jython 2.5.3
> > > > > > 
> > > > > > Exception in thread "main" java.lang.NoClassDefFoundError:  
> > > > > > com/google/common/collect/MapMaker  
> > > > > > at org.python.core.PyType.fromClass(PyType.java:1280)  
> > > > > > at org.python.core.PyObject.(PyObject.java:66)  
> > > > > > at org.python.core.PyBuiltinCallable.(PyBuiltinCallable.java:21)  
> > > > > > at org.python.core.PyBuiltinMethod.(PyBuiltinMethod.java:16)  
> > > > > > at org.python.core.PyBuiltinMethodNarrow.(PyBuiltinMethod  
> > > > > > Narrow.java:24)  
> > > > > > at org.python.core.PyType$type\_\_\_subclasses\_\_\_exposer.(Unknown  
> > > > > > Source)  
> > > > > > at org.python.core.PyType$PyExposer.(Unknown Source)  
> > > > > > at org.python.core.PyType.(PyType.java)  
> > > > > > at org.python.core.PyObject.(PyObject.java:66)  
> > > > > > at org.python.core.PyBuiltinCallable.(PyBuiltinCallable.java:21)  
> > > > > > at org.python.core.PyBuiltinMethod.(PyBuiltinMethod.java:16)  
> > > > > > at org.python.core.PyBuiltinMethodNarrow.(PyBuiltinMethod  
> > > > > > Narrow.java:24)  
> > > > > > at org.python.core.PyDataDescr$getset\_descriptor\_\_\_get\_\_\_exposer.(Unknown  
> > > > > > Source)  
> > > > > > at org.python.core.PyDataDescr$PyExposer.(Unknown Source)  
> > > > > > at org.python.core.PyDataDescr.(PyDataDescr.java)  
> > > > > > at org.python.core.PyBuiltinCallable$PyExposer.(Unknown Source)  
> > > > > > at org.python.core.PyBuiltinCallable.(PyBuiltinCallable.java)  
> > > > > > at org.python.core.PyObject$PyExposer.(Unknown Source)  
> > > > > > at org.python.core.PyObject.(PyObject.java)  
> > > > > > at org.python.util.jython.run(jython.java:150)  
> > > > > > at org.python.util.jython.main(jython.java:129)  
> > > > > > Caused by: java.lang.ClassNotFoundException:  
> > > > > > com.google.common.collect.MapMaker  
> > > > > > at java.net.URLClassLoader.findClass(URLClassLoader.java:381)  
> > > > > > at java.lang.ClassLoader.loadClass(ClassLoader.java:424)  
> > > > > > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)  
> > > > > > at java.lang.ClassLoader.loadClass(ClassLoader.java:357)  
> > > > > > ... 21 more
> > > > > > 
> > > > > > On Friday, 18 August 2017 00:36:42 UTC+4, William Pride wrote:
> > > > > > 
> > > > > > > Hi Danish,
> > > > > > > 
> > > > > > > Looks like a CORS  
> > > > > > > [https://en.wikipedia.org/wiki/Cross-origin\_resource\_sharing](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing) issue
> > > > > > > 
> > > > > > > - Web Apps and App Builder make cross domain requests in order to  
> > > > > > > communicate directly with Formplayer. Thus we configure Ajax and Spring to  
> > > > > > > accept cross domain requests. I'm not sure whether this configuration would  
> > > > > > > be sufficient in all browsers/servers (for example if these intentionally  
> > > > > > > disallowed cross-domain requests). Does Formplayer log the requests?
> > > > > > > 
> > > > > > > Cheers,  
> > > > > > > Will
> > > > > > > 
> > > > > > > On Wed, Aug 16, 2017 at 18:39 Danish Fayaz [danish...@gmail.com](mailto:danish...@gmail.com) wrote:
> > > > > > > 
> > > > > > > > Just now, I've also tried running formplayer seperately, it builds  
> > > > > > > > and runs all fine. But still I am getting the disallowed origin error.  
> > > > > > > > Options (pre flight requests failing).
> > > > > > > > 
> > > > > > > > On Thursday, 17 August 2017 02:11:55 UTC+4, Danish Fayaz wrote:
> > > > > > > > 
> > > > > > > > > Thank you so much for your reply, yes william I've cloned  
> > > > > > > > > Formplayer in the commcarehq root directory and updated submodules as  
> > > > > > > > > instructed.  
> > > > > > > > > Further I think the supervisor runs the formplayer so I changed the  
> > > > > > > > > deployment config of supervisor in the services/supervisor/changeme\_s  
> > > > > > > > > upervisor\_formplayer\_spring.conf
> > > > > > > > > 
> > > > > > > > > Changed the name of dir from formplayer\_build to formplayer (as per  
> > > > > > > > > cloned).
> > > > > > > > > 
> > > > > > > > > Still when I go to the application page I get the same error and  
> > > > > > > > > when I click the start Icon in the App (in screenshot) I get the same error  
> > > > > > > > > as in the screenshot.
> > > > > > > > > 
> > > > > > > > > I checked the console, following errors occur:
> > > > > > > > > 
> > > > > > > > > _OPTIONS [http://dev.commcare:8080/delete\_application\_dbs](http://dev.commcare:8080/delete_application_dbs)  
> > > > > > > > > [http://dev.commcare:8080/delete\_application\_dbs](http://dev.commcare:8080/delete_application_dbs)  
> > > > > > > > > net::ERR\_CONNECTION\_REFUSED_  
> > > > > > > > > _Disallowed origin [http://dev.commcare](http://dev.commcare) [http://dev.commcare](http://dev.commcare)_
> > > > > > > > > 
> > > > > > > > > Also when I click on Users (screenshot) I get the following in the  
> > > > > > > > > console:
> > > > > > > > > 
> > > > > > > > > _GET  
> > > > > > > > > [http://dev.commcare/a/test.org/cloudcare/api/login\_as/users/?query=&limit=10&page=1](http://dev.commcare/a/test.org/cloudcare/api/login_as/users/?query=&limit=10&page=1)  
> > > > > > > > > [http://dev.commcare/a/test.org/cloudcare/api/login\_as/users/?query=&limit=10&page=1](http://dev.commcare/a/test.org/cloudcare/api/login_as/users/?query=&limit=10&page=1)  
> > > > > > > > > 500 (Internal Server Error)_
> > > > > > > > > 
> > > > > > > > > I'd appreciate it if someone can guide me on this. Thank you so  
> > > > > > > > > much for the forum and the community's help.
> > > > > > > > > 
> > > > > > > > > On Wednesday, 16 August 2017 16:06:24 UTC+4, William Pride wrote:
> > > > > > > > > 
> > > > > > > > > > Can you confirm that you have Formplayer running per the  
> > > > > > > > > > instructions here [https://github.com/dimagi/formplayer](https://github.com/dimagi/formplayer)?
> > > > > > > > > > 
> > > > > > > > > > If so can you provide the exception you're seeing in your browser  
> > > > > > > > > > (and in Formplayer/HQ if such exists)
> > > > > > > > > > 
> > > > > > > > > > Thanks,  
> > > > > > > > > > Will
> > > > > > > > > > 
> > > > > > > > > > On Tue, Aug 15, 2017 at 6:45 PM, Danish Fayaz \<[danish...@gmail.com](mailto:danish...@gmail.com) wrote:
> > > > > > > > > > 
> > > > > > > > > > > Hello,
> > > > > > > > > > > 
> > > > > > > > > > > I am doing a research demo for my university and I actually need some of your assistance.
> > > > > > > > > > > 
> > > > > > > > > > > I am currently trying to deploy the commcare production app from github on a server. I've followed the production instructions carefully and able to run the app. But when I make an application and try to edit it I get the following errors (screenshot attached). As if formplayer isn't running, also I see an ajax request to my domain gives an error of "Disallowed".
> > > > > > > > > > > 
> > > > > > > > > > > [https://lh3.googleusercontent.com/-MYOSgjQEuck/WZN5ec\_WJTI/AAAAAAAAlts/f1OYNSNTy38AixhxaWZ-PmxnUIBqc8gTACLcBGAs/s1600/commcare-error.png](https://lh3.googleusercontent.com/-MYOSgjQEuck/WZN5ec_WJTI/AAAAAAAAlts/f1OYNSNTy38AixhxaWZ-PmxnUIBqc8gTACLcBGAs/s1600/commcare-error.png)
> > > > > > > > > > > 
> > > > > > > > > > > Can you please guide me if there's a proper documentation available or where I need to look for. It means a lot to me. Thank you for your time.
> > > > > > > > > > > 
> > > > > > > > > > > --
> > > > > > > > > > > 
> > > > > > > > > > > * * *
> > > > > > > > > > > 
> > > > > > > > > > > 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](mailto:commcare-developers+unsubscribe@googlegroups.com)  
> > > > > > > > > > > .  
> > > > > > > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > > > > > > 
> > > > > > > > > > --
> > > > > > > > 
> > > > > > > > * * *
> > > > > > > > 
> > > > > > > > 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](mailto:commcare-developers+unsubscribe@googlegroups.com).  
> > > > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > > > 
> > > > > > > --
> > > > > > 
> > > > > > * * *
> > > > > > 
> > > > > > 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](mailto:commcare-developers+unsubscribe@googlegroups.com).  
> > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > 
> > > > > --
> > > > 
> > > > * * *
> > > > 
> > > > 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](mailto:commcare-developers+unsubscribe@googlegroups.com).  
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --
> > 
> > * * *
> > 
> > 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](mailto:commcare-developers+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Danish\_Fayaz](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@Danish\_Fayaz](https://forum.dimagi.com/u/Danish_Fayaz)\
**Post date:** [August 22, 2017, 9:17pm UTC](https://forum.dimagi.com/t/commcare-production-goes-well-but-errors-of-cloudcare/3673/13 "2017-08-22T21:17:56Z")

</div>

Hello william,

I've looked at postgres and couch, I do have a lot of tables in postgres  
and some in couchdb but I am not sure where to look for the data I submited  
from mobile. Also Following is the shard health of my elastic:

{"cluster\_name":"elasticsearch","status":"yellow","timed\_out":false,"number\_of\_nodes":1,"number\_of\_data\_nodes":1,"active\_primary\_shards":52,"active\_shards":52,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":22,"delayed\_unassigned\_shards":0,"number\_of\_pending\_tasks":0,"number\_of\_in\_flight\_fetch":0,"indices":{"xforms\_2016-07-07":{"status":"yellow","number\_of\_shards":5,"number\_of\_replicas":1,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":5,"shards":{"0":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"1":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"2":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"3":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"4":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1}}},"case\_search\_2016-03-15":{"status":"green","number\_of\_shards":5,"number\_of\_replicas":0,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0,"shards":{"0":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"1":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"2":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"3":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"4":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0}}},"hqgroups\_2017-05-29":{"status":"green","number\_of\_shards":5,"number\_of\_replicas":0,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0,"shards":{"0":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"1":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"2":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"3":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"4":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0}}},"report\_cases\_czei39du507m9mmpqk3y01x72a3ux4p0":{"status":"green","number\_of\_shards":5,"number\_of\_replicas":0,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0,"shards":{"0":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"1":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"2":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"3":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"4":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0}}},"smslogs\_2017-02-09":{"status":"green","number\_of\_shards":5,"number\_of\_replicas":0,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0,"shards":{"0":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"1":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"2":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"3":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"4":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0}}},"hqapps\_2017-05-22\_1426":{"status":"yellow","number\_of\_shards":5,"number\_of\_replicas":1,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":5,"shards":{"0":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"1":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"2":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"3":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"4":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1}}},"hqdomains\_2016-08-08":{"status":"yellow","number\_of\_shards":5,"number\_of\_replicas":1,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":5,"shards":{"0":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"1":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"2":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"3":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"4":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1}}},"ledgers\_2016-03-15":{"status":"green","number\_of\_shards":5,"number\_of\_replicas":0,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0,"shards":{"0":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"1":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"2":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"3":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"4":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0}}},"report\_xforms\_20160824\_1708":{"status":"green","number\_of\_shards":5,"number\_of\_replicas":0,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0,"shards":{"0":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"1":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"2":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"3":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"4":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0}}},"hqcases\_2016-03-04":{"status":"yellow","number\_of\_shards":5,"number\_of\_replicas":1,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":5,"shards":{"0":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"1":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"2":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"3":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"4":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1}}},"hqusers\_2017-05-30":{"status":"yellow","number\_of\_shards":2,"number\_of\_replicas":1,"active\_primary\_shards":2,"active\_shards":2,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":2,"shards":{"0":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"1":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1}}}}}

It seems that most of them are yellow. Can you guide me if that's the way it should be? Also I've ran connection tests from the commcare mobile app to check if the connection is fine, also the forms are being submitted to the server but I am unable to see the data on the web.

> **···**
>
> On Tuesday, 22 August 2017 16:15:06 UTC+4, William Pride wrote: \> \> Hi Danish, \> \> In order for those features to appear you'll need your web user to have \> the correct subscription level and permissions \> \> . \> \> As to your data - does this data appear in your databases (Couch or \> PostGres)? If yes and it doesn't appear in your reports, this could be an \> Elastic issue. If not then the issue could be with your host configuration \> - you'll want to make sure that your CommCare application's PostURL points \> correctly to your instance and that you're able to receive POST requests at \> this URL. \> \> Cheers, \> Will \> \> On Mon, Aug 21, 2017 at 6:05 PM, Danish Fayaz \<danish...@gmail.com \> wrote: \> \>\> \>\> \>\> \>\> \>\> William, \>\> \>\> \>\> \>\> I really appreciate you taking time out and getting back at me. Attached \>\> are screenshots of commcare official and my production setup. I've marked \>\> the missing features. \>\> \>\> The data sync is basically from mobile. Like I downloaded the commcare \>\> android app from playstore, used the barcodes when publishing my \>\> application to download them on the android app. Then after I filled a \>\> survey / case I sync it to the web to push the data. But I don't see it in \>\> the web platform. Although I see a message on mobile that the data was \>\> synced perfectly. \>\> \>\> On Monday, 21 August 2017 15:28:47 UTC+4, William Pride wrote: \>\>\> \>\>\> Hi Danish, \>\>\> \>\>\> Could you send pictures of what you mean about the "menu link" and "data \>\>\> sync" not appearing? Apologies but I'm not sure what's being referred to \>\>\> here. \>\>\> \>\>\> The data exports issue sounds like a problem with Elastic Search - is ES \>\>\> running and error free? \>\>\> \>\>\> Cheers, \>\>\> Will \>\>\> \>\>\> On Sat, Aug 19, 2017 at 6:40 PM, Danish Fayaz wrote: \>\>\> \>\>\>\> Hey william, \>\>\>\> \>\>\>\> You've been great help. Can I ask if you know why the web app (web form \>\>\>\> filling) menu link isn't appearing on top. Also the data sync via the \>\>\>\> mobile app in a survey isn't also appearing on the web app. Also my data \>\>\>\> exports are not working at all giving a "Server maintenance in progress. \>\>\>\> Please try again later. If the problem persists, please Report an Issue." \>\>\>\> warning after a few mins. \>\>\>\> \>\>\>\> Appreciate the assist. Thanks \>\>\>\> \>\>\>\> On Friday, 18 August 2017 17:33:22 UTC+4, William Pride wrote: \>\>\>\>\> \>\>\>\>\> Hi Danish,. \>\>\>\>\> \>\>\>\>\> If you are running Formplayer then you shouldn't need to run Jython. \>\>\>\>\> The Formplayer code replaced the now-deprecated Jython code. \>\>\>\>\> \>\>\>\>\> Cheers, \>\>\>\>\> Will \>\>\>\>\> \>\>\>\>\> On Thu, Aug 17, 2017 at 7:10 PM, Danish Fayaz wrote: \>\>\>\>\> \>\>\>\>\>\> I was able to fix the formplayer-spring error. It was due to the run \>\>\>\>\>\> command (heap size was to be set). Now its running fine. But error is \>\>\>\>\>\> there, I checked forms-player (touchform server) it was giving similar \>\>\>\>\>\> error, so I set heap size and updated the jython.jar path in the command to \>\>\>\>\>\> load the right classpath. But I am getting following error when I run: \>\>\>\>\>\> \>\>\>\>\>\> Note: I am using the recommended jython 2.5.3 \>\>\>\>\>\> \>\>\>\>\>\> Exception in thread "main" java.lang.NoClassDefFoundError: \>\>\>\>\>\> com/google/common/collect/MapMaker \>\>\>\>\>\> at org.python.core.PyType.fromClass(PyType.java:1280) \>\>\>\>\>\> at org.python.core.PyObject.(PyObject.java:66) \>\>\>\>\>\> at org.python.core.PyBuiltinCallable.(PyBuiltinCallable.java:21) \>\>\>\>\>\> at org.python.core.PyBuiltinMethod.(PyBuiltinMethod.java:16) \>\>\>\>\>\> at \>\>\>\>\>\> org.python.core.PyBuiltinMethodNarrow.(PyBuiltinMethodNarrow.java:24) \>\>\>\>\>\> at org.python.core.PyType$type\_\_\_subclasses\_\_\_exposer.(Unknown \>\>\>\>\>\> Source) \>\>\>\>\>\> at org.python.core.PyType$PyExposer.(Unknown Source) \>\>\>\>\>\> at org.python.core.PyType.(PyType.java) \>\>\>\>\>\> at org.python.core.PyObject.(PyObject.java:66) \>\>\>\>\>\> at org.python.core.PyBuiltinCallable.(PyBuiltinCallable.java:21) \>\>\>\>\>\> at org.python.core.PyBuiltinMethod.(PyBuiltinMethod.java:16) \>\>\>\>\>\> at \>\>\>\>\>\> org.python.core.PyBuiltinMethodNarrow.(PyBuiltinMethodNarrow.java:24) \>\>\>\>\>\> at \>\>\>\>\>\> org.python.core.PyDataDescr$getset\_descriptor\_\_\_get\_\_\_exposer.(Unknown \>\>\>\>\>\> Source) \>\>\>\>\>\> at org.python.core.PyDataDescr$PyExposer.(Unknown Source) \>\>\>\>\>\> at org.python.core.PyDataDescr.(PyDataDescr.java) \>\>\>\>\>\> at org.python.core.PyBuiltinCallable$PyExposer.(Unknown Source) \>\>\>\>\>\> at org.python.core.PyBuiltinCallable.(PyBuiltinCallable.java) \>\>\>\>\>\> at org.python.core.PyObject$PyExposer.(Unknown Source) \>\>\>\>\>\> at org.python.core.PyObject.(PyObject.java) \>\>\>\>\>\> at org.python.util.jython.run(jython.java:150) \>\>\>\>\>\> at org.python.util.jython.main(jython.java:129) \>\>\>\>\>\> Caused by: java.lang.ClassNotFoundException: \>\>\>\>\>\> com.google.common.collect.MapMaker \>\>\>\>\>\> at java.net.URLClassLoader.findClass(URLClassLoader.java:381) \>\>\>\>\>\> at java.lang.ClassLoader.loadClass(ClassLoader.java:424) \>\>\>\>\>\> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) \>\>\>\>\>\> at java.lang.ClassLoader.loadClass(ClassLoader.java:357) \>\>\>\>\>\> ... 21 more \>\>\>\>\>\> \>\>\>\>\>\> \>\>\>\>\>\> \>\>\>\>\>\> On Friday, 18 August 2017 00:36:42 UTC+4, William Pride wrote: \>\>\>\>\>\>\> \>\>\>\>\>\>\> Hi Danish, \>\>\>\>\>\>\> \>\>\>\>\>\>\> Looks like a CORS \>\>\>\>\>\>\> issue \>\>\>\>\>\>\> - Web Apps and App Builder make cross domain requests in order to \>\>\>\>\>\>\> communicate directly with Formplayer. Thus we configure Ajax and Spring to \>\>\>\>\>\>\> accept cross domain requests. I'm not sure whether this configuration would \>\>\>\>\>\>\> be sufficient in all browsers/servers (for example if these intentionally \>\>\>\>\>\>\> disallowed cross-domain requests). Does Formplayer log the requests? \>\>\>\>\>\>\> \>\>\>\>\>\>\> Cheers, \>\>\>\>\>\>\> Will \>\>\>\>\>\>\> \>\>\>\>\>\>\> On Wed, Aug 16, 2017 at 18:39 Danish Fayaz wrote: \>\>\>\>\>\>\> \>\>\>\>\>\>\>\> Just now, I've also tried running formplayer seperately, it builds \>\>\>\>\>\>\>\> and runs all fine. But still I am getting the disallowed origin error. \>\>\>\>\>\>\>\> Options (pre flight requests failing). \>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\> On Thursday, 17 August 2017 02:11:55 UTC+4, Danish Fayaz wrote: \>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\> Thank you so much for your reply, yes william I've cloned \>\>\>\>\>\>\>\>\> Formplayer in the commcarehq root directory and updated submodules as \>\>\>\>\>\>\>\>\> instructed. \>\>\>\>\>\>\>\>\> Further I think the supervisor runs the formplayer so I changed \>\>\>\>\>\>\>\>\> the deployment config of supervisor in the services/supervisor/changeme\_s \>\>\>\>\>\>\>\>\> upervisor\_formplayer\_spring.conf \>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\> Changed the name of dir from formplayer\_build to formplayer (as \>\>\>\>\>\>\>\>\> per cloned). \>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\> Still when I go to the application page I get the same error and \>\>\>\>\>\>\>\>\> when I click the start Icon in the App (in screenshot) I get the same error \>\>\>\>\>\>\>\>\> as in the screenshot. \>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\> I checked the console, following errors occur: \>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\> \*OPTIONS http://dev.commcare:8080/delete\_application\_dbs \>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\> net::ERR\_CONNECTION\_REFUSED\* \>\>\>\>\>\>\>\>\> \*Disallowed origin http://dev.commcare \* \>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\> Also when I click on Users (screenshot) I get the following in the \>\>\>\>\>\>\>\>\> console: \>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\> \*GET \>\>\>\>\>\>\>\>\> http://dev.commcare/a/test.org/cloudcare/api/login\_as/users/?query=&limit=10&page=1 \>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\> 500 (Internal Server Error)\* \>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\> I'd appreciate it if someone can guide me on this. Thank you so \>\>\>\>\>\>\>\>\> much for the forum and the community's help. \>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\> On Wednesday, 16 August 2017 16:06:24 UTC+4, William Pride wrote: \>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\> Can you confirm that you have Formplayer running per the \>\>\>\>\>\>\>\>\>\> instructions here ? \>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\> If so can you provide the exception you're seeing in your browser \>\>\>\>\>\>\>\>\>\> (and in Formplayer/HQ if such exists) \>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\> Thanks, \>\>\>\>\>\>\>\>\>\> Will \>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\> On Tue, Aug 15, 2017 at 6:45 PM, Danish Fayaz \< danish...@gmail.com\> wrote: \>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\> Hello, \>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\> I am doing a research demo for my university and I actually need some of your assistance. \>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\> I am currently trying to deploy the commcare production app from github on a server. I've followed the production instructions carefully and able to run the app. But when I make an application and try to edit it I get the following errors (screenshot attached). As if formplayer isn't running, also I see an ajax request to my domain gives an error of "Disallowed". \>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\> Can you please guide me if there's a proper documentation available or where I need to look for. It means a lot to me. Thank you for your time. \>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\> -- \>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\> --- \>\>\>\>\>\>\>\>\>\>\> 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. \>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\> -- \>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\> --- \>\>\>\>\>\>\>\> 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. \>\>\>\>\>\>\>\> \>\>\>\>\>\>\> -- \>\>\>\>\>\> \>\>\>\>\>\> --- \>\>\>\>\>\> 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. \>\>\>\>\>\> \>\>\>\>\> \>\>\>\>\> -- \>\>\>\> \>\>\>\> --- \>\>\>\> 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. \>\>\>\> \>\>\> \>\>\> -- \>\> \>\> --- \>\> 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. \>\> \> \>

---

<div class="post-metadata">

**Author:** ![Simon\_Kelly](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/simon_kelly/32/494_2.png) [@Simon\_Kelly](https://forum.dimagi.com/u/Simon_Kelly)\
**Post date:** [August 24, 2017, 11:33am UTC](https://forum.dimagi.com/t/commcare-production-goes-well-but-errors-of-cloudcare/3673/14 "2017-08-24T11:33:02Z")

</div>

Hi Danish

I'd suggest you use ES HEAD [https://github.com/mobz/elasticsearch-head](https://github.com/mobz/elasticsearch-head) or  
some other ES management tool to see what shards are causing the issue.  
Based on the quick look at the shard status I think you have a number of  
replica shards which are unassigned. If you're running ES with only one  
node then you should just remove the replica shards.

If you're unable to see data on the web it may mean that you're not running  
'pillowtop' using the 'run\_ptop' command:

> <https://github.com/dimagi/commcare-hq/blob/master/README.md#running-commcare-hq>

Simon Kelly  
Director of Server Engineer | Dimagi

> **···**
>
> On 22 August 2017 at 23:17, Danish Fayaz wrote:
> 
> > Hello william,
> > 
> > I've looked at postgres and couch, I do have a lot of tables in postgres  
> > and some in couchdb but I am not sure where to look for the data I submited  
> > from mobile. Also Following is the shard health of my elastic:
> > 
> > {"cluster\_name":"elasticsearch","status":"yellow","timed\_out":false,"number\_of\_nodes":1,"number\_of\_data\_nodes":1,"active\_primary\_shards":52,"active\_shards":52,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":22,"delayed\_unassigned\_shards":0,"number\_of\_pending\_tasks":0,"number\_of\_in\_flight\_fetch":0,"indices":{"xforms\_2016-07-07":{"status":"yellow","number\_of\_shards":5,"number\_of\_replicas":1,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":5,"shards":{"0":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"1":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"2":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"3":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"4":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1}}},"case\_search\_2016-03-15":{"status":"green","number\_of\_shards":5,"number\_of\_replicas":0,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0,"shards":{"0":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"1":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"2":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"3":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"4":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0}}},"hqgroups\_2017-05-29":{"status":"green","number\_of\_shards":5,"number\_of\_replicas":0,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0,"shards":{"0":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"1":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"2":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"3":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"4":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0}}},"report\_cases\_czei39du507m9mmpqk3y01x72a3ux4p0":{"status":"green","number\_of\_shards":5,"number\_of\_replicas":0,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0,"shards":{"0":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"1":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"2":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"3":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"4":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0}}},"smslogs\_2017-02-09":{"status":"green","number\_of\_shards":5,"number\_of\_replicas":0,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0,"shards":{"0":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"1":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"2":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"3":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"4":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0}}},"hqapps\_2017-05-22\_1426":{"status":"yellow","number\_of\_shards":5,"number\_of\_replicas":1,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":5,"shards":{"0":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"1":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"2":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"3":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"4":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1}}},"hqdomains\_2016-08-08":{"status":"yellow","number\_of\_shards":5,"number\_of\_replicas":1,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":5,"shards":{"0":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"1":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"2":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"3":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"4":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1}}},"ledgers\_2016-03-15":{"status":"green","number\_of\_shards":5,"number\_of\_replicas":0,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0,"shards":{"0":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"1":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"2":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"3":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"4":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0}}},"report\_xforms\_20160824\_1708":{"status":"green","number\_of\_shards":5,"number\_of\_replicas":0,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0,"shards":{"0":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"1":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"2":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"3":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"4":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0}}},"hqcases\_2016-03-04":{"status":"yellow","number\_of\_shards":5,"number\_of\_replicas":1,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":5,"shards":{"0":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"1":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"2":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"3":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"4":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1}}},"hqusers\_2017-05-30":{"status":"yellow","number\_of\_shards":2,"number\_of\_replicas":1,"active\_primary\_shards":2,"active\_shards":2,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":2,"shards":{"0":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"1":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1}}}}}
> > 
> > It seems that most of them are yellow. Can you guide me if that's the way it should be? Also I've ran connection tests from the commcare mobile app to check if the connection is fine, also the forms are being submitted to the server but I am unable to see the data on the web.
> > 
> > On Tuesday, 22 August 2017 16:15:06 UTC+4, William Pride wrote:
> > 
> > > Hi Danish,
> > > 
> > > In order for those features to appear you'll need your web user to have  
> > > the correct subscription level and permissions  
> > > [https://confluence.dimagi.com/display/commcarepublic/CommCareHQ+Web+Users](https://confluence.dimagi.com/display/commcarepublic/CommCareHQ+Web+Users)  
> > > .
> > > 
> > > As to your data - does this data appear in your databases (Couch or  
> > > PostGres)? If yes and it doesn't appear in your reports, this could be an  
> > > Elastic issue. If not then the issue could be with your host configuration
> > > 
> > > - you'll want to make sure that your CommCare application's PostURL points  
> > > correctly to your instance and that you're able to receive POST requests at  
> > > this URL.
> > > 
> > > Cheers,  
> > > Will
> > > 
> > > On Mon, Aug 21, 2017 at 6:05 PM, Danish Fayaz [danish...@gmail.com](mailto:danish...@gmail.com) wrote:
> > > 
> > > > [https://lh3.googleusercontent.com/-7cqEUWWZnOA/WZtYwKj5pnI/AAAAAAAAmMM/y6UbrIEKz34munz9yCCYGWNpUlY-4J6RgCLcBGAs/s1600/commcare.png](https://lh3.googleusercontent.com/-7cqEUWWZnOA/WZtYwKj5pnI/AAAAAAAAmMM/y6UbrIEKz34munz9yCCYGWNpUlY-4J6RgCLcBGAs/s1600/commcare.png)
> > > > 
> > > > William,
> > > > 
> > > > [https://lh3.googleusercontent.com/-P52KFjyBLTo/WZtYuNS8EPI/AAAAAAAAmMI/OFTKYaqqg9ciT1t0e8XmXEN-a6lSHqvJgCLcBGAs/s1600/local.png](https://lh3.googleusercontent.com/-P52KFjyBLTo/WZtYuNS8EPI/AAAAAAAAmMI/OFTKYaqqg9ciT1t0e8XmXEN-a6lSHqvJgCLcBGAs/s1600/local.png)  
> > > > I really appreciate you taking time out and getting back at me. Attached  
> > > > are screenshots of commcare official and my production setup. I've marked  
> > > > the missing features.
> > > > 
> > > > The data sync is basically from mobile. Like I downloaded the commcare  
> > > > android app from playstore, used the barcodes when publishing my  
> > > > application to download them on the android app. Then after I filled a  
> > > > survey / case I sync it to the web to push the data. But I don't see it in  
> > > > the web platform. Although I see a message on mobile that the data was  
> > > > synced perfectly.
> > > > 
> > > > On Monday, 21 August 2017 15:28:47 UTC+4, William Pride wrote:
> > > > 
> > > > > Hi Danish,
> > > > > 
> > > > > Could you send pictures of what you mean about the "menu link" and  
> > > > > "data sync" not appearing? Apologies but I'm not sure what's being referred  
> > > > > to here.
> > > > > 
> > > > > The data exports issue sounds like a problem with Elastic Search - is  
> > > > > ES running and error free?
> > > > > 
> > > > > Cheers,  
> > > > > Will
> > > > > 
> > > > > On Sat, Aug 19, 2017 at 6:40 PM, Danish Fayaz [danish...@gmail.com](mailto:danish...@gmail.com) wrote:
> > > > > 
> > > > > > Hey william,
> > > > > > 
> > > > > > You've been great help. Can I ask if you know why the web app (web  
> > > > > > form filling) menu link isn't appearing on top. Also the data sync via the  
> > > > > > mobile app in a survey isn't also appearing on the web app. Also my data  
> > > > > > exports are not working at all giving a "Server maintenance in progress.  
> > > > > > Please try again later. If the problem persists, please Report an Issue."  
> > > > > > warning after a few mins.
> > > > > > 
> > > > > > Appreciate the assist. Thanks
> > > > > > 
> > > > > > On Friday, 18 August 2017 17:33:22 UTC+4, William Pride wrote:
> > > > > > 
> > > > > > > Hi Danish,.
> > > > > > > 
> > > > > > > If you are running Formplayer then you shouldn't need to run Jython.  
> > > > > > > The Formplayer code replaced the now-deprecated Jython code.
> > > > > > > 
> > > > > > > Cheers,  
> > > > > > > Will
> > > > > > > 
> > > > > > > On Thu, Aug 17, 2017 at 7:10 PM, Danish Fayaz [danish...@gmail.com](mailto:danish...@gmail.com) wrote:
> > > > > > > 
> > > > > > > > I was able to fix the formplayer-spring error. It was due to the run  
> > > > > > > > command (heap size was to be set). Now its running fine. But error is  
> > > > > > > > there, I checked forms-player (touchform server) it was giving similar  
> > > > > > > > error, so I set heap size and updated the jython.jar path in the command to  
> > > > > > > > load the right classpath. But I am getting following error when I run:
> > > > > > > > 
> > > > > > > > Note: I am using the recommended jython 2.5.3
> > > > > > > > 
> > > > > > > > Exception in thread "main" java.lang.NoClassDefFoundError:  
> > > > > > > > com/google/common/collect/MapMaker  
> > > > > > > > at org.python.core.PyType.fromClass(PyType.java:1280)  
> > > > > > > > at org.python.core.PyObject.(PyObject.java:66)  
> > > > > > > > at org.python.core.PyBuiltinCallable.(PyBuiltinCallable.  
> > > > > > > > java:21)  
> > > > > > > > at org.python.core.PyBuiltinMethod.(PyBuiltinMethod.java:16)  
> > > > > > > > at org.python.core.PyBuiltinMethodNarrow.(PyBuiltinMethod  
> > > > > > > > Narrow.java:24)  
> > > > > > > > at org.python.core.PyType$type\_\_\_subclasses\_\_\_exposer.(Unknown  
> > > > > > > > Source)  
> > > > > > > > at org.python.core.PyType$PyExposer.(Unknown Source)  
> > > > > > > > at org.python.core.PyType.(PyType.java)  
> > > > > > > > at org.python.core.PyObject.(PyObject.java:66)  
> > > > > > > > at org.python.core.PyBuiltinCallable.(PyBuiltinCallable.  
> > > > > > > > java:21)  
> > > > > > > > at org.python.core.PyBuiltinMethod.(PyBuiltinMethod.java:16)  
> > > > > > > > at org.python.core.PyBuiltinMethodNarrow.(PyBuiltinMethod  
> > > > > > > > Narrow.java:24)  
> > > > > > > > at org.python.core.PyDataDescr$getset\_descriptor\_\_\_get\_\_\_exposer.(Unknown  
> > > > > > > > Source)  
> > > > > > > > at org.python.core.PyDataDescr$PyExposer.(Unknown Source)  
> > > > > > > > at org.python.core.PyDataDescr.(PyDataDescr.java)  
> > > > > > > > at org.python.core.PyBuiltinCallable$PyExposer.(Unknown  
> > > > > > > > Source)  
> > > > > > > > at org.python.core.PyBuiltinCallable.(PyBuiltinCallable  
> > > > > > > > .java)  
> > > > > > > > at org.python.core.PyObject$PyExposer.(Unknown Source)  
> > > > > > > > at org.python.core.PyObject.(PyObject.java)  
> > > > > > > > at org.python.util.jython.run(jython.java:150)  
> > > > > > > > at org.python.util.jython.main(jython.java:129)  
> > > > > > > > Caused by: java.lang.ClassNotFoundException:  
> > > > > > > > com.google.common.collect.MapMaker  
> > > > > > > > at java.net.URLClassLoader.findClass(URLClassLoader.java:381)  
> > > > > > > > at java.lang.ClassLoader.loadClass(ClassLoader.java:424)  
> > > > > > > > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)  
> > > > > > > > at java.lang.ClassLoader.loadClass(ClassLoader.java:357)  
> > > > > > > > ... 21 more
> > > > > > > > 
> > > > > > > > On Friday, 18 August 2017 00:36:42 UTC+4, William Pride wrote:
> > > > > > > > 
> > > > > > > > > Hi Danish,
> > > > > > > > > 
> > > > > > > > > Looks like a CORS  
> > > > > > > > > [https://en.wikipedia.org/wiki/Cross-origin\_resource\_sharing](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing)  
> > > > > > > > > issue - Web Apps and App Builder make cross domain requests in order to  
> > > > > > > > > communicate directly with Formplayer. Thus we configure Ajax and Spring to  
> > > > > > > > > accept cross domain requests. I'm not sure whether this configuration would  
> > > > > > > > > be sufficient in all browsers/servers (for example if these intentionally  
> > > > > > > > > disallowed cross-domain requests). Does Formplayer log the requests?
> > > > > > > > > 
> > > > > > > > > Cheers,  
> > > > > > > > > Will
> > > > > > > > > 
> > > > > > > > > On Wed, Aug 16, 2017 at 18:39 Danish Fayaz [danish...@gmail.com](mailto:danish...@gmail.com) wrote:
> > > > > > > > > 
> > > > > > > > > > Just now, I've also tried running formplayer seperately, it builds  
> > > > > > > > > > and runs all fine. But still I am getting the disallowed origin error.  
> > > > > > > > > > Options (pre flight requests failing).
> > > > > > > > > > 
> > > > > > > > > > On Thursday, 17 August 2017 02:11:55 UTC+4, Danish Fayaz wrote:
> > > > > > > > > > 
> > > > > > > > > > > Thank you so much for your reply, yes william I've cloned  
> > > > > > > > > > > Formplayer in the commcarehq root directory and updated submodules as  
> > > > > > > > > > > instructed.  
> > > > > > > > > > > Further I think the supervisor runs the formplayer so I changed  
> > > > > > > > > > > the deployment config of supervisor in the services/supervisor/changeme\_s  
> > > > > > > > > > > upervisor\_formplayer\_spring.conf
> > > > > > > > > > > 
> > > > > > > > > > > Changed the name of dir from formplayer\_build to formplayer (as  
> > > > > > > > > > > per cloned).
> > > > > > > > > > > 
> > > > > > > > > > > Still when I go to the application page I get the same error and  
> > > > > > > > > > > when I click the start Icon in the App (in screenshot) I get the same error  
> > > > > > > > > > > as in the screenshot.
> > > > > > > > > > > 
> > > > > > > > > > > I checked the console, following errors occur:
> > > > > > > > > > > 
> > > > > > > > > > > _OPTIONS [http://dev.commcare:8080/delete\_application\_dbs](http://dev.commcare:8080/delete_application_dbs)  
> > > > > > > > > > > [http://dev.commcare:8080/delete\_application\_dbs](http://dev.commcare:8080/delete_application_dbs)  
> > > > > > > > > > > net::ERR\_CONNECTION\_REFUSED_  
> > > > > > > > > > > _Disallowed origin [http://dev.commcare](http://dev.commcare) [http://dev.commcare](http://dev.commcare)_
> > > > > > > > > > > 
> > > > > > > > > > > Also when I click on Users (screenshot) I get the following in  
> > > > > > > > > > > the console:
> > > > > > > > > > > 
> > > > > > > > > > > _GET  
> > > > > > > > > > > [http://dev.commcare/a/test.org/cloudcare/api/login\_as/users/?query=&limit=10&page=1](http://dev.commcare/a/test.org/cloudcare/api/login_as/users/?query=&limit=10&page=1)  
> > > > > > > > > > > [http://dev.commcare/a/test.org/cloudcare/api/login\_as/users/?query=&limit=10&page=1](http://dev.commcare/a/test.org/cloudcare/api/login_as/users/?query=&limit=10&page=1)  
> > > > > > > > > > > 500 (Internal Server Error)_
> > > > > > > > > > > 
> > > > > > > > > > > I'd appreciate it if someone can guide me on this. Thank you so  
> > > > > > > > > > > much for the forum and the community's help.
> > > > > > > > > > > 
> > > > > > > > > > > On Wednesday, 16 August 2017 16:06:24 UTC+4, William Pride wrote:
> > > > > > > > > > > 
> > > > > > > > > > > > Can you confirm that you have Formplayer running per the  
> > > > > > > > > > > > instructions here [https://github.com/dimagi/formplayer](https://github.com/dimagi/formplayer)?
> > > > > > > > > > > > 
> > > > > > > > > > > > If so can you provide the exception you're seeing in your  
> > > > > > > > > > > > browser (and in Formplayer/HQ if such exists)
> > > > > > > > > > > > 
> > > > > > > > > > > > Thanks,  
> > > > > > > > > > > > Will
> > > > > > > > > > > > 
> > > > > > > > > > > > On Tue, Aug 15, 2017 at 6:45 PM, Danish Fayaz \< [danish...@gmail.com](mailto:danish...@gmail.com)\> wrote:
> > > > > > > > > > > > 
> > > > > > > > > > > > > Hello,
> > > > > > > > > > > > > 
> > > > > > > > > > > > > I am doing a research demo for my university and I actually need some of your assistance.
> > > > > > > > > > > > > 
> > > > > > > > > > > > > I am currently trying to deploy the commcare production app from github on a server. I've followed the production instructions carefully and able to run the app. But when I make an application and try to edit it I get the following errors (screenshot attached). As if formplayer isn't running, also I see an ajax request to my domain gives an error of "Disallowed".
> > > > > > > > > > > > > 
> > > > > > > > > > > > > [https://lh3.googleusercontent.com/-MYOSgjQEuck/WZN5ec\_WJTI/AAAAAAAAlts/f1OYNSNTy38AixhxaWZ-PmxnUIBqc8gTACLcBGAs/s1600/commcare-error.png](https://lh3.googleusercontent.com/-MYOSgjQEuck/WZN5ec_WJTI/AAAAAAAAlts/f1OYNSNTy38AixhxaWZ-PmxnUIBqc8gTACLcBGAs/s1600/commcare-error.png)
> > > > > > > > > > > > > 
> > > > > > > > > > > > > Can you please guide me if there's a proper documentation available or where I need to look for. It means a lot to me. Thank you for your time.
> > > > > > > > > > > > > 
> > > > > > > > > > > > > --
> > > > > > > > > > > > > 
> > > > > > > > > > > > > * * *
> > > > > > > > > > > > > 
> > > > > > > > > > > > > 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+unsubscrib  
> > > > > > > > > > > > > [e@googlegroups.com](mailto:e@googlegroups.com).  
> > > > > > > > > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > > > > > > > > 
> > > > > > > > > > > > --
> > > > > > > > > > 
> > > > > > > > > > * * *
> > > > > > > > > > 
> > > > > > > > > > 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](mailto:commcare-developers+unsubscribe@googlegroups.com).  
> > > > > > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > > > > > 
> > > > > > > > > --
> > > > > > > > 
> > > > > > > > * * *
> > > > > > > > 
> > > > > > > > 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](mailto:commcare-developers+unsubscribe@googlegroups.com).  
> > > > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > > > 
> > > > > > > --
> > > > > > 
> > > > > > * * *
> > > > > > 
> > > > > > 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](mailto:commcare-developers+unsubscribe@googlegroups.com).  
> > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > 
> > > > > --
> > > > 
> > > > * * *
> > > > 
> > > > 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](mailto:commcare-developers+unsubscribe@googlegroups.com).  
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --
> > 
> > * * *
> > 
> > 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](mailto:commcare-developers+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Danish\_Fayaz](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/d/e19adc/32.png) [@Danish\_Fayaz](https://forum.dimagi.com/u/Danish_Fayaz)\
**Post date:** [September 16, 2017, 6:06pm UTC](https://forum.dimagi.com/t/commcare-production-goes-well-but-errors-of-cloudcare/3673/15 "2017-09-16T18:06:12Z")

</div>

Hello Simon,

Sorry for replying late, I was held up by a few other things. I've gone  
through the elastic shards and also deleted the unassigned ones. But the  
actually problem is with pillow top (You're right). I ran the following  
ptop commands as per Production Instructions:

/home/commcarehq/bin/python manage.py ptop\_preindex  
/home/commcarehq/bin/python manage.py ptop\_es\_manage --flip\_all\_aliases

These are running all fine. But the ptop\_all command fails with the  
following errors which I can't make anything of ☹ can you take a look at  
them and advise what's causing it? I've even searched the forum but found  
nothing relevant.

Process Process-33:  
Traceback (most recent call last):  
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in  
\_bootstrap  
self.run()  
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run  
self.\_target(\*self.\_args, \*\*self.\_kwargs)  
File "./corehq/ex-submodules/pillowtop/pillow/interface.py", line 96, in  
run  
self.process\_changes(since=self.get\_last\_checkpoint\_sequence(),  
forever=True)  
File "./corehq/ex-submodules/pillowtop/pillow/interface.py", line 80, in  
get\_last\_checkpoint\_sequence  
return self.checkpoint.get\_or\_create\_wrapped().wrapped\_sequence  
File "./corehq/ex-submodules/pillowtop/checkpoints/manager.py", line 180,  
in get\_or\_create\_wrapped  
checkpoints = self.\_get\_checkpoints()  
File "./corehq/ex-submodules/pillowtop/checkpoints/manager.py", line 177,  
in \_get\_checkpoints  
return  
KafkaCheckpoint.get\_or\_create\_for\_checkpoint\_id(self.checkpoint\_id,  
self.topics)  
File "./corehq/ex-submodules/pillowtop/models.py", line 91, in  
get\_or\_create\_for\_checkpoint\_id  
.values\_list('topic', 'partition')  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/models/query.py",  
line 256, in **iter**  
self.\_fetch\_all()  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/models/query.py",  
line 1087, in \_fetch\_all  
self.\_result\_cache = list(self.iterator())  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/models/query.py",  
line 125, in **iter**  
for row in compiler.results\_iter():  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py",  
line 789, in results\_iter  
results = self.execute\_sql(MULTI)  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py",  
line 835, in execute\_sql  
cursor.execute(sql, params)  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/backends/utils.py",  
line 79, in execute  
return super(CursorDebugWrapper, self).execute(sql, params)  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/raven/contrib/django/client.py",  
line 114, in execute  
return real\_execute(self, sql, params)  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/backends/utils.py",  
line 64, in execute  
return self.cursor.execute(sql, params)  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/utils.py",  
line 94, in **exit**  
six.reraise(dj\_exc\_type, dj\_exc\_value, traceback)  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/backends/utils.py",  
line 64, in execute  
return self.cursor.execute(sql, params)  
OperationalError: SSL SYSCALL error: EOF detected

Process Process-36:  
Traceback (most recent call last):  
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in  
\_bootstrap  
self.run()  
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run  
self.\_target(\*self.\_args, \*\*self.\_kwargs)  
File "./corehq/ex-submodules/pillowtop/pillow/interface.py", line 96, in  
run  
self.process\_changes(since=self.get\_last\_checkpoint\_sequence(),  
forever=True)  
File "./corehq/ex-submodules/pillowtop/pillow/interface.py", line 80, in  
get\_last\_checkpoint\_sequence  
return self.checkpoint.get\_or\_create\_wrapped().wrapped\_sequence  
File "./corehq/ex-submodules/pillowtop/checkpoints/manager.py", line 180,  
in get\_or\_create\_wrapped  
checkpoints = self.\_get\_checkpoints()  
File "./corehq/ex-submodules/pillowtop/checkpoints/manager.py", line 177,  
in \_get\_checkpoints  
return  
KafkaCheckpoint.get\_or\_create\_for\_checkpoint\_id(self.checkpoint\_id,  
self.topics)  
File "./corehq/ex-submodules/pillowtop/models.py", line 91, in  
get\_or\_create\_for\_checkpoint\_id  
.values\_list('topic', 'partition')  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/models/query.py",  
line 256, in **iter**  
self.\_fetch\_all()  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/models/query.py",  
line 1087, in \_fetch\_all  
self.\_result\_cache = list(self.iterator())  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/models/query.py",  
line 125, in **iter**  
for row in compiler.results\_iter():  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py",  
line 789, in results\_iter  
results = self.execute\_sql(MULTI)  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py",  
line 835, in execute\_sql  
cursor.execute(sql, params)  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/backends/utils.py",  
line 79, in execute  
return super(CursorDebugWrapper, self).execute(sql, params)  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/raven/contrib/django/client.py",  
line 114, in execute  
return real\_execute(self, sql, params)  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/backends/utils.py",  
line 64, in execute  
return self.cursor.execute(sql, params)  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/utils.py",  
line 94, in **exit**  
2017-09-16 17:24:06,225 INFO interface Starting pillow \<class  
'pillowtop.pillow.interface.ConstructedPillow'\>  
six.reraise(dj\_exc\_type, dj\_exc\_value, traceback)  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/backends/utils.py",  
line 64, in execute  
return self.cursor.execute(sql, params)  
OperationalError: SSL SYSCALL error: EOF detected

Process Process-32:  
Traceback (most recent call last):  
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in  
\_bootstrap  
self.run()  
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run  
self.\_target(\*self.\_args, \*\*self.\_kwargs)  
File "./corehq/ex-submodules/pillowtop/pillow/interface.py", line 96, in  
run  
self.process\_changes(since=self.get\_last\_checkpoint\_sequence(),  
forever=True)  
File "./corehq/ex-submodules/pillowtop/pillow/interface.py", line 80, in  
get\_last\_checkpoint\_sequence  
return self.checkpoint.get\_or\_create\_wrapped().wrapped\_sequence  
File "./corehq/ex-submodules/pillowtop/checkpoints/manager.py", line 180,  
in get\_or\_create\_wrapped  
checkpoints = self.\_get\_checkpoints()  
File "./corehq/ex-submodules/pillowtop/checkpoints/manager.py", line 177,  
in \_get\_checkpoints  
return  
KafkaCheckpoint.get\_or\_create\_for\_checkpoint\_id(self.checkpoint\_id,  
self.topics)  
File "./corehq/ex-submodules/pillowtop/models.py", line 91, in  
get\_or\_create\_for\_checkpoint\_id  
.values\_list('topic', 'partition')  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/models/query.py",  
line 256, in **iter**  
self.\_fetch\_all()  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/models/query.py",  
line 1087, in \_fetch\_all  
self.\_result\_cache = list(self.iterator())  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/models/query.py",  
line 125, in **iter**  
for row in compiler.results\_iter():  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py",  
line 789, in results\_iter  
results = self.execute\_sql(MULTI)  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py",  
line 835, in execute\_sql  
cursor.execute(sql, params)  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/backends/utils.py",  
line 79, in execute  
return super(CursorDebugWrapper, self).execute(sql, params)  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/raven/contrib/django/client.py",  
line 114, in execute  
return real\_execute(self, sql, params)  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/backends/utils.py",  
line 64, in execute  
return self.cursor.execute(sql, params)  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/utils.py",  
line 94, in **exit**  
six.reraise(dj\_exc\_type, dj\_exc\_value, traceback)  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/backends/utils.py",  
line 64, in execute  
return self.cursor.execute(sql, params)  
OperationalError: SSL SYSCALL error: EOF detected

Process Process-34:  
Traceback (most recent call last):  
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in  
\_bootstrap  
self.run()  
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run  
self.\_target(\*self.\_args, \*\*self.\_kwargs)  
File "./corehq/ex-submodules/pillowtop/pillow/interface.py", line 96, in  
run  
self.process\_changes(since=self.get\_last\_checkpoint\_sequence(),  
forever=True)  
File "./corehq/ex-submodules/pillowtop/pillow/interface.py", line 80, in  
get\_last\_checkpoint\_sequence  
return self.checkpoint.get\_or\_create\_wrapped().wrapped\_sequence  
File "./corehq/ex-submodules/pillowtop/checkpoints/manager.py", line 180,  
in get\_or\_create\_wrapped  
checkpoints = self.\_get\_checkpoints()  
File "./corehq/ex-submodules/pillowtop/checkpoints/manager.py", line 177,  
in \_get\_checkpoints  
return  
KafkaCheckpoint.get\_or\_create\_for\_checkpoint\_id(self.checkpoint\_id,  
self.topics)  
File "./corehq/ex-submodules/pillowtop/models.py", line 91, in  
get\_or\_create\_for\_checkpoint\_id  
.values\_list('topic', 'partition')  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/models/query.py",  
line 256, in **iter**  
self.\_fetch\_all()  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/models/query.py",  
line 1087, in \_fetch\_all  
self.\_result\_cache = list(self.iterator())  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/models/query.py",  
line 125, in **iter**  
for row in compiler.results\_iter():  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py",  
line 789, in results\_iter  
results = self.execute\_sql(MULTI)  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py",  
line 835, in execute\_sql  
cursor.execute(sql, params)  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/backends/utils.py",  
line 79, in execute  
return super(CursorDebugWrapper, self).execute(sql, params)  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/raven/contrib/django/client.py",  
line 114, in execute  
return real\_execute(self, sql, params)  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/backends/utils.py",  
line 64, in execute  
return self.cursor.execute(sql, params)  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/utils.py",  
line 94, in **exit**  
six.reraise(dj\_exc\_type, dj\_exc\_value, traceback)  
File  
"/home/commcarehq/local/lib/python2.7/site-packages/django/db/backends/utils.py",  
line 64, in execute  
return self.cursor.execute(sql, params)  
OperationalError: SSL SYSCALL error: EOF detected

> **···**
>
> On Thursday, 24 August 2017 15:33:24 UTC+4, Simon Kelly wrote: \> \> Hi Danish \> \> I'd suggest you use ES HEAD or \> some other ES management tool to see what shards are causing the issue. \> Based on the quick look at the shard status I think you have a number of \> replica shards which are unassigned. If you're running ES with only one \> node then you should just remove the replica shards. \> \> If you're unable to see data on the web it may mean that you're not \> running 'pillowtop' using the 'run\_ptop' command: \> https://github.com/dimagi/commcare-hq/blob/master/README.md#running-commcare-hq \> \> Simon Kelly \> Director of Server Engineer | Dimagi \> \> On 22 August 2017 at 23:17, Danish Fayaz \<danish...@gmail.com \> wrote: \> \>\> Hello william, \>\> \>\> I've looked at postgres and couch, I do have a lot of tables in postgres \>\> and some in couchdb but I am not sure where to look for the data I submited \>\> from mobile. Also Following is the shard health of my elastic: \>\> \>\> {"cluster\_name":"elasticsearch","status":"yellow","timed\_out":false,"number\_of\_nodes":1,"number\_of\_data\_nodes":1,"active\_primary\_shards":52,"active\_shards":52,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":22,"delayed\_unassigned\_shards":0,"number\_of\_pending\_tasks":0,"number\_of\_in\_flight\_fetch":0,"indices":{"xforms\_2016-07-07":{"status":"yellow","number\_of\_shards":5,"number\_of\_replicas":1,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":5,"shards":{"0":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"1":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"2":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"3":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"4":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1}}},"case\_search\_2016-03-15":{"status":"green","number\_of\_shards":5,"number\_of\_replicas":0,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0,"shards":{"0":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"1":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"2":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"3":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"4":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0}}},"hqgroups\_2017-05-29":{"status":"green","number\_of\_shards":5,"number\_of\_replicas":0,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0,"shards":{"0":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"1":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"2":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"3":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"4":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0}}},"report\_cases\_czei39du507m9mmpqk3y01x72a3ux4p0":{"status":"green","number\_of\_shards":5,"number\_of\_replicas":0,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0,"shards":{"0":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"1":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"2":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"3":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"4":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0}}},"smslogs\_2017-02-09":{"status":"green","number\_of\_shards":5,"number\_of\_replicas":0,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0,"shards":{"0":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"1":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"2":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"3":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"4":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0}}},"hqapps\_2017-05-22\_1426":{"status":"yellow","number\_of\_shards":5,"number\_of\_replicas":1,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":5,"shards":{"0":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"1":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"2":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"3":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"4":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1}}},"hqdomains\_2016-08-08":{"status":"yellow","number\_of\_shards":5,"number\_of\_replicas":1,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":5,"shards":{"0":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"1":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"2":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"3":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"4":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1}}},"ledgers\_2016-03-15":{"status":"green","number\_of\_shards":5,"number\_of\_replicas":0,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0,"shards":{"0":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"1":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"2":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"3":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"4":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0}}},"report\_xforms\_20160824\_1708":{"status":"green","number\_of\_shards":5,"number\_of\_replicas":0,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0,"shards":{"0":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"1":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"2":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"3":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"4":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0}}},"hqcases\_2016-03-04":{"status":"yellow","number\_of\_shards":5,"number\_of\_replicas":1,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":5,"shards":{"0":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"1":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"2":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"3":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"4":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1}}},"hqusers\_2017-05-30":{"status":"yellow","number\_of\_shards":2,"number\_of\_replicas":1,"active\_primary\_shards":2,"active\_shards":2,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":2,"shards":{"0":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"1":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1}}}}} \>\> \>\> \>\> It seems that most of them are yellow. Can you guide me if that's the way it should be? Also I've ran connection tests from the commcare mobile app to check if the connection is fine, also the forms are being submitted to the server but I am unable to see the data on the web. \>\> \>\> \>\> On Tuesday, 22 August 2017 16:15:06 UTC+4, William Pride wrote: \>\>\> \>\>\> Hi Danish, \>\>\> \>\>\> In order for those features to appear you'll need your web user to have \>\>\> the correct subscription level and permissions \>\>\> \>\>\> . \>\>\> \>\>\> As to your data - does this data appear in your databases (Couch or \>\>\> PostGres)? If yes and it doesn't appear in your reports, this could be an \>\>\> Elastic issue. If not then the issue could be with your host configuration \>\>\> - you'll want to make sure that your CommCare application's PostURL points \>\>\> correctly to your instance and that you're able to receive POST requests at \>\>\> this URL. \>\>\> \>\>\> Cheers, \>\>\> Will \>\>\> \>\>\> On Mon, Aug 21, 2017 at 6:05 PM, Danish Fayaz wrote: \>\>\> \>\>\>\> \>\>\>\> \>\>\>\> \>\>\>\> \>\>\>\> William, \>\>\>\> \>\>\>\> \>\>\>\> \>\>\>\> I really appreciate you taking time out and getting back at me. \>\>\>\> Attached are screenshots of commcare official and my production setup. I've \>\>\>\> marked the missing features. \>\>\>\> \>\>\>\> The data sync is basically from mobile. Like I downloaded the commcare \>\>\>\> android app from playstore, used the barcodes when publishing my \>\>\>\> application to download them on the android app. Then after I filled a \>\>\>\> survey / case I sync it to the web to push the data. But I don't see it in \>\>\>\> the web platform. Although I see a message on mobile that the data was \>\>\>\> synced perfectly. \>\>\>\> \>\>\>\> On Monday, 21 August 2017 15:28:47 UTC+4, William Pride wrote: \>\>\>\>\> \>\>\>\>\> Hi Danish, \>\>\>\>\> \>\>\>\>\> Could you send pictures of what you mean about the "menu link" and \>\>\>\>\> "data sync" not appearing? Apologies but I'm not sure what's being referred \>\>\>\>\> to here. \>\>\>\>\> \>\>\>\>\> The data exports issue sounds like a problem with Elastic Search - is \>\>\>\>\> ES running and error free? \>\>\>\>\> \>\>\>\>\> Cheers, \>\>\>\>\> Will \>\>\>\>\> \>\>\>\>\> On Sat, Aug 19, 2017 at 6:40 PM, Danish Fayaz wrote: \>\>\>\>\> \>\>\>\>\>\> Hey william, \>\>\>\>\>\> \>\>\>\>\>\> You've been great help. Can I ask if you know why the web app (web \>\>\>\>\>\> form filling) menu link isn't appearing on top. Also the data sync via the \>\>\>\>\>\> mobile app in a survey isn't also appearing on the web app. Also my data \>\>\>\>\>\> exports are not working at all giving a "Server maintenance in progress. \>\>\>\>\>\> Please try again later. If the problem persists, please Report an Issue." \>\>\>\>\>\> warning after a few mins. \>\>\>\>\>\> \>\>\>\>\>\> Appreciate the assist. Thanks \>\>\>\>\>\> \>\>\>\>\>\> On Friday, 18 August 2017 17:33:22 UTC+4, William Pride wrote: \>\>\>\>\>\>\> \>\>\>\>\>\>\> Hi Danish,. \>\>\>\>\>\>\> \>\>\>\>\>\>\> If you are running Formplayer then you shouldn't need to run Jython. \>\>\>\>\>\>\> The Formplayer code replaced the now-deprecated Jython code. \>\>\>\>\>\>\> \>\>\>\>\>\>\> Cheers, \>\>\>\>\>\>\> Will \>\>\>\>\>\>\> \>\>\>\>\>\>\> On Thu, Aug 17, 2017 at 7:10 PM, Danish Fayaz wrote: \>\>\>\>\>\>\> \>\>\>\>\>\>\>\> I was able to fix the formplayer-spring error. It was due to the \>\>\>\>\>\>\>\> run command (heap size was to be set). Now its running fine. But error is \>\>\>\>\>\>\>\> there, I checked forms-player (touchform server) it was giving similar \>\>\>\>\>\>\>\> error, so I set heap size and updated the jython.jar path in the command to \>\>\>\>\>\>\>\> load the right classpath. But I am getting following error when I run: \>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\> Note: I am using the recommended jython 2.5.3 \>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\> Exception in thread "main" java.lang.NoClassDefFoundError: \>\>\>\>\>\>\>\> com/google/common/collect/MapMaker \>\>\>\>\>\>\>\> at org.python.core.PyType.fromClass(PyType.java:1280) \>\>\>\>\>\>\>\> at org.python.core.PyObject.(PyObject.java:66) \>\>\>\>\>\>\>\> at \>\>\>\>\>\>\>\> org.python.core.PyBuiltinCallable.(PyBuiltinCallable.java:21) \>\>\>\>\>\>\>\> at org.python.core.PyBuiltinMethod.(PyBuiltinMethod.java:16) \>\>\>\>\>\>\>\> at \>\>\>\>\>\>\>\> org.python.core.PyBuiltinMethodNarrow.(PyBuiltinMethodNarrow.java:24) \>\>\>\>\>\>\>\> at \>\>\>\>\>\>\>\> org.python.core.PyType$type\_\_\_subclasses\_\_\_exposer.(Unknown Source) \>\>\>\>\>\>\>\> at org.python.core.PyType$PyExposer.(Unknown Source) \>\>\>\>\>\>\>\> at org.python.core.PyType.(PyType.java) \>\>\>\>\>\>\>\> at org.python.core.PyObject.(PyObject.java:66) \>\>\>\>\>\>\>\> at \>\>\>\>\>\>\>\> org.python.core.PyBuiltinCallable.(PyBuiltinCallable.java:21) \>\>\>\>\>\>\>\> at org.python.core.PyBuiltinMethod.(PyBuiltinMethod.java:16) \>\>\>\>\>\>\>\> at \>\>\>\>\>\>\>\> org.python.core.PyBuiltinMethodNarrow.(PyBuiltinMethodNarrow.java:24) \>\>\>\>\>\>\>\> at \>\>\>\>\>\>\>\> org.python.core.PyDataDescr$getset\_descriptor\_\_\_get\_\_\_exposer.(Unknown \>\>\>\>\>\>\>\> Source) \>\>\>\>\>\>\>\> at org.python.core.PyDataDescr$PyExposer.(Unknown Source) \>\>\>\>\>\>\>\> at org.python.core.PyDataDescr.(PyDataDescr.java) \>\>\>\>\>\>\>\> at org.python.core.PyBuiltinCallable$PyExposer.(Unknown \>\>\>\>\>\>\>\> Source) \>\>\>\>\>\>\>\> at \>\>\>\>\>\>\>\> org.python.core.PyBuiltinCallable.(PyBuiltinCallable.java) \>\>\>\>\>\>\>\> at org.python.core.PyObject$PyExposer.(Unknown Source) \>\>\>\>\>\>\>\> at org.python.core.PyObject.(PyObject.java) \>\>\>\>\>\>\>\> at org.python.util.jython.run(jython.java:150) \>\>\>\>\>\>\>\> at org.python.util.jython.main(jython.java:129) \>\>\>\>\>\>\>\> Caused by: java.lang.ClassNotFoundException: \>\>\>\>\>\>\>\> com.google.common.collect.MapMaker \>\>\>\>\>\>\>\> at java.net.URLClassLoader.findClass(URLClassLoader.java:381) \>\>\>\>\>\>\>\> at java.lang.ClassLoader.loadClass(ClassLoader.java:424) \>\>\>\>\>\>\>\> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) \>\>\>\>\>\>\>\> at java.lang.ClassLoader.loadClass(ClassLoader.java:357) \>\>\>\>\>\>\>\> ... 21 more \>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\> On Friday, 18 August 2017 00:36:42 UTC+4, William Pride wrote: \>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\> Hi Danish, \>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\> Looks like a CORS \>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\> issue - Web Apps and App Builder make cross domain requests in order to \>\>\>\>\>\>\>\>\> communicate directly with Formplayer. Thus we configure Ajax and Spring to \>\>\>\>\>\>\>\>\> accept cross domain requests. I'm not sure whether this configuration would \>\>\>\>\>\>\>\>\> be sufficient in all browsers/servers (for example if these intentionally \>\>\>\>\>\>\>\>\> disallowed cross-domain requests). Does Formplayer log the requests? \>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\> Cheers, \>\>\>\>\>\>\>\>\> Will \>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\> On Wed, Aug 16, 2017 at 18:39 Danish Fayaz wrote: \>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\> Just now, I've also tried running formplayer seperately, it \>\>\>\>\>\>\>\>\>\> builds and runs all fine. But still I am getting the disallowed origin \>\>\>\>\>\>\>\>\>\> error. Options (pre flight requests failing). \>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\> On Thursday, 17 August 2017 02:11:55 UTC+4, Danish Fayaz wrote: \>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\> Thank you so much for your reply, yes william I've cloned \>\>\>\>\>\>\>\>\>\>\> Formplayer in the commcarehq root directory and updated submodules as \>\>\>\>\>\>\>\>\>\>\> instructed. \>\>\>\>\>\>\>\>\>\>\> Further I think the supervisor runs the formplayer so I changed \>\>\>\>\>\>\>\>\>\>\> the deployment config of supervisor in the services/supervisor/changeme\_s \>\>\>\>\>\>\>\>\>\>\> upervisor\_formplayer\_spring.conf \>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\> Changed the name of dir from formplayer\_build to formplayer (as \>\>\>\>\>\>\>\>\>\>\> per cloned). \>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\> Still when I go to the application page I get the same error and \>\>\>\>\>\>\>\>\>\>\> when I click the start Icon in the App (in screenshot) I get the same error \>\>\>\>\>\>\>\>\>\>\> as in the screenshot. \>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\> I checked the console, following errors occur: \>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\> \*OPTIONS http://dev.commcare:8080/delete\_application\_dbs \>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\> net::ERR\_CONNECTION\_REFUSED\* \>\>\>\>\>\>\>\>\>\>\> \*Disallowed origin http://dev.commcare \* \>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\> Also when I click on Users (screenshot) I get the following in \>\>\>\>\>\>\>\>\>\>\> the console: \>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\> \*GET \>\>\>\>\>\>\>\>\>\>\> http://dev.commcare/a/test.org/cloudcare/api/login\_as/users/?query=&limit=10&page=1 \>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\> 500 (Internal Server Error)\* \>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\> I'd appreciate it if someone can guide me on this. Thank you so \>\>\>\>\>\>\>\>\>\>\> much for the forum and the community's help. \>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\> On Wednesday, 16 August 2017 16:06:24 UTC+4, William Pride wrote: \>\>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\>\> Can you confirm that you have Formplayer running per the \>\>\>\>\>\>\>\>\>\>\>\> instructions here ? \>\>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\>\> If so can you provide the exception you're seeing in your \>\>\>\>\>\>\>\>\>\>\>\> browser (and in Formplayer/HQ if such exists) \>\>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\>\> Thanks, \>\>\>\>\>\>\>\>\>\>\>\> Will \>\>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\>\> On Tue, Aug 15, 2017 at 6:45 PM, Danish Fayaz \< danish...@gmail.com\> wrote: \>\>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\>\>\> Hello, \>\>\>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\>\>\> I am doing a research demo for my university and I actually need some of your assistance. \>\>\>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\>\>\> I am currently trying to deploy the commcare production app from github on a server. I've followed the production instructions carefully and able to run the app. But when I make an application and try to edit it I get the following errors (screenshot attached). As if formplayer isn't running, also I see an ajax request to my domain gives an error of "Disallowed". \>\>\>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\>\>\> Can you please guide me if there's a proper documentation available or where I need to look for. It means a lot to me. Thank you for your time. \>\>\>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\>\>\> -- \>\>\>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\>\>\> --- \>\>\>\>\>\>\>\>\>\>\>\>\> 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. \>\>\>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\>\>\> -- \>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\>\> --- \>\>\>\>\>\>\>\>\>\> 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. \>\>\>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\>\> -- \>\>\>\>\>\>\>\> \>\>\>\>\>\>\>\> --- \>\>\>\>\>\>\>\> 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. \>\>\>\>\>\>\>\> \>\>\>\>\>\>\> \>\>\>\>\>\>\> -- \>\>\>\>\>\> \>\>\>\>\>\> --- \>\>\>\>\>\> 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. \>\>\>\>\>\> \>\>\>\>\> \>\>\>\>\> -- \>\>\>\> \>\>\>\> --- \>\>\>\> 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. \>\>\>\> \>\>\> \>\>\> -- \>\> \>\> --- \>\> 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. \>\> \> \> \>

---

<div class="post-metadata">

**Author:** ![Simon\_Kelly](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/simon_kelly/32/494_2.png) [@Simon\_Kelly](https://forum.dimagi.com/u/Simon_Kelly)\
**Post date:** [September 18, 2017, 7:28am UTC](https://forum.dimagi.com/t/commcare-production-goes-well-but-errors-of-cloudcare/3673/16 "2017-09-18T07:28:39Z")

</div>

Hi

I've never seen that error before but a quick google search suggests it may  
be related to an underpowered database machine:

> <https://stackoverflow.com/questions/24130305/postgres-ssl-syscall-error-eof-detected-with-python-and-psycopg>

Simon Kelly  
Director of Server Engineer | Dimagi

> **···**
>
> On 16 September 2017 at 20:06, Danish Fayaz wrote:
> 
> > Hello Simon,
> > 
> > Sorry for replying late, I was held up by a few other things. I've gone  
> > through the elastic shards and also deleted the unassigned ones. But the  
> > actually problem is with pillow top (You're right). I ran the following  
> > ptop commands as per Production Instructions:
> > 
> > /home/commcarehq/bin/python manage.py ptop\_preindex  
> > /home/commcarehq/bin/python manage.py ptop\_es\_manage --flip\_all\_aliases
> > 
> > These are running all fine. But the ptop\_all command fails with the  
> > following errors which I can't make anything of ☹ can you take a look at  
> > them and advise what's causing it? I've even searched the forum but found  
> > nothing relevant.
> > 
> > Process Process-33:  
> > Traceback (most recent call last):  
> > File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in  
> > \_bootstrap  
> > self.run()  
> > File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run  
> > self.\_target(\*self.\_args, \*\*self.\_kwargs)  
> > File "./corehq/ex-submodules/pillowtop/pillow/interface.py", line 96,  
> > in run  
> > self.process\_changes(since=self.get\_last\_checkpoint\_sequence(),  
> > forever=True)  
> > File "./corehq/ex-submodules/pillowtop/pillow/interface.py", line 80,  
> > in get\_last\_checkpoint\_sequence  
> > return self.checkpoint.get\_or\_create\_wrapped().wrapped\_sequence  
> > File "./corehq/ex-submodules/pillowtop/checkpoints/manager.py", line  
> > 180, in get\_or\_create\_wrapped  
> > checkpoints = self.\_get\_checkpoints()  
> > File "./corehq/ex-submodules/pillowtop/checkpoints/manager.py", line  
> > 177, in \_get\_checkpoints  
> > return KafkaCheckpoint.get\_or\_create\_for\_checkpoint\_id(self.checkpoint\_id,  
> > self.topics)  
> > File "./corehq/ex-submodules/pillowtop/models.py", line 91, in  
> > get\_or\_create\_for\_checkpoint\_id  
> > .values\_list('topic', 'partition')  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/django/db/models/query.py",  
> > line 256, in **iter**  
> > self.\_fetch\_all()  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/django/db/models/query.py",  
> > line 1087, in \_fetch\_all  
> > self.\_result\_cache = list(self.iterator())  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/django/db/models/query.py",  
> > line 125, in **iter**  
> > for row in compiler.results\_iter():  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/  
> > django/db/models/sql/compiler.py", line 789, in results\_iter  
> > results = self.execute\_sql(MULTI)  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/  
> > django/db/models/sql/compiler.py", line 835, in execute\_sql  
> > cursor.execute(sql, params)  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/django/db/backends/utils.py",  
> > line 79, in execute  
> > return super(CursorDebugWrapper, self).execute(sql, params)  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/raven/contrib/django/client.py",  
> > line 114, in execute  
> > return real\_execute(self, sql, params)  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/django/db/backends/utils.py",  
> > line 64, in execute  
> > return self.cursor.execute(sql, params)  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/django/db/utils.py",  
> > line 94, in **exit**  
> > six.reraise(dj\_exc\_type, dj\_exc\_value, traceback)  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/django/db/backends/utils.py",  
> > line 64, in execute  
> > return self.cursor.execute(sql, params)  
> > OperationalError: SSL SYSCALL error: EOF detected
> > 
> > Process Process-36:  
> > Traceback (most recent call last):  
> > File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in  
> > \_bootstrap  
> > self.run()  
> > File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run  
> > self.\_target(\*self.\_args, \*\*self.\_kwargs)  
> > File "./corehq/ex-submodules/pillowtop/pillow/interface.py", line 96,  
> > in run  
> > self.process\_changes(since=self.get\_last\_checkpoint\_sequence(),  
> > forever=True)  
> > File "./corehq/ex-submodules/pillowtop/pillow/interface.py", line 80,  
> > in get\_last\_checkpoint\_sequence  
> > return self.checkpoint.get\_or\_create\_wrapped().wrapped\_sequence  
> > File "./corehq/ex-submodules/pillowtop/checkpoints/manager.py", line  
> > 180, in get\_or\_create\_wrapped  
> > checkpoints = self.\_get\_checkpoints()  
> > File "./corehq/ex-submodules/pillowtop/checkpoints/manager.py", line  
> > 177, in \_get\_checkpoints  
> > return KafkaCheckpoint.get\_or\_create\_for\_checkpoint\_id(self.checkpoint\_id,  
> > self.topics)  
> > File "./corehq/ex-submodules/pillowtop/models.py", line 91, in  
> > get\_or\_create\_for\_checkpoint\_id  
> > .values\_list('topic', 'partition')  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/django/db/models/query.py",  
> > line 256, in **iter**  
> > self.\_fetch\_all()  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/django/db/models/query.py",  
> > line 1087, in \_fetch\_all  
> > self.\_result\_cache = list(self.iterator())  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/django/db/models/query.py",  
> > line 125, in **iter**  
> > for row in compiler.results\_iter():  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/  
> > django/db/models/sql/compiler.py", line 789, in results\_iter  
> > results = self.execute\_sql(MULTI)  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/  
> > django/db/models/sql/compiler.py", line 835, in execute\_sql  
> > cursor.execute(sql, params)  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/django/db/backends/utils.py",  
> > line 79, in execute  
> > return super(CursorDebugWrapper, self).execute(sql, params)  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/raven/contrib/django/client.py",  
> > line 114, in execute  
> > return real\_execute(self, sql, params)  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/django/db/backends/utils.py",  
> > line 64, in execute  
> > return self.cursor.execute(sql, params)  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/django/db/utils.py",  
> > line 94, in **exit**  
> > 2017-09-16 17:24:06,225 INFO interface Starting pillow \<class  
> > 'pillowtop.pillow.interface.ConstructedPillow'\>  
> > six.reraise(dj\_exc\_type, dj\_exc\_value, traceback)  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/django/db/backends/utils.py",  
> > line 64, in execute  
> > return self.cursor.execute(sql, params)  
> > OperationalError: SSL SYSCALL error: EOF detected
> > 
> > Process Process-32:  
> > Traceback (most recent call last):  
> > File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in  
> > \_bootstrap  
> > self.run()  
> > File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run  
> > self.\_target(\*self.\_args, \*\*self.\_kwargs)  
> > File "./corehq/ex-submodules/pillowtop/pillow/interface.py", line 96,  
> > in run  
> > self.process\_changes(since=self.get\_last\_checkpoint\_sequence(),  
> > forever=True)  
> > File "./corehq/ex-submodules/pillowtop/pillow/interface.py", line 80,  
> > in get\_last\_checkpoint\_sequence  
> > return self.checkpoint.get\_or\_create\_wrapped().wrapped\_sequence  
> > File "./corehq/ex-submodules/pillowtop/checkpoints/manager.py", line  
> > 180, in get\_or\_create\_wrapped  
> > checkpoints = self.\_get\_checkpoints()  
> > File "./corehq/ex-submodules/pillowtop/checkpoints/manager.py", line  
> > 177, in \_get\_checkpoints  
> > return KafkaCheckpoint.get\_or\_create\_for\_checkpoint\_id(self.checkpoint\_id,  
> > self.topics)  
> > File "./corehq/ex-submodules/pillowtop/models.py", line 91, in  
> > get\_or\_create\_for\_checkpoint\_id  
> > .values\_list('topic', 'partition')  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/django/db/models/query.py",  
> > line 256, in **iter**  
> > self.\_fetch\_all()  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/django/db/models/query.py",  
> > line 1087, in \_fetch\_all  
> > self.\_result\_cache = list(self.iterator())  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/django/db/models/query.py",  
> > line 125, in **iter**  
> > for row in compiler.results\_iter():  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/  
> > django/db/models/sql/compiler.py", line 789, in results\_iter  
> > results = self.execute\_sql(MULTI)  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/  
> > django/db/models/sql/compiler.py", line 835, in execute\_sql  
> > cursor.execute(sql, params)  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/django/db/backends/utils.py",  
> > line 79, in execute  
> > return super(CursorDebugWrapper, self).execute(sql, params)  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/raven/contrib/django/client.py",  
> > line 114, in execute  
> > return real\_execute(self, sql, params)  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/django/db/backends/utils.py",  
> > line 64, in execute  
> > return self.cursor.execute(sql, params)  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/django/db/utils.py",  
> > line 94, in **exit**  
> > six.reraise(dj\_exc\_type, dj\_exc\_value, traceback)  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/django/db/backends/utils.py",  
> > line 64, in execute  
> > return self.cursor.execute(sql, params)  
> > OperationalError: SSL SYSCALL error: EOF detected
> > 
> > Process Process-34:  
> > Traceback (most recent call last):  
> > File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in  
> > \_bootstrap  
> > self.run()  
> > File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run  
> > self.\_target(\*self.\_args, \*\*self.\_kwargs)  
> > File "./corehq/ex-submodules/pillowtop/pillow/interface.py", line 96,  
> > in run  
> > self.process\_changes(since=self.get\_last\_checkpoint\_sequence(),  
> > forever=True)  
> > File "./corehq/ex-submodules/pillowtop/pillow/interface.py", line 80,  
> > in get\_last\_checkpoint\_sequence  
> > return self.checkpoint.get\_or\_create\_wrapped().wrapped\_sequence  
> > File "./corehq/ex-submodules/pillowtop/checkpoints/manager.py", line  
> > 180, in get\_or\_create\_wrapped  
> > checkpoints = self.\_get\_checkpoints()  
> > File "./corehq/ex-submodules/pillowtop/checkpoints/manager.py", line  
> > 177, in \_get\_checkpoints  
> > return KafkaCheckpoint.get\_or\_create\_for\_checkpoint\_id(self.checkpoint\_id,  
> > self.topics)  
> > File "./corehq/ex-submodules/pillowtop/models.py", line 91, in  
> > get\_or\_create\_for\_checkpoint\_id  
> > .values\_list('topic', 'partition')  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/django/db/models/query.py",  
> > line 256, in **iter**  
> > self.\_fetch\_all()  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/django/db/models/query.py",  
> > line 1087, in \_fetch\_all  
> > self.\_result\_cache = list(self.iterator())  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/django/db/models/query.py",  
> > line 125, in **iter**  
> > for row in compiler.results\_iter():  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/  
> > django/db/models/sql/compiler.py", line 789, in results\_iter  
> > results = self.execute\_sql(MULTI)  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/  
> > django/db/models/sql/compiler.py", line 835, in execute\_sql  
> > cursor.execute(sql, params)  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/django/db/backends/utils.py",  
> > line 79, in execute  
> > return super(CursorDebugWrapper, self).execute(sql, params)  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/raven/contrib/django/client.py",  
> > line 114, in execute  
> > return real\_execute(self, sql, params)  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/django/db/backends/utils.py",  
> > line 64, in execute  
> > return self.cursor.execute(sql, params)  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/django/db/utils.py",  
> > line 94, in **exit**  
> > six.reraise(dj\_exc\_type, dj\_exc\_value, traceback)  
> > File "/home/commcarehq/local/lib/python2.7/site-packages/django/db/backends/utils.py",  
> > line 64, in execute  
> > return self.cursor.execute(sql, params)  
> > OperationalError: SSL SYSCALL error: EOF detected
> > 
> > On Thursday, 24 August 2017 15:33:24 UTC+4, Simon Kelly wrote:
> > 
> > > Hi Danish
> > > 
> > > I'd suggest you use ES HEAD [https://github.com/mobz/elasticsearch-head](https://github.com/mobz/elasticsearch-head) or  
> > > some other ES management tool to see what shards are causing the issue.  
> > > Based on the quick look at the shard status I think you have a number of  
> > > replica shards which are unassigned. If you're running ES with only one  
> > > node then you should just remove the replica shards.
> > > 
> > > If you're unable to see data on the web it may mean that you're not  
> > > running 'pillowtop' using the 'run\_ptop' command: [di (Dustin Ingram) · GitHub](https://github.com/di)  
> > > magi/commcare-hq/blob/master/README.md#running-commcare-hq
> > > 
> > > Simon Kelly  
> > > Director of Server Engineer | Dimagi
> > > 
> > > On 22 August 2017 at 23:17, Danish Fayaz [danish...@gmail.com](mailto:danish...@gmail.com) wrote:
> > > 
> > > > Hello william,
> > > > 
> > > > I've looked at postgres and couch, I do have a lot of tables in postgres  
> > > > and some in couchdb but I am not sure where to look for the data I submited  
> > > > from mobile. Also Following is the shard health of my elastic:
> > > > 
> > > > {"cluster\_name":"elasticsearch","status":"yellow","timed\_out":false,"number\_of\_nodes":1,"number\_of\_data\_nodes":1,"active\_primary\_shards":52,"active\_shards":52,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":22,"delayed\_unassigned\_shards":0,"number\_of\_pending\_tasks":0,"number\_of\_in\_flight\_fetch":0,"indices":{"xforms\_2016-07-07":{"status":"yellow","number\_of\_shards":5,"number\_of\_replicas":1,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":5,"shards":{"0":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"1":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"2":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"3":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"4":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1}}},"case\_search\_2016-03-15":{"status":"green","number\_of\_shards":5,"number\_of\_replicas":0,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0,"shards":{"0":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"1":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"2":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"3":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"4":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0}}},"hqgroups\_2017-05-29":{"status":"green","number\_of\_shards":5,"number\_of\_replicas":0,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0,"shards":{"0":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"1":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"2":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"3":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"4":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0}}},"report\_cases\_czei39du507m9mmpqk3y01x72a3ux4p0":{"status":"green","number\_of\_shards":5,"number\_of\_replicas":0,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0,"shards":{"0":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"1":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"2":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"3":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"4":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0}}},"smslogs\_2017-02-09":{"status":"green","number\_of\_shards":5,"number\_of\_replicas":0,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0,"shards":{"0":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"1":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"2":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"3":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"4":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0}}},"hqapps\_2017-05-22\_1426":{"status":"yellow","number\_of\_shards":5,"number\_of\_replicas":1,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":5,"shards":{"0":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"1":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"2":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"3":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"4":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1}}},"hqdomains\_2016-08-08":{"status":"yellow","number\_of\_shards":5,"number\_of\_replicas":1,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":5,"shards":{"0":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"1":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"2":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"3":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"4":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1}}},"ledgers\_2016-03-15":{"status":"green","number\_of\_shards":5,"number\_of\_replicas":0,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0,"shards":{"0":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"1":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"2":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"3":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"4":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0}}},"report\_xforms\_20160824\_1708":{"status":"green","number\_of\_shards":5,"number\_of\_replicas":0,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0,"shards":{"0":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"1":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"2":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"3":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0},"4":{"status":"green","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":0}}},"hqcases\_2016-03-04":{"status":"yellow","number\_of\_shards":5,"number\_of\_replicas":1,"active\_primary\_shards":5,"active\_shards":5,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":5,"shards":{"0":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"1":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"2":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"3":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"4":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1}}},"hqusers\_2017-05-30":{"status":"yellow","number\_of\_shards":2,"number\_of\_replicas":1,"active\_primary\_shards":2,"active\_shards":2,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":2,"shards":{"0":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1},"1":{"status":"yellow","primary\_active":true,"active\_shards":1,"relocating\_shards":0,"initializing\_shards":0,"unassigned\_shards":1}}}}}
> > > > 
> > > > It seems that most of them are yellow. Can you guide me if that's the way it should be? Also I've ran connection tests from the commcare mobile app to check if the connection is fine, also the forms are being submitted to the server but I am unable to see the data on the web.
> > > > 
> > > > On Tuesday, 22 August 2017 16:15:06 UTC+4, William Pride wrote:
> > > > 
> > > > > Hi Danish,
> > > > > 
> > > > > In order for those features to appear you'll need your web user to have  
> > > > > the correct subscription level and permissions  
> > > > > [https://confluence.dimagi.com/display/commcarepublic/CommCareHQ+Web+Users](https://confluence.dimagi.com/display/commcarepublic/CommCareHQ+Web+Users)  
> > > > > .
> > > > > 
> > > > > As to your data - does this data appear in your databases (Couch or  
> > > > > PostGres)? If yes and it doesn't appear in your reports, this could be an  
> > > > > Elastic issue. If not then the issue could be with your host configuration
> > > > > 
> > > > > - you'll want to make sure that your CommCare application's PostURL points  
> > > > > correctly to your instance and that you're able to receive POST requests at  
> > > > > this URL.
> > > > > 
> > > > > Cheers,  
> > > > > Will
> > > > > 
> > > > > On Mon, Aug 21, 2017 at 6:05 PM, Danish Fayaz [danish...@gmail.com](mailto:danish...@gmail.com) wrote:
> > > > > 
> > > > > > [https://lh3.googleusercontent.com/-7cqEUWWZnOA/WZtYwKj5pnI/AAAAAAAAmMM/y6UbrIEKz34munz9yCCYGWNpUlY-4J6RgCLcBGAs/s1600/commcare.png](https://lh3.googleusercontent.com/-7cqEUWWZnOA/WZtYwKj5pnI/AAAAAAAAmMM/y6UbrIEKz34munz9yCCYGWNpUlY-4J6RgCLcBGAs/s1600/commcare.png)
> > > > > > 
> > > > > > William,
> > > > > > 
> > > > > > [https://lh3.googleusercontent.com/-P52KFjyBLTo/WZtYuNS8EPI/AAAAAAAAmMI/OFTKYaqqg9ciT1t0e8XmXEN-a6lSHqvJgCLcBGAs/s1600/local.png](https://lh3.googleusercontent.com/-P52KFjyBLTo/WZtYuNS8EPI/AAAAAAAAmMI/OFTKYaqqg9ciT1t0e8XmXEN-a6lSHqvJgCLcBGAs/s1600/local.png)  
> > > > > > I really appreciate you taking time out and getting back at me.  
> > > > > > Attached are screenshots of commcare official and my production setup. I've  
> > > > > > marked the missing features.
> > > > > > 
> > > > > > The data sync is basically from mobile. Like I downloaded the commcare  
> > > > > > android app from playstore, used the barcodes when publishing my  
> > > > > > application to download them on the android app. Then after I filled a  
> > > > > > survey / case I sync it to the web to push the data. But I don't see it in  
> > > > > > the web platform. Although I see a message on mobile that the data was  
> > > > > > synced perfectly.
> > > > > > 
> > > > > > On Monday, 21 August 2017 15:28:47 UTC+4, William Pride wrote:
> > > > > > 
> > > > > > > Hi Danish,
> > > > > > > 
> > > > > > > Could you send pictures of what you mean about the "menu link" and  
> > > > > > > "data sync" not appearing? Apologies but I'm not sure what's being referred  
> > > > > > > to here.
> > > > > > > 
> > > > > > > The data exports issue sounds like a problem with Elastic Search - is  
> > > > > > > ES running and error free?
> > > > > > > 
> > > > > > > Cheers,  
> > > > > > > Will
> > > > > > > 
> > > > > > > On Sat, Aug 19, 2017 at 6:40 PM, Danish Fayaz [danish...@gmail.com](mailto:danish...@gmail.com) wrote:
> > > > > > > 
> > > > > > > > Hey william,
> > > > > > > > 
> > > > > > > > You've been great help. Can I ask if you know why the web app (web  
> > > > > > > > form filling) menu link isn't appearing on top. Also the data sync via the  
> > > > > > > > mobile app in a survey isn't also appearing on the web app. Also my data  
> > > > > > > > exports are not working at all giving a "Server maintenance in progress.  
> > > > > > > > Please try again later. If the problem persists, please Report an Issue."  
> > > > > > > > warning after a few mins.
> > > > > > > > 
> > > > > > > > Appreciate the assist. Thanks
> > > > > > > > 
> > > > > > > > On Friday, 18 August 2017 17:33:22 UTC+4, William Pride wrote:
> > > > > > > > 
> > > > > > > > > Hi Danish,.
> > > > > > > > > 
> > > > > > > > > If you are running Formplayer then you shouldn't need to run  
> > > > > > > > > Jython. The Formplayer code replaced the now-deprecated Jython code.
> > > > > > > > > 
> > > > > > > > > Cheers,  
> > > > > > > > > Will
> > > > > > > > > 
> > > > > > > > > On Thu, Aug 17, 2017 at 7:10 PM, Danish Fayaz [danish...@gmail.com](mailto:danish...@gmail.com) wrote:
> > > > > > > > > 
> > > > > > > > > > I was able to fix the formplayer-spring error. It was due to the  
> > > > > > > > > > run command (heap size was to be set). Now its running fine. But error is  
> > > > > > > > > > there, I checked forms-player (touchform server) it was giving similar  
> > > > > > > > > > error, so I set heap size and updated the jython.jar path in the command to  
> > > > > > > > > > load the right classpath. But I am getting following error when I run:
> > > > > > > > > > 
> > > > > > > > > > Note: I am using the recommended jython 2.5.3
> > > > > > > > > > 
> > > > > > > > > > Exception in thread "main" java.lang.NoClassDefFoundError:  
> > > > > > > > > > com/google/common/collect/MapMaker  
> > > > > > > > > > at org.python.core.PyType.fromClass(PyType.java:1280)  
> > > > > > > > > > at org.python.core.PyObject.(PyObject.java:66)  
> > > > > > > > > > at org.python.core.PyBuiltinCallable.(PyBuiltinCallable.  
> > > > > > > > > > java:21)  
> > > > > > > > > > at org.python.core.PyBuiltinMethod.(PyBuiltinMethod.java:16)  
> > > > > > > > > > at org.python.core.PyBuiltinMethodNarrow.(PyBuiltinMethod  
> > > > > > > > > > Narrow.java:24)  
> > > > > > > > > > at org.python.core.PyType$type\_\_\_subclasses\_\_\_exposer.(Unknown  
> > > > > > > > > > Source)  
> > > > > > > > > > at org.python.core.PyType$PyExposer.(Unknown Source)  
> > > > > > > > > > at org.python.core.PyType.(PyType.java)  
> > > > > > > > > > at org.python.core.PyObject.(PyObject.java:66)  
> > > > > > > > > > at org.python.core.PyBuiltinCallable.(PyBuiltinCallable.  
> > > > > > > > > > java:21)  
> > > > > > > > > > at org.python.core.PyBuiltinMethod.(PyBuiltinMethod.java:16)  
> > > > > > > > > > at org.python.core.PyBuiltinMethodNarrow.(PyBuiltinMethod  
> > > > > > > > > > Narrow.java:24)  
> > > > > > > > > > at org.python.core.PyDataDescr$getset\_descriptor\_\_\_get\_\_\_exposer.(Unknown  
> > > > > > > > > > Source)  
> > > > > > > > > > at org.python.core.PyDataDescr$PyExposer.(Unknown Source)  
> > > > > > > > > > at org.python.core.PyDataDescr.(PyDataDescr.java)  
> > > > > > > > > > at org.python.core.PyBuiltinCallable$PyExposer.(Unknown  
> > > > > > > > > > Source)  
> > > > > > > > > > at org.python.core.PyBuiltinCallable.(PyBuiltinCallable  
> > > > > > > > > > .java)  
> > > > > > > > > > at org.python.core.PyObject$PyExposer.(Unknown Source)  
> > > > > > > > > > at org.python.core.PyObject.(PyObject.java)  
> > > > > > > > > > at org.python.util.jython.run(jython.java:150)  
> > > > > > > > > > at org.python.util.jython.main(jython.java:129)  
> > > > > > > > > > Caused by: java.lang.ClassNotFoundException:  
> > > > > > > > > > com.google.common.collect.MapMaker  
> > > > > > > > > > at java.net.URLClassLoader.findClass(URLClassLoader.java:381)  
> > > > > > > > > > at java.lang.ClassLoader.loadClass(ClassLoader.java:424)  
> > > > > > > > > > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)  
> > > > > > > > > > at java.lang.ClassLoader.loadClass(ClassLoader.java:357)  
> > > > > > > > > > ... 21 more
> > > > > > > > > > 
> > > > > > > > > > On Friday, 18 August 2017 00:36:42 UTC+4, William Pride wrote:
> > > > > > > > > > 
> > > > > > > > > > > Hi Danish,
> > > > > > > > > > > 
> > > > > > > > > > > Looks like a CORS  
> > > > > > > > > > > [https://en.wikipedia.org/wiki/Cross-origin\_resource\_sharing](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing)  
> > > > > > > > > > > issue - Web Apps and App Builder make cross domain requests in order to  
> > > > > > > > > > > communicate directly with Formplayer. Thus we configure Ajax and Spring to  
> > > > > > > > > > > accept cross domain requests. I'm not sure whether this configuration would  
> > > > > > > > > > > be sufficient in all browsers/servers (for example if these intentionally  
> > > > > > > > > > > disallowed cross-domain requests). Does Formplayer log the requests?
> > > > > > > > > > > 
> > > > > > > > > > > Cheers,  
> > > > > > > > > > > Will
> > > > > > > > > > > 
> > > > > > > > > > > On Wed, Aug 16, 2017 at 18:39 Danish Fayaz [danish...@gmail.com](mailto:danish...@gmail.com) wrote:
> > > > > > > > > > > 
> > > > > > > > > > > > Just now, I've also tried running formplayer seperately, it  
> > > > > > > > > > > > builds and runs all fine. But still I am getting the disallowed origin  
> > > > > > > > > > > > error. Options (pre flight requests failing).
> > > > > > > > > > > > 
> > > > > > > > > > > > On Thursday, 17 August 2017 02:11:55 UTC+4, Danish Fayaz wrote:
> > > > > > > > > > > > 
> > > > > > > > > > > > > Thank you so much for your reply, yes william I've cloned  
> > > > > > > > > > > > > Formplayer in the commcarehq root directory and updated submodules as  
> > > > > > > > > > > > > instructed.  
> > > > > > > > > > > > > Further I think the supervisor runs the formplayer so I changed  
> > > > > > > > > > > > > the deployment config of supervisor in the services/supervisor/changeme\_s  
> > > > > > > > > > > > > upervisor\_formplayer\_spring.conf
> > > > > > > > > > > > > 
> > > > > > > > > > > > > Changed the name of dir from formplayer\_build to formplayer (as  
> > > > > > > > > > > > > per cloned).
> > > > > > > > > > > > > 
> > > > > > > > > > > > > Still when I go to the application page I get the same error  
> > > > > > > > > > > > > and when I click the start Icon in the App (in screenshot) I get the same  
> > > > > > > > > > > > > error as in the screenshot.
> > > > > > > > > > > > > 
> > > > > > > > > > > > > I checked the console, following errors occur:
> > > > > > > > > > > > > 
> > > > > > > > > > > > > _OPTIONS [http://dev.commcare:8080/delete\_application\_dbs](http://dev.commcare:8080/delete_application_dbs)  
> > > > > > > > > > > > > [http://dev.commcare:8080/delete\_application\_dbs](http://dev.commcare:8080/delete_application_dbs)  
> > > > > > > > > > > > > net::ERR\_CONNECTION\_REFUSED_  
> > > > > > > > > > > > > _Disallowed origin [http://dev.commcare](http://dev.commcare) [http://dev.commcare](http://dev.commcare)_
> > > > > > > > > > > > > 
> > > > > > > > > > > > > Also when I click on Users (screenshot) I get the following in  
> > > > > > > > > > > > > the console:
> > > > > > > > > > > > > 
> > > > > > > > > > > > > _GET  
> > > > > > > > > > > > > [http://dev.commcare/a/test.org/cloudcare/api/login\_as/users/?query=&limit=10&page=1](http://dev.commcare/a/test.org/cloudcare/api/login_as/users/?query=&limit=10&page=1)  
> > > > > > > > > > > > > [http://dev.commcare/a/test.org/cloudcare/api/login\_as/users/?query=&limit=10&page=1](http://dev.commcare/a/test.org/cloudcare/api/login_as/users/?query=&limit=10&page=1)  
> > > > > > > > > > > > > 500 (Internal Server Error)_
> > > > > > > > > > > > > 
> > > > > > > > > > > > > I'd appreciate it if someone can guide me on this. Thank you so  
> > > > > > > > > > > > > much for the forum and the community's help.
> > > > > > > > > > > > > 
> > > > > > > > > > > > > On Wednesday, 16 August 2017 16:06:24 UTC+4, William Pride wrote:
> > > > > > > > > > > > > 
> > > > > > > > > > > > > > Can you confirm that you have Formplayer running per the  
> > > > > > > > > > > > > > instructions here [https://github.com/dimagi/formplayer](https://github.com/dimagi/formplayer)?
> > > > > > > > > > > > > > 
> > > > > > > > > > > > > > If so can you provide the exception you're seeing in your  
> > > > > > > > > > > > > > browser (and in Formplayer/HQ if such exists)
> > > > > > > > > > > > > > 
> > > > > > > > > > > > > > Thanks,  
> > > > > > > > > > > > > > Will
> > > > > > > > > > > > > > 
> > > > > > > > > > > > > > On Tue, Aug 15, 2017 at 6:45 PM, Danish Fayaz \< [danish...@gmail.com](mailto:danish...@gmail.com)\> wrote:
> > > > > > > > > > > > > > 
> > > > > > > > > > > > > > > Hello,
> > > > > > > > > > > > > > > 
> > > > > > > > > > > > > > > I am doing a research demo for my university and I actually need some of your assistance.
> > > > > > > > > > > > > > > 
> > > > > > > > > > > > > > > I am currently trying to deploy the commcare production app from github on a server. I've followed the production instructions carefully and able to run the app. But when I make an application and try to edit it I get the following errors (screenshot attached). As if formplayer isn't running, also I see an ajax request to my domain gives an error of "Disallowed".
> > > > > > > > > > > > > > > 
> > > > > > > > > > > > > > > [https://lh3.googleusercontent.com/-MYOSgjQEuck/WZN5ec\_WJTI/AAAAAAAAlts/f1OYNSNTy38AixhxaWZ-PmxnUIBqc8gTACLcBGAs/s1600/commcare-error.png](https://lh3.googleusercontent.com/-MYOSgjQEuck/WZN5ec_WJTI/AAAAAAAAlts/f1OYNSNTy38AixhxaWZ-PmxnUIBqc8gTACLcBGAs/s1600/commcare-error.png)
> > > > > > > > > > > > > > > 
> > > > > > > > > > > > > > > Can you please guide me if there's a proper documentation available or where I need to look for. It means a lot to me. Thank you for your time.
> > > > > > > > > > > > > > > 
> > > > > > > > > > > > > > > --
> > > > > > > > > > > > > > > 
> > > > > > > > > > > > > > > * * *
> > > > > > > > > > > > > > > 
> > > > > > > > > > > > > > > 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+unsubscrib  
> > > > > > > > > > > > > > > [e@googlegroups.com](mailto:e@googlegroups.com).  
> > > > > > > > > > > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > > > > > > > > > > 
> > > > > > > > > > > > > > --
> > > > > > > > > > > > 
> > > > > > > > > > > > * * *
> > > > > > > > > > > > 
> > > > > > > > > > > > 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+unsubscrib  
> > > > > > > > > > > > [e@googlegroups.com](mailto:e@googlegroups.com).  
> > > > > > > > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > > > > > > > 
> > > > > > > > > > > --
> > > > > > > > > > 
> > > > > > > > > > * * *
> > > > > > > > > > 
> > > > > > > > > > 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](mailto:commcare-developers+unsubscribe@googlegroups.com).  
> > > > > > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > > > > > 
> > > > > > > > > --
> > > > > > > > 
> > > > > > > > * * *
> > > > > > > > 
> > > > > > > > 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](mailto:commcare-developers+unsubscribe@googlegroups.com).  
> > > > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > > > 
> > > > > > > --
> > > > > > 
> > > > > > * * *
> > > > > > 
> > > > > > 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](mailto:commcare-developers+unsubscribe@googlegroups.com).  
> > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > 
> > > > > --
> > > > 
> > > > * * *
> > > > 
> > > > 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](mailto:commcare-developers+unsubscribe@googlegroups.com).  
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --
> > 
> > * * *
> > 
> > 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](mailto:commcare-developers+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Martin\_Ferrari](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/martin_ferrari/32/629_2.png) [@Martin\_Ferrari](https://forum.dimagi.com/u/Martin_Ferrari)\
**Post date:** [October 23, 2017, 11:59pm UTC](https://forum.dimagi.com/t/commcare-production-goes-well-but-errors-of-cloudcare/3673/17 "2017-10-23T23:59:39Z")

</div>

I am having the same issue. I can't run ptop\_all, it always fails with  
hundreds of lines of tracebacks. Although the first one might offer more  
information:

Process Process-2:  
Traceback (most recent call last):  
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in  
\_bootstrap  
self.run()  
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run  
self.\_target(\*self.\_args, \*\*self.\_kwargs)  
File "./corehq/ex-submodules/pillowtop/pillow/interface.py", line 95, in  
run  
self.process\_changes(since=self.get\_last\_checkpoint\_sequence(),  
forever=True)  
File "./corehq/ex-submodules/pillowtop/pillow/interface.py", line 79, in  
get\_last\_checkpoint\_sequence  
return self.checkpoint.get\_or\_create\_wrapped().wrapped\_sequence  
File "./corehq/ex-submodules/pillowtop/checkpoints/manager.py", line 175,  
in get\_or\_create\_wrapped  
checkpoints = self.\_get\_checkpoints()  
File "./corehq/ex-submodules/pillowtop/checkpoints/manager.py", line 172,  
in \_get\_checkpoints  
return  
KafkaCheckpoint.get\_or\_create\_for\_checkpoint\_id(self.checkpoint\_id,  
self.topics)  
File "./corehq/ex-submodules/pillowtop/models.py", line 91, in  
get\_or\_create\_for\_checkpoint\_id  
.values\_list('topic', 'partition')  
File  
"/home/commcare/local/lib/python2.7/site-packages/django/db/models/query.py",  
line 256, in **iter**  
self.\_fetch\_all()  
File  
"/home/commcare/local/lib/python2.7/site-packages/django/db/models/query.py",  
line 1087, in \_fetch\_all  
self.\_result\_cache = list(self.iterator())  
File  
"/home/commcare/local/lib/python2.7/site-packages/django/db/models/query.py",  
line 125, in **iter**  
for row in compiler.results\_iter():  
File  
"/home/commcare/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py",  
line 789, in results\_iter  
results = self.execute\_sql(MULTI)  
File  
"/home/commcare/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py",  
line 835, in execute\_sql  
cursor.execute(sql, params)  
File  
"/home/commcare/local/lib/python2.7/site-packages/django/db/backends/utils.py",  
line 79, in execute  
return super(CursorDebugWrapper, self).execute(sql, params)  
File  
"/home/commcare/local/lib/python2.7/site-packages/raven/contrib/django/client.py",  
line 114, in execute  
return real\_execute(self, sql, params)  
File  
"/home/commcare/local/lib/python2.7/site-packages/django/db/backends/utils.py",  
line 64, in execute  
return self.cursor.execute(sql, params)  
File  
"/home/commcare/local/lib/python2.7/site-packages/django/db/utils.py", line  
94, in **exit**  
six.reraise(dj\_exc\_type, dj\_exc\_value, traceback)  
File  
"/home/commcare/local/lib/python2.7/site-packages/django/db/backends/utils.py",  
line 64, in execute  
return self.cursor.execute(sql, params)  
OperationalError: SSL error: decryption failed or bad record mac

---

<div class="post-metadata">

**Author:** ![Martin\_Ferrari](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/martin_ferrari/32/629_2.png) [@Martin\_Ferrari](https://forum.dimagi.com/u/Martin_Ferrari)\
**Post date:** [October 24, 2017, 12:00am UTC](https://forum.dimagi.com/t/commcare-production-goes-well-but-errors-of-cloudcare/3673/18 "2017-10-24T00:00:57Z")

</div>

Some threads I've found googling around, seem to imply this could be  
related to sharing DB connections across forks, but I can't find a way to  
change that either.

> **···**
>
> On Monday, 23 October 2017 20:59:40 UTC-3, Martín Ferrari wrote: \> \> I am having the same issue. I can't run ptop\_all, it always fails with \> hundreds of lines of tracebacks. Although the first one might offer more \> information: \> \> Process Process-2: \> Traceback (most recent call last): \> File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in \> \_bootstrap \> self.run() \> File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run \> self.\_target(\*self.\_args, \*\*self.\_kwargs) \> File "./corehq/ex-submodules/pillowtop/pillow/interface.py", line 95, in \> run \> self.process\_changes(since=self.get\_last\_checkpoint\_sequence(), \> forever=True) \> File "./corehq/ex-submodules/pillowtop/pillow/interface.py", line 79, in \> get\_last\_checkpoint\_sequence \> return self.checkpoint.get\_or\_create\_wrapped().wrapped\_sequence \> File "./corehq/ex-submodules/pillowtop/checkpoints/manager.py", line \> 175, in get\_or\_create\_wrapped \> checkpoints = self.\_get\_checkpoints() \> File "./corehq/ex-submodules/pillowtop/checkpoints/manager.py", line \> 172, in \_get\_checkpoints \> return \> KafkaCheckpoint.get\_or\_create\_for\_checkpoint\_id(self.checkpoint\_id, \> self.topics) \> File "./corehq/ex-submodules/pillowtop/models.py", line 91, in \> get\_or\_create\_for\_checkpoint\_id \> .values\_list('topic', 'partition') \> File \> "/home/commcare/local/lib/python2.7/site-packages/django/db/models/query.py", \> line 256, in \_\_iter\_\_ \> self.\_fetch\_all() \> File \> "/home/commcare/local/lib/python2.7/site-packages/django/db/models/query.py", \> line 1087, in \_fetch\_all \> self.\_result\_cache = list(self.iterator()) \> File \> "/home/commcare/local/lib/python2.7/site-packages/django/db/models/query.py", \> line 125, in \_\_iter\_\_ \> for row in compiler.results\_iter(): \> File \> "/home/commcare/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", \> line 789, in results\_iter \> results = self.execute\_sql(MULTI) \> File \> "/home/commcare/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", \> line 835, in execute\_sql \> cursor.execute(sql, params) \> File \> "/home/commcare/local/lib/python2.7/site-packages/django/db/backends/utils.py", \> line 79, in execute \> return super(CursorDebugWrapper, self).execute(sql, params) \> File \> "/home/commcare/local/lib/python2.7/site-packages/raven/contrib/django/client.py", \> line 114, in execute \> return real\_execute(self, sql, params) \> File \> "/home/commcare/local/lib/python2.7/site-packages/django/db/backends/utils.py", \> line 64, in execute \> return self.cursor.execute(sql, params) \> File \> "/home/commcare/local/lib/python2.7/site-packages/django/db/utils.py", line \> 94, in \_\_exit\_\_ \> six.reraise(dj\_exc\_type, dj\_exc\_value, traceback) \> File \> "/home/commcare/local/lib/python2.7/site-packages/django/db/backends/utils.py", \> line 64, in execute \> return self.cursor.execute(sql, params) \> OperationalError: SSL error: decryption failed or bad record mac \> \> \> \>

---

<div class="post-metadata">

**Author:** ![Simon\_Kelly](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/simon_kelly/32/494_2.png) [@Simon\_Kelly](https://forum.dimagi.com/u/Simon_Kelly)\
**Post date:** [October 26, 2017, 11:55am UTC](https://forum.dimagi.com/t/commcare-production-goes-well-but-errors-of-cloudcare/3673/19 "2017-10-26T11:55:04Z")

</div>

Are you using an SSL connection to your PostgreSQL database?

Simon Kelly  
Director of Server Engineer | Dimagi

> **···**
>
> On 24 October 2017 at 02:00, Martín Ferrari wrote:
> 
> > Some threads I've found googling around, seem to imply this could be  
> > related to sharing DB connections across forks, but I can't find a way to  
> > change that either.
> > 
> > On Monday, 23 October 2017 20:59:40 UTC-3, Martín Ferrari wrote:
> > 
> > > I am having the same issue. I can't run ptop\_all, it always fails with  
> > > hundreds of lines of tracebacks. Although the first one might offer more  
> > > information:
> > > 
> > > Process Process-2:  
> > > Traceback (most recent call last):  
> > > File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in  
> > > \_bootstrap  
> > > self.run()  
> > > File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run  
> > > self.\_target(\*self.\_args, \*\*self.\_kwargs)  
> > > File "./corehq/ex-submodules/pillowtop/pillow/interface.py", line 95,  
> > > in run  
> > > self.process\_changes(since=self.get\_last\_checkpoint\_sequence(),  
> > > forever=True)  
> > > File "./corehq/ex-submodules/pillowtop/pillow/interface.py", line 79,  
> > > in get\_last\_checkpoint\_sequence  
> > > return self.checkpoint.get\_or\_create\_wrapped().wrapped\_sequence  
> > > File "./corehq/ex-submodules/pillowtop/checkpoints/manager.py", line  
> > > 175, in get\_or\_create\_wrapped  
> > > checkpoints = self.\_get\_checkpoints()  
> > > File "./corehq/ex-submodules/pillowtop/checkpoints/manager.py", line  
> > > 172, in \_get\_checkpoints  
> > > return KafkaCheckpoint.get\_or\_create\_for\_checkpoint\_id(self.checkpoint\_id,  
> > > self.topics)  
> > > File "./corehq/ex-submodules/pillowtop/models.py", line 91, in  
> > > get\_or\_create\_for\_checkpoint\_id  
> > > .values\_list('topic', 'partition')  
> > > File "/home/commcare/local/lib/python2.7/site-packages/django/db/models/query.py",  
> > > line 256, in **iter**  
> > > self.\_fetch\_all()  
> > > File "/home/commcare/local/lib/python2.7/site-packages/django/db/models/query.py",  
> > > line 1087, in \_fetch\_all  
> > > self.\_result\_cache = list(self.iterator())  
> > > File "/home/commcare/local/lib/python2.7/site-packages/django/db/models/query.py",  
> > > line 125, in **iter**  
> > > for row in compiler.results\_iter():  
> > > File "/home/commcare/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py",  
> > > line 789, in results\_iter  
> > > results = self.execute\_sql(MULTI)  
> > > File "/home/commcare/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py",  
> > > line 835, in execute\_sql  
> > > cursor.execute(sql, params)  
> > > File "/home/commcare/local/lib/python2.7/site-packages/django/db/backends/utils.py",  
> > > line 79, in execute  
> > > return super(CursorDebugWrapper, self).execute(sql, params)  
> > > File "/home/commcare/local/lib/python2.7/site-packages/raven/contrib/django/client.py",  
> > > line 114, in execute  
> > > return real\_execute(self, sql, params)  
> > > File "/home/commcare/local/lib/python2.7/site-packages/django/db/backends/utils.py",  
> > > line 64, in execute  
> > > return self.cursor.execute(sql, params)  
> > > File "/home/commcare/local/lib/python2.7/site-packages/django/db/utils.py",  
> > > line 94, in **exit**  
> > > six.reraise(dj\_exc\_type, dj\_exc\_value, traceback)  
> > > File "/home/commcare/local/lib/python2.7/site-packages/django/db/backends/utils.py",  
> > > line 64, in execute  
> > > return self.cursor.execute(sql, params)  
> > > OperationalError: SSL error: decryption failed or bad record mac
> > > 
> > > --
> > 
> > * * *
> > 
> > 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](mailto:commcare-developers+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Martin\_Ferrari](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/martin_ferrari/32/629_2.png) [@Martin\_Ferrari](https://forum.dimagi.com/u/Martin_Ferrari)\
**Post date:** [October 26, 2017, 11:18pm UTC](https://forum.dimagi.com/t/commcare-production-goes-well-but-errors-of-cloudcare/3673/20 "2017-10-26T23:18:19Z")

</div>

Actually, you gave me the key to fix this!

For some reason, the ptop\_all command was trying to connect with SSL,  
even if the other apps were not doing that. But I added this to the  
database config and now it can connect:

```
    'OPTIONS': {
        'sslmode': 'disable',
    },

```

Thanks! 🙂

> **···**
>
> On 26/10/17 08:55, Simon Kelly wrote: \> Are you using an SSL connection to your PostgreSQL database? -- Martín Ferrari (Tincho)

[Next page](https://forum.dimagi.com/t/commcare-production-goes-well-but-errors-of-cloudcare/3673.md?page=2)
