Trying to deploy an older project which I’ve updated to a more recent version of Trellis to be able to use PHP 8.1.
It seems like there’s some SSH issue, I haven’t seen this issue before. I can ssh into the machine just fine from my local machine.
TASK [deploy : Check if deploy_initialize_before scripts exist] ****************
task path: /Users/user/WWW/domain.tld/trellis/roles/deploy/tasks/initialize.yml:2
TASK [deploy : include_tasks] **************************************************
task path: /Users/user/WWW/domain.tld/trellis/roles/deploy/tasks/initialize.yml:9
TASK [deploy : Initialize] *****************************************************
task path: /Users/user/WWW/domain.tld/trellis/roles/deploy/tasks/initialize.yml:16
redirecting (type: modules) ansible.builtin.deploy_helper to community.general.deploy_helper
Using module file /Users/user/WWW/domain.tld/trellis/.trellis/virtualenv/lib/python3.9/site-packages/ansible_collections/community/general/plugins/modules/deploy_helper.py
Pipelining is enabled.
<x.x.x.x> ESTABLISH SSH CONNECTION FOR USER: username
<x.x.x.x> SSH: EXEC ssh -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o HostKeyAlgorithms=ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-ed25519,ssh-rsa -o StrictHostKeyChecking=no -o Port=22 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="username"' -o ConnectTimeout=10 -o StrictHostKeyChecking=no -o ControlPath=/Users/user/.ansible/cp/a2d951abbc x.x.x.x '/bin/sh -c '"'"'/usr/bin/python3 && sleep 0'"'"''
<x.x.x.x> (1, b'', b'OpenSSH_9.0p1, LibreSSL 3.3.6\r\ndebug1: Reading configuration data /Users/user/.ssh/config\r\ndebug3: /Users/user/.ssh/config line 1: Including file /Users/user/.lima/a.tld/ssh.config depth 0\r\ndebug1: Reading configuration data /Users/user/.lima/a.tld/ssh.config\r\ndebug3: /Users/user/.ssh/config line 1: Including file /Users/user/.lima/b.tld/ssh.config depth 0\r\ndebug1: Reading configuration data /Users/user/.lima/b.tld/ssh.config\r\ndebug3: /Users/user/.ssh/config line 1: Including file /Users/user/.lima/domain.tld/ssh.config depth 0\r\ndebug1: Reading configuration data /Users/user/.lima/domain.tld/ssh.config\r\ndebug3: /Users/user/.ssh/config line 1: Including file /Users/user/.lima/c.tld/ssh.config depth 0\r\ndebug1: Reading configuration data /Users/user/.lima/c.tld/ssh.config\r\ndebug3: /Users/user/.ssh/config line 1: Including file /Users/user/.lima/testinglima.com/ssh.config depth 0\r\ndebug1: Reading configuration data /Users/user/.lima/testinglima.com/ssh.config\r\ndebug3: /Users/user/.ssh/config line 1: Including file /Users/user/.lima/d.tld/ssh.config depth 0\r\ndebug1: Reading configuration data /Users/user/.lima/d.tld/ssh.config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files\r\ndebug1: /etc/ssh/ssh_config line 54: Applying options for *\r\ndebug2: resolve_canonicalize: hostname x.x.x.x is address\r\ndebug3: expanded UserKnownHostsFile \'~/.ssh/known_hosts\' -> \'/Users/user/.ssh/known_hosts\'\r\ndebug3: expanded UserKnownHostsFile \'~/.ssh/known_hosts2\' -> \'/Users/user/.ssh/known_hosts2\'\r\ndebug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 47758\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\nTraceback (most recent call last):\n File "<stdin>", line 102, in <module>\n File "<stdin>", line 94, in _ansiballz_main\n File "<stdin>", line 40, in invoke_module\n File "/usr/lib/python3.8/runpy.py", line 207, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File "/usr/lib/python3.8/runpy.py", line 97, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n File "/usr/lib/python3.8/runpy.py", line 87, in _run_code\n exec(code, run_globals)\n File "/tmp/ansible_deploy_helper_payload_j0gzp3p0/ansible_deploy_helper_payload.zip/ansible_collections/community/general/plugins/modules/deploy_helper.py", line 524, in <module>\n File "/tmp/ansible_deploy_helper_payload_j0gzp3p0/ansible_deploy_helper_payload.zip/ansible_collections/community/general/plugins/modules/deploy_helper.py", line 485, in main\n File "/tmp/ansible_deploy_helper_payload_j0gzp3p0/ansible_deploy_helper_payload.zip/ansible_collections/community/general/plugins/modules/deploy_helper.py", line 347, in create_path\n File "/usr/lib/python3.8/os.py", line 213, in makedirs\n makedirs(head, exist_ok=exist_ok)\n File "/usr/lib/python3.8/os.py", line 223, in makedirs\n mkdir(name, mode)\nPermissionError: [Errno 13] Permission denied: \'/sites/domain.tld\'\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 1\r\n')
<x.x.x.x> Failed to connect to the host via ssh: OpenSSH_9.0p1, LibreSSL 3.3.6
debug1: Reading configuration data /Users/user/.ssh/config
debug3: /Users/user/.ssh/config line 1: Including file /Users/user/.lima/a.tld/ssh.config depth 0
debug1: Reading configuration data /Users/user/.lima/a.tld/ssh.config
debug3: /Users/user/.ssh/config line 1: Including file /Users/user/.lima/b.tld/ssh.config depth 0
debug1: Reading configuration data /Users/user/.lima/b.tld/ssh.config
debug3: /Users/user/.ssh/config line 1: Including file /Users/user/.lima/domain.tld/ssh.config depth 0
debug1: Reading configuration data /Users/user/.lima/domain.tld/ssh.config
debug3: /Users/user/.ssh/config line 1: Including file /Users/user/.lima/c.tld/ssh.config depth 0
debug1: Reading configuration data /Users/user/.lima/c.tld/ssh.config
debug3: /Users/user/.ssh/config line 1: Including file /Users/user/.lima/testinglima.com/ssh.config depth 0
debug1: Reading configuration data /Users/user/.lima/testinglima.com/ssh.config
debug3: /Users/user/.ssh/config line 1: Including file /Users/user/.lima/d.tld/ssh.config depth 0
debug1: Reading configuration data /Users/user/.lima/d.tld/ssh.config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files
debug1: /etc/ssh/ssh_config line 54: Applying options for *
debug2: resolve_canonicalize: hostname x.x.x.x is address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/Users/user/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/Users/user/.ssh/known_hosts2'
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: auto-mux: Trying existing master
debug2: fd 3 setting O_NONBLOCK
debug2: mux_client_hello_exchange: master version 4
debug3: mux_client_forwards: request forwardings: 0 local, 0 remote
debug3: mux_client_request_session: entering
debug3: mux_client_request_alive: entering
debug3: mux_client_request_alive: done pid = 47758
debug3: mux_client_request_session: session request sent
debug1: mux_client_request_session: master session id: 2
Traceback (most recent call last):
File "<stdin>", line 102, in <module>
File "<stdin>", line 94, in _ansiballz_main
File "<stdin>", line 40, in invoke_module
File "/usr/lib/python3.8/runpy.py", line 207, in run_module
return _run_module_code(code, init_globals, run_name, mod_spec)
File "/usr/lib/python3.8/runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/tmp/ansible_deploy_helper_payload_j0gzp3p0/ansible_deploy_helper_payload.zip/ansible_collections/community/general/plugins/modules/deploy_helper.py", line 524, in <module>
File "/tmp/ansible_deploy_helper_payload_j0gzp3p0/ansible_deploy_helper_payload.zip/ansible_collections/community/general/plugins/modules/deploy_helper.py", line 485, in main
File "/tmp/ansible_deploy_helper_payload_j0gzp3p0/ansible_deploy_helper_payload.zip/ansible_collections/community/general/plugins/modules/deploy_helper.py", line 347, in create_path
File "/usr/lib/python3.8/os.py", line 213, in makedirs
makedirs(head, exist_ok=exist_ok)
File "/usr/lib/python3.8/os.py", line 223, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/sites/domain.tld'
debug3: mux_client_read_packet: read header failed: Broken pipe
debug2: Received exit status from master 1
fatal: [x.x.x.x]: FAILED! => {
"changed": false,
"module_stderr": "OpenSSH_9.0p1, LibreSSL 3.3.6\r\ndebug1: Reading configuration data /Users/user/.ssh/config\r\ndebug3: /Users/user/.ssh/config line 1: Including file /Users/user/.lima/a.tld/ssh.config depth 0\r\ndebug1: Reading configuration data /Users/user/.lima/a.tld/ssh.config\r\ndebug3: /Users/user/.ssh/config line 1: Including file /Users/user/.lima/b.tld/ssh.config depth 0\r\ndebug1: Reading configuration data /Users/user/.lima/b.tld/ssh.config\r\ndebug3: /Users/user/.ssh/config line 1: Including file /Users/user/.lima/domain.tld/ssh.config depth 0\r\ndebug1: Reading configuration data /Users/user/.lima/domain.tld/ssh.config\r\ndebug3: /Users/user/.ssh/config line 1: Including file /Users/user/.lima/c.tld/ssh.config depth 0\r\ndebug1: Reading configuration data /Users/user/.lima/c.tld/ssh.config\r\ndebug3: /Users/user/.ssh/config line 1: Including file /Users/user/.lima/testinglima.com/ssh.config depth 0\r\ndebug1: Reading configuration data /Users/user/.lima/testinglima.com/ssh.config\r\ndebug3: /Users/user/.ssh/config line 1: Including file /Users/user/.lima/d.tld/ssh.config depth 0\r\ndebug1: Reading configuration data /Users/user/.lima/d.tld/ssh.config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files\r\ndebug1: /etc/ssh/ssh_config line 54: Applying options for *\r\ndebug2: resolve_canonicalize: hostname x.x.x.x is address\r\ndebug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/Users/user/.ssh/known_hosts'\r\ndebug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/Users/user/.ssh/known_hosts2'\r\ndebug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 47758\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\nTraceback (most recent call last):\n File \"<stdin>\", line 102, in <module>\n File \"<stdin>\", line 94, in _ansiballz_main\n File \"<stdin>\", line 40, in invoke_module\n File \"/usr/lib/python3.8/runpy.py\", line 207, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File \"/usr/lib/python3.8/runpy.py\", line 97, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n File \"/usr/lib/python3.8/runpy.py\", line 87, in _run_code\n exec(code, run_globals)\n File \"/tmp/ansible_deploy_helper_payload_j0gzp3p0/ansible_deploy_helper_payload.zip/ansible_collections/community/general/plugins/modules/deploy_helper.py\", line 524, in <module>\n File \"/tmp/ansible_deploy_helper_payload_j0gzp3p0/ansible_deploy_helper_payload.zip/ansible_collections/community/general/plugins/modules/deploy_helper.py\", line 485, in main\n File \"/tmp/ansible_deploy_helper_payload_j0gzp3p0/ansible_deploy_helper_payload.zip/ansible_collections/community/general/plugins/modules/deploy_helper.py\", line 347, in create_path\n File \"/usr/lib/python3.8/os.py\", line 213, in makedirs\n makedirs(head, exist_ok=exist_ok)\n File \"/usr/lib/python3.8/os.py\", line 223, in makedirs\n mkdir(name, mode)\nPermissionError: [Errno 13] Permission denied: '/sites/domain.tld'\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 1\r\n",
"module_stdout": "",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1
}
PLAY RECAP *********************************************************************
x.x.x.x : ok=2 changed=0 unreachable=0 failed=1 skipped=11 rescued=0 ignored=0
localhost : ok=0 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0