simpletracker icon indicating copy to clipboard operation
simpletracker copied to clipboard

Uploading bencoding error

Open crosman95 opened this issue 5 years ago • 3 comments

Hi,

When I try upload torrent files ex. 20GB, i got error messages: bencoding error

What is the problem? :( How can I listen users, how many download and upload datas?

Thanks for help! Sorry for my bad english.

crosman95 avatar Mar 29 '20 23:03 crosman95

Can you upload your torrent file here to GitHub, so that I can test it locally?

simpletracker does not keep track of any upload/download statistics for users. It's meant to be very minimal.

SuprDewd avatar Mar 30 '20 12:03 SuprDewd

of course example.zip

crosman95 avatar Mar 30 '20 13:03 crosman95

I got an "Upload successful" when I uploaded your example torrent file, so there must be something different in our environment that is causing the issue. What version of PHP are you using? Is there anything that could be changing the torrent file when it is being uploaded, e.g PHP magic quoting?

If you want to debug this yourself, you could:

  1. Add echo md5($data); to upload.php and compare it to the md5 sum of the original file (93d1d5407fa94a09dad3bfeaec2d01e1). If that's not the same, then there's something affecting the file as it's being uploaded.
  2. Search for return false; in bencoding.php. Add debugging statements around those returns to figure out what part of the torrent file seems to be broken.

SuprDewd avatar Mar 31 '20 23:03 SuprDewd