-
Notifications
You must be signed in to change notification settings - Fork 29
Update triggering-searches.md #94
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
base: master
Are you sure you want to change the base?
Conversation
It did not work in it's original form - I had to change the way how rT triggers the webhook. This was tested and confirmed working.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you keep the original and add this as an alternative? I believe the current works for some users. Feel free to remove $d.name=
and $d.data_path=
in the original, it's from pre v6.
This part seems wrong. Why would it expect a script to print out valid XMLRPC? rTorrent exposes an XMLRPC server and I wonder if your bug is actually there. |
I've had no issues with what is currently used as the recommended commands in Additionally, removing information that is "not necessary" seems like a useless exercise, even if the data is non-essential currently, but I guess assuming the user has the client added we can get the information elsewhere if we are intending on displaying it in some manner in v7/UI. If the information is available to the client at the completion call time, sending it can't hurt and future-proofs us against any changes that might necessitate the information, even just logging the name, down the road. I'm not too stuck on this though so I'll yield to @mmgoodnow and @ShanaryS on whether we only include Just to elaborate a bit on my reasoning, I could see if a user was cautious about paths (maybe they contain their home directory as the path, and the username is "sensitive"), but if that is the case, it is a niche case. That user can modify the command themselves; defaulting to less complete data in the command doesn't seem to provide any benefit and as far as my immediate thinking goes, it can't and won't cause any issues. Given all of that, the only outstanding major issue seems to be that your rTorrent isn't utilizing your PATH environmental variables at all? Perhaps you can try setting a PATH for /usr/bin/ - |
I agree on keeping |
Given we can get the name from the .torrent file or client anyway, I think that's fine as well. |
My Your documentation specifically says: I'm not entirely sure if the latest xmlrpc change (rakshasa/rtorrent#1463) broke this functionality, but as it stands it did not work for me on rtorrent Source: |
I wonder if it's some sort of deadlock because of the synchronous curl call. |
I see how you're reading this, but it's intended to mean "one of them is required, and both are not required" rather than "only provide one and not two" - I suppose we could clarify this better, but it's really not that big of a deal in my opinion. Something like "at least one option needs to be provided" seems more apt now that there are only two. There is no reason for you, or anyone, to follow this misunderstood statement arbitrarily just because we wrote it ambiguously. We can correct the language there to better reflect the usage, but removing the path isn't really something that is necessary and it seems like we are in agreement about the removal of old (and now invalid) option |
It might have been caused by one of these actually (fixed in I will build this version and try with the old command. Stand by. |
I copy pasted the lines directly from the docs when I setup my rtorrent.rc file, so it could be your specific version or container. If you need help with modifications to the Dockerfile to help troubleshoot or debug, you can come to the Discord and I can try and be of assistance too. Let me know, username at the top of the list that is similar as here. Discord link top right corner https://www.cross-seed.org |
You probably use the old version ( |
I'm not sure if this PR is the right solution, but this definitely does need to be addressed. Specifically with current versions of rakshasa rtorrent (arguably the "official" flavor, and the only regularly updated one at this point), the webhook script makes the client completely unusable when firing. The entire rtorrent client hangs for upwards of a minute after a hash check is completed before even sending the HTTP request, and whatever interaction happens on firing causes cross-seed to log Disabling calling the script by commenting out the call in This is easily reproducible by running any recent rakshasa rtorrent release with the webhook script configured, and finishing a download to trigger it. |
There are several version of rtorrent widely used, I use the rtorrent+flood container from hotio. This container is using 0.15.5--4.9.5 and I have no issues with it. It would be helpful if you guys could give more information about your environments, as as it sits I've also used this on crazymax's fork and not had any issue and @mmgoodnow also hasn't echo'd that he has had any problems. We are kind of at a loss unless we can replicate and see this, so far the only place this has been brought up is in this issue sporadically with months apart comments, a diversion into discussing the path inclusion, and no real triaging being able to be done. |
I'm using crazy-max/rtorrent-rutorrent, nothing particularly out of the ordinary about the setup or environment. My client has ~6k torrents seeding, so maybe that's a factor if it's some kind of performance regression? I'm happy to provide any specifics, let me know what would be helpful. I just tested out the latest v0.15.5 crazymax image and an older v0.15.3 image (specifically tag |
I have nearly 20k in my rtorrent, and experience no issues at all related to the completion call...I'm not sure which version @mmgoodnow uses but I also don't think he uses Docker. He has more experience with RT than I do, but as I said I am using 0.15.5 and see no issues, I'll have to setup a mirror of your setup to test with or maybe @mmgoodnow has some input. I also know many people who use crazymax's version and haven't heard anyone bring this up outside of this thread's commenting. I'll consult with them as well. |
You are comparing apples and oranges. I don't know where your image came from and how it was built - this simply does not work when you use the latest binaries:
sudo dnf install -y gcc-c++ gcc libcurl-devel make ncurses-devel openssl-devel tmux wget zlib-devel
./configure
make
sudo make install
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure --with-xmlrpc-tinyxml2
make
sudo make install |
I was hoping these were going to fix it. I am fine with recommending I updated my version a couple months ago and had to pin back to 0.9.8 due to crashes and trackers not supporting it. I haven't looked into it further but it could very well be the long script executions causing the issues. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minimize the changes to just the fix and I'll approve.
I wasn't "comparing" anything, I was giving my accounting/experience of the situation and I even said I would set up your environment. I also told you where my "image came from" in a previous comment |
Just as a point of clarification, @luckylittle and I are not the same person. I think you may have crossed a wire somewhere regarding who said what in response to who when.
I was hoping that as well. This makes it sound even more like the behavior is the result of a rakshasa rtorrent v0.10+ regression. I'd be curious to hear your experience with v0.15.5 |
I don't know, there have been several people, but my point was that I wasn't comparing anything and I mentioned which image I use and all that above, anyone can read it. I'm just trying to see if I can replicate it, and as it stands I am not seeing the same issues. We (myself and mmgood) are just trying to help and figure out solutions. |
As of yesterday, rakshasa rtorrent v0.16.0 has been released and contains a curl/http refactor to make requests asynchronously. I'm waiting on crazymax's docker image to bump versions before I can test it but it sounds promising from reading the patch notes. |
The original approach did not work when copying and pasting directly from the manual page - I had to modify how rTorrent triggers the cross-seed webhook.
rTorrent communicates via XML-RPC, and when a script is executed through
event.download.finished
, it captures the script’s output. If that output is not valid XML-RPC (as is the case with typical HTTP responses), it can cause the XML-RPC parser to fail, resulting in rTorrent becoming unresponsive and displaying a "Bad response" error.Additionally, it is not necessary to pass
$d.name=
and$d.data_path=
, the download hash alone is sufficient.Recommended solution:
/usr/bin/curl -s
in your script to enable silent mode and suppress output.&
) to prevent rTorrent from waiting for a response.This solution has been tested and confirmed to work reliably.