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

Error processing deluge action #119

Closed
zmiguel opened this issue Feb 6, 2022 · 8 comments · Fixed by #121
Closed

Error processing deluge action #119

zmiguel opened this issue Feb 6, 2022 · 8 comments · Fixed by #121
Labels
bug Something isn't working question Further information is requested

Comments

@zmiguel
Copy link
Contributor

zmiguel commented Feb 6, 2022

Hi all, I set this up today and I'm getting an error when it grabs a release from IRC and tries to send it to Deluge v2

My setup:

  • Docker container for Deluge V2
  • Docker container for autobrr
  • Deluge V2.0.5
  • autobrr: ghcr.io/autobrr/autobrr:latest (v0.13.0)

Error log (redacted):

2022-02-06T18:22:01Z DEBUG irc.site.org: #announces _Bot_: New Torrent: <TV> Name:'torrent_name' uploaded by 'Anonymous' freeleech - https://www.some_website.com/torrent/99999999
2022-02-06T18:22:01Z DEBUG filter-service.find_and_check_filters: found and matched filter: site Freeleech
2022-02-06T18:22:01Z DEBUG filter-service.find_and_check_filters: (site Freeleech) additional size check required
2022-02-06T18:22:02Z DEBUG successfully downloaded file: /tmp/autobrr-772268386
2022-02-06T18:22:02Z INFO Matched 'torrent_name' (site Freeleech) for some_website
2022-02-06T18:22:02Z DEBUG process action: Deluge Download for 'torrent_name'
2022-02-06T18:22:02Z DEBUG action Deluge: Deluge Download
2022-02-06T18:22:02Z ERROR could not read torrent file:
2022-02-06T18:22:02Z ERROR error sending torrent to Deluge
2022-02-06T18:22:02Z ERROR process action failed: Deluge Download for 'torrent_name'

The containers don't share any folders between them, do they need to?

Any help would be much appreciated,
Thanks!

@ludviglundgren
Copy link
Contributor

ludviglundgren commented Feb 6, 2022

Hi! What image are you using for Deluge? We had another user report this as well, and he solved it by doing this:


Autobrr not connecting to Deluge (linuxserver/deluge)

Solution:

Host

Host should be the deluge container you're trying to reach, for my setup it was simply deluge.
Make sure that your docker containers are on the same network, so they can reach each other. If you're using a single compose file, it should be by default. Make sure container_name is set as well.

Port

This is the daemon port, not the webui port. Find the correct one by logging into deluge webui, and checking preferences or under connection manager (default: 58846).

Authentication

The Username/Password required is for the daemon, not the webui.
It can be found at /docker/appdata/deluge/auth, the default one looks like: localclient:password:10
You can add your own if you wish, as, username:password:powerlevel


You can test the clients connection on the panel in Settings / Clients so you don't have to wait for an announce. Simply click the button test down at the bottom next to save.

There's a Discord server where we're have a nice small little community of helpful people if you want to join 🙂

@ludviglundgren ludviglundgren added the question Further information is requested label Feb 6, 2022
@zmiguel
Copy link
Contributor Author

zmiguel commented Feb 6, 2022

@ludviglundgren I'm using my own container with ltconfig, here.

Testing the connection works fine, I'm exposing the daemon port on docker-compose and both containers are in the same network. I've also added a username/password to the auth file specific for autobrr with access level 10.

2022-02-06T20:19:19Z DEBUG test client connection for Deluge: success - daemon version: 2.0.5
2022-02-06T20:19:21Z INFO store download client: Deluge

The issue is not it connecting to deluge. It seems like it doesn't find the downloaded torrent file when it tries to send it to deluge, as per the empty line 2022-02-06T18:22:02Z ERROR could not read torrent file:

edit: This is what I get when I hover the error mark in the dashboard

Screenshot 2022-02-06 at 20 29 36

@ludviglundgren
Copy link
Contributor

Hm interesting. Can't see anything in the change log that's obvious for breaking changes to 2.0.5. Could you change the log output to TRACE and see if you see anything better in the response. It looks like it's downloading fine, but maybe there's more in trace log. You need to restart for that change to take effect.

@zmiguel
Copy link
Contributor Author

zmiguel commented Feb 6, 2022

I've set the loglevel to TRACE, will update you once I get a hit on a release.

@zmiguel
Copy link
Contributor Author

zmiguel commented Feb 6, 2022

@ludviglundgren here you go, it doesn't seem to have any other useful information

