stefangweichinger / ansible-rclone

ansible role for rclone :: https://galaxy.ansible.com/stefangweichinger/ansible_rclone
160 stars 57 forks source link

Failure executing fact script #170

Closed blacknell closed 3 weeks ago

blacknell commented 3 weeks ago

After installing rclone via this galaxy role I'm getting fact gathering errors on all playbooks.

[WARNING]: Failure executing fact script (/etc/ansible/facts.d/rclone.fact), rc: 1, err: Traceback (most recent call last):   File "/etc/ansible/facts.d/rclone.fact", line 25, in <module>     output['installed_version'] = subprocess.check_output(                                   ^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/subprocess.py", line 466, in check_output     return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/usr/lib/python3.11/subprocess.py", line 548, in run     with Popen(*popenargs, **kwargs) as
process:          ^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__     self._execute_child(args, executable, preexec_fn, close_fds,   File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child     raise child_exception_type(errno_num, err_msg,
err_filename) OSError: [Errno 8] Exec format error: 'rclone'

I installed the role using

    - name: install rclone
      include_role:
        name: stefangweichinger.ansible_rclone
      when: install_rclone | default(false)
stefangweichinger commented 3 weeks ago

Thanks for reporting, sorry to hear. I don't know if I can help here ... I'd try removing that fact-file and re-run etc Any ansible-updates recently? Were you able to debug it already?

Also interesting: versions of OS, ansible ...

stefangweichinger commented 3 weeks ago

A bit googling points in the direction of wrong permissions somewhere ...

blacknell commented 3 weeks ago

It installed recline but on my RPi it was wrong arch. I deleted the facts file and moved on manually.

Might be an idea to run the script to install rather than copy binaries.