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

Error when using Wyng with rclone #175

Closed
ldeso opened this issue Sep 22, 2023 · 1 comment
Closed

Error when using Wyng with rclone #175

ldeso opened this issue Sep 22, 2023 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@ldeso
Copy link

ldeso commented Sep 22, 2023

In Qubes OS, the command wyng send --all fails with "CalledProcessError" if the destination is a remote filesystem mounted with rclone:

Traceback (most recent call last):rivate.img
  File "/usr/local/bin/wyng", line 4644, in <module>
    monitor_send(storage, aset, selected_vols, monitor_only=False)
  File "/usr/local/bin/wyng", line 3446, in monitor_send
    send_volume(storage, vol, curtime, ses_tags, send_all=datavol in send_alls)
  File "/usr/local/bin/wyng", line 3239, in send_volume
    dest.run([ dest.cd
  File "/usr/local/bin/wyng", line 2132, in run
    return do_exec([cmd], infile=infile, inlines=inlines, out=out,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/bin/wyng", line 2491, in do_exec
    return close()[-1]
           ^^^^^^^
  File "/usr/local/bin/wyng", line 2480, in close
    raise SPr.CalledProcessError([x for x in rclist if x][0], commands)
subprocess.CalledProcessError: Command '[['/usr/bin/qvm-run', '--no-color-stderr', '--no-color-output', '-p', 'sys-backup', '/bin/sh /tmp/wyngrpc/tmpx4p86e2_']]' returned non-zero exit status 1.

This is because of an error when Wyng tries to execute the script /tmp/wyngrpc/tmpx4p86e2_ on the qube where the destination is mounted. This script is:

trap '' INT TERM QUIT ABRT ALRM TSTP USR1
set -e && export LC_ALL=C
 cd '/mnt/remote/qubes-rclone.backup' && mv -T Vol_8ce480/S_20230922-102839-tmp Vol_8ce480/S_20230922-102839 && mv Vol_8ce480/volinfo.tmp Vol_8ce480/volinfo && mv archive.ini.tmp archive.ini

When executing this script manually, this error happens:

mv: cannot move 'Vol_8ce480/S_20230922-102839-tmp' to 'Vol_8ce480/S_20230922-102839': File exists

For some reson, there is an empty directory on the remote with the name Vol_8ce480/S_20230922-102839 that prevents Wyng from running the command mv -T Vol_8ce480/S_20230922-102839-tmp Vol_8ce480/S_20230922-102839.

This only happens when mounting the remote filesystem with rclone, it does not happen when using e.g. davfs2.

Environment: Qubes OS 4.2.0-rc1, Wyng 0.8beta release 20230826

@ldeso ldeso changed the title Error when wyng send with rclone Error when using Wyng with rclone Sep 22, 2023
@tasket tasket added the bug Something isn't working label Sep 22, 2023
@tasket tasket added this to the v0.8 milestone Sep 22, 2023
tasket added a commit that referenced this issue May 17, 2024
tasket added a commit that referenced this issue May 17, 2024
@tasket
Copy link
Owner

tasket commented May 17, 2024

Added manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants