# Installation Query

**URL:** <https://forum.dimagi.com/t/installation-query/6183>\
**Category:** Developers\
**Created:** [February 9, 2019, 5:52am UTC](https://forum.dimagi.com/t/installation-query/6183 "2019-02-09T05:52:05Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![vasneha](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/v/2acd7d/32.png) [@vasneha](https://forum.dimagi.com/u/vasneha)\
**Post date:** [February 9, 2019, 5:52am UTC](https://forum.dimagi.com/t/installation-query/6183/1 "2019-02-09T05:52:05Z")

</div>

Hi,

I have a very silly doubt.

Please find below a screen shot. I have installed until the point that says "set up docker services"

Is that step mandatory or is it okay if I ignore that step as I don't want to use the docker.

![image](https://dimagi.b-cdn.net/uploads/default/original/1X/6bc0d95a0d79a01a020c6938fab94d4773c94722.png)

Thank you.

Regards,  
Sneha

---

<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:** [February 12, 2019, 11:13am UTC](https://forum.dimagi.com/t/installation-query/6183/2 "2019-02-12T11:13:11Z")

</div>

The instructions you are looking at are for setting up a dev environment. You do not have to use docker but that means you need to have all the services running in some other way. This includes, PostgreSQL, CouchDB, Elasticsearch, Redis, Kafka, RiakCS, Formplayer.

For a dev environment using docker greatly simplifies the setup process.

---

<div class="post-metadata">

**Author:** ![vasneha](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/v/2acd7d/32.png) [@vasneha](https://forum.dimagi.com/u/vasneha)\
**Post date:** [February 16, 2019, 7:18am UTC](https://forum.dimagi.com/t/installation-query/6183/3 "2019-02-16T07:18:30Z")

</div>

Great thank you! Will do so.

---

<div class="post-metadata">

**Author:** ![vasneha](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/v/2acd7d/32.png) [@vasneha](https://forum.dimagi.com/u/vasneha)\
**Post date:** [March 14, 2019, 11:06am UTC](https://forum.dimagi.com/t/installation-query/6183/4 "2019-03-14T11:06:47Z")

</div>

Hello,

Was able to install Commcare. However, I am getting a couple of errors. Could you please guide me?

Please find below a screen shot of the errors.

 ![image](https://dimagi.b-cdn.net/uploads/default/original/1X/afa397731bdb6f358971cfc87ac94080b3fd7ee1.png)

Thank you.

---

<div class="post-metadata">

**Author:** ![Ethan\_Soergel](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/ethan_soergel/32/543_2.png) [@Ethan\_Soergel](https://forum.dimagi.com/u/Ethan_Soergel)\
**Post date:** [March 14, 2019, 1:28pm UTC](https://forum.dimagi.com/t/installation-query/6183/5 "2019-03-14T13:28:38Z")

</div>

That error means that the "formplayer" service isn't running or that the primary server process cannot connect to it. There are two options for doing so, described [here](https://github.com/dimagi/commcare-hq/blob/master/DEV_SETUP.md#formplayer). Running the standalone jar is a bit simpler. I'd ensure that the process is running and that you've adjusted your localsettings as described.

---

<div class="post-metadata">

**Author:** ![vasneha](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/v/2acd7d/32.png) [@vasneha](https://forum.dimagi.com/u/vasneha)\
**Post date:** [March 15, 2019, 4:06am UTC](https://forum.dimagi.com/t/installation-query/6183/6 "2019-03-15T04:06:26Z")

</div>

Hello,

Thank you. Will try the jar process.

---

<div class="post-metadata">

**Author:** ![vasneha](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/v/2acd7d/32.png) [@vasneha](https://forum.dimagi.com/u/vasneha)\
**Post date:** [March 26, 2019, 4:56am UTC](https://forum.dimagi.com/t/installation-query/6183/7 "2019-03-26T04:56:31Z")

</div>

Hi,

I tried installing all the versions of java. Still getting an error. Could someone please guide as to which version to use?

Thank you.

---

<div class="post-metadata">

**Author:** ![Clayton\_Sims](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/clayton_sims/32/496_2.png) [@Clayton\_Sims](https://forum.dimagi.com/u/Clayton_Sims)\
**Post date:** [March 26, 2019, 5:14am UTC](https://forum.dimagi.com/t/installation-query/6183/8 "2019-03-26T05:14:02Z")

</div>

Hi,

We recently upgraded FormPlayer to run with Java8. I believe we use the OpenJDK8 distribution on our servers. Can you clarify the error?

---

<div class="post-metadata">

**Author:** ![vasneha](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/v/2acd7d/32.png) [@vasneha](https://forum.dimagi.com/u/vasneha)\
**Post date:** [March 26, 2019, 10:03am UTC](https://forum.dimagi.com/t/installation-query/6183/9 "2019-03-26T10:03:56Z")

</div>

Hello,

Thank you. Will try with OpenJDK8.

The error message:

 ![image](https://dimagi.b-cdn.net/uploads/default/original/1X/ae33e50498eb0c365a2e49b2dddba78da2a43432.png)

I don't get any error messages on the terminal however when I try to use the app I get this error message.

Thank you.

---

<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:** [April 10, 2019, 3:51pm UTC](https://forum.dimagi.com/t/installation-query/6183/10 "2019-04-10T15:51:27Z")

</div>

Are there any traceback either from Formplayer or from CommCareHQ?

There are a number of places that could be an issue. One place to check is the developer tools window in the browser to see where it is making the request to - that will allow you to test if Formplayer is actually running at that URL. If not you may need to change `FORMPLAYER_URL` in settings.

---

<div class="post-metadata">

**Author:** ![vasneha](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/v/2acd7d/32.png) [@vasneha](https://forum.dimagi.com/u/vasneha)\
**Post date:** [April 16, 2019, 4:12am UTC](https://forum.dimagi.com/t/installation-query/6183/11 "2019-04-16T04:12:48Z")

</div>

Hello,

Looks like it is the FORMPLAYER\_URL problem. I am going to re-start the installation.

I am not sure about the URL itself. Is it localhost:8000 or localhost:8010? My IP is 172.17.0.1:8000  
The problem is I think I am using different IPs everywhere. Could you please tell me if this is right?

Thank you.

---

<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:** [April 16, 2019, 10:35am UTC](https://forum.dimagi.com/t/installation-query/6183/12 "2019-04-16T10:35:07Z")

</div>

This should be the publicly accessible URL since it needs to be available from the browser. For a dev environment setup this is likely something like `http://localhost:8010` (port that Formplayer is running on).

In a production environment you'll most likely have Formplayer behind a reverse proxy and can create a location match to route requests to it. Then the URL would be something like `https://www.mysite.com/formplayer`

---

<div class="post-metadata">

**Author:** ![vasneha](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/v/2acd7d/32.png) [@vasneha](https://forum.dimagi.com/u/vasneha)\
**Post date:** [July 2, 2019, 7:56am UTC](https://forum.dimagi.com/t/installation-query/6183/13 "2019-07-02T07:56:35Z")

</div>

Hi,

Did try that and getting the following error.

![image](https://dimagi.b-cdn.net/uploads/default/original/1X/008d3d2c6ae93a333871a48d07d4ff300b0802b7.jpeg)

I have installed commcare-hq as per the instructions in  
[commcare-hq/DEV\_SETUP.md at master · dimagi/commcare-hq · GitHub](https://github.com/dimagi/commcare-hq/blob/master/DEV_SETUP.md).

I am running the supporting services in docker. Django is running locally.

When I login to the application, I get following message:

OPTIONS [http://localhost:8010/delete\_application\_dbs](http://localhost:8010/delete_application_dbs) net::ERR\_CONNECTION\_REFUSED  
send @ jquery.min.js:4  
ajax @ jquery.min.js:4  
(anonymous) @ app.js:530  
triggerEvents @ backbone.js:369  
triggerApi @ backbone.js:356  
eventsApi @ backbone.js:155  
Events.trigger @ backbone.js:346  
receiver @ hq.events.js:47  
postMessage (async)  
\_private.triggerPreviewEvent @ preview\_app.js:95  
(anonymous) @ preview\_app.js:216  
dispatch @ jquery.min.js:3  
q.handle @ jquery.min.js:3  
middleware.js:19 User navigated to selectApp

I tried running formplayer in docker. same error.  
I also tried running formplayer.jar as  
java -jar formplayer.jar --spring.config.name=formplayer  
Still same error.

I can see the port (formplayer is configured to run on 8010) is listening at system side  
tcp6 0 0 :::8010 :::\* LISTEN

value of variable FORMPLAYER\_INTERNAL\_AUTH\_KEY in localsettings.py and commcarehq.formplayerAuthKey in formplayer.properties are same.

Please give some information on what could cause this error.

Another observation is that I keep getting error in Developer window of the browser.

ws4redis.js:37 WebSocket connection to ‘ws://172.18.0.1:8000/ws/commcare-test:99eb2b3824788ae48ea49602ce004f4a:daec32b4fdb749799b31c1663aaaab77?subscribe-broadcast’ failed: Error in connection establishment: net::ERR\_CONNECTION\_TIMED\_OUT  
connect @ ws4redis.js:37  
(anonymous) @ ws4redis.js:56  
ws4redis.js:100 Websocket connection is broken!

Can someone PLEASE help.

Thank you  
Sneha

---

<div class="post-metadata">

**Author:** ![vasneha](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/v/2acd7d/32.png) [@vasneha](https://forum.dimagi.com/u/vasneha)\
**Post date:** [July 12, 2019, 4:26am UTC](https://forum.dimagi.com/t/installation-query/6183/14 "2019-07-12T04:26:23Z")

</div>

Hi,

We are not getting the formplayer error while connecting locally from the server console.

However, while accessing Commcare-HQ from browsers on client systems, we get error connecting to formplayer.

The browser logs shows below error:

Google Chrome:

**jquery.min.js:4 OPTIONS [http://localhost:8010/delete\_application\_dbs](http://localhost:8010/delete_application_dbs) net::ERR\_CONNECTION\_REFUSED**

Firefox:

**Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at [http://localhost:8010/delete\_application\_dbs](http://localhost:8010/delete_application_dbs). (Reason: CORS request did not succeed).**

All the services and formplayer is running in Docker. Only Django is running locally.

Is there any network settings/changes to be done for enabling access from client systems (these systems are in the same network).

Thank you

---

<div class="post-metadata">

**Author:** ![Shubham](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/s/85e7bf/32.png) [@Shubham](https://forum.dimagi.com/u/Shubham)\
**Post date:** [July 12, 2019, 6:27am UTC](https://forum.dimagi.com/t/installation-query/6183/15 "2019-07-12T06:27:37Z")

</div>

Hey

> [@vasneha](#):
>
> Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at [http://localhost:8010/delete\_application\_dbs](http://localhost:8010/delete_application_dbs). (Reason: CORS request did not succeed).

This can happen when you are accessing HQ and formplayer on different host urls for ex. `localhost` vs `127.0.0.1` even though they practically directs you to the same page. So if your formplyaer url is defined as `http://localhost:8080` make sure you are accessing HQ through a `localhost` url as well.

---

<div class="post-metadata">

**Author:** ![vasneha](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/v/2acd7d/32.png) [@vasneha](https://forum.dimagi.com/u/vasneha)\
**Post date:** [July 12, 2019, 6:52am UTC](https://forum.dimagi.com/t/installation-query/6183/17 "2019-07-12T06:52:37Z")

</div>

connection in the localhost is fine, but we are facing problem only while connecting from external clients. How do we provide URL for external clients.

---

<div class="post-metadata">

**Author:** ![czue](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/czue/32/493_2.png) [@czue](https://forum.dimagi.com/u/czue)\
**Post date:** [July 22, 2019, 5:41am UTC](https://forum.dimagi.com/t/installation-query/6183/18 "2019-07-22T05:41:56Z")

</div>

I think the recommended production setup for external access is to proxy formplayer through a different URL on the same server using something like nginx.

In production Dimagi sets up [www.commcarehq.org/formplayer](http://www.commcarehq.org/formplayer) to proxy the underlying formplayer URL which avoids the CORS issue.

---

<div class="post-metadata">

**Author:** ![vasneha](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/v/2acd7d/32.png) [@vasneha](https://forum.dimagi.com/u/vasneha)\
**Post date:** [July 30, 2019, 8:02am UTC](https://forum.dimagi.com/t/installation-query/6183/19 "2019-07-30T08:02:31Z")

</div>

Thank you very much, the mobile app is working now!!!

I had another doubt. When I try to export data, I get the following error.

 ![image](https://dimagi.b-cdn.net/uploads/default/original/2X/6/64ea583265eb347a502c46248b4393d44495954f.png)

---

<div class="post-metadata">

**Author:** ![vasneha](https://dimagi.b-cdn.net/letter_avatar_proxy/v4/letter/v/2acd7d/32.png) [@vasneha](https://forum.dimagi.com/u/vasneha)\
**Post date:** [August 20, 2019, 4:36am UTC](https://forum.dimagi.com/t/installation-query/6183/20 "2019-08-20T04:36:26Z")

</div>

Hello can someone please help me with this??

---

<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 20, 2019, 7:10am UTC](https://forum.dimagi.com/t/installation-query/6183/21 "2019-08-20T07:10:32Z")

</div>

Hi

Are there any errors in the log files for either the Django worker or the Celery task queue?

[Next page](https://forum.dimagi.com/t/installation-query/6183.md?page=2)
