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

v2.8-rc1 SSL error #17

Open
marsroverdriver opened this issue Dec 16, 2023 Discussed in #14 · 8 comments
Open

v2.8-rc1 SSL error #17

marsroverdriver opened this issue Dec 16, 2023 Discussed in #14 · 8 comments
Labels
bug Something isn't working

Comments

@marsroverdriver
Copy link

I'm glad to see someone is maintaining this wonderful tool; thank you! When I download and run the latest (2.8-rc1) and try to "Refresh" my TiVo, I get this error:

>> Getting Now Playing List via RPC from Kate ...
RemoteInit - (IP=10.0.0.210, port=1413): Connection refused (Connection refused)
[java.net.PlainSocketImpl.socketConnect(Native Method), java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350), java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206), java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188), java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392), java.net.Socket.connect(Socket.java:589), sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:666), sun.security.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:426), sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:88), com.tivo.kmttg.rpc.TiVoRPC.RemoteInit(TiVoRPC.java:265), com.tivo.kmttg.rpc.TiVoRPC.<init>(TiVoRPC.java:106), com.tivo.kmttg.rpc.Remote.<init>(Remote.java:57), com.tivo.kmttg.rpc.Remote.<init>(Remote.java:69), com.tivo.kmttg.main.config.initRemote(config.java:634), com.tivo.kmttg.task.NowPlaying$1AutoThread.run(NowPlaying.java:90), java.lang.Thread.run(Thread.java:748)]

(I had started getting a similar error from the previous version -- 2.4p, albeit with an updated certificate -- which is why I thought I'd try this one.)

Looks like maybe my TiVo still isn't happy with the SSL certificate in this version? The IP address and MAK are correct.

@thess
Copy link

thess commented Dec 16, 2023

Check for connectivity issues and that the Tivo is actually listening on port 1413. telnet <tivo-IP> 1413 should at least connect to verify this. And, check if there are any old certificate files (cdata.p12 & cdata.password) in you program directory. If so, delete them.

@lart2150
Copy link
Owner

Connection refused makes me think it's not related to the update. Like Thess said telnet would be a good troubleshooting step along with rebooting the tivo.

@lart2150 lart2150 added the bug Something isn't working label Dec 16, 2023
@marsroverdriver
Copy link
Author

Silly me, you are correct. I had tried pinging but not telnetting. After a reboot, things are working. Thanks for the suggestion!

(Although, from the loud grinding noises my poor old TiVo made when rebooting, it might not be long for this world. But that's another problem. :-)

@thess
Copy link

thess commented Dec 16, 2023

Grinding noises are 1 or 2 things:

  • Case fan -- easily replaced (I've done lots over the years)
  • HDD - replaceable but more costly.

@ertyu
Copy link

ertyu commented Dec 16, 2023

Very interesting, I also started getting RPC SSL connection errors all of a sudden. It was connecting but didn't like what it was seeing. I tried with openssl sconnect and got errors too, although I don't know if they are because of self-signed certs or something, didn't dig fully into that. Did pull the certificates via openssl and noticed one of them was just issued today. Anyway, it continued not working until I rebooted, then it was happy again.

@driftking
Copy link

First.... Thank you.
Love love love the program and work you have done.

I also was using version 2.7. I had errors this week. Tried v2.8. Saw this issue page. Sadly, I won't be home for 10 days to reboot my Tivo. I was not able to telnet into port 1413.

>> Getting Now Playing List via RPC from Roamio 1 ...
RemoteInit - (IP=192.168.1.235, port=1413): Connection reset by peer: socket write error
[java.net.SocketOutputStream.socketWrite0(Native Method), java.net.SocketOutputStream.socketWrite(Unknown Source), java.net.SocketOutputStream.write(Unknown Source), sun.security.ssl.SSLSocketOutputRecord.flush(Unknown Source), sun.security.ssl.HandshakeOutStream.flush(Unknown Source), sun.security.ssl.CertificateVerify$T12CertificateVerifyProducer.produce(Unknown Source), sun.security.ssl.SSLHandshake.produce(Unknown Source), sun.security.ssl.ServerHelloDone$ServerHelloDoneConsumer.consume(Unknown Source), sun.security.ssl.SSLHandshake.consume(Unknown Source), sun.security.ssl.HandshakeContext.dispatch(Unknown Source), sun.security.ssl.HandshakeContext.dispatch(Unknown Source), sun.security.ssl.TransportContext.dispatch(Unknown Source), sun.security.ssl.SSLTransport.decode(Unknown Source), sun.security.ssl.SSLSocketImpl.decode(Unknown Source), sun.security.ssl.SSLSocketImpl.readHandshakeRecord(Unknown Source), sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source), sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source), com.tivo.kmttg.rpc.TiVoRPC.RemoteInit(TiVoRPC.java:269), com.tivo.kmttg.rpc.TiVoRPC.<init>(TiVoRPC.java:106), com.tivo.kmttg.rpc.Remote.<init>(Remote.java:57), com.tivo.kmttg.rpc.Remote.<init>(Remote.java:69), com.tivo.kmttg.main.config.initRemote(config.java:634), com.tivo.kmttg.task.NowPlaying$1AutoThread.run(NowPlaying.java:90), java.lang.Thread.run(Unknown Source)]

For now just reporting another data point; to see where this goes.
If I can help some way, let me know.

@crakerjac
Copy link

crakerjac commented Dec 19, 2023

TiVo must have changed/done something over the weekend. Mine is doing the same thing... However, I'm running a different fork of the original code.

Edit: Here is the response I get from my TiVo:
`STARTING BATCH MODE SINGLE LOOP TRANSFERS

Getting Now Playing List via RPC from TiVo OTA ...
ERROR: RemoteInit - (IP=192.168.2.200, port=1413): Connection refused (Connectio n refused)
ERROR: [java.net.PlainSocketImpl.socketConnect(Native Method), java.net.Abstract PlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350), java.net.AbstractPl ainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206), java.net.Abstr actPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188), java.net.SocksSock etImpl.connect(SocksSocketImpl.java:392), java.net.Socket.connect(Socket.java:58 9), sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:666), sun.security .ssl.SSLSocketImpl.(SSLSocketImpl.java:426), sun.security.ssl.SSLSocketFac toryImpl.createSocket(SSLSocketFactoryImpl.java:88), com.tivo.kmttg.rpc.TiVoRPC. RemoteInit(TiVoRPC.java:266), com.tivo.kmttg.rpc.TiVoRPC.(TiVoRPC.java:106 ), com.tivo.kmttg.rpc.Remote.(Remote.java:57), com.tivo.kmttg.rpc.Remote.< init>(Remote.java:69), com.tivo.kmttg.main.config.initRemote(config.java:635), c om.tivo.kmttg.task.NowPlaying$1AutoThread.run(NowPlaying.java:90), java.lang.Thr ead.run(Thread.java:748)]
Shutdown hook executing
SHUTTING DOWN
`

@lart2150
Copy link
Owner

lart2150 commented Dec 19, 2023

"Connection reset by peer: socket write error" that's a different issue than what marsroverdriver had.

It would help to collect some info about what device(s) and software versions are having issues or are working without issue. Also check if tivo online shows a todo list http://online.tivo.com/start/todolist. If someone can get a pcap of the connection that would be very helpful as I could see how far the handshake got before the connection was reset.

my bolt running 21.11.1.v22-USC-11-849 is working without issue.

It would be super weird if this is somehow related to the cable card certificate expiring.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants