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

Transmission-rss "retrieval error" #1565

Closed
andrebnc opened this issue Nov 28, 2020 · 11 comments
Closed

Transmission-rss "retrieval error" #1565

andrebnc opened this issue Nov 28, 2020 · 11 comments

Comments

@andrebnc
Copy link

Describe the problem
When i start transmission-rss in a docker container with a https url i get : retrieval error (OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed)

Add your docker run command
docker run -d \

  -e "RSS_URL=https://***" \
  --link 1b0c23300d5d:transmission \
  --name "transmission-rss" \
  haugene/transmission-rss

Logs
root@server:~# docker logs transmission-rss
STARTING RSS PLUGIN
2020-11-28 11:54:45 (info) transmission-rss 1.2.0
2020-11-28 11:54:45 (debug) {"feeds"=>[{"url"=>"https://", "download_path"=>"/data/completed", "regexp"=>"BILD."}], "update_interval"=>600, "add_paused"=>false, "server"=>{"host"=>"transmission", "port"=>9091, "rpc_path"=>"/transmission/rpc"}, "login"=>nil, "log"=>{"target"=>#<IO:>, "level"=>:debug}, "fork"=>false, "single"=>false, "pid_file"=>false, "privileges"=>{}, "seen_file"=>nil}
2020-11-28 11:54:45 (debug) no privilege dropping
2020-11-28 11:54:45 (debug) 0 uris from seenfile
2020-11-28 11:54:45 (debug) pid 16
2020-11-28 11:54:45 (debug) aggregator start
2020-11-28 11:54:45 (debug) aggregate https://
*
2020-11-28 11:54:45 (debug) retrieval error (OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed)

Host system:
Ubuntu 18.04.5 LTS
Docker version 19.03.13, build 4484c46d9d

@haugene
Copy link
Owner

haugene commented Dec 9, 2020

Hey. Can you try using the dev tag? Ie haugene/transmission-rss:dev
I've built a new version of that image lately and that might have fixed this as well. If it hasn't I'll have a look at it. This sounds like either the server certificate not being valid or that the image is missing some certificate bundle.

@andrebnc
Copy link
Author

andrebnc commented Dec 10, 2020

Hello,

I would test it but unfortunately there is a new bug.

There are a few "&" in the URL that I enter.
These are reported in the log as "placeholder" and thus the URL is incorrectly recognized.
Transmission-RSS quits with an error.

`
Starting RSS plugin

feeds:

server:

host: transmission


port: 9091

/usr/local/lib/ruby/2.7.0/psych.rb:456:in `parse': (/etc/transmission-rss.conf): mapping values are not allowed in this context at line 2 column 57 (Psych::SyntaxError)

from /usr/local/lib/ruby/2.7.0/psych.rb:456:in `parse_stream'


from /usr/local/lib/ruby/2.7.0/psych.rb:390:in `parse'


from /usr/local/lib/ruby/2.7.0/psych.rb:277:in `load'


from /usr/local/lib/ruby/2.7.0/psych.rb:578:in `block in load_file'


from /usr/local/lib/ruby/2.7.0/psych.rb:577:in `open'


from /usr/local/lib/ruby/2.7.0/psych.rb:577:in `load_file'


from /usr/local/bundle/gems/transmission-rss-1.2.0/lib/transmission-rss/config.rb:73:in `merge_yaml!'


from /usr/local/bundle/gems/transmission-rss-1.2.0/lib/transmission-rss/config.rb:36:in `load'


from /usr/local/bundle/gems/transmission-rss-1.2.0/bin/transmission-rss:90:in `<top (required)>'


from /usr/local/bundle/bin/transmission-rss:23:in `load'


from /usr/local/bundle/bin/transmission-rss:23:in `<main>'

rpc_path: /transmission/rpc

`

@haugene
Copy link
Owner

haugene commented Dec 11, 2020

Had a feeling that could happen. I've added a little trick now and hopefully that will work better. Pull the image again and see if that works?

Who would have thought. Learnt something new about bash today as well.

@andrebnc
Copy link
Author

andrebnc commented Dec 12, 2020

Got an error again.
Also the time in the container is one hour back.

`Starting RSS plugin with the following config:

feeds:

server:

host: transmission

port: 9091

rpc_path: /transmission/rpc

2020-12-12 09:03:18 (info) transmission-rss 1.2.0

2020-12-12 09:03:18 (debug) {"feeds"=>[{"url"=>"https://xxx.xx/rss.php?key=xxx&link=1&v=91", "download_path"=>"/data/completed"}], "update_interval"=>600, "add_paused"=>false, "server"=>{"host"=>"transmission", "port"=>9091, "rpc_path"=>"/transmission/rpc"}, "login"=>nil, "log"=>{"target"=>#<IO:>, "level"=>:debug}, "fork"=>false, "single"=>false, "pid_file"=>false, "privileges"=>{}, "seen_file"=>nil}

2020-12-12 09:03:18 (debug) no privilege dropping

2020-12-12 09:03:18 (debug) 0 uris from seenfile

2020-12-12 09:03:18 (debug) pid 12

2020-12-12 09:03:18 (debug) aggregator start

2020-12-12 09:03:18 (debug) aggregate https://xxx.xx/rss.php?key=xxx&link=1&v=91

2020-12-12 09:03:18 (debug) retrieval error (OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate))`

@stale
Copy link

stale bot commented Feb 10, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the inactivity Used by Stale bot to mark issues that will be closed label Feb 10, 2021
pkishino added a commit that referenced this issue Feb 12, 2021
* Brush up proxy and rss plugin images, build for multiarch support #1483

* Escape special characters in rss-plugin input variables #1565

* Increase healthcheck ping timeout (#1627)

* Add DNS resolution checks (fix #1608) (#1617)

* Add dns resolution test to healthcheck script

* Add dns resolution test to start script

Co-authored-by: Patrick Kishino <[email protected]>

* Fix PIA infinite redirect on config download (see #1619) (#1620)

PIA download link was redirecting and setting a cookie, but those are
disabled by default unless `--cookie` or `--cookie-jar` are given. Since
the cookie was not set, the redirection was attempted again until we
reached the maximum redirection limit.

The `--cookie /dev/null` specifies an empty input cookie, which has the
effect to enable curl's handling of cookies.

Co-authored-by: Kristian Haugene <[email protected]>
Co-authored-by: clement-z <[email protected]>
@stale
Copy link

stale bot commented Feb 17, 2021

Feel free to re-open this issue if you think it deserves another look.

@stale stale bot closed this as completed Feb 17, 2021
@andrebnc
Copy link
Author

Still got the problem.

@pkishino pkishino reopened this Feb 17, 2021
@stale stale bot removed the inactivity Used by Stale bot to mark issues that will be closed label Feb 17, 2021
@pkishino
Copy link
Collaborator

pkishino commented Feb 17, 2021

@haugene any chance to fix this ?

steveneighbour pushed a commit to steveneighbour/openvpn that referenced this issue Apr 17, 2021
steveneighbour pushed a commit to steveneighbour/openvpn that referenced this issue Apr 17, 2021
* Brush up proxy and rss plugin images, build for multiarch support haugene#1483

* Escape special characters in rss-plugin input variables haugene#1565

* Increase healthcheck ping timeout (haugene#1627)

* Add DNS resolution checks (fix haugene#1608) (haugene#1617)

* Add dns resolution test to healthcheck script

* Add dns resolution test to start script

Co-authored-by: Patrick Kishino <[email protected]>

* Fix PIA infinite redirect on config download (see haugene#1619) (haugene#1620)

PIA download link was redirecting and setting a cookie, but those are
disabled by default unless `--cookie` or `--cookie-jar` are given. Since
the cookie was not set, the redirection was attempted again until we
reached the maximum redirection limit.

The `--cookie /dev/null` specifies an empty input cookie, which has the
effect to enable curl's handling of cookies.

Co-authored-by: Kristian Haugene <[email protected]>
Co-authored-by: clement-z <[email protected]>
@stale stale bot added the inactivity Used by Stale bot to mark issues that will be closed label May 8, 2021
Repository owner deleted a comment from stale bot May 9, 2021
@stale stale bot removed the inactivity Used by Stale bot to mark issues that will be closed label May 9, 2021
@only1thor
Copy link

Anyone actually have an rss that works?
i am trying to get mine working with docker-compose, but it's failing.
not the exact same error though:
rss-for-transmission | /usr/local/lib/ruby/2.7.0/fileutils.rb:250:in 'mkdir': Permission denied @ dir_s_mkdir - /.config (Errno::EACCES)

@stale stale bot added the inactivity Used by Stale bot to mark issues that will be closed label Aug 28, 2021
Repository owner deleted a comment from stale bot Aug 28, 2021
@stale stale bot removed the inactivity Used by Stale bot to mark issues that will be closed label Aug 28, 2021
@pkishino
Copy link
Collaborator

pkishino commented Oct 1, 2021

@Andre1974 I suspect the underlying rss plugin needs to be updated..not sure what the status on that is
@tcuc permission error, you should check that the correct permissions are set for the container and the mount
please comment if problems persist

@pkishino pkishino closed this as completed Oct 1, 2021
@only1thor
Copy link

i ended up using sonarr/radarr/lidarr so no need for the rss plugin.

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

No branches or pull requests

4 participants