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

Loadgenerator failing to start in Mac M1 #178

Closed
julianocosta89 opened this issue Jun 30, 2022 · 10 comments
Closed

Loadgenerator failing to start in Mac M1 #178

julianocosta89 opened this issue Jun 30, 2022 · 10 comments
Labels
bug Something isn't working

Comments

@julianocosta89
Copy link
Member

Bug Report

Which version of the demo you are using?
f8db21d7ce011c965d5edd6f058429eae7e2d4e3

Symptom

What is the expected behavior?

We expect the demo to start and have load automatically.

What is the actual behavior?

Loadgen failing to start.

Reproduce

docker compose up in a Mac with M1.

Additional Context

Log:

> [ghcr.io/open-telemetry/demo:0.1.0-loadgenerator 4/4] RUN pip install --prefix="/usr/local/" -r ./requirements.txt:
#0 3.333 Collecting locust==2.6.1
#0 5.937   Downloading locust-2.6.1-py3-none-any.whl (800 kB)
#0 6.224      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 800.3/800.3 KB 2.9 MB/s eta 0:00:00
#0 6.400 Collecting opentelemetry-api==1.9.1
#0 6.469   Downloading opentelemetry_api-1.9.1-py3-none-any.whl (47 kB)
#0 6.478      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 47.8/47.8 KB 7.7 MB/s eta 0:00:00
#0 6.550 Collecting opentelemetry-exporter-otlp-proto-grpc==1.9.1
...
#0 51.45 Collecting zope.event
#0 51.51   Downloading zope.event-4.5.0-py2.py3-none-any.whl (6.8 kB)
#0 51.61 Collecting brotli
#0 51.84   Downloading Brotli-1.0.9-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.6 MB)
#0 52.79      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.6/2.6 MB 2.8 MB/s eta 0:00:00
#0 53.00 Collecting MarkupSafe>=2.0
#0 53.07   Downloading MarkupSafe-2.1.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (26 kB)
#0 53.13 Building wheels for collected packages: Flask-BasicAuth, psutil, roundrobin, zope.interface
#0 53.13   Building wheel for Flask-BasicAuth (setup.py): started
#0 53.32   Building wheel for Flask-BasicAuth (setup.py): finished with status 'done'
#0 53.32   Created wheel for Flask-BasicAuth: filename=Flask_BasicAuth-0.2.0-py3-none-any.whl size=4243 sha256=e28eaec9c438c12e8f59ece22b302e52015110a6f94c7583a4d51e55ee268ad8
#0 53.32   Stored in directory: /root/.cache/pip/wheels/2c/96/a5/54f6f7fa880f487e2f6c52cc9943d3299272a956cbd5af3b8c
#0 53.32   Building wheel for psutil (pyproject.toml): started
#0 53.87   Building wheel for psutil (pyproject.toml): finished with status 'error'
#0 53.88   error: subprocess-exited-with-error
#0 53.88   
#0 53.88   × Building wheel for psutil (pyproject.toml) did not run successfully.
#0 53.88   │ exit code: 1
#0 53.88   ╰─> [44 lines of output]
#0 53.88       running bdist_wheel
#0 53.88       running build
#0 53.88       running build_py
#0 53.88       creating build
#0 53.88       creating build/lib.linux-aarch64-cpython-310
#0 53.88       creating build/lib.linux-aarch64-cpython-310/psutil
#0 53.88       copying psutil/_psbsd.py -> build/lib.linux-aarch64-cpython-310/psutil
#0 53.88       copying psutil/_pslinux.py -> build/lib.linux-aarch64-cpython-310/psutil
#0 53.88       copying psutil/_psposix.py -> build/lib.linux-aarch64-cpython-310/psutil
#0 53.88       copying psutil/_common.py -> build/lib.linux-aarch64-cpython-310/psutil
#0 53.88       copying psutil/__init__.py -> build/lib.linux-aarch64-cpython-310/psutil
#0 53.88       copying psutil/_pssunos.py -> build/lib.linux-aarch64-cpython-310/psutil
#0 53.88       copying psutil/_psosx.py -> build/lib.linux-aarch64-cpython-310/psutil
#0 53.88       copying psutil/_psaix.py -> build/lib.linux-aarch64-cpython-310/psutil
#0 53.88       copying psutil/_pswindows.py -> build/lib.linux-aarch64-cpython-310/psutil
#0 53.88       copying psutil/_compat.py -> build/lib.linux-aarch64-cpython-310/psutil
#0 53.88       creating build/lib.linux-aarch64-cpython-310/psutil/tests
#0 53.88       copying psutil/tests/test_memleaks.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#0 53.88       copying psutil/tests/runner.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#0 53.88       copying psutil/tests/test_unicode.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#0 53.88       copying psutil/tests/__init__.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#0 53.88       copying psutil/tests/test_system.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#0 53.88       copying psutil/tests/test_testutils.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#0 53.88       copying psutil/tests/foo.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#0 53.88       copying psutil/tests/test_sunos.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#0 53.88       copying psutil/tests/test_windows.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#0 53.88       copying psutil/tests/test_misc.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#0 53.88       copying psutil/tests/__main__.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#0 53.88       copying psutil/tests/test_process.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#0 53.88       copying psutil/tests/test_bsd.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#0 53.88       copying psutil/tests/test_contracts.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#0 53.88       copying psutil/tests/test_aix.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#0 53.88       copying psutil/tests/test_posix.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#0 53.88       copying psutil/tests/test_connections.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#0 53.88       copying psutil/tests/test_linux.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#0 53.88       copying psutil/tests/test_osx.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#0 53.88       running build_ext
#0 53.88       building 'psutil._psutil_linux' extension
#0 53.88       creating build/temp.linux-aarch64-cpython-310
#0 53.88       creating build/temp.linux-aarch64-cpython-310/psutil
#0 53.88       gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=591 -DPSUTIL_LINUX=1 -DPSUTIL_ETHTOOL_MISSING_TYPES=1 -I/usr/local/include/python3.10 -c psutil/_psutil_common.c -o build/temp.linux-aarch64-cpython-310/psutil/_psutil_common.o
#0 53.88       C compiler or Python headers are not installed on this system. Try to run:
#0 53.88       sudo apt-get install gcc python3-dev
#0 53.88       error: command 'gcc' failed: No such file or directory
#0 53.88       [end of output]
@julianocosta89 julianocosta89 added the bug Something isn't working label Jun 30, 2022
@SonjaChevre
Copy link

