# PlexConnect Error SSL Write Pending: Bad Write

**URL:** <https://forums.plex.tv/t/plexconnect-error-ssl-write-pending-bad-write/44177>\
**Category:** Apps & Creations\
**Created:** [October 7, 2013, 9:37am UTC](https://forums.plex.tv/t/plexconnect-error-ssl-write-pending-bad-write/44177 "2013-10-07T09:37:16Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![captainhowie](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@captainhowie](https://forums.plex.tv/u/captainhowie)\
**Post date:** [October 7, 2013, 9:37am UTC](https://forums.plex.tv/t/plexconnect-error-ssl-write-pending-bad-write/44177/1 "2013-10-07T09:37:16Z")

</div>

I have PlexConnect partly working on my ATV3 via the SSL certificates.&nbsp; I can access plex movies on my apple TV, however no TV Shows show up in the browser.&nbsp; 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.&nbsp; I have attached the error reports.&nbsp; 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.

&nbsp;

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.

&nbsp;

Exception happened during processing of request from ('192.168.1.3', 54859)  
Traceback (most recent call last):  
&nbsp; File "/opt/lib/python2.7/SocketServer.py", line 284, in \_handle\_request\_nobloc  
&nbsp;&nbsp;&nbsp; self.process\_request(request, client\_address)  
&nbsp; File "/opt/lib/python2.7/SocketServer.py", line 310, in process\_request  
&nbsp;&nbsp;&nbsp; self.finish\_request(request, client\_address)  
&nbsp; File "/opt/lib/python2.7/SocketServer.py", line 323, in finish\_request  
&nbsp;&nbsp;&nbsp; self.RequestHandlerClass(request, client\_address, self)  
&nbsp; File "/opt/lib/python2.7/SocketServer.py", line 640, in \_\_init\_\_  
&nbsp;&nbsp;&nbsp; self.finish()  
&nbsp; File "/opt/lib/python2.7/SocketServer.py", line 693, in finish  
&nbsp;&nbsp;&nbsp; self.wfile.flush()  
&nbsp; File "/opt/lib/python2.7/socket.py", line 303, in flush  
&nbsp;&nbsp;&nbsp; self.\_sock.sendall(view[write\_offset:write\_offset+buffer\_size])  
&nbsp; File "/opt/lib/python2.7/ssl.py", line 229, in sendall  
&nbsp;&nbsp;&nbsp; v = self.send(data[count:])  
&nbsp; File "/opt/lib/python2.7/ssl.py", line 198, in send  
&nbsp;&nbsp;&nbsp; v = self.\_sslobj.write(data)  
SSLError: [Errno 1] \_ssl.c:1242: error:1409F07F:SSL routines:SSL3\_WRITE\_PENDING:

&nbsp;

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

&nbsp;

Thanks

- ATV3 6.0(6646.65)

- DNS: 192.168.1.50:

- Plex Connect Device QNAP TS869 Pro running&nbsp;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&nbsp; &nbsp;7:10pm

&nbsp;

---

<div class="post-metadata">

**Author:** ![captainhowie](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@captainhowie](https://forums.plex.tv/u/captainhowie)\
**Post date:** [October 10, 2013, 3:05am UTC](https://forums.plex.tv/t/plexconnect-error-ssl-write-pending-bad-write/44177/2 "2013-10-10T03:05:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![baa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/baa/32/2026_2.png) [@baa](https://forums.plex.tv/u/baa)\
**Post date:** [October 10, 2013, 6:36am UTC](https://forums.plex.tv/t/plexconnect-error-ssl-write-pending-bad-write/44177/3 "2013-10-10T06:36:49Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![captainhowie](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@captainhowie](https://forums.plex.tv/u/captainhowie)\
**Post date:** [November 2, 2013, 6:12am UTC](https://forums.plex.tv/t/plexconnect-error-ssl-write-pending-bad-write/44177/4 "2013-11-02T06:12:50Z")

</div>

Apologies for the delay.&nbsp; 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&nbsp;loaded into the server fully)&nbsp;however I am still receiving the original error listed in the topic.&nbsp;

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

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![captainhowie](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@captainhowie](https://forums.plex.tv/u/captainhowie)\
**Post date:** [November 14, 2013, 11:02am UTC](https://forums.plex.tv/t/plexconnect-error-ssl-write-pending-bad-write/44177/5 "2013-11-14T11:02:03Z")

</div>

Can anyone give me advice on this error?&nbsp; Please

---

<div class="post-metadata">

**Author:** ![baa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/baa/32/2026_2.png) [@baa](https://forums.plex.tv/u/baa)\
**Post date:** [November 14, 2013, 1:10pm UTC](https://forums.plex.tv/t/plexconnect-error-ssl-write-pending-bad-write/44177/6 "2013-11-14T13:10:44Z")

</div>

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...

---

<div class="post-metadata">

**Author:** ![captainhowie](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@captainhowie](https://forums.plex.tv/u/captainhowie)\
**Post date:** [November 16, 2013, 5:06am UTC](https://forums.plex.tv/t/plexconnect-error-ssl-write-pending-bad-write/44177/7 "2013-11-16T05:06:49Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![baa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/baa/32/2026_2.png) [@baa](https://forums.plex.tv/u/baa)\
**Post date:** [November 16, 2013, 7:56am UTC](https://forums.plex.tv/t/plexconnect-error-ssl-write-pending-bad-write/44177/8 "2013-11-16T07:56:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![captainhowie](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@captainhowie](https://forums.plex.tv/u/captainhowie)\
**Post date:** [November 16, 2013, 11:10am UTC](https://forums.plex.tv/t/plexconnect-error-ssl-write-pending-bad-write/44177/9 "2013-11-16T11:10:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![baa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/baa/32/2026_2.png) [@baa](https://forums.plex.tv/u/baa)\
**Post date:** [November 16, 2013, 12:00pm UTC](https://forums.plex.tv/t/plexconnect-error-ssl-write-pending-bad-write/44177/10 "2013-11-16T12:00:07Z")

</div>

Who/what is '192.168.1.1'?

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

---

<div class="post-metadata">

**Author:** ![captainhowie](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@captainhowie](https://forums.plex.tv/u/captainhowie)\
**Post date:** [November 16, 2013, 10:24pm UTC](https://forums.plex.tv/t/plexconnect-error-ssl-write-pending-bad-write/44177/11 "2013-11-16T22:24:46Z")

</div>

192.168.1.1 is my windows computer.

I have Plex media Server and PlexConnect installed on my QNAP NAS.&nbsp; 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?

---

<div class="post-metadata">

**Author:** ![f00b4r](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/f00b4r/32/768_2.png) [@f00b4r](https://forums.plex.tv/u/f00b4r)\
**Post date:** [November 16, 2013, 10:30pm UTC](https://forums.plex.tv/t/plexconnect-error-ssl-write-pending-bad-write/44177/12 "2013-11-16T22:30:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![captainhowie](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@captainhowie](https://forums.plex.tv/u/captainhowie)\
**Post date:** [November 17, 2013, 4:13am UTC](https://forums.plex.tv/t/plexconnect-error-ssl-write-pending-bad-write/44177/13 "2013-11-17T04:13:36Z")

</div>

f00b4r... thanks for your response although I don't quite understand your message.&nbsp; 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.  
&nbsp;

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 21, 2019, 12:13am UTC](https://forums.plex.tv/t/plexconnect-error-ssl-write-pending-bad-write/44177/14 "2019-12-21T00:13:31Z")

</div>

Closed on December 21, 2019, 12:13am UTC

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