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

WebTorrent not seeding from terminal #1667

Closed
GiuseppeEliano opened this issue Jul 7, 2019 · 1 comment
Closed

WebTorrent not seeding from terminal #1667

GiuseppeEliano opened this issue Jul 7, 2019 · 1 comment

Comments

@GiuseppeEliano
Copy link

@GiuseppeEliano GiuseppeEliano commented Jul 7, 2019

What version of WebTorrent?
2.0.1 (0.104.0)

What operating system and Node.js version?
Ubuntu 18.10 / node v8.11.4

What browser and version? (if using WebTorrent in the browser)

What did you expect to happen?
Seeding a torrent file from terminal

What actually happened?
Currently, I'm trying seed a file from terminal, but, the .torrent file is not being seeded when requested. I'm running this command: webtorrent seed mysound.torrent --keep-seeding --verbose

I'm using a dedicated server with 1000mbps bandwidth, there are no firewalls or iptables rules, all ports are open on my server.

The output from the command above is something like this:

Seeding: mysound.mp3
Info hash: df6e9fcd7e4dffd6351552277228b55764e74618
Server running at: http://localhost:8000/0/df6e9fcd7e4dffd6351552277228b55764e74618/mysound.mp3
Downloading to: /var/www/prop/torrent
Speed: 0 B/s Downloaded: 4.7 MB/4.7 MB Uploaded: 0 B
Running time: 5 minutes Time remaining: N/A Peers: 0/1
Queued peers: 0 Blocked peers: 0 Hotswaps: 0

S Unknown 0 B 0 B/s 0 B/s choked

@edit: I created the .torrent file running this command: create-torrent --urlList 'https://myserver.com/prop/torrent/mysound.mp3' mysound.mp3 > mysound.torrent

@edit2: Running this on different server: webtorrent download df6e9fcd7e4dffd6351552277228b55764e74618, the output is something like this: fetching torrent metadata from 0 peers

I can make this work using webseed, but I want seed using my server to another files... why is this happening?

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Sep 10, 2019

The seed command should point to the files you want to seed, not the .torrent file.

So your command webtorrent seed mysound.torrent --keep-seeding --verbose is the wrong command to use. You want something like webtorrent seed /path/to/files --keep-seeding --verbose instead.

@feross feross closed this Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.