Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mapsapi] - base configuration for batch API #3

Closed
sabman opened this issue Nov 17, 2018 · 2 comments
Closed

[mapsapi] - base configuration for batch API #3

sabman opened this issue Nov 17, 2018 · 2 comments

Comments

@sabman
Copy link
Owner

sabman commented Nov 17, 2018

@mnzaki so upon more investigation of trying to run the Analysis Tools - the following issue seems to be related to the configuration of the Batch API in mapsapi service. To reproduce try the following for the user:

dev@acme.org I'll message you the pass

screenflow

Error is:

{"type":"analysis","message":"Unable to enqueue SQL API batch job","analysis":{"id":"a1","type":"moran"}}

Current analysis config block has:

"analysis": {
    "batch": {
      "endpoint": "http://127.0.0.1:8080/api/v2/sql/job",
      "hostHeaderTemplate": "{{=it.username}}.localhost.lan"
    },
  },

I think it should be

"analysis": {
    "batch": {
      "endpoint": "http://0.0.0.0:8080/api/v2/sql/job",
      "hostHeaderTemplate": "{{=it.username}}.localhost.lan"
    },
  },

I'm not sure exactly what hostHeaderTemplate should be but I suspect it doesn't matter yet since we are using the IP to reference the host for now. What do you think?

Also when you first load the map you will see the client services error too.

@sabman
Copy link
Owner Author

sabman commented Nov 17, 2018

OK Just changed it on the server and rebuild and restarted the image but no joy. 😢

@mnzaki
Copy link
Collaborator

mnzaki commented Nov 19, 2018

I believe that endpoint should be the sqlapi endpoint, or actually just the router (so that the port can be avoided). I changed it to point be http://cartodb-router/api/v2/sql/job and want to give it a go.
I also looked for hostHeaderTemplate in the windshaft code, and it's unclear what it is used for. It's also left as .localhost.lan in the production config provided with windshaft.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants