shopware / development

MIT License
188 stars 169 forks source link

"app_server" crashes immediately after starting #179

Open malteschlueter opened 2 years ago

malteschlueter commented 2 years ago

How to reproduce

Using MacBook M1 without Rosetta.

Like the guide on https://github.com/shopware/platform#quickstart--installation

  1. git clone git@github.com:shopware/development.git
  2. cd development
  3. Change ~FROM mysql:8~ to FROM arm64v8/mysql:oracle in dev-ops/docker/containers/mysql/Dockerfile
  4. ./psh.phar docker:start
  5. docker-compose ps "app_server" should now shown as Exited
  6. docker-composer logs app_server see logs
➜  development git:(trunk) ✗ docker-compose logs app_server 
development-app_server-1  | -> Executing /opt/docker/provision/entrypoint.d/05-permissions.sh
development-app_server-1  | -> Executing /opt/docker/provision/entrypoint.d/20-apache.sh
development-app_server-1  | runtime: failed to create new OS thread (have 2 already; errno=22)
development-app_server-1  | fatal error: newosproc
development-app_server-1  | 
development-app_server-1  | runtime stack:
development-app_server-1  | runtime.throw(0x6430dc, 0x9)
development-app_server-1  |     /usr/local/Cellar/go/1.8.1/libexec/src/runtime/panic.go:596 +0x95
development-app_server-1  | runtime.newosproc(0xc42002a000, 0xc42003a000)
development-app_server-1  |     /usr/local/Cellar/go/1.8.1/libexec/src/runtime/os_linux.go:163 +0x18c
development-app_server-1  | runtime.newm(0x650dd0, 0x0)
development-app_server-1  |     /usr/local/Cellar/go/1.8.1/libexec/src/runtime/proc.go:1628 +0x137
development-app_server-1  | runtime.main.func1()
development-app_server-1  |     /usr/local/Cellar/go/1.8.1/libexec/src/runtime/proc.go:126 +0x36
development-app_server-1  | runtime.systemstack(0x75bb00)
development-app_server-1  |     /usr/local/Cellar/go/1.8.1/libexec/src/runtime/asm_amd64.s:327 +0x79
development-app_server-1  | runtime.mstart()
development-app_server-1  |     /usr/local/Cellar/go/1.8.1/libexec/src/runtime/proc.go:1132
development-app_server-1  | 
development-app_server-1  | goroutine 1 [running]:
development-app_server-1  | runtime.systemstack_switch()
development-app_server-1  |     /usr/local/Cellar/go/1.8.1/libexec/src/runtime/asm_amd64.s:281 fp=0xc420026788 sp=0xc420026780
development-app_server-1  | runtime.main()
development-app_server-1  |     /usr/local/Cellar/go/1.8.1/libexec/src/runtime/proc.go:127 +0x6c fp=0xc4200267e0 sp=0xc420026788
development-app_server-1  | runtime.goexit()
development-app_server-1  |     /usr/local/Cellar/go/1.8.1/libexec/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc4200267e8 sp=0xc4200267e0
shyim commented 2 years ago

You could also try local installation, it's pretty simple with symfony-cli https://shyim.me/blog/shopware-6-symfony-cli-macos-install/

malteschlueter commented 2 years ago

You could also try local installation, it's pretty simple with symfony-cli https://shyim.me/blog/shopware-6-symfony-cli-macos-install/

Thanks @shyim this worked.

Generally this issue should be fixed or inspect I think

hlohaus commented 2 years ago

The log says your OS dont want more thread then 2?

malteschlueter commented 2 years ago

@hlohaus Is this depending on the Docker -> Prefences -> Resources -> Advanced -> CPUs settings? This is setting is currently set to 4 CPUs from 10.

hlohaus commented 2 years ago

Maybe I like the idea of air taxi, but maybe (we as business guys)? we should use the bike.

I liked my MacBook too, but i used then VirtualBox for my Docker VM. ;)