Feuermurmel / youtube-podcast-gateway

Do What The F*ck You Want To Public License
38 stars 5 forks source link

SSL: WRONG_VERSION_NUMBER #12

Closed fessacchiotto closed 7 years ago

fessacchiotto commented 7 years ago

Hello!

There is an issue I found on Ubuntu ... Any ideas?

[65]: Connection was closed: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1977)
./run.sh: line 16: 19229 Segmentation fault      (core dumped) python . "${options[@]}"
Feuermurmel commented 7 years ago

Uh, oh, not running this on Ubuntu here, so I can't directly test it.

What Ubuntu release are you on and which Python version are you using? Also, which version(s) of libssl are installed?

fessacchiotto commented 7 years ago

Ubuntu 16.04.1 LTS

fessacchiotto commented 7 years ago

Libssl 1.0.0

Feuermurmel commented 7 years ago

Sadly I can'r reproduce your problem. I set up a Ubuntu 16.04.1 AMD64 VM, updated all packages and set up the Podcast Gateway.

I found a lot of reports of with this error message from a wide range of applications using OpenSSL and libssl with speculations that this could be a race-condition or other implementation problem of one of those libraries. The segmentation fault strongly hints at that.

The only thing I can suggest is wrapping the shell script with a small piece of magic:

while :; do ./run.sh; sleep 5; done

This will restart the server whenever it fails.