I implemented the above content and restarted. Everything has come up normally. After a few minutes, I have no zombie kernels and everything appears to be running normally.
Keeping my fingers crossed. I will watch it throughout the day and report the results back.
Thanks for your help - hopefully that does the trick.
I implemented the above content and restarted. Everything has come up normally. After a few minutes, I have no zombie kernels and everything appears to be running normally.
Keeping my fingers crossed. I will watch it throughout the day and report the results back.
Thanks for your help - hopefully that does the trick.
Great news! Just want to return home now and try this.
So I have to add or replace my plexconnect.sh with this?
I'm glad I found this forum post, I was wondering if it could be done for my school.
Im wondering about the impact of this on the web server, we run our website off of qnap, over port 80, if we turn off the web service, are we able to turn it back on and continue using port 80 for the service, and ... if things don't work for using it with the web server, what's the process of uninstalling?
@malcolmincognito said:
Im wondering about the impact of this on the web server, we run our website off of qnap, over port 80, if we turn off the web service, are we able to turn it back on and continue using port 80 for the service, and … if things don’t work for using it with the web server, what’s the process of uninstalling?
I had to change the web server port to 81 to get it to work and you can’t change plex connect to use another port as far as I’m aware. Although there is an option to change it in the settings file so maybe worth a go. I’ve spent hours trying to get it going with no luck. I’m guessing your school is a MAC school so you should have better luck with the certificates and profile changes required to the ATV. Not sure what models you have though but I bought a new ATV3 and the old iphone configuration utility for windows doesn’t recognise it.
If I were you I would use another machine eg MAC mini or similar, as your plex server and try running plex connect on it instead.
I am using qpkg.conf to launch autorun.sh… but it doesn’t work
[autorun]
Name = autorun
Class = null
Status = complete
Version = 0.1
Author = neomilium
Date = 2013-05-06
Shell = /share/CACHEDEV1_DATA/.qpkg/autorun/autorun.sh
Install_Path = /share/CACHEDEV1_DATA/.qpkg/autorun
Enable = TRUE
Running the autorun.sh file directly works just fine
#!/bin/sh
sleep 120
sh /share/CACHEDEV1_DATA/.qpkg/PlexConnect/PlexConnect_daemon.bash start | sed "s/^/$(date) /" >> /share/CACHEDEV1_DATA/.qpkg/PlexConnect/Run.log
Am I missing something?
EDIT:
chmod +x wasn’t working I guess, because I fixed it through Cyberduck(SSH) by changing permissions to executable.
Now the problem I have is Qnap reports “The file system is not clean” unless I manually shutdown plexconnect daemon prior to shutdown. Is there anyway to tell Qnap to shutdown plexconnect during shutdown?
EDIT 2:
Fixed, updated autorun to listen to Positional Parameters
#!/bin/sh
if [ "$1" != "" ]; then
echo "$1" | sed "s/^/$(date) /" >> /share/CACHEDEV1_DATA/.qpkg/PlexConnect/Run.log
else
echo "Positional parameter 1 is empty" | sed "s/^/$(date) /" >> /share/CACHEDEV1_DATA/.qpkg/PlexConnect/Run.log
fi
sh /share/CACHEDEV1_DATA/.qpkg/PlexConnect/PlexConnect_daemon.bash $1 | sed "s/^/$(date) /" >> /share/CACHEDEV1_DATA/.qpkg/PlexConnect/Run.log
Having moved from a Synology ARM NAS to a QNAP Intel NAS I faced several challenges. One of them was “how to install PlexConnect”. In the absence of an installer (similar to what I had on Synology) I’ve installed PlexConnect using the following steps:
Create a PlexConnect shared folder, download PlexConnect from git and modify PlexConnect_daemon.bash to use QPython2 (line 21 now reads PYTHON="/opt/QPython2/bin/python")
Create two folders “certificates” and “logs” (not really necessary but I like to have separate folders for that)
In order to free port 443 - Disable “Enable secure connection (HTTPS)”
In order to free port 80 - Enable Web Server on port 81 (I hope that using port 80 for PlexConnect does not prevents me using Let’s Encrypt certificates, I’ll think about that later, anyhow I can stop PlexConnect and renew the certificates manually, so this is not a problem)
Copied my certs from the Syno to QNAP (but I could have generated new ones using PlexConnect’s documentation)
Create a Settings.cfg file
[PlexConnect]
enable_plexgdm = False <=== you can use True if you prefer
ip_pms = 10.100.10.100
port_pms = 32400
enable_dnsserver = True
port_dnsserver = 53
ip_dnsmaster = 10.100.10.1
prevent_atv_update = True
enable_plexconnect_autodetect = True
ip_plexconnect = 0.0.0.0
hosttointercept = video-api-secure.wsj.com <=== to intercept WSJ Video instead of trailers
port_webserver = 80
enable_webserver_ssl = True
port_ssl = 443
certfile = /share/PlexConnect/certificates/marketwatch.pem
allow_gzip_atv = False
allow_gzip_pmslocal = False
allow_gzip_pmsremote = True
loglevel = Normal
logpath = /share/PlexConnect/logs