Replies: 2 comments 3 replies
-
Hi @edenist. Thanks for continuing to push through this issue; It'll be great to have this smoothed out for others. I think you are correct about the problem being that the database config/credentials are not making it through to the math worker. Given that, here are some things I would check:
Please let me know if that gets you through the problem, and feel free to submit a PR if you think the documentation could be improved anywhere. Thanks again! |
Beta Was this translation helpful? Give feedback.
-
Hi @metasoarous, I have double-checked all of the points you mentioned.
Suffice to say none of those issues appear to me to be the cause of this error. I'm not sure if is relevant, but in the error I reported previously, when the export failed due to an assertion on aws details, I can see the following db-spec object in the error log:
Could it thus be something falling over expecting AWS details elsewhere in the code, which was missed when you made the AWS details optional? Thanks once again for your support with this. This is the last hurdle to get the site production-ready for us, and yes I've got some PRs we plan on submitting based on our experience getting everything running which will hopefully help others :-) |
Beta Was this translation helpful? Give feedback.
-
This question is a follow up to an issue I opened a couple of weeks ago in regards to data export on our local deployment of polis.
#1438
That ended up being due to an edge-case of running polis without any AWS infrastructure and was quickly fixed [Thank you @metasoarous!]
I am still having issues getting data export to work, however I do not think it is currently due to a bug, but more likely due to a missing configuration within our deployment.
This is the command I am running for data export:
docker compose -f docker-compose.yml -f docker-compose.dev.yml run math clojure -M:run export -Z 5umbm9ayfx -f 5umbm9ayfx-test1.zip
And the console output and error which results:
I've been trying to debug the backtrace [clojure is not my forte, heh], and I suspect the object 'component' being passed to db-spec jdbc/query is empty when it should contain the database parameters.
Given I have tried re-deploying a near stock instance fresh from git with only changes to my polis.config.js files in client-{admin, participation, report} and the fs-config.json in file server to reflect the values for our local server, I suspect there are some additional settings I must be missing if this error is still occurring.
I have tried running with
MATH_ENV=prod
and dev inmath/docker-dev.env
andserver/docker-dev.env
and neither value makes a difference to this.Likewise, I have tried running docker compose with
-f docker-compose.dev.yml
and without, which also makes no difference. Is the docker-compose.dev.yml required when running polis and/or the export command?Sorry for the mouthful of questions. I've been pushing through this deployment and I believe this is the last piece of the puzzle for us.
If anyone has any light to shed on this matter it would be incredibly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions