Urgent: On setting up formplayer

63 views
Skip to first unread message

Mr. G

unread,
Jul 4, 2017, 5:28:17 AM7/4/17
to CommCare Developers


I installed commcare via Docker and it was perfect. I tried running
./gradlew build; java -jar build/libs/formplayer.jar

command and I'm coming up with the following error:

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':compileJava'.
> Could not resolve all task dependencies for configuration ':compileClasspath'.
   
> Could not resolve project :commcare.
     
Required by:
         project
:
     
> Project : declares a dependency from configuration 'compile' to configuration 'api' which is not declared in the descriptor for project :commcare.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED
in 1s
Error: Unable to access jarfile build/libs/formplayer.jar

I have tried upgrading my version of gradle but still cant get it to work.

Screenshots of my predicament are::


This occurs when i try to run a commcare survey



This is the location of "formplayer" in the commcare project directory


This is the console output when i build gradle



Where could i be going wrong? What have i not done?

Noah Carnahan

unread,
Jul 6, 2017, 8:31:51 AM7/6/17
to CommCare Developers
Did you do the first step, which is "$ git submodule update --init --recursive"?
It looks the error is that gradle can't find commcare, which is a submodule of the formplayer project.

John Harper

unread,
Jul 17, 2017, 6:54:38 PM7/17/17
to CommCare Developers
Mr. Gat,

I too had the same issue on this from my local install.  [running the submodule update from the commcare-hq folder did nothing......[no updates no dowloads]

I have gotten past this by doing the following.

I cloned the formplayer repo into the commcarehq home directory.
then I ran the git submodule update --init --recursive" script from the formplayer directory.
this allowed for a successful build from the same directory. 

I reran my migration, ptop_all and topics to ensure that all was updated.  I may have some final settings to get all working but so far this has helped.

Let keep in touch on this as it seams we are on the same path.......

I have a dedicated development box that hast a 8 core processor and 32g of memory to distribute to the services............not sure what needs what but im setting up the following

nginx 2g
kafka 4g
postgres 4g
couch 2g
elasticsearch 6g
formserver 4g


any thoughts on the initial sizing?

Reply all
Reply to author
Forward
0 new messages