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

the fab hang issue #1

Open
tbxy09 opened this issue Nov 5, 2018 · 2 comments
Open

the fab hang issue #1

tbxy09 opened this issue Nov 5, 2018 · 2 comments

Comments

@tbxy09
Copy link
Owner

tbxy09 commented Nov 5, 2018

using the step debugger pudb to run the fabfile.py, instead of run the cli fab

python -m pudb fabfile.py

when running the this line

from fabric.api import cd, lcd, env, local,serial

it hang about more than 60 seconds sometime

turns out, this line will import tons of modules including pynacl,then refer this issue to pynacl #327

this has a more detail description libsodium-php94

@tbxy09
Copy link
Owner Author

tbxy09 commented Nov 5, 2018

I am now wondering using the fab to manage my cloud service,but turns out this is very deep issue
the uname output

     Linux lev 4.15.0-36-generic #39~16.04.1-Ubuntu SMP Tue Sep 25 08:59:23 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

@tbxy09
Copy link
Owner Author

tbxy09 commented Nov 6, 2018

https://libsodium.gitbook.io/doc/usage

    #if defined(__linux__)
    # include <fcntl.h>
    # include <unistd.h>
    # include <sys/ioctl.h>
    # include <linux/random.h>
    #endif
    // ...
    #if defined(__linux__) && defined(RNDGETENTCNT)
    int fd;
    int c;
    ​
    if ((fd = open("/dev/random", O_RDONLY)) != -1) {
        if (ioctl(fd, RNDGETENTCNT, &c) == 0 && c < 160) {
            fputs("This system doesn't provide enough entropy to quickly generate high-quality random numbers.\n"
                  "Installing the rng-utils/rng-tools, jitterentropy or haveged packages may help.\n"
                  "On virtualized Linux environments, also consider using virtio-rng.\n"
                  "The service will not start until enough entropy has been collected.\n", stderr);
        }
        (void) close(fd);
    }
    #endif

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

1 participant