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

Running commands in Python container throws errors for incompatible ldd version #1036

Open
1 task done
mabadir opened this issue Dec 28, 2023 · 1 comment
Open
1 task done
Labels
bug Something isn't working community

Comments

@mabadir
Copy link
Contributor

mabadir commented Dec 28, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

We have a python application that builds with NixPacks and working fine for runtime, however trying to execute commands on that container fails because NixPacks by defaults installs an old version of ldd to what is needed to execute commands in the container.

Once the try to execute any command, we get the error:

python: /usr/lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.36' not found (required by /nix/store/jx3kvf6mk8qdaw30dbpngwmgm4p23xdb-libxcrypt-4.4.36/lib/libcrypt.so.2)

To reproduce

  1. Provider: Python
  2. Run: execute any command in the venv inside the container
  3. Throws this error:
python: /usr/lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.36' not found (required by /nix/store/jx3kvf6mk8qdaw30dbpngwmgm4p23xdb-libxcrypt-4.4.36/lib/libcrypt.so.2)

Expected behavior

No response

Environment

This is the Nixpacks plan

2:08:47 PM: ╔══════════════════════════════ Nixpacks v1.17.0 ══════════════════════════════╗
2:08:47 PM: ║ setup      │ python38, gcc                                                   ║
2:08:47 PM: ║──────────────────────────────────────────────────────────────────────────────║
2:08:47 PM: ║ install    │ python -m venv --copies /opt/venv && . /opt/venv/bin/activate   ║
2:08:47 PM: ║            │ && pip install -r requirements.txt                              ║
2:08:47 PM: ║──────────────────────────────────────────────────────────────────────────────║
2:08:47 PM: ║ start      │ newrelic-admin run-program gunicorn app.app:app -b              ║
2:08:47 PM: ║            │ 0.0.0.0:$PORT -w 3 -k gevent                                    ║
2:08:47 PM: ╚══════════════════════════════════════════════════════════════════════════════╝

The container is deployed to AWS ECS and the command is executed using ECS Execute command feature.

@mabadir mabadir added the bug Something isn't working label Dec 28, 2023
Copy link
Contributor

Hello, @mabadir! Thanks for your submission.

Our team will respond soon. If you need more immediate help, try our Forum or our Discord. Thanks!

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

No branches or pull requests

1 participant