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

Could not find or access '/tmp/DISABLE-SHA1.pmod' on the Ansible Controller #14895

Open
5 of 11 tasks
birb57 opened this issue Feb 18, 2024 · 7 comments
Open
5 of 11 tasks

Comments

@birb57
Copy link

birb57 commented Feb 18, 2024

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX is open source software provided for free and that I might not receive a timely response.
  • I am NOT reporting a (potential) security vulnerability. (These should be emailed to security@ansible.com instead.)

Bug Summary

Hi

I try to copy file from my awx adhoc command job (from inventory) but can not

src=/tmp/DISABLE-SHA1.pmod dest=/usr/share/crypto-policies/policies/modules/DISABLE-CBC.pmod owner=root group=root mode=644

I coped file locally in /tmp on awx-ee but job failed :

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option
vmdedrfes03 | FAILED! => {
"changed": false,
"msg": "Could not find or access '/tmp/DISABLE-CBC.pmod' on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"
}

AWX version

23.6.0

Select the relevant components

  • UI
  • UI (tech preview)
  • API
  • Docs
  • Collection
  • CLI
  • Other

Installation method

kubernetes

Modifications

no

Ansible version

2.12.5

Operating system

Red Hat

Web browser

Chrome

Steps to reproduce

copy file on awx-ee first under /tmp

execute adhoc command via copy module (from awx inventory ) to copy file on each managed node

Expected results

file be copied

Actual results

expect the file to exist on the remote, see the remote_src option
vmdedrfes03 | FAILED! => {
"changed": false,
"msg": "Could not find or access '/tmp/DISABLE-CBC.pmod' on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"
}

Additional information

No response

@birb57
Copy link
Author

birb57 commented Feb 18, 2024

thanks for your support

@fosterseth
Copy link
Member

can you explain what you are trying to achieve? Are you trying to build a custom execution environment? Are you trying to copy a file into awx-ee container (that is running in the awx-task pod)? If you can detail what you are ultimately trying to achieve, we can steer you in the right direction

@fosterseth
Copy link
Member

if you are trying to push a file to your managed hosts, and want that file to exist in the automation job pod, you might look at this setting in AWX https://ansible.readthedocs.io/projects/awx/en/latest/administration/isolation_variables.html

@bskou57
Copy link

bskou57 commented Mar 5, 2024

Hi

I updated job settings in my awx web interface without success:

{
"msg": "Could not find or access '/var/tmp/DISABLE-CBC.pmod' on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option",
"exception": "Traceback (most recent call last):\n File "/usr/local/lib/python3.9/site-packages/ansible/plugins/action/copy.py", line 466, in run\n source = self._find_needle('files', source)\n File "/usr/local/lib/python3.9/site-packages/ansible/plugins/action/init.py", line 1455, in _find_needle\n return self._loader.path_dwim_relative_stack(path_stack, dirname, needle)\n File "/usr/local/lib/python3.9/site-packages/ansible/parsing/dataloader.py", line 341, in path_dwim_relative_stack\n raise AnsibleFileNotFound(file_name=source, paths=[to_native(p) for p in search])\nansible.errors.AnsibleFileNotFound: Could not find or access '/var/tmp/DISABLE-CBC.pmod' on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option\n",
"invocation": {
"src": "/var/tmp/DISABLE-CBC.pmod",
"dest": "/tmp/DISABLE-CBC.pmod",
"module_args": {
"src": "/var/tmp/DISABLE-CBC.pmod",
"dest": "/tmp/DISABLE-CBC.pmod"
}
},
"_ansible_no_log": null,
"changed": false
}

Thanks for your support

@birb57
Copy link
Author

birb57 commented Mar 18, 2024 via email

@birb57
Copy link
Author

birb57 commented Mar 29, 2024

Hi

Some news ?

@birb57
Copy link
Author

birb57 commented Mar 29, 2024

Hi

some news ?

thanks

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

No branches or pull requests

3 participants