All Downloads are failing [EOFError: Ran out of input]

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
Slogger
Newbie
Newbie
Posts: 6
Joined: March 2nd, 2023, 3:26 am

All Downloads are failing [EOFError: Ran out of input]

Post by Slogger »

Hello

All of my downloads have suddenly stopped working.
I am getting errors:

Code: Select all

EOFError: Ran out of input
I thought it may have been a disk issue but I tested, and I do not think it is the case:
Image
  • All the tests look ok
  • Torrent downloads to the same folder are ok
  • Files are being written by sabnzbd to the downloads/incomplete folder so I dont think its a permissions issue
Relevant part of the logs:
I cant seem to post my logs due to being a new user, and some of the logs are being picked up as links :)
User avatar
sander
Release Testers
Release Testers
Posts: 9070
Joined: January 22nd, 2008, 2:22 pm

Re: All Downloads are failing [EOFError: Ran out of input]

Post by sander »

copy paste the log onto https://pastebin.com/ , and post the url here with space in it
Slogger
Newbie
Newbie
Posts: 6
Joined: March 2nd, 2023, 3:26 am

Re: All Downloads are failing [EOFError: Ran out of input]

Post by Slogger »

https://pastebin .com/eqtjbJiM

Here is the total logs.
Thanks!
User avatar
sander
Release Testers
Release Testers
Posts: 9070
Joined: January 22nd, 2008, 2:22 pm

Re: All Downloads are failing [EOFError: Ran out of input]

Post by sander »

A few dozen times:

Code: Select all

2023-03-02 08:29:17,948::ERROR::[filesystem:1125] Saving /downloads/incomplete-nzb/Outer.Banks.S02E01.720p.WEB.H264-GLHF/__ADMIN__/SABnzbd_nzf_ggh293q6 failed
OSError: [Errno 116] Stale file handle: '/downloads/incomplete-nzb/Outer.Banks.S02E01.720p.WEB.H264-GLHF/__ADMIN__/SABnzbd_nzf_ggh293q6'
and a few dozen times:

Code: Select all

2023-03-02 08:29:32,387::ERROR::[filesystem:1157] Loading /downloads/incomplete-nzb/Outer.Banks.S02E01.720p.WEB.H264-GLHF/__ADMIN__/SABnzbd_nzf_1nswz0rz failed
EOFError: Ran out of input
I suppose you saw that in your SABnzbd GUI too? Because "2023-03-02 08:29:17,948::INFO::[notifier:123] Sending notification: Error - Saving /downloads/incomplete-nzb/Outer.Banks.S02E01.720p.WEB.H264-GLHF/__ADMIN__/SABnzbd_nzf_ggh293q6 failed (type=error, job_cat=None)" ... so you must have seen that?



So big problems in /downloads/incomplete-nzb/Outer.Banks.S02E01.720p.WEB.H264-GLHF/

I would do this: Delete "Outer.Banks.S02E01.720p.WEB.H264-GLHF" from your Queue in SABnzbd GUI

If that does not work:

Stop sabnzbd
remove the directory /downloads/incomplete-nzb/Outer.Banks.S02E01.720p.WEB.H264-GLHF/
start sabnzbd
Slogger
Newbie
Newbie
Posts: 6
Joined: March 2nd, 2023, 3:26 am

Re: All Downloads are failing [EOFError: Ran out of input]

Post by Slogger »

Thank you for the response. I really appreciate it!
I did the following:
Stopped sabnbd completely.
Removed the incomplete-nzb folder completely
Restarted sabnbd
Re-added the nzb file
The same error occurs. I tried a few .nzb files

Image
User avatar
sander
Release Testers
Release Testers
Posts: 9070
Joined: January 22nd, 2008, 2:22 pm

Re: All Downloads are failing [EOFError: Ran out of input]

Post by sander »

Still in your Queue. Not good.

What if you click the Garbage Can collector to the very right of your Outer.Banks download ?

Do not try other .nzb files before the error is gone.
Slogger
Newbie
Newbie
Posts: 6
Joined: March 2nd, 2023, 3:26 am

Re: All Downloads are failing [EOFError: Ran out of input]

