-
Notifications
You must be signed in to change notification settings - Fork 34
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
Error 1264 Out of range value with Docker/Alpine #23
Comments
Forgot to mention, I found a workaround using the ubuntu:bionic Docker image: https://github.com/donut/bug.ocaml-caqti-mariadb-alpine-docker/tree/ubuntu-workaround |
Yes, I tried that image myself, and there it worked. It probably depends on the libmariadb version. Update: Sorry that was misleading, I tested with a generic Ubuntu 18.04 image, not the one you cited. |
mariadb-dev is the relevant package used in Alpine. I tried matching up the mariadb version in the |
The version is not far off from the Ubuntu 18.04 actually. I am mostly wondering if it's a mis-linkage issue, either during build vs run of the OCaml buildings or with the libc. I'm new to the esy package manager, so I've just been exploring a bit, and I'm not whether such a linkage issue could occur. |
In the same container I cloned https://github.com/andrenth/ocaml-mariadb.git, built it with
The errors are different, but I think they also indicate issues with serialization or communication of parameters. |
Here's another error that I forgot to mention that I ran into related to serialization. Using
Each time I ran this the number would be different. Strings passed in fine, but not integers. |
I could reproduce the The latest failure you posted, esp. the random nature of the error, also suggests some memory issue or incompatibility with the C bindings. |
This work was done to resolve what I thought was a race condition, an existing, partially saved source delete operation not being completed before the same source is re-saved. What was actually happening was that the mariadb C connector on Alpine linux was not translating values from ocaml-mariadb properly so it tried to delete the wrong ID. Relted issues: paurkedal/ocaml-caqti#23 andrenth/ocaml-mariadb#27
Repo reproducing the issue.
I'm trying to get
caqti
to work in an Alpine Docker container. Everything works, except I've run into this error:The values passed are
(1, "one")
. See bin/main.ml.The related Dockerfile:
The text was updated successfully, but these errors were encountered: