can't start mariadb on MacOS
Through my research, even though other users have encountered similar issues, none of the solutions that worked for them work for me. But I have a hypothesis why my issue occurs.
First, here's the error returned:
mariadb_1 | runtime: failed to create new OS thread (have 2 already; errno=22) mariadb_1 | fatal error: newosproc mariadb_1 | mariadb_1 | runtime stack: mariadb_1 | runtime.throw(0x4cb21f, 0x9) mariadb_1 | /usr/local/go/src/runtime/panic.go:566 +0x95 mariadb_1 | runtime.newosproc(0xc42002a000, 0xc420039fc0) mariadb_1 | /usr/local/go/src/runtime/os_linux.go:160 +0x194 mariadb_1 | runtime.newm(0x4d6db8, 0x0) mariadb_1 | /usr/local/go/src/runtime/proc.go:1572 +0x132 mariadb_1 | runtime.main.func1() mariadb_1 | /usr/local/go/src/runtime/proc.go:126 +0x36 mariadb_1 | runtime.systemstack(0x53ae00) mariadb_1 | /usr/local/go/src/runtime/asm_amd64.s:298 +0x79 mariadb_1 | runtime.mstart() mariadb_1 | /usr/local/go/src/runtime/proc.go:1079 mariadb_1 | mariadb_1 | goroutine 1 [running]: mariadb_1 | runtime.systemstack_switch() mariadb_1 | /usr/local/go/src/runtime/asm_amd64.s:252 fp=0xc420024768 sp=0xc420024760 mariadb_1 | runtime.main() mariadb_1 | /usr/local/go/src/runtime/proc.go:127 +0x6c fp=0xc4200247c0 sp=0xc420024768 mariadb_1 | runtime.goexit() mariadb_1 | /usr/local/go/src/runtime/asm_amd64.s:2086 +0x1 fp=0xc4200247c8 sp=0xc4200247c0 cdlidev_mariadb_1 exited with code 2
When I pulled mariadb from docker, I had to specify platform: linux/x86_64
in docker-compose-org.yml
, only after was my installation successful.But now I can't start mariadb even from the docker application itself. Could the 2 problems be related? Thank you!
Answer Answered by Daniel Black in this comment.
It would seem likely. Would your MacOS happen to running on a M1 or ARM64 processor?
By forcing to linux/x86_64 its running though qemu, which does fine on CPU instructions, however the error here is there's some linux only pthread interfaces and errno=22, EINVAL, is MacOS not recognizing it.
This is same as: https://github.com/docker/for-mac/issues/6083
Take a step back and try to resolve/report (https://jira.mariadb.org) the issue on the arm64 version under MacOS.