Skip to content

AttributeError: 'module' object has no attribute 'rand' #62

@sbwoodside

Description

@sbwoodside

The python module OpenSSL has been upgraded and no longer contains the rand method. This makes this role break:

TASK [thefinn93.letsencrypt : Attempt to get the certificate using the standalone authenticator (in case eg the webserver isn't running yet)] ****************************
ok: [example.com]
ok: [example.com]
fatal: [example.com]: FAILED! => {"changed": true, "cmd": ["/usr/local/share/letsencrypt/env/bin/letsencrypt", "--agree-tos", "--text", "-d", "example.com", "--email", "info@medstack.co", "--expand", "-a", "standalone", "auth"], "delta": "0:00:01.612828", "end": "2017-09-16 00:51:06.894223", "failed": true, "rc": 1, "start": "2017-09-16 00:51:05.281395", "stderr": "Saving debug log to /var/log/letsencrypt/letsencrypt.log\nPlugins selected: Authenticator standalone, Installer None\nObtaining a new certificate\nPerforming the following challenges:\ntls-sni-01 challenge for example.com\nCleaning up challenges\nAn unexpected error occurred:\nAttributeError: 'module' object has no attribute 'rand'\nPlease see the logfiles in /var/log/letsencrypt for more details.", "stderr_lines": ["Saving debug log to /var/log/letsencrypt/letsencrypt.log", "Plugins selected: Authenticator standalone, Installer None", "Obtaining a new certificate", "Performing the following challenges:", "tls-sni-01 challenge for example.com", "Cleaning up challenges", "An unexpected error occurred:", "AttributeError: 'module' object has no attribute 'rand'", "Please see the logfiles in /var/log/letsencrypt for more details."], "stdout": "", "stdout_lines": []}

Activity

lnikell

lnikell commented on Sep 16, 2017

@lnikell

Got the same error today on the new Digital Ocean instance with Ubuntu 17.04

vkomulai

vkomulai commented on Sep 18, 2017

@vkomulai

There is a bug report in Letsencrypt source: certbot/certbot#5111

Apparently it has been fixed.

sbwoodside

sbwoodside commented on Sep 19, 2017

@sbwoodside
Author

What's needed to pick up the fixed version in this ansible module?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @sbwoodside@lnikell@vkomulai

        Issue actions

          AttributeError: 'module' object has no attribute 'rand' · Issue #62 · thefinn93/ansible-letsencrypt