2022-02-06T20:36:34Z DEBUG irc.some_website.org: #siteannounces _BOT_: New Torrent Announcement: <TV> Name:'some_torrent' uploaded by 'Anonymous' freeleech - https://www.some_website.org/torrent/2070821
2022-02-06T20:36:34Z TRACE announce: queued line: New Torrent Announcement: <TV> Name:'some_torrent' uploaded by 'Anonymous' freeleech - https://www.some_website.org/torrent/2070821
2022-02-06T20:36:34Z TRACE announce: process line: New Torrent Announcement: <TV> Name:'some_torrent' uploaded by 'Anonymous' freeleech - https://www.some_website.org/torrent/2070821
2022-02-06T20:36:34Z TRACE filter-service.find_and_check_filters: found (1) active filters to check for indexer 'some_website'
2022-02-06T20:36:34Z TRACE filter-service.find_and_check_filters: checking filter: site Freeleech
2022-02-06T20:36:34Z DEBUG filter-service.find_and_check_filters: found and matched filter: site Freeleech
2022-02-06T20:36:34Z DEBUG filter-service.find_and_check_filters: (site Freeleech) additional size check required
2022-02-06T20:36:34Z TRACE filter-service.find_and_check_filters: (site Freeleech) additional size check required: preparing to download metafile
2022-02-06T20:36:34Z DEBUG successfully downloaded file: /tmp/autobrr-166035189
2022-02-06T20:36:34Z TRACE release.store: &{ID:7 FilterStatus:FILTER_APPROVED Rejections:[] Indexer:some_website FilterName:site Freeleech Protocol:torrent Implementation:IRC Timestamp:2022-02-06 20:36:34.071533088 +0000 UTC m=+254.723154184 GroupID: TorrentID:2070821 TorrentURL:https://www.some_website.org/rss/download/2070821/my_key/Vikings+S01+COMPLETE+720p+x264+AC3-FTPM.torrent TorrentTmpFile:/tmp/autobrr-166035189 TorrentName:some_torrent Size:11693595707 Raw: Clean:some_torrent: Category:TV Season:1 Episode:0 Year:0 Resolution:720p Source: Codec:x264 Container: HDR: Audio:AC3 Group:FTPM Region: Language: Edition: Unrated:false Hybrid:false Proper:false Repack:false Website: ThreeD:false Artists:[] Type: Format: Quality: LogScore:0 HasLog:false HasCue:false IsScene:false Origin: Tags:[] ReleaseTags: Freeleech:true FreeleechPercent:0 Uploader:Anonymous PreTime: AdditionalSizeCheckRequired:true FilterID:1 Filter:0xc0004bd180 ActionStatus:[]}
2022-02-06T20:36:34Z INFO Matched 'some_torrent' (site Freeleech) for some_website
2022-02-06T20:36:34Z TRACE start to process release: {ID:7 FilterStatus:FILTER_APPROVED Rejections:[] Indexer:some_website FilterName:site Freeleech Protocol:torrent Implementation:IRC Timestamp:2022-02-06 20:36:34.071533088 +0000 UTC m=+254.723154184 GroupID: TorrentID:2070821 TorrentURL:https://www.some_website.org/rss/download/2070821/my_key/Vikings+S01+COMPLETE+720p+x264+AC3-FTPM.torrent TorrentTmpFile:/tmp/autobrr-166035189 TorrentName:some_torrent Size:11693595707 Raw: Clean:some_torrent: Category:TV Season:1 Episode:0 Year:0 Resolution:720p Source: Codec:x264 Container: HDR: Audio:AC3 Group:FTPM Region: Language: Edition: Unrated:false Hybrid:false Proper:false Repack:false Website: ThreeD:false Artists:[] Type: Format: Quality: LogScore:0 HasLog:false HasCue:false IsScene:false Origin: Tags:[] ReleaseTags: Freeleech:true FreeleechPercent:0 Uploader:Anonymous PreTime: AdditionalSizeCheckRequired:true FilterID:1 Filter:0xc0004bd180 ActionStatus:[]}
2022-02-06T20:36:34Z DEBUG process action: Deluge Download for 'some_torrent'
2022-02-06T20:36:34Z TRACE action Deluge: Deluge Download check rules
2022-02-06T20:36:34Z DEBUG action Deluge: Deluge Download
2022-02-06T20:36:34Z ERROR could not read torrent file:
2022-02-06T20:36:34Z ERROR error sending torrent to Deluge
2022-02-06T20:36:34Z ERROR process action failed: Deluge Download for 'some_torrent'
2022-02-06T20:36:34Z TRACE events: 'release:store-action-status' '&{ID:0 Status:PUSH_ERROR Action:Deluge Download Type:DELUGE_V2 Rejections:[open : no such file or directory] Timestamp:2022-02-06 20:36:34.829413213 +0000 UTC m=+255.481034295 ReleaseID:7}'
2022-02-06T20:36:34Z TRACE release.store_release_action_status: &{ID:7 Status:PUSH_ERROR Action:Deluge Download Type:DELUGE_V2 Rejections:[open : no such file or directory] Timestamp:2022-02-06 20:36:34.829413213 +0000 UTC m=+255.481034295 ReleaseID:7}

also: I can see the temp files in the /tmp directory inside the container, so the file are definitely there.

@ludviglundgren
Copy link
Contributor

That's indeed very weird. I'll try out your image tomorrow and see if I get the same result.

@zmiguel
Copy link
Contributor Author

zmiguel commented Feb 7, 2022

@ludviglundgren please check PR #121

@ludviglundgren
Copy link
Contributor

Merged :) Will make a new release tonight or tomorrow. Thanks!

@ludviglundgren ludviglundgren added the bug Something isn't working label Feb 7, 2022
@zmiguel zmiguel closed this as completed Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants