I have been having issues trying to install PlexConnect on my QNAP TS219.
It appears that everything is starting correctly. But the script never seem to completely run. I have followed the forum on the QNAP page as closely as possible. In order to get the scrip to run i had to use
#/share/MD0_DATA/.qpkg/PlexConnect/PlexConnect.py -d
I believe that the entire command line didnt work because i dont have python installed in that directory. I believe. I am very new to programming. Any help would be greatly appreciated!
[~] # /share/MD0_DATA/.qpkg/PlexConnect/PlexConnect.py
00:41:43 PlexConnect: ***
00:41:43 PlexConnect: PlexConnect
00:41:43 PlexConnect: Press CTRL-C to shut down.
00:41:43 PlexConnect: ***
00:41:43 PlexConnect: started: 00:41:43
00:41:43 PlexConnect: IP_self: 192.168.100.2
00:41:43 DNSServer: started: 00:41:43
00:41:43 DNSServer: ***
00:41:43 DNSServer: Starting up.
00:41:43 DNSServer: intercept trailers.apple.com: 192.168.100.2
00:41:43 DNSServer: forward other to higher level DNS: 8.8.8.8
00:41:43 DNSServer: ***
00:41:44 WebServer: started: 00:41:44
00:41:44 WebServer: ***
00:41:44 WebServer: WebServer: Serving HTTP on 0.0.0.0 port 80.
00:41:44 WebServer: ***
00:41:44 PlexGDM: ***
00:41:44 PlexGDM: looking up Plex Media Server
00:41:44 PlexGDM: ***
00:41:45 PlexGDM: servers discovered: 1
00:41:45 XMLConverter: PlexGDM - PMS: 192.168.100.2:3240
I have been having issues trying to install PlexConnect on my QNAP TS219.
It appears that everything is starting correctly. But the script never seem to completely run. I have followed the forum on the QNAP page as closely as possible. In order to get the scrip to run i had to use
#/share/MD0_DATA/.qpkg/PlexConnect/PlexConnect.py -d
I believe that the entire command line didnt work because i dont have python installed in that directory. I believe. I am very new to programming. Any help would be greatly appreciated!
[~] # /share/MD0_DATA/.qpkg/PlexConnect/PlexConnect.py
00:41:43 PlexConnect: ***
00:41:43 PlexConnect: PlexConnect
00:41:43 PlexConnect: Press CTRL-C to shut down.
00:41:43 PlexConnect: ***
00:41:43 PlexConnect: started: 00:41:43
00:41:43 PlexConnect: IP_self: 192.168.100.2
00:41:43 DNSServer: started: 00:41:43
00:41:43 DNSServer: ***
00:41:43 DNSServer: Starting up.
00:41:43 DNSServer: intercept trailers.apple.com: 192.168.100.2
00:41:43 DNSServer: forward other to higher level DNS: 8.8.8.8
00:41:43 DNSServer: ***
00:41:44 WebServer: started: 00:41:44
00:41:44 WebServer: ***
00:41:44 WebServer: WebServer: Serving HTTP on 0.0.0.0 port 80.
00:41:44 WebServer: ***
00:41:44 PlexGDM: ***
00:41:44 PlexGDM: looking up Plex Media Server
00:41:44 PlexGDM: ***
00:41:45 PlexGDM: servers discovered: 1
00:41:45 XMLConverter: PlexGDM - PMS: 192.168.100.2:3240
Did you use a dummy qpkg package to auto run the PlexConnect.py? If so, the script to execute PlexConnect when you're NAS starts should look like this:
#!/bin/sh sleep 30 /share/MD0_DATA/.qpkg/Python/bin/python /share/MD0_DATA/.qpkg/PlexConnect/PlexConnect.py -d
With this script PlexConnect starts whenever my NAS boots. The sleep 30 line will make PlexConnect wait so the PMS server has enough time to start.
I have this working on my Qnap TS-410.
FYI
The "/Library" folder only exists when Plex Media Server is started.
So if you add PlexConnect.py to your autostart.sh, chances are that it will not get started simply because it is not available at the time because the "/root/Library" symlink is not created yet.
I copied PlexConnect into
/share/MD0_DATA/.qpkg/PlexConnect
I now have the plex script running properly through putty. My Question is I dont seem to see any instructions on how run the script in a qpkg package. So that I can run when the server starts up.
I now have the plex script running properly through putty. My Question is I dont seem to see any instructions on how run the script in a qpkg package. So that I can run when the server starts up.
This part is the hardest on the QNAP, however have a look here as it goes through some steps and where to find the wiki process
http://forum.qnap.com/viewtopic.php?f=260&t=77700
I am going to attmept this myself soon, but let me know how you go
PEACE
Kosti
So I finally attempted to setup/install PlexConnect by using a number of different threads from here and this one http://forum.qnap.com/viewtopic.php?f=260&t=77700
I also used the git command to grab PlexConnect and to keep it neat since I am not that good with the command line..
# git clone https://github.com/iBaa/PlexConnect.git
Now I forgot to grab the python install so I did this last so I think maybe this is what I cannot run the PlexConnect.py file...
I get the error
env: python: No such file or directory
So I assume this has something to do with my paths??
echo $PATH show this
/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/local/sbin:/opt/bin:/opt/sbin
I used the Optware IPKG to install both python and tools and when i check it under IPKG is show them installed
python27 2.7.3-1
py27-setuptools 0.6c11-2
This is where I am stuck as I cannot execute plexconnect..
What did I break, was the fact I installed python after plexconnect the issue?
I continued though the rest of the process so when I do get the start up going, the rest is done like the creation of the dummy package
by : vi /etc/config/qpkg.conf
[PlexConnect_AutoRun]
Name = PlexConnect
Version = 0.1
Author = urname
Date = todays date
Shell = /share/MD0_DATA/.qpkg/PlexConnect/PCautorun.sh
Install_Path = /share/MD0_DATA/.qpkg/PlexConnect
Enable = TRUE
then I create my SH file in the PlexConnect directory & create the autorun script with the contents using again vi : vi /share/MD0_DATA/.qpkg/PlexConnect/PCautorun.sh
and add the below
#!/bin/sh
#Start PlexConnect
sleep 30
/share/MD0_DATA/.qpkg/PlexConnect/PlexConnect.py -d &
Then I set execution bit
chmod +x /share/MD0_DATA/.qpkg/PlexConnect/PCautorun.sh
Now all I need is to find out why python is not seeing the plexconnect folder or if python is installed correctly as my command line skills are not very good
Thanks
Kosti
Hello everybody,
I need your help ! My PlexConnect doesn't work :wacko:
Where is my problem?
It's OK?
So I finally attempted to setup/install PlexConnect by using a number of different threads from here and this one http://forum.qnap.com/viewtopic.php?f=260&t=77700
I also used the git command to grab PlexConnect and to keep it neat since I am not that good with the command line..
# git clone https://github.com/iBaa/PlexConnect.git
Now I forgot to grab the python install so I did this last so I think maybe this is what I cannot run the PlexConnect.py file...
I get the error
env: python: No such file or directory
So I assume this has something to do with my paths??
echo $PATH show this
/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/local/sbin:/opt/bin:/opt/sbin
I used the Optware IPKG to install both python and tools and when i check it under IPKG is show them installed
python27 2.7.3-1
py27-setuptools 0.6c11-2
This is where I am stuck as I cannot execute plexconnect..
What did I break, was the fact I installed python after plexconnect the issue?
I continued though the rest of the process so when I do get the start up going, the rest is done like the creation of the dummy package
by : vi /etc/config/qpkg.conf
[PlexConnect_AutoRun]
Name = PlexConnect
Version = 0.1
Author = urname
Date = todays date
Shell = /share/MD0_DATA/.qpkg/PlexConnect/PCautorun.sh
Install_Path = /share/MD0_DATA/.qpkg/PlexConnect
Enable = TRUE
then I create my SH file in the PlexConnect directory & create the autorun script with the contents using again vi : vi /share/MD0_DATA/.qpkg/PlexConnect/PCautorun.sh
and add the below
#!/bin/sh
#Start PlexConnect
sleep 30
/share/MD0_DATA/.qpkg/PlexConnect/PlexConnect.py -d &Then I set execution bit
chmod +x /share/MD0_DATA/.qpkg/PlexConnect/PCautorun.sh
Now all I need is to find out why python is not seeing the plexconnect folder or if python is installed correctly as my command line skills are not very good
Thanks
Kosti
So I am still trying to figure out why python doesnt seems to like my NAS..
I checked the basic stuff with the help of ..
I checked the following
[/opt/bin] # ls -la p* | more
-rwxr-xr-x 1 admin administ 6708 Jun 12 2012 peekfd*
lrwxrwxrwx 1 admin administ 23 Jul 24 22:46 pidof -> /opt/bin/psmisc-killall*
-rwxr-xr-x 1 admin administ 9908 Jun 12 2012 prtstat*
-rwxr-xr-x 1 admin administ 16760 Jun 12 2012 psmisc-killall*
-rwxr-xr-x 1 admin administ 15212 Jun 12 2012 pstree*
lrwxrwxrwx 1 admin administ 6 Jul 24 22:46 pstree.x11 -> pstree*
-rwxr-xr-x 1 admin administ 78 Apr 13 2012 pydoc-2.7*
lrwxrwxrwx 1 admin administ 9 Jul 28 19:41 python2 -> python2.7*
lrwxrwxrwx 1 admin administ 16 Jul 28 19:41 python2-config -> python2.7-config*
-rwxr-xr-x 1 admin administ 3092 Apr 13 2012 python2.7*
-rwxr-xr-x 1 admin administ 1618 Apr 13 2012 python2.7-config*
[/opt/bin] #
&
but I have no Python directory under my /share/MD0_DATA/.qpkg ?/
# cd /share/MD0_DATA/.qpkg/Python/
-sh: cd: /share/MD0_DATA/.qpkg/Python/: No such file or directory
This is all my directories under my /share/MD0_DATA/.qpkg/
[/share/MD0_DATA/.qpkg] # ls -l
drwxr-xr-x 5 admin administ 4096 Jul 28 21:26 DSv3/
drwxr-xr-x 12 admin administ 4096 Jul 28 21:25 MSV2/
drwxr-xr-x 14 admin administ 4096 Jul 28 21:38 Optware/
drwxr-xr-x 4 admin administ 4096 Jul 28 19:34 PlexConnect/
drwxr-xr-x 5 1000 1000 4096 Jul 28 21:26 PlexMediaServer/
drwxr-xr-x 10 admin administ 4096 Jul 28 21:25 musicstation/
drwxr-xr-x 10 admin administ 4096 Jul 28 21:25 photostation2/
So its seems Python isnt in its right location or symlinked correctly?
I don't know how to resolve this one so any other checks I can perform people?
@kosti before you attempt to create a dummy IPKG to auto-start PlexConnect I suggest you get Python installed and working correctly.
Ok! as it stand now you have a version of Python in
/opt/bin
and your PlexConnect is located /share/MD0_DATA/.qpkg/PlexConnect/
Start by running this command:
/opt/bin/python2 /share/MD0_DATA/.qpkg/PlexConnect/PlexConnect.py
If the above works, PCautorun.sh is missing the Python command (and possibly the path).
@kosti before you attempt to create a dummy IPKG to auto-start PlexConnect I suggest you get Python installed and working correctly. Ok! as it stand now you have a version of Python in /opt/bin and your PlexConnect is located /share/MD0_DATA/.qpkg/PlexConnect/ Start by running this command: # /opt/bin/python2 /share/MD0_DATA/.qpkg/PlexConnect/PlexConnect.py If the above works, PCautorun.sh is missing the Python command (and possibly the path).
Hey Mate,
Thanks for the info, I will give it a go and report back, unfortunately my linux skills are very low hence the questions..
Cheers
@ Zilwah..
YEP, that did it :)
So why doesnt Python get installed in the /.qpkg folder but in /opt/bin? is this normal?
[~] # /opt/bin/python2 /share/MD0_DATA/.qpkg/PlexConnect/PlexConnect.py
12:01:54 PlexConnect: ***
12:01:54 PlexConnect: PlexConnect
12:01:54 PlexConnect: Press CTRL-C to shut down.
12:01:54 PlexConnect: ***
12:01:54 PlexConnect: started: 12:01:54
12:01:54 PlexConnect: IP_self: 10.0.0.4
12:01:54 DNSServer: started: 12:01:54
12:01:54 DNSServer: ***
12:01:54 DNSServer: Starting up.
12:01:54 DNSServer: intercept trailers.apple.com: 10.0.0.4
12:01:54 DNSServer: forward other to higher level DNS: 8.8.8.8
12:01:54 DNSServer: ***
12:01:54 WebServer: started: 12:01:54
12:01:54 WebServer: ***
12:01:54 WebServer: WebServer: Serving HTTP on 0.0.0.0 port 80.
12:01:54 WebServer: ***
12:01:54 PlexGDM: ***
12:01:54 PlexGDM: looking up Plex Media Server
12:01:54 PlexGDM: ***
12:01:55 PlexGDM: servers discovered: 1
12:01:55 XMLConverter: PlexGDM - PMS: 10.0.0.4:32400
12:02:35 DNSServer: DNS request received!
12:02:35 DNSServer: Source: ('10.0.0.9', 54701)
12:02:35 DNSServer: Domain: trailers.apple.com
12:02:35 DNSServer: ***intercept request
12:02:35 DNSServer: -> DNS response: 10.0.0.4
so all good, it's slow and stutters, even on both wired and unwired
now to resolve my autostart up file, i just need to call the Python from the opt/bin directory.
So it should look like this right?
[PlexConnect_AutoRun] Name = PlexConnect Version = 0.1 Author = urname Date = todays date Shell = /share/MD0_DATA/.qpkg/PlexConnect/PCautorun.sh Install_Path = /opt/bin/python2 /share/MD0_DATA/.qpkg/PlexConnect Enable = TRUE
#!/bin/sh#Start PlexConnect
sleep 30
/opt/bin/python2 /share/MD0_DATA/.qpkg/PlexConnect/PlexConnect.py -d &
so on to to the next problem, with figuring out why it pauses..but for now, it's doing what it should, thats again!!
This is getting extremely frustrating. I am more than happy to donate via PayPal somebody who's able to help come up with a foolproof guide on how to install this using a Mac. I tried both ways outlined. I've been unsuccessful with the QNAP forum quide and the guide outlined here.
1. Guide outlined here:
-ssh admin@10.0.1.4
cd /root/Library
mkdir PlexConnect
And here is the problem:
Arpans-MacBook-Pro:~ Arpan$ scp -r/Users/Arpan/Desktop/PlexConnect/*admin@10.0.1.4:/root/Library/PlexConnect
This is getting extremely frustrating. I am more than happy to donate via PayPal somebody who's able to help come up with a foolproof guide on how to install this using a Mac. I tried both ways outlined. I've been unsuccessful with the QNAP forum quide and the guide outlined here.
1. Guide outlined here:
-ssh admin@10.0.1.4
cd /root/Library
mkdir PlexConnect
And here is the problem:Arpans-MacBook-Pro:~ Arpan$ scp -r/Users/Arpan/Desktop/PlexConnect/*admin@10.0.1.4:/root/Library/PlexConnect
scp: illegal option -- /usage: scp [-12346BCEpqrv] [-c cipher] [-F ssh_config] [-i identity_file][-l limit] [-o ssh_option] [-P port] [-S program][[user@]host1:]file1 ... [[user@]host2:]file2Arpans-MacBook-Pro:~ Arpan$2. Guide outlined on http://forum.qnap.com/viewtopic.php?f=260&t=77700-I am able to SSH into the NAS-cd /share/MD0_DATA/.qpkgAnd the problem is with:[~] # cd /share/MD0_DATA/.qpkg[/share/MD0_DATA/.qpkg] # git clone https://github.com/iBaa/PlexConnect.git-sh: git: command not found[/share/MD0_DATA/.qpkg] #Is there a youtube guide or is someone willing to go step by step from the beginning.Model: TS459 Pro IIDNS on ATV 10.0.1.4NAS IP 10.0.1.4I downloaded the PlexConnect with New Templates folder and moved it my desktop and renamed it to PlexConnectAny help would be much appreciatedThanks in advance
Same problem here! :-(
Please help us so we can enjoy plex on atv too.
Regards, Don
any help?
Your SCP syntax is incorrect. It should be :-This is getting extremely frustrating. I am more than happy to donate via PayPal somebody who's able to help come up with a foolproof guide on how to install this using a Mac. I tried both ways outlined. I've been unsuccessful with the QNAP forum quide and the guide outlined here.
1. Guide outlined here:
-ssh admin@10.0.1.4
cd /root/Library
mkdir PlexConnect
And here is the problem:
Arpans-MacBook-Pro:~ Arpan$ scp -r/Users/Arpan/Desktop/PlexConnect/*admin@10.0.1.4:/root/Library/PlexConnect
scp: illegal option -- /
usage: scp [-12346BCEpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
[-l limit] [-o ssh_option] [-P port] [-S program]
[[user@]host1:]file1 ... [[user@]host2:]file2
Arpans-MacBook-Pro:~ Arpan$
scp -r /Users/Arpan/Desktop/PlexConnect/* admin@10.0.1.4:/root/Library/PlexConnect
(assuming your folder paths are actually correct)
Note the spaces which were missing in your post above.
Your SCP syntax is incorrect. It should be :-
scp -r /Users/Arpan/Desktop/PlexConnect/* admin@10.0.1.4:/root/Library/PlexConnect
(assuming your folder paths are actually correct)
Note the spaces which were missing in your post above.
Thanks, that was incredibly helpful! Im just glad I was able to get it working. Thanks for helping. Now the hard part is creating the autorun script.
Here is where I have gotten:
I SSH into my NAS and use the command # vi /etc/config/qpkg.conf
This is what I get:
Name = autorun
Version = 0.1
Author = neomilium
Date = 2013-05-06
Shell = /share/MD0_DATA/.qpkg/autorun/autorun.sh
Install_Path = /share/MD0_DATA/.qpkg/autorun
Enable = TRUE
Thanks, that was incredibly helpful! Im just glad I was able to get it working. Thanks for helping. Now the hard part is creating the autorun script.
Here is where I have gotten:
I SSH into my NAS and use the command # vi /etc/config/qpkg.conf
This is what I get:
Name = PythonClass = nullStatus = completeVersion = 2.7Enable = UNKNOWNQPKG_File = Python.qpkgDate = 2013-08-07Shell = /share/MD0_DATA/.qpkg/Python/python.shInstall_Path = /share/MD0_DATA/.qpkg/PythonAuthor = Troy[Optware]Name = OptwareClass = nullStatus = completeVersion = 0.99.163Author = SL1000QPKG_File = Optware.qpkgDate = 2013-08-07Shell = /share/MD0_DATA/.qpkg/Optware/Optware.shInstall_Path = /share/MD0_DATA/.qpkg/OptwareWebUI = /Optware/Enable = TRUE/mnt/HDA_ROOT/.config/qpkg.conf [97%] 75,01"/etc/config/qpkg.conf" 77L, 1822CI am not sure where to go from there. Do I just paste the following command:[autorun]
Name = autorun
Version = 0.1
Author = neomilium
Date = 2013-05-06
Shell = /share/MD0_DATA/.qpkg/autorun/autorun.sh
Install_Path = /share/MD0_DATA/.qpkg/autorun
Enable = TRUEAnd if so where do I paste it?Thanks for your help in this process.Where do I go from here. Thanks
Copy the default template:
[autorun]
Name = autorun
Version = 0.1
Author = neomilium
Date = 2013-05-06
Shell = /share/MD0_DATA/.qpkg/autorun/autorun.sh
Install_Path = /share/MD0_DATA/.qpkg/autorun
Enable = TRUE
Towards the end of the file, and that should do it for you. Although with the recent changes to PlexConnect and AppleTV I'm having other issues now :-/
Never mind about my issue!
It's resolved, I just had to re-download/clone PlexConnect and get it working.
Hello,
My plexconnect run but I can not acces form my Apple TV3 ?
08:17:45 DNSServer: DNS request received!
08:17:45 DNSServer: Source: ('192.168.24.82', 65510)
08:17:45 DNSServer: Domain: trailers.apple.com
08:17:45 DNSServer: ***intercept request
08:17:45 DNSServer: -> DNS response: 192.168.24.40
In my plex confugration, I have add my lan to exclude the autentification:
List of authorized networks without authentication
192.168.24.0/255.255.255.0
Whoever lost PlexConnect after the recent update for ATV3, just follow this guide it will take you 10 minutes to fix it.
All you need to make sure is that your qnap has https turned off since it will need port 443 to connect the trailer app and also make sure your qnap is using something else for port 80, i change mine to port 81 since i only use port 8080 for control panel. This new PlexConnect also prevents apple from updating your firmware going forward.