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

Razor #21

Open
olegsidokhmetov opened this issue Feb 11, 2022 · 0 comments
Open

Razor #21

olegsidokhmetov opened this issue Feb 11, 2022 · 0 comments

Comments

@olegsidokhmetov
Copy link

olegsidokhmetov commented Feb 11, 2022

Hello! When I used this role, I got error:

TASK [zimbra : Ensure Pyzor and Razor is installed (Ubuntu)] ******************************************************************************************
task path: /etc/ansible/roles/zimbra/tasks/install/dependencies.yml:16
<80.78.246.69> ESTABLISH SSH CONNECTION FOR USER: None
<80.78.246.69> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/12bfd75bb0 80.78.246.69 '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
<80.78.246.69> (0, b'/root\n', b'')
<80.78.246.69> ESTABLISH SSH CONNECTION FOR USER: None
<80.78.246.69> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/12bfd75bb0 80.78.246.69 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir "` echo /root/.ansible/tmp/ansible-tmp-1644569647.2353158-450911-155560954076438 `" && echo ansible-tmp-1644569647.2353158-450911-155560954076438="` echo /root/.ansible/tmp/ansible-tmp-1644569647.2353158-450911-155560954076438 `" ) && sleep 0'"'"''
<80.78.246.69> (0, b'ansible-tmp-1644569647.2353158-450911-155560954076438=/root/.ansible/tmp/ansible-tmp-1644569647.2353158-450911-155560954076438\n', b'')
Using module file /usr/lib/python3/dist-packages/ansible/modules/apt.py
<80.78.246.69> PUT /root/.ansible/tmp/ansible-local-450837_j0orkfs/tmpi5snglyw TO /root/.ansible/tmp/ansible-tmp-1644569647.2353158-450911-155560954076438/AnsiballZ_apt.py
<80.78.246.69> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/12bfd75bb0 '[80.78.246.69]'
<80.78.246.69> (0, b'sftp> put /root/.ansible/tmp/ansible-local-450837_j0orkfs/tmpi5snglyw /root/.ansible/tmp/ansible-tmp-1644569647.2353158-450911-155560954076438/AnsiballZ_apt.py\n', b'')
<80.78.246.69> ESTABLISH SSH CONNECTION FOR USER: None
<80.78.246.69> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/12bfd75bb0 80.78.246.69 '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1644569647.2353158-450911-155560954076438/ /root/.ansible/tmp/ansible-tmp-1644569647.2353158-450911-155560954076438/AnsiballZ_apt.py && sleep 0'"'"''
<80.78.246.69> (0, b'', b'')
<80.78.246.69> ESTABLISH SSH CONNECTION FOR USER: None
<80.78.246.69> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/12bfd75bb0 -tt 80.78.246.69 '/bin/sh -c '"'"'sudo -H -S -n  -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-bwaijsmlxqzdhpdpxahhhzqwxtkwgsbc ; /usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1644569647.2353158-450911-155560954076438/AnsiballZ_apt.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<80.78.246.69> (1, b'\r\n{"failed": true, "msg": "No package matching \'razor\' is available", "exception": "  File \\"/tmp/ansible_apt_payload_4ocpy1z5/ansible_apt_payload.zip/ansible/modules/apt.py\\", line 478, in package_status\\n  File \\"/usr/lib/python3/dist-packages/apt/cache.py\\", line 301, in __getitem__\\n    raise KeyError(\'The cache has no package named %r\' % key)\\n", "invocation": {"module_args": {"name": ["razor", "pyzor"], "state": "present", "package": ["razor", "pyzor"], "update_cache_retries": 5, "update_cache_retry_max_delay": 12, "cache_valid_time": 0, "purge": false, "force": false, "upgrade": null, "dpkg_options": "force-confdef,force-confold", "autoremove": false, "autoclean": false, "fail_on_autoremove": false, "only_upgrade": false, "force_apt_get": false, "allow_unauthenticated": false, "update_cache": null, "deb": null, "default_release": null, "install_recommends": null, "policy_rc_d": null}}}\r\n', b'Shared connection to 80.78.246.69 closed.\r\n')
<80.78.246.69> Failed to connect to the host via ssh: Shared connection to 80.78.246.69 closed.
<80.78.246.69> ESTABLISH SSH CONNECTION FOR USER: None
<80.78.246.69> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/12bfd75bb0 80.78.246.69 '/bin/sh -c '"'"'rm -f -r /root/.ansible/tmp/ansible-tmp-1644569647.2353158-450911-155560954076438/ > /dev/null 2>&1 && sleep 0'"'"''
<80.78.246.69> (0, b'', b'')
The full traceback is:
  File "/tmp/ansible_apt_payload_4ocpy1z5/ansible_apt_payload.zip/ansible/modules/apt.py", line 478, in package_status
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 301, in __getitem__
    raise KeyError('The cache has no package named %r' % key)
fatal: [nginx]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "allow_unauthenticated": false,
            "autoclean": false,
            "autoremove": false,
            "cache_valid_time": 0,
            "deb": null,
            "default_release": null,
            "dpkg_options": "force-confdef,force-confold",
            "fail_on_autoremove": false,
            "force": false,
            "force_apt_get": false,
            "install_recommends": null,
            "name": [
                "razor",
                "pyzor"
            ],
            "only_upgrade": false,
            "package": [
                "razor",
                "pyzor"
            ],
            "policy_rc_d": null,
            "purge": false,
            "state": "present",
            "update_cache": null,
            "update_cache_retries": 5,
            "update_cache_retry_max_delay": 12,
            "upgrade": null
        }
    },
    "msg": "No package matching 'razor' is available"
}

Ubuntu 20.04

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