Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

needo - Error in PlexConnect docker ?

Featured Replies

Hi Needo (or anyone else that knows about that docker),

 

I followed the instruction on the GitHub regarding the PlexConnect docker you create.  What is strange is that, when I do NOT put a path to connect, the PlexConnect run, I see it in the output of the Docker Extended Manager.  Whenever I create the Path, I see it create the Certificates (the 3 files), but I have this at the output.  I even tried removing the Container + Image and still always get that same behavior :

 

Command:

root@localhost:# /usr/bin/docker logs PlexConnect
*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
No SSH host key available. Generating one...
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
Creating SSH2 ECDSA key; this may take some time ...
Creating SSH2 ED25519 key; this may take some time ...
invoke-rc.d: policy-rc.d denied execution of restart.
*** Running /etc/my_init.d/edge.sh...
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
git-man liberror-perl patch rsync
Suggested packages:
gettext-base git-daemon-run git-daemon-sysvinit git-doc git-el git-email
git-gui gitk gitweb git-arch git-bzr git-cvs git-mediawiki git-svn ed
diffutils-doc
The following NEW packages will be installed:
git git-man liberror-perl patch rsync
0 upgraded, 5 newly installed, 0 to remove and 3 not upgraded.
Need to get 3642 kB of archives.
After this operation, 22.5 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main rsync amd64 3.1.0-2ubuntu0.1 [283 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ trusty/main liberror-perl all 0.17-1.1 [21.1 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ trusty/main git-man all 1:1.9.1-1 [698 kB]
Get:4 http://archive.ubuntu.com/ubuntu/ trusty/main git amd64 1:1.9.1-1 [2555 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ trusty-updates/main patch amd64 2.7.1-4ubuntu1 [84.4 kB]
Fetched 3642 kB in 1s (1932 kB/s)
Selecting previously unselected package rsync.
(Reading database ... 16116 files and directories currently installed.)
Preparing to unpack .../rsync_3.1.0-2ubuntu0.1_amd64.deb ...
Unpacking rsync (3.1.0-2ubuntu0.1) ...
Selecting previously unselected package liberror-perl.
Preparing to unpack .../liberror-perl_0.17-1.1_all.deb ...
Unpacking liberror-perl (0.17-1.1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../git-man_1%3a1.9.1-1_all.deb ...
Unpacking git-man (1:1.9.1-1) ...
Selecting previously unselected package git.
Preparing to unpack .../git_1%3a1.9.1-1_amd64.deb ...
Unpacking git (1:1.9.1-1) ...
Selecting previously unselected package patch.
Preparing to unpack .../patch_2.7.1-4ubuntu1_amd64.deb ...
Unpacking patch (2.7.1-4ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up rsync (3.1.0-2ubuntu0.1) ...
Removing any system startup links for /etc/init.d/rsync ...
update-rc.d: warning: default stop runlevel arguments (0 1 6) do not match rsync Default-Stop values (none)
Adding system startup for /etc/init.d/rsync ...
/etc/rc0.d/K20rsync -> ../init.d/rsync
/etc/rc1.d/K20rsync -> ../init.d/rsync
/etc/rc6.d/K20rsync -> ../init.d/rsync
/etc/rc2.d/S20rsync -> ../init.d/rsync
/etc/rc3.d/S20rsync -> ../init.d/rsync
/etc/rc4.d/S20rsync -> ../init.d/rsync
/etc/rc5.d/S20rsync -> ../init.d/rsync
invoke-rc.d: policy-rc.d denied execution of restart.
Setting up liberror-perl (0.17-1.1) ...
Setting up git-man (1:1.9.1-1) ...
Setting up git (1:1.9.1-1) ...
Setting up patch (2.7.1-4ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
rm: cannot remove '/opt/plexconnect/assets/certificates': Device or resource busy
fatal: destination path '/opt/plexconnect' already exists and is not an empty directory.
SSL certs exist
*** Running /etc/rc.local...
*** Booting runit daemon...
*** Runit started as PID 205
/usr/bin/python: can't open file '/opt/plexconnect/PlexConnect.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/opt/plexconnect/PlexConnect.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/opt/plexconnect/PlexConnect.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/opt/plexconnect/PlexConnect.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/opt/plexconnect/PlexConnect.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/opt/plexconnect/PlexConnect.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/opt/plexconnect/PlexConnect.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/opt/plexconnect/PlexConnect.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/opt/plexconnect/PlexConnect.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/opt/plexconnect/PlexConnect.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/opt/plexconnect/PlexConnect.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/opt/plexconnect/PlexConnect.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/opt/plexconnect/PlexConnect.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/opt/plexconnect/PlexConnect.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/opt/plexconnect/PlexConnect.py': [Errno 2] No such file or directory

Hi Needo (or anyone else that knows about that docker),

 

I followed the instruction on the GitHub regarding the PlexConnect docker you create.  What is strange is that, when I do NOT put a path to connect, the PlexConnect run, I see it in the output of the Docker Extended Manager.  Whenever I create the Path, I see it create the Certificates (the 3 files), but I have this at the output.  I even tried removing the Container + Image and still always get that same behavior :

 

 

Please share your docker run command or your configuration in the Docker plugin.

 

Thank you.

  • Author

This is the Run command (generated from the Extended Docker Manager) :

 

root@localhost:# /usr/bin/docker run -d --name="PlexConnect" --net="bridge" -e EDGE="1" -p 80:80/tcp -v "/mnt/btrfs/appdata/plexconnect/":"/opt/plexconnect/assets/certificates":rw -v "/etc/localtime":"/etc/localtime":ro needo/plexconnect

 

If I DO NOT put any path, I can see that PlexConnect starts... so there is something strange!

 

Command:
root@localhost:# /usr/bin/docker logs PlexConnect
*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
No SSH host key available. Generating one...
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
Creating SSH2 ECDSA key; this may take some time ...
Creating SSH2 ED25519 key; this may take some time ...
invoke-rc.d: policy-rc.d denied execution of restart.
*** Running /etc/my_init.d/edge.sh...
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
git-man liberror-perl patch rsync
Suggested packages:
gettext-base git-daemon-run git-daemon-sysvinit git-doc git-el git-email
git-gui gitk gitweb git-arch git-bzr git-cvs git-mediawiki git-svn ed
diffutils-doc
The following NEW packages will be installed:
git git-man liberror-perl patch rsync
0 upgraded, 5 newly installed, 0 to remove and 3 not upgraded.
Need to get 3642 kB of archives.
After this operation, 22.5 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main rsync amd64 3.1.0-2ubuntu0.1 [283 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ trusty/main liberror-perl all 0.17-1.1 [21.1 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ trusty/main git-man all 1:1.9.1-1 [698 kB]
Get:4 http://archive.ubuntu.com/ubuntu/ trusty/main git amd64 1:1.9.1-1 [2555 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ trusty-updates/main patch amd64 2.7.1-4ubuntu1 [84.4 kB]
Fetched 3642 kB in 14s (243 kB/s)
Selecting previously unselected package rsync.
(Reading database ... 16116 files and directories currently installed.)
Preparing to unpack .../rsync_3.1.0-2ubuntu0.1_amd64.deb ...
Unpacking rsync (3.1.0-2ubuntu0.1) ...
Selecting previously unselected package liberror-perl.
Preparing to unpack .../liberror-perl_0.17-1.1_all.deb ...
Unpacking liberror-perl (0.17-1.1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../git-man_1%3a1.9.1-1_all.deb ...
Unpacking git-man (1:1.9.1-1) ...
Selecting previously unselected package git.
Preparing to unpack .../git_1%3a1.9.1-1_amd64.deb ...
Unpacking git (1:1.9.1-1) ...
Selecting previously unselected package patch.
Preparing to unpack .../patch_2.7.1-4ubuntu1_amd64.deb ...
Unpacking patch (2.7.1-4ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up rsync (3.1.0-2ubuntu0.1) ...
Removing any system startup links for /etc/init.d/rsync ...
update-rc.d: warning: default stop runlevel arguments (0 1 6) do not match rsync Default-Stop values (none)
Adding system startup for /etc/init.d/rsync ...
/etc/rc0.d/K20rsync -> ../init.d/rsync
/etc/rc1.d/K20rsync -> ../init.d/rsync
/etc/rc6.d/K20rsync -> ../init.d/rsync
/etc/rc2.d/S20rsync -> ../init.d/rsync
/etc/rc3.d/S20rsync -> ../init.d/rsync
/etc/rc4.d/S20rsync -> ../init.d/rsync
/etc/rc5.d/S20rsync -> ../init.d/rsync
invoke-rc.d: policy-rc.d denied execution of restart.
Setting up liberror-perl (0.17-1.1) ...
Setting up git-man (1:1.9.1-1) ...
Setting up git (1:1.9.1-1) ...
Setting up patch (2.7.1-4ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
mv: cannot stat '/opt/plexconnect/assets/certificates/trailers*': No such file or directory
Cloning into '/opt/plexconnect'...
mv: cannot stat '/tmp/trailers*': No such file or directory
Generating a 2048 bit RSA private key
.........................+++
...+++
writing new private key to '/opt/plexconnect/assets/certificates/trailers.key'
-----
*** Running /etc/rc.local...
*** Booting runit daemon...
*** Runit started as PID 219
22:34:06 PlexConnect: ***
22:34:06 PlexConnect: PlexConnect
22:34:06 PlexConnect: Press CTRL-C to shut down.
22:34:06 PlexConnect: ***
22:34:06 Settings: add setting enable_plexgdm=True
22:34:06 Settings: add setting ip_pms=192.168.178.10
22:34:06 Settings: add setting port_pms=32400
22:34:06 Settings: add setting enable_dnsserver=True
22:34:06 Settings: add setting port_dnsserver=53
22:34:06 Settings: add setting ip_dnsmaster=8.8.8.8
22:34:06 Settings: add setting prevent_atv_update=True
22:34:06 Settings: add setting enable_plexconnect_autodetect=True
22:34:06 Settings: add setting ip_plexconnect=0.0.0.0
22:34:06 Settings: add setting hosttointercept=trailers.apple.com
22:34:06 Settings: add setting port_webserver=80
22:34:06 Settings: add setting enable_webserver_ssl=True
22:34:06 Settings: add setting port_ssl=443
22:34:06 Settings: add setting certfile=./assets/certificates/trailers.pem
22:34:06 Settings: add setting loglevel=Normal
22:34:06 Settings: add setting logpath=.
22:34:06 PlexConnect: started: 22:34:06
22:34:06 PlexConnect: Version: 0.4
22:34:06 PlexConnect: Python: 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2]
22:34:06 PlexConnect: Host OS: linux2
22:34:06 PlexConnect: IP_self: 172.17.0.19

  • Author

Please note that without the Path not connected, plexConnect starts, but I don't have access to the certificates.  Also, I think that the config file should be put outside of the docker too!  It would be useful in case we need to change settings.

i use this line

 

docker run -d --host="r2d2" --name="plexconnect" -v /mnt/user/PlexConnect/assets/certificates:/opt/plexconnect/assets/certificates/ -v /etc/localtime:/etc/localtime:ro -e EDGE=1 -p 80:80 needo/plexconnect

 

works fine for me

 

  • Author

I see you run it in host Mode.  I tried in Bridge (I also added 443 and 53 ports) and get the same.  I'll try in host mode to see.

  • Author

i use this line

 

docker run -d --host="r2d2" --name="plexconnect" -v /mnt/user/PlexConnect/assets/certificates:/opt/plexconnect/assets/certificates/ -v /etc/localtime:/etc/localtime:ro -e EDGE=1 -p 80:80 needo/plexconnect

 

works fine for me

 

Doesn't work for me !

 

Processing triggers for ureadahead (0.100.0-16) ...
mv: cannot stat '/opt/plexconnect/assets/certificates/trailers*': No such file or directory
rm: cannot remove '/opt/plexconnect/assets/certificates': Device or resource busy
fatal: destination path '/opt/plexconnect' already exists and is not an empty directory.
mv: cannot stat '/tmp/trailers*': No such file or directory
Generating a 2048 bit RSA private key
...................................................+++
.................................+++
writing new private key to '/opt/plexconnect/assets/certificates/trailers.key'
-----
*** Running /etc/rc.local...
*** Booting runit daemon...
*** Runit started as PID 208
/usr/bin/python: can't open file '/opt/plexconnect/PlexConnect.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/opt/plexconnect/PlexConnect.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/opt/plexconnect/PlexConnect.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/opt/plexconnect/PlexConnect.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/opt/plexconnect/PlexConnect.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/opt/plexconnect/PlexConnect.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/opt/plexconnect/PlexConnect.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/opt/plexconnect/PlexConnect.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/opt/plexconnect/PlexConnect.py': [Errno 2] No such file or directory

i just checked and i am using a different edge file as needo too

 

this is needo's

#!/bin/bash

# Does the user want the latest version
if [ -z "$EDGE" ]; then
  echo "Bleeding edge not requested"
else
  apt-get install -qy git
  mv /opt/plexconnect/assets/certificates/trailers* /tmp/
  rm -rf /opt/plexconnect
  git clone https://github.com/iBaa/PlexConnect.git /opt/plexconnect
  mv /tmp/trailers* /opt/plexconnect/assets/certificates/
fi

# Generate SSL certificates if they don't exist
if [ -f /opt/plexconnect/assets/certificates/trailers.pem ] ; then
  echo "SSL certs exist"
else
  openssl req -new -nodes -newkey rsa:2048 -out /opt/plexconnect/assets/certificates/trailers.pem -keyout /opt/plexconnect/assets/certificates/trailers.key -x509 -days 7300 -subj "/C=US/CN=trailers.apple.com"
  openssl x509 -in /opt/plexconnect/assets/certificates/trailers.pem -outform der -out /opt/plexconnect/assets/certificates/trailers.cer && cat /opt/plexconnect/assets/certificates/trailers.key >> /opt/plexconnect/assets/certificates/trailers.pem
fi

 

this is mine

 

#!/bin/bash

# Does the user want the latest version
if [ -z "$EDGE" ]; then
  echo "Bleeding edge not requested"
else
  apt-get install -qy git
  cd /tmp
  git clone https://github.com/iBaa/PlexConnect.git
  cp -Rfu /tmp/PlexConnect/* $INSTALLDIR
  rm -Rf /tmp/PlexConnect
fi

# Generate SSL certificates if they don't exist
if [ -f /opt/plexconnect/assets/certificates/trailers.pem ] ; then
  echo "SSL certs exist"
else
  openssl req -new -nodes -newkey rsa:2048 -out /opt/plexconnect/assets/certificates/trailers.pem -keyout /opt/plexconnect/assets/certificates/trailers.key -x509 -days 7300 -subj "/C=US/CN=trailers.apple.com"
  openssl x509 -in /opt/plexconnect/assets/certificates/trailers.pem -outform der -out /opt/plexconnect/assets/certificates/trailers.cer && cat /opt/plexconnect/assets/certificates/trailers.key >> /opt/plexconnect/assets/certificates/trailers.pem
fi

the difference is that if you have an issue connecting to git and downloading the newest version that needo's already deleted your existing setup and so you end up with the error that you have

mine keeps the existing setup and overwrites the files once git has downloaded the newest version

 

i prefer it this way

 

  • Author

Ok, do you have a own plexconnect Repo so I can use yours instead and try with that?

not really....

what i do is download the zip from the github page from needo

uzip it into a folder on the cache drive

make the changes to the edge file

make sure you cd into the folder where you unzipped the files

and then do a

docker build -t needo/plexconnect .

don't forget the Dot at the end

this will build the image on your unraid machine

and so you can use the above start line as it will find the needo/plexconnect image on the machine locally

 

i do this for a lot of programs as i can see the progress the docker is making and can see where he hangs if needed .....

  • Author

Ok.  I might give a try, but ultimately, I still think that needo could/should incorporate a fix (or your suggested Edge.sh file).  "As Is", the plexConnect Docker that is created/maintained by needo doesn't work, at least on my Unraid.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.