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.
>>
>
>