Illegal seek: Couldn't import episode

Sonarr version (exact version): 3.0.9.1549
Mono version (if Sonarr is not running on Windows): 6.12.0.182
OS: Ubuntu 20.04.5 LTS
Debug logs: https://hastebin.com/muyuqirulu.apache
Description of issue: Recently, some Transmission downloads give me the illegal seek error. Other downloads work fine. I am downloading locally, then importing to the Sonarr library on Google Drive via rclone. I can confirm this is not a Google Drive API issue and not a permissions issue, nor have I done anything specifically to trigger this error. Manual imports are not working either. My setup had been working for over a year until recently and nothing was changed.

Most recent rclone update was only released last week. So if you are updating automatically then I would consider that a change, especially since a quick search indicates that the error seems to be related to rclone. Based on the Sonarr error too, it seems like there is an issue moving the file.

If your rclone is not updated, I might try starting there.

2022-11-21 09:28:40.8|Debug|DiskTransferService|Rolling back incomplete file move [/home/(removed)/Downloads/Completed/Suits.S05.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP[rartv]/Suits.S05E01.1080p.BluRay.REMUX.AVC.DTS-HD.MA.5.1-NOGRP.mkv] to [/home/(removed)/Google Drive/TV Shows/Suits/Season 5/Suits - S05E01 - Denial Bluray-1080p Remux.mkv].

Hi @fanboy, I appreciate you taking a look at this. I tend to not post in the forums, even though I’ve been a user for 5+ years. In this case, I was not aware of the rclone issue and I went ahead and updated from 1.56.* to 1.60.1.

Unfortunately, it appears that did not resolve the issue. I am still getting an illegal seek error. See logs here: https://hastebin.com/avolikafuy.yaml. Any other thoughts?

Was worth a shot in case it was an easy fix…

What happens if you try and manually upload one of the problem files via rclone?
I’m not aware if there might be rclone logs that you can refer to as well that might shed further light on the failure.

By the way, another thing I came across was the very, very occasional input/output error: https://hastebin.com/uzakihuvaw.rust. About 1 of every 20 errors is I/O and the rest are illegal seek.

What happens if you try and manually upload one of the problem files via rclone?

Good thinking, I tried that before posting onto the forums. I can confirm the files that were failing to import by Sonarr did successfully copy over to rclone via the command line.

I’m not aware if there might be rclone logs that you can refer to as well that might shed further light on the failure.

Again, great idea. Unfortunately checking rclone logs on debug has returned absolutely zero error messages. This leads me to believe it may not be an rclone issue then?

After testing with larger files, I am finally getting errors from rclone. I believe the errors I am seeing in Sonarr are due to this issue from Google Drive: Google drive uploads failing, http 429 - Help and Support - rclone forum.

I will inspect further and update this thread.