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

Execute docker-compose failed: Failed to execute script pyiboot01_bootstrap #6462

Closed
leikao opened this issue Jan 15, 2019 · 11 comments
Closed

Comments

@leikao
Copy link

leikao commented Jan 15, 2019

Description of the issue

Run docker-compose -v failed:

./docker-compose -v
Traceback (most recent call last):
File "site-packages/PyInstaller/loader/pyiboot01_bootstrap.py", line 127, in
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 665, in _load_unlocked
File "/code/.tox/py36/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module
File "ctypes/init.py", line 538, in
File "ctypes/init.py", line 273, in _reset_cache
MemoryError
[128273] Failed to execute script pyiboot01_bootstrap

Context information (for bug reports)

docker-compose download link:
https://github.com/docker/compose/releases/download/1.23.2/docker-compose-Linux-x86_64

OS info:

$ lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.6.1810 (Core)
Release: 7.6.1810
Codename: Core
$ uname -r
3.10.0-957.1.3.el7.x86_64
$ arch
x86_64
$ docker -v
Docker version 18.09.1, build 4c52b90

Steps to reproduce the issue

  1. curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-Linux-x86_64" > ./docker-compose
  2. chmod +x ./docker-compose
  3. ./docker-compose -v
@chris-crone
Copy link
Member

I tried to reproduce this on a CentOS virtual machine and wasn't able to. It appears that you have a MemoryError so I suspect it might be related to your specific system.

@leikao
Copy link
Author

leikao commented Jan 17, 2019

I made a test, version v1.21.2 works well on my box, but the same error occurs on version v1.22.0-rc1 and later versions.

@leikao
Copy link
Author

leikao commented Jan 17, 2019

Is there any differences for release environment between v1.21.2 and later versions?

@chris-crone
Copy link
Member

Hmm.. That is puzzling. I don't see anything in the Compose diff or the Python SDK diff modifying how the build was done.

To try to reproduce this, I spun up a clean virtual machine (using VirtualBox) using the latest CentOS and didn't see the issue so it might still be something in your environment.

@leikao
Copy link
Author

leikao commented Jan 19, 2019

I downgrade the version of CentOS from 7.6.1810 to 7.4.1708, then it works well again.

  • CentOS v7.4.1708 works well
  • CentOS v7.6.1810 works well
  • CentOS v7.4.1708 upgrade to v7.6.1810 NOT work

There may be something wrong with the CentOS upgrade process. I'll close the thread, thank you all again.

@leikao leikao closed this as completed Jan 19, 2019
@chris-crone
Copy link
Member

Thanks for taking the time to debug @leikao! Definitely sounds like there's something up with the upgrade process.

@MostHated
Copy link

I get a similar error now as well. Sometimes I go to run a command (docker-compose up, down, etc) and it will sit there and hang, sometimes for minutes at a time with no cpu activity, but with the cursor moved to the next line as if its running. Sometimes it will eventually run, others I get the following:

Traceback (most recent call last):

  File "bin/docker-compose", line 5, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "/code/.tox/py36/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module
  File "compose/cli/main.py", line 17, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "/code/.tox/py36/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module
  File "site-packages/docker/__init__.py", line 2, in <module>
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "/code/.tox/py36/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module
  File "site-packages/docker/api/__init__.py", line 2, in <module>

It continues on for several more lines like this. but the very last part is:

  File "site-packages/nacl/bindings/__init__.py", line 377, in <module>
  File "site-packages/nacl/bindings/sodium_core.py", line 32, in sodium_init
  File "site-packages/nacl/bindings/sodium_core.py", line 22, in _sodium_init
[23994] Failed to execute script docker-compose

docker-compose version 1.24.0, build 0aa5906
Docker version 18.09.2, build 6247962
Python 3.6.8

@glebmish
Copy link

I also have same error as @MostHated

docker-compose version 1.24.0 (don't know exact build as docker-compose --version fails, but downloaded from https://github.com/docker/compose/releases/download/1.24.0/docker-compose-Linux-x86_64)
Docker version 18.09.5, build e8ff056
Python 3.5.2

Previous version works fine: docker-compose version 1.23.0, build c8524dc

@xBioDreadx
Copy link

xBioDreadx commented Jun 23, 2019

getting same error...

.....
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
 File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
 File "/code/.tox/py37/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 627, in exec_module
 File "site-packages/paramiko/transport.py", line 90, in <module>
 File "<frozen importlib._bootstrap>", line 983, in _find_and_load
 File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
 File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
 File "/code/.tox/py37/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 627, in exec_module
 File "site-packages/paramiko/ed25519key.py", line 22, in <module>
 File "<frozen importlib._bootstrap>", line 983, in _find_and_load
 File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
 File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
 File "/code/.tox/py37/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 627, in exec_module
 File "site-packages/nacl/signing.py", line 17, in <module>
 File "<frozen importlib._bootstrap>", line 983, in _find_and_load
 File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
 File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
 File "/code/.tox/py37/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 627, in exec_module
 File "site-packages/nacl/bindings/__init__.py", line 377, in <module>
 File "site-packages/nacl/bindings/sodium_core.py", line 32, in sodium_init
 File "site-packages/nacl/bindings/sodium_core.py", line 22, in _sodium_init
KeyboardInterrupt
[25835] Failed to execute script docker-compose

Docker version 18.09.6, build 481bc77
docker-compose version 1.24.0, build 0aa5906 //Also tried with 1.25.0-rc1
Python 3.6.8
Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-1033-gcp x86_64)

@lonix1
Copy link

lonix1 commented Sep 29, 2019

If this was a problem for you please upvote #6931 so we can get better docs, which would have avoided lots of wasted time chasing down this problem.

@ravindu1024
Copy link

Thanks for that @lonix1 👍
Can confirm that installing haveged fixed this for me. Had the same issue and the available entropy was about 10. It went up to 2000+ after installing haveged and all docker-compose commands work now.
Docker version: 20.10.1
Docker Compose version: 1.27.4
OS version: Ubuntu 20.04 LTS

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

No branches or pull requests

7 participants