Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transdrone reports wrong ETA from aria2c #574

Open
pitsi opened this issue Oct 22, 2020 · 7 comments
Open

Transdrone reports wrong ETA from aria2c #574

pitsi opened this issue Oct 22, 2020 · 7 comments
Labels

Comments

@pitsi
Copy link

pitsi commented Oct 22, 2020

So, I have set up aria2c to run as a deamon and I control it via ariang from a web browser or via transdrone from my android phones. Ariang reports the right eta, but transdrone does not.
E.g, in the image below, the eta for the file being downloaded was like 15-20 minutes max. However, transdrone reported 1+ hour! And it is a direct download, not a torrent one!

Screenshot_20201021-072656

Aria2c 1.35.0, transdrone 2.5.19, installed from the play store on a nokia 5 running android 9.

@erickok
Copy link
Owner

erickok commented Oct 22, 2020

Hmm. This is calculated:

(downloadSpeed > 0 ? (int) (totalLength / downloadSpeed) : -1),

and I don't really see any bug there... at the same time in your screenshot you need still about 0,19GB which at 984,5KB/s should complete in very roughly 3 minutes... so I'm not sure yet what's going on here. Needs to be debugged.

@erickok erickok added the bug label Oct 22, 2020
@pitsi
Copy link
Author

pitsi commented Oct 22, 2020

I have aria2c's speed capped at 1200kb/s. The above was probably a random drop. I had not calculated the exact amount of time it would take to complete, I just relied on what ariang showed a few minutes ago.

The rest of aria2c's settings

enable-rpc=true
rpc-allow-origin-all=true
rpc-listen-all=true
disable-ipv6=true

on-download-complete=beep -f 4000 -l 50 -r 2

max-download-limit=1200K
file-allocation=none
dir=/mnt/Public/TEMP/

daemon=true

---edit
And now it works as it should... I tried a 1gb file from a different server and its eta seems correct. The same eta is mention in ariang as well.

Screenshot_20201022-181458

The file mentioned above is a w10 iso from here
https://www.microsoft.com/en-us/software-download/windows10ISO

Feel free to close the issue if it does not reproduce on your side.

@pitsi
Copy link
Author

pitsi commented Dec 3, 2020

New iso from ms, new download in aria2c, same issue. I waited until there were less than 10 minutes for completion.

Screenshot_20201203-205912

@pitsi
Copy link
Author

pitsi commented Dec 4, 2020

I downloaded the x64 iso earlier and I got the same issue.
In case it helps, I think that the ETA reported in transdrone remains the same throughout the procedure and it just fluctuates depending on the speed it gets on that specific time.

e.g. Lets say that a 4gb file will take 1 hour to complete at my full speed of 1.2MB/s. If the speed drops, regardless when or how much of the file is already downloaded, the ETA will rise to a larger value, and the other way round. However, it will never drop below that 1 hour.
It is as if the calculation for the ETA always takes into consideration the entire file size, not the one that is already downloaded.

On the other hand, the above may be caused by something which is serverside... so no wonder it has happened only with downloads from ms so far.

@pitsi
Copy link
Author

pitsi commented Jun 16, 2021

Same thing with the newest iso from ms. What if the problem is cause by microsoft's servers? Is there anything below 2gb that comes from to test it further?

Screenshot_20210518-204526

@pitsi
Copy link
Author

pitsi commented Nov 20, 2024

Hello everyone. It is not that I have stopped downloading stuff from ms since 2022, but the pc on which I was running aria2c as a download manager with ariang, died last year and I do not plan to recreate it anytime soon.
If needed though, I can test it one last time and close the issue if needed. I would also love to have isos or stuff from ms that are not of windows 10 or 11.

@erickok
Copy link
Owner

erickok commented Nov 20, 2024

If I even get the chance to work on this a bit I will check your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants