orbstack / orbstack

Fast, light, simple Docker containers & Linux machines for macOS
https://orbstack.dev
MIT License
5.14k stars 39 forks source link

rosetta error: Unable to open /proc/self/exe: <pid> #1401

Open CpuID opened 2 weeks ago

CpuID commented 2 weeks ago

Describe the bug

When starting selected amd64 workloads (in this case, haproxy), a rosetta error occurs. Example:

Starting haproxy
[NOTICE]   (49) : New worker (51) forked
[NOTICE]   (49) : Loading success.
rosetta error: Unable to open /proc/self/exe: 2
 [NOTICE]   (49) : haproxy version is 2.9.9-ad75c48
[ALERT]    (49) : Current worker (51) exited with code 133 (Trace/breakpoint trap)
[WARNING]  (49) : A worker process unexpectedly died and this can only be explained by a bug in haproxy or its dependencies.
Please check that you are running an up to date and maintained version of haproxy and open a bug report.
HAProxy version 2.9.9-ad75c48 2024/06/14 - https://haproxy.org/
Status: stable branch - will stop receiving fixes around Q1 2025.
Known bugs: http://www.haproxy.org/bugs/bugs-2.9.9.html
Running on: Linux 6.9.8-orbstack-00170-g7b4100b7ced4 #1 SMP Thu Jul 11 03:32:20 UTC 2024 x86_64
[ALERT]    (49) : exit-on-failure: killing every processes with SIGTERM
[WARNING]  (49) : All workers exited. Exiting... (133)

To Reproduce

git clone https://github.com/codecov/self-hosted.git
cd self-hosted
git checkout 17b0edeb7f5d1354da594cd4b4fd63d243932d2e
docker-compose up

Expected behavior

Codecov preflight started.
Waiting for Codecov Default to start ...
Codecov Default started.
Waiting for Codecov api to start ...
Codecov api started.
Waiting for Codecov ia to start ...
Codecov IA started.
Codecov preflight complete.
Codecov gateway ssl disabled
Codecov gateway minio enabled
Starting haproxy
[NOTICE]   (52) : New worker (54) forked
[NOTICE]   (52) : Loading success.

Diagnostic report (REQUIRED)

OrbStack info: Version: 1.6.4 Commit: 90e832a0f4c6787bd028dc4efcd9c98cd5a2bc3d (v1.6.4)

System info: macOS: 14.6.1 (23G93) CPU: arm64, 10 cores CPU model: Apple M2 Pro Model: Mac14,9 Memory: 32 GiB

Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2024-08-27T03-29-50.218407Z.zip

Screenshots and additional context (optional)

This specific stack provides amd64 only images from https://hub.docker.com/r/codecov/self-hosted-gateway/tags currently

The upstream of this image is https://github.com/codecov/codecov-gateway/blob/main/Dockerfile#L2 which has amd64 + arm64 images - https://hub.docker.com/r/haproxytech/haproxy-alpine/tags - so I verified arm64 works fine without the error (by building locally).

I've asked the maintainers of https://github.com/codecov/self-hosted to start distributing arm64 images also for context - https://github.com/codecov/self-hosted/issues/43

This issue did exist in Docker Desktop for Mac also - resolved recently https://github.com/docker/for-mac/issues/6973

Also outstanding/not fixed in colima - https://github.com/abiosoft/colima/issues/1015

CpuID commented 2 weeks ago

Comments from @jia6214876 and @amir1387aht above look like phishing bots? :|