Post by Slogger »

Same thing.
I shut it down again, removed the incomplete folder, restarted.
The queue was empty I then tried to readd it same issue:
Image
User avatar
sander
Release Testers
Release Testers
Posts: 9070
Joined: January 22nd, 2008, 2:22 pm

Re: All Downloads are failing [EOFError: Ran out of input]

Post by sander »

Why do you re-add it? Don't.

After the Queue is empty, is SAB stable and OK?
If so:

In SABnzbd's upper right corner, click on the wrench symbol ("Status and interface options"), then click on first tab Status, then click Test download 1GB.

Does that work?
Slogger
Newbie
Newbie
Posts: 6
Joined: March 2nd, 2023, 3:26 am

Re: All Downloads are failing [EOFError: Ran out of input]

Post by Slogger »

Sorry I misunderstood you.
The test file also doesnt work, the same issue.
Image
User avatar
sander
Release Testers
Release Testers
Posts: 9070
Joined: January 22nd, 2008, 2:22 pm

Re: All Downloads are failing [EOFError: Ran out of input]

Post by sander »

So ... disk problem?

Run a thorough test on /downloads
Slogger
Newbie
Newbie
Posts: 6
Joined: March 2nd, 2023, 3:26 am

Re: All Downloads are failing [EOFError: Ran out of input]

Post by Slogger »

Looks like you are right.
It was downloading to a network share, I switched it to the host ssd and its working now.

Any suggestions as to what may be causing it?
The share is a hetzner storage box (server is on a hetzner vps)
It was working flawless until today.
I know this a more general question and I really appreciate the help!

Code: Select all

user@server:/mnt/store$ dd if=/dev/zero of=/mnt/store/downloads/test bs=1G count=1 oflag=dsync
1+0 records in
1+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 5.94178 s, 181 MB/s
user@server:/mnt/store$ dd if=/dev/zero of=/mnt/store/downloads/test bs=1G count=1 oflag=dsync
1+0 records in
1+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 6.39442 s, 168 MB/s
user@server:/mnt/store$ dd if=/dev/zero of=/mnt/store/downloads/test bs=1G count=1 oflag=dsync
1+0 records in
1+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 6.66779 s, 161 MB/s
User avatar
sander
Release Testers
Release Testers
Posts: 9070
Joined: January 22nd, 2008, 2:22 pm

Re: All Downloads are failing [EOFError: Ran out of input]

Post by sander »

> Looks like you are right.

Good. I like that. ;-)

> It was downloading to a network share, I switched it to the host ssd and its working now.

Good!

> Any suggestions as to what may be causing it?

No. But one thing: keep "incomplete" on your local disk. Putting it on remote disks is asking for strange problems, like you experienced.
User avatar
sander
Release Testers
Release Testers
Posts: 9070
Joined: January 22nd, 2008, 2:22 pm

Re: All Downloads are failing [EOFError: Ran out of input]

Post by sander »

FWIW:

I've recreated a situation where you can write to a directory (and the file is there), but you cannot read the file back.

So that could be your cause, especially as you've mounted a share / directory ... about anything can happen.

I'll build a detection into SABnzbd (around https://github.com/sabnzbd/sabnzbd/blob ... m.py#L1273 ) so that at SAB startup it is detected and the user gets a warning.

Code: Select all

sander@X501A1:~$ mkdir gone
sander@X501A1:~$ ll gone
total 8
drwxrwxr-x  2 sander sander 4096 mrt  4 08:27 ./
drwxr-x--- 34 sander sander 4096 mrt  4 08:27 ../
sander@X501A1:~$ umask 777
sander@X501A1:~$ echo Hello_everybody > gone/greetings.txt
sander@X501A1:~$ cat gone/greetings.nl
cat: gone/greetings.nl: No such file or directory
sander@X501A1:~$
sander@X501A1:~$ ll gone
total 12
drwxrwxr-x  2 sander sander 4096 mrt  4 08:27 ./
drwxr-x--- 34 sander sander 4096 mrt  4 08:27 ../
----------  1 sander sander   16 mrt  4 08:27 greetings.txt
sander@X501A1:~$
Post Reply