Skip to content
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

"app_server" crashes immediately after starting #179

Open
malteschlueter opened this issue Apr 21, 2022 · 5 comments
Open

"app_server" crashes immediately after starting #179

malteschlueter opened this issue Apr 21, 2022 · 5 comments

Comments

@malteschlueter
Copy link

malteschlueter commented Apr 21, 2022

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
Copy link
Member

shyim commented Apr 21, 2022

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

@malteschlueter
Copy link
Author

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
Copy link
Contributor

hlohaus commented Aug 2, 2022

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

@malteschlueter
Copy link
Author

malteschlueter commented Aug 3, 2022

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

@hlohaus
Copy link
Contributor

hlohaus commented Aug 4, 2022

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. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants