Commcare Local Install

84 views
Skip to first unread message

Tamiranashe Nyamayaro

unread,
Nov 20, 2014, 3:07:54 AM11/20/14
to commcare-...@googlegroups.com
Hi,

It was amazing to find Commcare having tried out other similar products. 

Our intention is to use Commcare for College's Sociology Dept on issues like surveys of staff & students  but in order to use  it we need to have it installed locally.

So we visited this link:


Then proceeded to follow all the instructions.

But the problem came after 

root@commcareproject:~# sudo supervisorctl status

commcare-hq-production-celery_doc_deletion_queue FATAL      Exited too quickly (process log may have details)
commcare-hq-production-celery_flower FATAL      Exited too quickly (process log may have details)
commcare-hq-production-celery_main FATAL      Exited too quickly (process log may have details)
commcare-hq-production-celery_periodic FATAL      Exited too quickly (process log may have details)
commcare-hq-production-celery_saved_exports_queue FATAL      Exited too quickly (process log may have details)
commcare-hq-production-celerybeat FATAL      Exited too quickly (process log may have details)
commcare-hq-production-couchdb-lucene FATAL      can't find command '/etc/couchdb-lucene-0.9.0-SNAPSHOT/bin/run'
commcare-hq-production-django    STARTING
commcare-hq-production-formsplayer RUNNING    pid 1178, uptime 0:07:25
commcare-hq-production-pillowtop-AllHmisCaseFluffPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-AncHmisCaseFluffPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-AppPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-CacheInvalidatePillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-CareBiharFluffPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-CareSAFluffPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-CaseDataPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-CaseIndicatorPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-CasePillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-ConfigurableIndicatorPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-CouvertureFluffPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-DomainPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-FarmerRecordFluffPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-FormDataPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-FormIndicatorPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-GeographyFluffPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-GroupPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-GroupToUserPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-ImmunizationHmisCaseFluffPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-IntraHealthFluffPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-LdHmisCaseFluffPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-LivraisonFluffPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-MalariaConsortiumFluffPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-McctMonthlyAggregateFormFluffPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-OPMHierarchyFluffPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-OpmCaseFluffPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-OpmFormFluffPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-OpmHealthStatusAllInfoFluffPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-OpmUserFluffPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-PhoneLogPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-ProjectIndicatorsCaseFluffPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-RecapPassagePillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-ReportCasePillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-ReportXFormPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-SMSPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-TDHChildClassificationFluffPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-TDHChildTreatmentFluffPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-TDHEnrollChildFluffPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-TDHInfantClassificationFluffPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-TDHInfantTreatmentFluffPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-TDHNewbornClassificationFluffPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-TDHNewbornTreatmentFluffPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-TauxDeRuptureFluffPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-TauxDeSatisfactionFluffPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-UnicefMalawiFluffPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-UnknownUsersPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-UserPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-VhndAvailabilityFluffPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-WorldVisionChildFluffPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-WorldVisionHierarchyFluffPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-WorldVisionMotherFluffPillow FATAL      Exited too quickly (process log may have details)
commcare-hq-production-pillowtop-XFormPillow FATAL      Exited too quickly (process log may have details)

Then we have tried all ways to start it like, runserver 0.0.0.0:8000 but we just cant get it to run.

What is puzzling more is the line in red above because the script clearly shows that couchdb-lucene in use should be v0.8.0.


Please help. We really need to try this product.

Regards & thanks,

Tamira



Simon Kelly

unread,
Nov 20, 2014, 3:20:50 AM11/20/14
to commcare-...@googlegroups.com
Hi Tamira

We don't actually use lucene any longer so you can ignore that process. It's a bit hard to debug without any log output. 

What output do you get from running 'python manage.py runserver'?

--

---
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-develo...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Simon Kelly
Senior Engineer | Dimagi South Africa

Tamiranashe Nyamayaro

unread,
Nov 20, 2014, 3:52:32 AM11/20/14
to commcare-...@googlegroups.com

Hi ,

Thanks for the fast response. No errors on runserver.

Django version 1.8, using settings 'settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

But when I go to to the ip: 192.168.1.116:8000 there is nothing.

Thanks again.
To unsubscribe from this group and stop receiving emails from it, send an email to commcare-developers+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Tamiranashe Nyamayaro

unread,
Nov 20, 2014, 4:06:20 AM11/20/14
to commcare-...@googlegroups.com
Hi ,

Is there an updated install script for Ubuntu?

Thanks again.

Simon Kelly

unread,
Nov 20, 2014, 4:54:24 AM11/20/14
to commcare-...@googlegroups.com
If you want to connect to there server via the server's IP you should bind the django process either to that IP or all IP's. Try 'python manage.py runserver 0.0.0.0:8000'

Also, when you say 'there is nothing' do you mean the browser can't connect or that you get a blank page or what?

You may also want to check that you're firewall is allowing connections on port 8000.

To unsubscribe from this group and stop receiving emails from it, send an email to commcare-develo...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Tamiranashe Nyamayaro

unread,
Nov 20, 2014, 6:04:00 AM11/20/14
to commcare-...@googlegroups.com
Thank you Simon.

I am going to check the firewall again and try as you say. I will update.

You received this message because you are subscribed to a topic in the Google Groups "CommCare Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/commcare-developers/ooxpzQ3vK6o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to commcare-develo...@googlegroups.com.

Cory Zue

unread,
Nov 20, 2014, 8:06:54 AM11/20/14
to commcare-developers
Hey,

I would recommend following the developer setup instructions in the README first and then moving onto a production setup. It looks like the production instructions are not up to date anymore. We've moved to using salt and ansible to configure our production environment (unfortunately those scripts are not open source at the moment because they have some information private to our setup in it).

Please submit change requests for anything you learn on the production install!

Also, make sure you're installing from the right requirements file. I don't think we support django 1.8 yet.

Cory

Norman Hooper

unread,
Nov 20, 2014, 9:50:55 AM11/20/14
to commcare-...@googlegroups.com
Hi Tamira,

If it's any help, I recently installed CommCareHQ with developer setup on Ubuntu 14.04. I followed the README, and didn't use the install script. I found very few differences between the docs and what I needed to do. Here are a couple of tips:
  1. When creating the CouchDB user, use the CouchDB web interface, not the command line. The requests made from the command line didn't work for me.
  2. In Ubuntu there were two packages I found I needed to install that the README didn't mention. (I'll update the README shortly):
    1. libxml2-dev
    2. libxslt1-dev
  3. Install both requirements and dev-requirements:
    $ pip install --download-cache pip_cache -r requirements/requirements.txt
    $ pip install --download-cache pip_cache -r requirements/dev-requirements.txt

Considering you've already got "./manage.py runserver" working, you've probably done these things already, but in case you missed any of that, I hope it helps.

Kind regards,

Norman


Tamiranashe Nyamayaro

unread,
Nov 21, 2014, 2:54:27 AM11/21/14
to commcare-...@googlegroups.com
Hi,

Thank you very much for the emails and advice.
 
we are going to try again and will update you.

Thanks & regards,

Tamira
Reply all
Reply to author
Forward
0 new messages