thank you @julianocosta89 for creating the bug report!

@Kiedro
Copy link

Kiedro commented Jun 30, 2022

hi, I was able to sucessfully run docker compose up on M1 MacBook after changing
FROM python:3.10-slim AS base to FROM python:3.10 AS base
in file src/loadgenerator/Dockerfile

Not sure if this is optimal/desired change, and how it affects other platforms.

@GaryPWhite
Copy link
Contributor

worth noting that I'm running an M1 and not seeing this issue 🤔

@julianocosta89
Copy link
Member Author

Thanks for taking a look @Kiedro!
I believe that moving away from the slim image will only affect the size of the image.

@julianocosta89
Copy link
Member Author

@GaryPWhite I believe you already have a python:3.10-slim cached and docker is not trying to pull the latest one.

Could you try to delete it and run the compose build again?

@GaryPWhite
Copy link
Contributor

deleted, ran again, everything broke :) I tried the not-slim image and I'll reference it in my ongoing PR!

@GaryPWhite GaryPWhite mentioned this issue Jul 5, 2022
2 tasks
@Frapschen
Copy link
Contributor

I had encoutered the same problem, I fix it by #126

@cartersocha
Copy link
Contributor

Can we close this? @Frapschen is your solution something we can add to the repo?

@julianocosta89
Copy link
Member Author

@cartersocha, the solution is part of @GaryPWhite's PR.
We will be good to close this one whenever the Rust PR is merged.

@GaryPWhite
Copy link
Contributor

good to close this now I think! PR is merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants