-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Perhaps transmission-create may encounter some issues when creating a torrent for large files. #6839
Comments
Correction:I apologize for the error in counting the differing hash values between the two torrent files. The actual number of discrepancies should be around 15 blocks. Based on further calculations, this aligns well with the number of erroneous blocks encountered during local data verification within Transmission. |
I appreciate your efforts to investigate this. It's really hard for us to debug without any specifics though. I have some questions:
|
I am using an embedded Linux system (similar to a Raspberry Pi) as a seed server, running Transmission on it. I haven't tried other programs for creating torrents on it. I am still trying to reproduce the hash value error that occurs when creating a torrent. For example, I tried using the |
The resulting torrent files isn't very useful for us to reproduce the bug. Ideally we'd want a file/folder that can trigger the bug. Also could you please check if other torrent creators has problems as well? We've had a few other reports of similar nature, but none of them could provide any concrete information for debugging unfortunately: |
I tried copying all the files to my Windows computer and used qBittorrent to create the torrent, and everything worked fine. What I want to say is that this issue may not be strongly related to specific files or folders. Over the past two days, I tried creating torrents with The clue I can provide is that when I initially created the problematic torrent file, my hard drive load seemed to be very high: several seeding files were being uploaded, and Jellyfin (a home media streaming service) was scanning some newly added libraries. This is why I tried using the I have a hypothesis: could this issue be caused by |
No way to tell unless you provide a file for us or upgrade your hardware to SSD. |
I don't see how that can happen... AFAICT we only do synchronised read/write. |
What is the issue?
What's the problem?
I've been experiencing some issues lately while creating torrents using Transmission. After creating the torrent with transmission-create and starting seeding, Transmission begins to verify the local files. However, it always gets stuck at around 99%. No matter how many times I retry 'Verify Local Data', it remains stuck. As a result, I had to recreate the torrent several times, leading me to delete the torrent already uploaded to the PT website. However, the problem still persists. This has caused me a lot of inconvenience. There are 78 files I want to seed, totaling approximately 30GB.
What did I do to investigate the issue?
To investigate what was happening, I used transmission-create to create two torrents, both with a block size of 2048KB. I saved both of these torrents, distinguishing one of them by adding the '_new' suffix.
transmission-create -s 2048 -o mytorrent.torrent /path/to/myfile
Afterward, I wrote a simple Python script to extract the 'pieces' field from both of these torrents, which contains the hash values for all files.
Then, I performed SHA256 checksums on these two extracted binary files and found them to be different. Furthermore, I used the following script to compare the extracted hash values byte by byte to identify the differing positions.
I found that approximately three hundred blocks' hash values were different, which is roughly the size of one file. This torrent has a total of about 17,000 blocks.
I speculate that this might be an error occurring at certain positions during the creation of the torrent file by transmission-create. I am currently unable to determine whether this is an internal error of the program or a disk read/write error. However, I believe that even if it's a disk read/write error, transmission-create should be able to handle it correctly.
Out of consideration for community rules, I feel it's inappropriate to share my torrent files. However, I'm more than willing to provide any additional information if needed. I appreciate any help and advice.
Which application of Transmission?
transmission-daemon
Which version of Transmission?
4.0.5
The text was updated successfully, but these errors were encountered: