-
Notifications
You must be signed in to change notification settings - Fork 26
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
GET /formList from Docker image fails with error from openros #116
Comments
Nah, this is a great issue. It looks like a port problem; I get this error instead (do you have other services running?):
The way You should be able to work around the problem by starting OMK with: docker run -e PORT=8080 --rm -p 8080:8080 -v /tmp/data:/app/data --name omk omk |
Thanks for the note! FWIW, I get the same traceback with
and when using the default port:
To reproduce this, I:
It also seems to reproduce if I:
I'll try building from a VM next and let you know if it replicates there, too. Thanks again for the help! |
Can you paste the output of this (when using the default port): curl -H "Accept: application/json" http://localhost:3210/omk/data/forms/ (These are the requests made internally to produce the form list.) It should look like ["buildings_example.xlsx","buildings_example.xml"] Ditto for curl http://localhost:3210/omk/data/forms/buildings_example.xml and curl http://localhost:3210/omk/odk/manifest/buildings_example.xml |
For this reply, the command, run on host leaf, was:
And remotely, too:
So does
and
and indeed, locally, the formlist works!:
but, still locally, not with the machine's hostname:
I did verify that the endpoint is accessible by hostname within the
Then, I thought, maybe this has something to do with the HTTP host
and finally got the error you were talking about. But, this doesn't seem
So, this seems to have something to do not with connectivity back to the |
Can you make the same requests for OMK forms + manifests using the I've had moderate success in other contexts starting Docker w/ something similar to |
I've built a local Docker image from current master and the latest tag (
v0.11.0
) withdocker build -t omk .
, and then run it with:but although I'm able to upload the OMK sample XLS form (https://docs.google.com/spreadsheets/d/11H4-mGYTS61GLjSbVoTbmhoI5DjlF5fcBwNwQcvd2Go/edit?usp=sharing) or start from a fresh data dir mirroring that of
data/
from the repo, in all cases I'm getting a 500 forHTTP GET /formList?json=true
with the following traceback:Is this a version mismatch perhaps with openrosa?
Or, more generally, might you all have any advice on how to proceed? (And sorry to post on issues; couldn't find a mailing list / slack channel / IRC)
The text was updated successfully, but these errors were encountered: