airdcpp-web / airdcpp-webclient

Communal peer-to-peer file sharing application for file servers/NAS devices
https://airdcpp-web.github.io
175 stars 32 forks source link

Transfers: Unable to send file PATH-HERE: Bytes were requested beyond the end of the file (DownloderNameHere) #428

Closed slrslr closed 1 year ago

slrslr commented 2 years ago

AirDC++w 2.11.2 x86_64 Web UI version 2.11.2 Browser Firefox-ESR Linux Debian

It is the message that bothers me every couple of minutes for single file: Transfers: Unable to send file PATH-HERE: Bytes were requested beyond the end of the file (DownloderNameHere)

When i move that txt file away, then it continue showing the warning even for this non existing file.

When i "cat" the content of that text file, it is here.

After i kill the process (you do not make it possibly to quit from GUI) and start again, it continue showing the warning (even file is not there anymore).

maksis commented 1 year ago

There's something wrong with the downloader's client if he tries to download data beyond the end of the file. Unless he's using AirDC++, there's nothing wrong with this app. It might be a better idea to inform the other user about the issue (or block him from the firewall).

When i move that txt file away, then it continue showing the warning even for this non existing file.

Did you refresh your share...?

slrslr commented 1 year ago

@maksis

There's something wrong with the downloader's client if he tries to download data beyond the end of the file

I was rather expecting (as a layman) that the file was modified on my end or corrupted.

Did you refresh your share...?

Likely no, as a layman i would expect i add folders for sharing and AirDC will do the rest including keeping share up to date - maybe using operating system folder monitoring function - for example https://github.com/zlatinb/muwire/#readme utilize it including file re-scan if it finds difference (IIRC).

After some time I no longer see the error, maybe i did refresh after all or wasted disk IO by re-sharing the folder.

maksis commented 1 year ago

Likely no, as a layman i would expect i add folders for sharing and AirDC will do the rest including keeping share up to date - maybe using operating system folder monitoring function - for example https://github.com/zlatinb/muwire/#readme utilize it including file re-scan if it finds difference (IIRC).

You need to install the share monitoring extension if you want to monitor files for changes in real time....

slrslr commented 1 year ago

You need to install the share monitoring extension if you want to monitor files for changes in real time....

Does not seem to be available at https://www.airdcpp.net/download And at https://github.com/airdcpp-web/airdcpp-share-monitor/releases are no releases But inside app, Settings / Extensions / Extensions catalog i have enabled it. Thank you for this workaround.

maksis commented 1 year ago

Yes, it should be installed from the app