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

cosmetic fixes to torrent script #2729

Merged
merged 1 commit into from
Feb 27, 2025
Merged

cosmetic fixes to torrent script #2729

merged 1 commit into from
Feb 27, 2025

Conversation

enoch85
Copy link
Member

@enoch85 enoch85 commented Feb 27, 2025

No description provided.

Signed-off-by: Daniel Hansson <[email protected]>
@enoch85 enoch85 merged commit 4ed5f4d into main Feb 27, 2025
7 checks passed
@enoch85 enoch85 deleted the torrent-fixes branch February 27, 2025 11:59
@enoch85
Copy link
Member Author

enoch85 commented Feb 27, 2025

@celeroncool Hmm even with these fixes, the torrent just stalls for me. Any idea?

@celeroncool
Copy link
Contributor

celeroncool commented Feb 27, 2025

Could you check the hash of the file so we could compare on what is created on my side when I create the torrent?

Running the script inside clean Ubuntu 24.04 VM creates a torrent with info hash v1: 14fc1e1b47f0606fe8b5b304f6b4a1d730dffb8f
sha256sum from same file:
84b1dae36c0962721ec3ab46485e8b5d5b1d06e5485be522eb52f6df5552028c NextcloudVM.zip

For some reason downloading it with curl inside freshly provisioned NCVM produces following output:
7a47c12b236e3029660faaf4d4c51af3a5c807db077c28fc7c8c504ee15a4eb9 NextcloudVM.zip

Downloading it directly with browser from link at https://download.kafit.se/s/dnkWptz8AK4JZDM -> download produces this hash:
21fdaed9049b2220d6fbf8179563d091177bf7c045971340fa60ddc0b9ffe0b6 NextcloudVM.zip

So there is something funky going on with nextcloud zip compression because the hash changed between downloads.

I then only download the actual OVA file inside the folders from your link:
dd38137e64a310e581fc295e1b42dd042bc07fc7fea3aa13bee9180d10085b14 100GB_Nextcloud-VM_www.hanssonit.se.ova

Same file downloaded to my machine:
dd38137e64a310e581fc295e1b42dd042bc07fc7fea3aa13bee9180d10085b14 100GB_Nextcloud-VM_www.hanssonit.se.ova

So now the hashes match.

Now this file has torrent info hash:
0b36c11183e9b84f08e23e7b6b378fa80534e767

Link to the torrent file: https://nextcloud.nenimein.fi/s/ZYemZx9kQw7r4KF (again, seeding for testing :))

@celeroncool
Copy link
Contributor

celeroncool commented Feb 27, 2025

Also, my editor added unecessary "" around the cat command for the torrent creation, so it would not add the trackers...
So a working command is:

transmission-create -o $TRANSMISSION_DL_DIR/nextcloudvmhanssonit.torrent -c "https://www.hanssonit.se/nextcloud-vm" -t $(cat /tmp/trackers.txt) "$TRANSMISSION_DL_DIR"/"$NC_ZIP"

Updated version in:
https://github.com/celeroncool/vm/blob/fix-torrent-creation/torrent/create.sh

@enoch85
Copy link
Member Author

enoch85 commented Feb 28, 2025

You're probably right, We can't download the zip content, and we need to use the direct OVA for this. Your torrent works, and I downloaded it.

I will make some more changes to get it just as I want it. :)

Thanks a lot for looking into this, it helps a lot. ⭐

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

Successfully merging this pull request may close these issues.

2 participants