Pianobar: Network error: TLS fingerprint mismatch

You get this error every so often with pianobar.

anna@anna-lenovo:~$ pianobar
Welcome to pianobar (2013.09.15)! Press ? for a list of commands.
(i) Login... Network error: TLS fingerprint mismatch.

Just do this:

anna@anna-lenovo:/usr/share/doc/pianobar/contrib$ sh tls_fingerprint.sh 
FC2E6AF49FC63AEDAD1078DC22D1185B809E7534

Or, do this:

anna@anna-lenovo:~$ openssl s_client -connect tuner.pandora.com:443 < /dev/null | openssl x509 -sha1 -fingerprint | grep Fingerprint | tr -d :
depth=1 C = US, O = GeoTrust Inc., CN = GeoTrust SSL CA - G3
verify error:num=20:unable to get local issuer certificate
verify return:0
DONE
SHA1 Fingerprint=FC2E6AF49FC63AEDAD1078DC22D1185B809E7534

Then, go stick the fingerprint that was returned into the config file:

anna@anna-lenovo:~$ grep fingerprint /home/anna/.config/pianobar/config 
tls_fingerprint = FC2E6AF49FC63AEDAD1078DC22D1185B809E7534

And now you should have Pandora Radio on the command line again!

anna@anna-lenovo:~$ pianobar
Welcome to pianobar (2013.09.15)! Press ? for a list of commands.
(i) Login... Ok.
(i) Get stations... Ok.
     0) q   80's stuff
     1) q   Arctic Monkeys Radio
     2) q   Buena Vista Social Club Radio
     3) q   Cake Radio
     4) q   Daft Punk Radio
     5)     David Bowie Radio
     6) q   Deadmau5 Radio
     7) q   Deep House Drive Radio
     8) q   Dinner Party Radio
     9) q   Dr. Octagon Radio
    10) q   Echo & The Bunnymen Radio
    11) q   Garbage Radio
    12) q   Grandmaster Flash Radio
    13) q   KMFDM Radio
    14) q   Mc Chris Radio
    15) q   Mr Robot Radio
    16) q   New Wave
    17) q   Prodigy Radio
    18)  Q  QuickMix
    19) q   Rap for White People
    20) q   Take Five Radio
    21) q   The New Wave Radio
    22) q   The Prodigy (Dance) Radio
    23) q   The Ramones Radio
[?] Select station: 5
|>  Station "David Bowie Radio" (3314177205955313769)
(i) Receiving new playlist... Ok.
|>  "Moonage Daydream (BBC Radio Version) (Live)" by "David Bowie" on "Bowie At The Beeb: The Best Of The BBC Radio Sessions 68-72"
#   -04:43/04:59

Of course, there’s probably an update at https://github.com/PromyLOPh/pianobar to fix it, but I’ve been fixing servers all day and I’m not in the mood right now.

2 thoughts on “Pianobar: Network error: TLS fingerprint mismatch”

  1. I’m having trouble logging into pianobar. I’m using the “FC2E6AF49FC63AEDAD1078DC22D1185B809E7534” TLS. It was working fine the last 6 months then stopped working last night. I get a “Network Error”.

    Is it working for you ?

    1. Hi Josh,
      Sorry for the belated reply, I very rarely get comments from “real” folks, mostly just spam. And then my three day 12 hour shift weekend fixin’ servers just ended! Yay!

      Anyway, yes, pianobar is working for me with that TLS fingerprint.


      anna@anna-lenovo:~$ sh /usr/share/doc/pianobar/contrib/tls_fingerprint.sh
      FC2E6AF49FC63AEDAD1078DC22D1185B809E7534
      anna@anna-lenovo:~$ grep fingerprint /home/anna/.config/pianobar/config | grep -v ‘#’
      tls_fingerprint = FC2E6AF49FC63AEDAD1078DC22D1185B809E7534

      Here’s what I’m listening to right now:


      |> Station “Arctic Monkeys Radio” (378129530820870249)
      (i) Receiving new playlist… Ok.
      |> “Only Ones Who Know” by “Arctic Monkeys” on “Favourite Worst Nightmare” <3
      --

      Maybe there's a git issue on it? I'm too tired to look right now. But I'll keep this in mind in case mine breaks too.

      And thanks for commenting! I had no idea real people read this.

Leave a Reply