[GH-ISSUE #75] [Bug Report] "Invalid cross-device link" when cache dir and target dir on different filesystems #63

Closed
opened 2026-02-27 04:57:19 +03:00 by kerem · 1 comment
Owner

Originally created by @DamianRyse on GitHub (Sep 13, 2025).
Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/75

Originally assigned to: @Googolplexed0 on GitHub.

Zotify Version
v10.11.0

Bug Description
When you've set the TEMP_DOWNLOAD_DIR to a directory on your local disk and the ROOT_PATH is for example on a mounted NFS share, the renaming fails with the error message "Invalid cross-device link".

Error Traceback / Logs

Traceback (most recent call last):
  File "/opt/zotify/lib64/python3.12/site-packages/zotify/app.py", line 44, in perform_query
    Query(Zotify.DATETIME_LAUNCH).request(urls).execute()
  File "/opt/zotify/lib64/python3.12/site-packages/zotify/api.py", line 1632, in execute
    self.download()
  File "/opt/zotify/lib64/python3.12/site-packages/zotify/api.py", line 1626, in download
    raise interrupt
  File "/opt/zotify/lib64/python3.12/site-packages/zotify/api.py", line 1597, in download
    super().download(pbar_stack=None)
  File "/opt/zotify/lib64/python3.12/site-packages/zotify/api.py", line 1151, in download
    child.download(pbar_stack)
  File "/opt/zotify/lib64/python3.12/site-packages/zotify/api.py", line 884, in download
    path = PurePath(Path(temppath).rename(path.with_suffix(".ogg")))
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/pathlib.py", line 1363, in rename
    os.rename(self, target)
OSError: [Errno 18] Invalid cross-device link: '/home/username/.cache/zotify/zotify_aa80138a-0021-4c43-896f-6aa21c855e5f_asdf123456789.tmp' -> '/mnt/targetr/directory/filename.ogg'
Originally created by @DamianRyse on GitHub (Sep 13, 2025). Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/75 Originally assigned to: @Googolplexed0 on GitHub. **Zotify Version** v10.11.0 **Bug Description** When you've set the TEMP_DOWNLOAD_DIR to a directory on your local disk and the ROOT_PATH is for example on a mounted NFS share, the *renaming* fails with the error message "Invalid cross-device link". **Error Traceback / Logs** ``` Traceback (most recent call last): File "/opt/zotify/lib64/python3.12/site-packages/zotify/app.py", line 44, in perform_query Query(Zotify.DATETIME_LAUNCH).request(urls).execute() File "/opt/zotify/lib64/python3.12/site-packages/zotify/api.py", line 1632, in execute self.download() File "/opt/zotify/lib64/python3.12/site-packages/zotify/api.py", line 1626, in download raise interrupt File "/opt/zotify/lib64/python3.12/site-packages/zotify/api.py", line 1597, in download super().download(pbar_stack=None) File "/opt/zotify/lib64/python3.12/site-packages/zotify/api.py", line 1151, in download child.download(pbar_stack) File "/opt/zotify/lib64/python3.12/site-packages/zotify/api.py", line 884, in download path = PurePath(Path(temppath).rename(path.with_suffix(".ogg"))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/pathlib.py", line 1363, in rename os.rename(self, target) OSError: [Errno 18] Invalid cross-device link: '/home/username/.cache/zotify/zotify_aa80138a-0021-4c43-896f-6aa21c855e5f_asdf123456789.tmp' -> '/mnt/targetr/directory/filename.ogg' ```
kerem 2026-02-27 04:57:19 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@Googolplexed0 commented on GitHub (Sep 14, 2025):

Should be fixed with v0.10.12.

<!-- gh-comment-id:3289184140 --> @Googolplexed0 commented on GitHub (Sep 14, 2025): Should be fixed with v0.10.12.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/zotify#63
No description provided.