I am getting a strange error on my development box. I have completely updated the repo files and redeployed the box..........no issues on start up and configuration I have been able to upload some of my old surveys to the new development environment and all looks good. util I try to deploy..
I get a application error saying that it cannot create menus and the commcare django log has this to show
ConnectionError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /validate_form (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f09e6027b90>: Failed to establish a new connection: [Errno 111] Connection refused',))
ERROR 2018-03-15 02:03:31,318 logging 31997 139679986874112 Notify Exception: Error calling Nimbus form validation endpoint
Traceback (most recent call last):
File "/home/commcarehq/commcare-hq/corehq/apps/nimbus_api/form_validation.py", line 46, in validate_form
headers={'Content-Type': 'application/xml'}
File "/home/commcarehq/local/lib/python2.7/site-packages/requests/api.py", line 111, in post
return request('post', url, data=data, json=json, **kwargs)
File "/home/commcarehq/local/lib/python2.7/site-packages/requests/api.py", line 57, in request
return session.request(method=method, url=url, **kwargs)
File "/home/commcarehq/local/lib/python2.7/site-packages/requests/sessions.py", line 475, in request
resp = self.send(prep, **send_kwargs)
File "/home/commcarehq/local/lib/python2.7/site-packages/raven/breadcrumbs.py", line 297, in send
resp = real_send(self, request, *args, **kwargs)
File "/home/commcarehq/local/lib/python2.7/site-packages/requests/sessions.py", line 585, in send
r = adapter.send(request, **kwargs)
File "/home/commcarehq/local/lib/python2.7/site-packages/requests/adapters.py", line 467, in send
raise ConnectionError(e, request=request)
Any Ideas? I am not through deploying so no SSL or form player as of yet but i usually can get this to work by now........
ConnectionError: HTTPConnectionPool(host=‘localhost’, port=8080): Max retries exceeded with url: /validate_form (Caused by NewConnectionError(’<requests.packages.urllib3.connection.HTTPConnection object at 0x7f09e6027b90>: Failed to establish a new connection: [Errno 111] Connection refused’,))
This is an error connecting to the formplayer service.
Any Ideas? I am not through deploying so no SSL or form player as of yet but i usually can get this to work by now…
We use formplayer to validate forms before building apps, so formplayer is required to be deployed before applications can be built.
I don't have any tips for debugging the build failures. If you're not developing formplayer, it's probably easiest to use a pre-built .jar file. That's what I use in local development, here's how it's setup: https://github.com/dimagi/commcare-hq#running-formplayerjar. The docker container does basically the same thing. However I'm not sure whether the current build of formplayer will work with an older version of CommCareHQ. Is there a reason you've pinned the code to that date?
To skip the tests (where your build is failing) you can run ./gradlew assemble; instead of ./gradlew build;
I'd also double check that your commcarehq.formplayerAuthKey=secretkey value is set correctly in application.properties (this value should match the one in your HQ localsettings.py)