Closed chris-crone closed 1 year ago
Running docker run --rm --network host curlimages/curl curl http://0.0.0.0:8080/init
to initialize the DB, the Wasm service is panicking:
microservice-rust-mysql-db-1 | 2022-10-15T21:44:22.638217Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.31' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server - GPL.
microservice-rust-mysql-server-1 | thread 'main' panicked at 'mask too long', /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/mysql_common-0.29.1/src/crypto/rsa.rs:83:13
microservice-rust-mysql-server-1 | stack backtrace:
microservice-rust-mysql-server-1 | [2022-10-15 21:44:23.792] [error] execution failed: unreachable, Code: 0x89
microservice-rust-mysql-server-1 | [2022-10-15 21:44:23.792] [error] When executing module name: "main" , function name: "_start"
microservice-rust-mysql-server-1 exited with code 137
Any ideas @juntao @CaptainVincent ?
Hmm, we had this problem with the MySQL Docker image too ...
Our CI installs Unbuntu's default MySQL-server 8.0.30 and it works well. Can you try an image with that version?
My guess is that the mysql_common
crate had an issue that has not been updated.
Same issue with mysql:8.0.30
but works with mariadb:10.9
so I'll use that.
I also added some examples to the README to show how to use a dockerized curl.
This requires a version of Docker with Wasm WASI support to work.
Steps to test:
docker compose up
docker run --rm --network host curlimages/curl curl http://0.0.0.0:8080/init
to initialize