slundi / RatioUp

Lightweight torrent upload ratio faker with web UI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to add torrent file

DONSA opened this issue · comments

These are the logs. Any clue what it could be?

2023-09-07 21:12:37 2023-09-07T19:12:37.561Z ERROR [actix_http::h1::dispatcher] handler did not read whole payload and dispatcher could not drain read buf; return 500 and close connection
2023-09-07 21:12:37 2023-09-07T19:12:37.561Z ERROR [actix_http::h1::dispatcher] stream error: Handler dropped payload before reading EOF
commented

hi
I will look for it this WE

Just let me know if you need help to debug it.

commented

Sorry I didn't have time this WE.

You did a drag & drop from the UI ?

No, I clicked the button and selected the torrent file. Should I try the drag & drop instead?

commented

no, I'll check. Does the bug append with any torrent ?

Yes, I tried 2 or 3 different ones and had the same problem. All from the same tracker though.

commented

Hi
I've tried but I was not able to re-create the error. What is the size of your torrent? (the biggest I have is 1711114 bytes).
Is it with docker?
Is the torrent directory created?

The torrent I'm using is 1673654 bytes, so smaller than yours.
I get the error message I pasted before when I try to add it. If I try with a smaller one, then I don't get the error message but no changes in the UI because it doesn't get added.
The torrents volume gets created as you can see in the print.

Screenshot 2023-09-13 at 21 31 24
commented

I've found the problem: a hard-coded path in the code

I'll publish a new image ASAP. When you add a torrent refresh the web page (F5) because the JS does not do it yet.

commented

Done !

Thanks! Importing the torrent is working now.
However, there's no download/upload. I will dig into the logs to see if I find something.

commented

I'm not a front end developer so the UI may lack things or be a little buggy.
You should have log messages about what was fake downloaded or fake uploaded per torrent.
It send messages every 30 minutes.

Hi, these are the logs with timestamps and the env file.
Supposedly it should fake the upload but I can see this is not the case.
I can create a separate issue if it makes sense.

2023-09-17 05:14:01 2023-09-17T03:14:01.603Z INFO  [actix_web::middleware::logger] 192.168.65.1 "GET /torrents HTTP/1.1" 200 681642 "http://localhost:8070/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" 0.016155
2023-09-17 05:16:01 2023-09-17T03:16:01.599Z INFO  [actix_web::middleware::logger] 192.168.65.1 "GET /torrents HTTP/1.1" 200 681642 "http://localhost:8070/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" 0.013856
2023-09-17 05:34:30 2023-09-17T03:34:30.774Z INFO  [actix_web::middleware::logger] 192.168.65.1 "GET /torrents HTTP/1.1" 200 681642 "http://localhost:8070/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" 0.014352
2023-09-17 05:36:47 2023-09-17T03:36:47.913Z INFO  [actix_web::middleware::logger] 192.168.65.1 "GET /torrents HTTP/1.1" 200 681642 "http://localhost:8070/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" 0.014078
2023-09-17 05:54:54 2023-09-17T03:54:54.428Z INFO  [actix_web::middleware::logger] 192.168.65.1 "GET /torrents HTTP/1.1" 200 681642 "http://localhost:8070/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" 0.018814
2023-09-17 05:56:54 2023-09-17T03:56:54.402Z INFO  [actix_web::middleware::logger] 192.168.65.1 "GET /torrents HTTP/1.1" 200 681642 "http://localhost:8070/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" 0.014586
2023-09-17 06:02:35 2023-09-17T04:02:35.789Z INFO  [actix_web::middleware::logger] 192.168.65.1 "GET /torrents HTTP/1.1" 200 681642 "http://localhost:8070/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" 0.016227
2023-09-17 06:10:19 2023-09-17T04:10:19.468Z INFO  [actix_web::middleware::logger] 192.168.65.1 "GET /torrents HTTP/1.1" 200 681642 "http://localhost:8070/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" 0.022299
2023-09-17 06:27:45 2023-09-17T04:27:45.222Z INFO  [actix_web::middleware::logger] 192.168.65.1 "GET /torrents HTTP/1.1" 200 681642 "http://localhost:8070/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" 0.012179
2023-09-17 06:29:45 2023-09-17T04:29:45.227Z INFO  [actix_web::middleware::logger] 192.168.65.1 "GET /torrents HTTP/1.1" 200 681642 "http://localhost:8070/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" 0.018029
2023-09-17 06:34:25 2023-09-17T04:34:25.171Z INFO  [actix_web::middleware::logger] 192.168.65.1 "GET /torrents HTTP/1.1" 200 681642 "http://localhost:8070/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" 0.017652
2023-09-17 06:48:12 2023-09-17T04:48:12.571Z INFO  [actix_web::middleware::logger] 192.168.65.1 "GET /torrents HTTP/1.1" 200 681642 "http://localhost:8070/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" 0.017653
2023-09-17 06:50:12 2023-09-17T04:50:12.565Z INFO  [actix_web::middleware::logger] 192.168.65.1 "GET /torrents HTTP/1.1" 200 681642 "http://localhost:8070/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" 0.015857
2023-09-17 07:08:50 2023-09-17T05:08:50.721Z INFO  [actix_web::middleware::logger] 192.168.65.1 "GET /torrents HTTP/1.1" 200 681642 "http://localhost:8070/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" 0.017919
2023-09-17 07:10:50 2023-09-17T05:10:50.724Z INFO  [actix_web::middleware::logger] 192.168.65.1 "GET /torrents HTTP/1.1" 200 681642 "http://localhost:8070/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36" 0.019541
SERVER_ADDR = "0.0.0.0:8070"
LOG_LEVEL = "INFO"
MIN_UPLOAD_RATE = 8192
MAX_UPLOAD_RATE = 2097152
#MIN_DOWNLOAD_RATE = 8192
#MAX_DOWNLOAD_RATE = 16777216
MIN_DOWNLOAD_RATE = 0
MAX_DOWNLOAD_RATE = 0
TORRENT_DIR = "/torrents"
CLIENT = "Transmission_3_00"
commented

Hi
Yes, please create a new issue
Thanks for your feedback