Add by fileupload not working with .gz

Questions and bug reports for Beta releases should be posted here.
Forum rules
Help us help you:
  • 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.
dogzipp
Newbie
Newbie
Posts: 49
Joined: April 3rd, 2012, 5:27 pm

Add by fileupload not working with .gz

Post by dogzipp »

I have the API option of adding by file upload working fine, but it only works with NZB files. I tried uploading a GZ file, and it just choked (7.0b2).

I assume it *should* work, since the add by file path option says it supports nzb/rar/zip/gz files, so I guess the same extensions are supported for file upload?

Thanks
dogzipp
Newbie
Newbie
Posts: 49
Joined: April 3rd, 2012, 5:27 pm

Re: Add by fileupload not working with .gz

Post by dogzipp »

Also, there seems to be a discrepancy on the results from 0.6 and 0.7

0.6 returns <Status>True</status> for a succeful upload.
0.7 returns <Status>0</status> and the nzo_id.

Maybe 0.7 should return TRUE as well, since 0 as a boolean means false.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Add by fileupload not working with .gz

Post by shypike »

You are right.
"addfile" and "addlocalfile" now return a status and a list of job identifiers.
Only the numerical status (where 0 is OK) as not been converted to a boolean (where True is OK).
Will be fixed in Beta3.
dogzipp
Newbie
Newbie
Posts: 49
Joined: April 3rd, 2012, 5:27 pm

Re: Add by fileupload not working with .gz

Post by dogzipp »

Uploading .gz will be fixed too?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Add by fileupload not working with .gz

Post by shypike »

Except for the problem with the return value there was no problem uploading GZ files.
(The return value was incorrect for all uploads.)
dogzipp
Newbie
Newbie
Posts: 49
Joined: April 3rd, 2012, 5:27 pm

Re: Add by fileupload not working with .gz

Post by dogzipp »

Still cannot get it to work. Then I try to upload a .gz file I get status -2.

And on SABnzbd I get WARNING: Cannot read /tmp/tmp2v0GIe.gz

BTW, if I upload .gz directly it works fine.

Also I would like to request an option to specify a different /tmp directory from within the SABnzb config.
dogzipp
Newbie
Newbie
Posts: 49
Joined: April 3rd, 2012, 5:27 pm

Re: Add by fileupload not working with .gz

Post by dogzipp »

Uploading a 9MB nzb file, I got:

408 Request Time-out.

Yet the file uploads fine, and goes to the Queue. (tried 3 times with the same 408 result every time).
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Add by fileupload not working with .gz

Post by shypike »

Is that 9M compressed or not?
What gives the timeout? Your program?
dogzipp
Newbie
Newbie
Posts: 49
Joined: April 3rd, 2012, 5:27 pm

Re: Add by fileupload not working with .gz

Post by dogzipp »

The 9M is uncompressed. The timeout is the Cherrypi response.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Add by fileupload not working with .gz

Post by shypike »

The whole operation must be completed within 60 seconds (default of the web framework we use).
This means that your system and/or connection are rather slow.
I can upload a 20M NZB to a slow server well within a minute.
BTW: most of the time is spent by SABnzbd processing the NZB file, so probably the line speed is not relevant.

I'll see if I can increase the time-out.
Given that it's an internal time-out for SABnzbd itself, extending it won't have negative side-effects.
dogzipp
Newbie
Newbie
Posts: 49
Joined: April 3rd, 2012, 5:27 pm

Re: Add by fileupload not working with .gz

Post by dogzipp »

Another question. Does the "addurl" option works with multiple files? If I want to upload 3 URLs at the same time perhaps? (multiple name, nzbname, cat and priority fields)

If not, can something like this be wishlisted? It would be beneficial if we could do everything with just one connection... Right now If I want to upload three files at the same time, I have to establish three different connections.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Add by fileupload not working with .gz

Post by shypike »

I've done some experiments.
You have at least 5 minutes to complete the transaction with the current settings.
That should be enough.
I can tweak the setting, but I suspect that something else is going on.
Have you timed the timeouts?

Lists of urls are not supported.
They would given even more timeout issues...
dogzipp
Newbie
Newbie
Posts: 49
Joined: April 3rd, 2012, 5:27 pm

Re: Add by fileupload not working with .gz

Post by dogzipp »

I will try again. Of course, transmit time could be reduced (a lot), if I could upload GZ files ;-) Did you test that also?

As for multiple URLs. I tought sabnzbd returns True inmediately as acknowledge it received the URL, and then it later tries to download it At leas that's my experience. I upload the URL, get the OK, and I see a couple of seconds afterwards SABnzbd tries to fetch the NZB file.

I don't see why receiving several URLs at once would cause a Timeout. Just return status TRUE and queue them as well.

Thanks
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Add by fileupload not working with .gz

Post by shypike »

GZ files are supported.
Beta3 will support multiple "name" parameters for the "addid" and "addurl" API calls.
dogzipp
Newbie
Newbie
Posts: 49
Joined: April 3rd, 2012, 5:27 pm

Re: Add by fileupload not working with .gz

Post by dogzipp »

Great news. Any ETA for b3?

(I suppose that you also need to specify multiple nzbname, priority and cats too?)
Post Reply