Suggestion: change message from error to info

Get help, report and discuss bugs.
fernandog
Posts: 75
Joined: 24 May 2013, 11:49

Suggestion: change message from error to info

Post by fernandog » 05 Feb 2015, 12:50

Is it possible to move this kind of message from ERROR to INFO?
the nzb downloaded ok but I have bunch of these for every nzb.

Error log IMO should be something we have to handle or open an issue here
This kind of errors is spamming my log

ERROR Thu Feb 05 2015 10:35:15 Cancelling hanging download *****
ERROR Thu Feb 05 2015 10:35:13 Could not receive data on socket: ErrNo 11, Resource temporarily unavailable

thanks!

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: Suggestion: change message from error to info

Post by hugbug » 05 Feb 2015, 13:06

If you see them too often there must be a problem in your network (router, etc.).

fernandog
Posts: 75
Joined: 24 May 2013, 11:49

Re: Suggestion: change message from error to info

Post by fernandog » 05 Feb 2015, 14:51

I think there's no problem as I download lots of NZB and all of them download ok.
Maybe it's a timeout issue?
What should I do to check if there's any issue on my setup?

Retry = 3
Retry interval = 15
Article timeout = 60
Urltimeout = 60
Terminate timeout = 180

OR
That's because you're using a non-blocking socket and the output buffer is full.
From the send() man page
When the message does not fit into the send buffer of the socket,
send() normally blocks, unless the socket has been placed in non-block-
ing I/O mode. In non-blocking mode it would return EAGAIN in this
case.
EAGAIN is the error code tied to "Resource temporarily unavailable"
Consider using select() to get a better control of this behaviours

http://stackoverflow.com/questions/1437 ... nd-command

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: Suggestion: change message from error to info

Post by hugbug » 05 Feb 2015, 15:05

I use blocking mode. The error must be caused by timeouts then.
How often do you have this?
Once in a while wouldn't be a problem but if the log is filled with such messages there is something wrong.

If these errors will not be shown the download may not progress and the user may wonder why it doesn't work (and there are no errors reported).

fernandog
Posts: 75
Joined: 24 May 2013, 11:49

Re: Suggestion: change message from error to info

Post by fernandog » 05 Feb 2015, 15:29

I get a lot!
will send a pastebin in the next wave of downloads.

My timeouts are high, aren't they?
thanks

fernandog
Posts: 75
Joined: 24 May 2013, 11:49

Re: Suggestion: change message from error to info

Post by fernandog » 06 Feb 2015, 17:12

I sent you an email with the log

fernandog
Posts: 75
Joined: 24 May 2013, 11:49

Re: Suggestion: change message from error to info

Post by fernandog » 09 Feb 2015, 19:26

did you received?

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: Suggestion: change message from error to info

Post by hugbug » 09 Feb 2015, 19:59

No, I don't.
Not sure what I should do with the log anyway?

fernandog
Posts: 75
Joined: 24 May 2013, 11:49

Re: Suggestion: change message from error to info

Post by fernandog » 09 Feb 2015, 21:03

help me debug

I had 22 errors for 4 NZBs

looks like the downloaded succeeded in after 3 attempts.
What are those numbers [2/69], [7/69] and [14/69]?

Code: Select all

Thu Feb  5 22:00:32 2015	ERROR	Could not receive data on socket: ErrNo 11, Resource temporarily unavailable
Thu Feb  5 22:00:32 2015	ERROR	Could not receive data on socket: ErrNo 11, Resource temporarily unavailable
Thu Feb  5 22:00:32 2015	ERROR	Could not receive data on socket: ErrNo 11, Resource temporarily unavailable
Thu Feb  5 22:00:33 2015	ERROR	Cancelling hanging download KiNGS-NZBgeek/7KnWsJ3SJbTa6RDzVzrnqyddU1LEU0FeZ6eoGKAofpAx5bITV9JvpNNADhR0od.part01.rar [2/69] @ Frugal US (news.frugalusenet.com)
Thu Feb  5 22:00:33 2015	ERROR	Cancelling hanging download KiNGS-NZBgeek/7KnWsJ3SJbTa6RDzVzrnqyddU1LEU0FeZ6eoGKAofpAx5bITV9JvpNNADhR0od.part01.rar [7/69] @ Frugal US (news.frugalusenet.com)
Thu Feb  5 22:00:33 2015	ERROR	Cancelling hanging download KiNGS-NZBgeek/7KnWsJ3SJbTa6RDzVzrnqyddU1LEU0FeZ6eoGKAofpAx5bITV9JvpNNADhR0od.part01.rar [14/69] @ Frugal US (news.frugalusenet.com)
Thu Feb  5 22:00:40 2015	INFO	Successfully downloaded KiNGS-NZBgeek/7KnWsJ3SJbTa6RDzVzrnqyddU1LEU0FeZ6eoGKAofpAx5bITV9JvpNNADhR0od.part01.rar
thanks

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: Suggestion: change message from error to info

Post by hugbug » 09 Feb 2015, 23:16

fernandog wrote:What are those numbers [2/69], [7/69] and [14/69]?
2/69 means "article 2 of 69"; this is to identify article downloads (and their threads).

The three "Cancelling hanging download"-messages refer to three different download threads (as you can from article numbers). The previous messages "Could not receive data on socket: ErrNo 11, Resource temporarily unavailable" are most likely printed by these three threads.

This is how I see it: a network connection breaks causing all download threads to fail. How many connections you use? If you have more than three, that'd be strange if only part of them fail.

Post Reply

Who is online

Users browsing this forum: No registered users and 49 guests