Skip to content

[BUG]: Build on Fedora 42 - sftp transfer mechanism failed #232

@maksimsamt

Description

@maksimsamt

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Build on Fedora 42 - sftp transfer mechanism failed

This warning/error appears specifically on F42, on F41 and earlier versions not.

...
[WARNING]: sftp transfer mechanism failed on [127.0.0.1]. Use ANSIBLE_DEBUG=1
...
bash: line 1: /usr/lib/sftp-server: No such file or directory
...

To fix it, it is necessary to add additional Ansible var ANSIBLE_SSH_TRANSFER_METHOD to use scp protocol, like this:

...
    ansible_env_vars = [
      "ANSIBLE_PIPELINING=True",
      "ANSIBLE_REMOTE_TEMP=/tmp",
      "ANSIBLE_SSH_TRANSFER_METHOD=scp",
      "ANSIBLE_SCP_EXTRA_ARGS=-O",
    ]
...

Expected Behavior

No response

Steps To Reproduce

No response

Anything else?

No response

Search terms

sftp transfer mechanism failed

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions