PlexConnect Error SSL Write Pending: Bad Write

I have PlexConnect partly working on my ATV3 via the SSL certificates.  I can access plex movies on my apple TV, however no TV Shows show up in the browser.  I have noticed that the code produces a recurring error when opened which refers to python 2.7 references and suggests that it is an SSL write Pending, and then reports a Bad Write.  I have attached the error reports.  I would like to start here and resolve this issue first and then can look to see if there are any other problems (linked to the tv shows) once it is running correctly.

 

I note that 192.168.1.3 is my Windows 7 computer which I am running the putty session to kick off PlexConnect on my QNAP NAS.

 

Exception happened during processing of request from ('192.168.1.3', 54859)
Traceback (most recent call last):
  File "/opt/lib/python2.7/SocketServer.py", line 284, in _handle_request_nobloc
    self.process_request(request, client_address)
  File "/opt/lib/python2.7/SocketServer.py", line 310, in process_request
    self.finish_request(request, client_address)
  File "/opt/lib/python2.7/SocketServer.py", line 323, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/opt/lib/python2.7/SocketServer.py", line 640, in __init__
    self.finish()
  File "/opt/lib/python2.7/SocketServer.py", line 693, in finish
    self.wfile.flush()
  File "/opt/lib/python2.7/socket.py", line 303, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
  File "/opt/lib/python2.7/ssl.py", line 229, in sendall
    v = self.send(data[count:])
  File "/opt/lib/python2.7/ssl.py", line 198, in send
    v = self._sslobj.write(data)
SSLError: [Errno 1] _ssl.c:1242: error:1409F07F:SSL routines:SSL3_WRITE_PENDING:

 

Details of my setup below.  It would be greatly appreciated if anyone could assist with the problem in my setup or some troubleshooting steps.

 

Thanks

  • ATV3 6.0(6646.65)

  • DNS: 192.168.1.50:

  • Plex Connect Device QNAP TS869 Pro running 4.02:

  • IP of PlexConnect device: 192.168.1.50:

  • The device and operating system (including version number) that the Plex media server (PMS) is installed on: QNAP TS869 Pro running 4.02

  • The Plex media server (PMS) version number you are running (**do not put 'latest'**): 0.9.7.12.14

  • The local IP address of the device that the Plex media server (PMS) is installed on: 192.168.1.50

  • The PlexConnect version number. :7/October/2013   7:10pm

 

Is there anyone who might be able to help me with some troubleshooting tips for the above.


I can’t access any tv shows and so I need to clear this error in order to progress troubleshooting.


Any assistance greatly appreciated

From the point of PlexConnect, there is no difference in handling TVShows vs. Movies.

Also, SSL is never involved in this step - it is only needed to access the initial "application.js".

Are your TVShows stored in the same device as the Movies?

Did you notice a difference in filetype between the two?

Apologies for the delay.  I responded to this twice via ipad but the posts don't appear to have saved.

TV Shows are working fine now (perhaps these hadn't loaded into the server fully) however I am still receiving the original error listed in the topic. 

The exception/SSL Error continues to repeat.  Any ideas what might be causing this.

Thanks for your help.

Can anyone give me advice on this error?  Please

Would you mind trying the latest version?

With the more recent PlexConnect, the PlexGDM stuff got somewhat modified... I would like to know, if the error is caused there or already while installing the SSL handler.

Honestly, I have no idea, why this error pops up - nor what it means...

I ran Git pull and it stated I already had the lastest version.  Unfortunately it is still doing it??

Your log clearly is not the latest... are you able to attach a new one?

I have attached fresh logs (PlexConnect log set to high), as well as a fresh putty screen log.

Who/what is '192.168.1.1'?

And why is it invoking PlexConnect's https/ssl server?

192.168.1.1 is my windows computer.

I have Plex media Server and PlexConnect installed on my QNAP NAS.  I need to use a putty session on my windows 7 computer in order to run PlexConnect.py

Perhaps there is a better way of initiating plex connect?

Linux has working daemon code so you only need to SSH in to start/stop the daemon. usage:


cd /PlexConnect

sudo ./PlexConnect_daemon.bash start

sudo ./PlexConnect_daemon.bash status

sudo ./PlexConnect_daemon.bash stop

f00b4r... thanks for your response although I don't quite understand your message.  I'm relatively new to Linux and putty

when I enter "sudo ./PlexConnect_daemon.bash start" I receive the following error:

sudo: unknown user: root
sudo: unable to initialize policy plugin

Apologies if this is a basic question.
 

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.