May 16, 201412 yr Hello, Just a quick tutorial if you plan on upgrading from an older plugin for Plex to the plugin I've posted. If you are installing the plex plugin for the first time on unraid and never had plex on it before, this entire process is not necessary. Differences from old plugin and new plugin: In the old plugin, the LIBRARY directory would be whatever you set it to, lets say: /your/library/path The old plugin would append "Application Support" to that path and after that Plex would create its directory "Plex Media Server" so if you were to browse your library path on your disk you would find it goes: /your/library/path/Application Support/Plex Media Server My plugin does not add that unnecessary subdirectory of "Application Support" and if you entered /your/library/path as the Library path in my plugin the full path would look like this on your disk: /your/library/path/Plex Media Server To Upgrade Ok to upgrade you want to do 2 things. Delete the old plugin settings folder, and remove the "Application Support" from the old Library directory, so the new plugin loads your current database. First things first. Go into the old plugin and stop plex! Typically you can run the following commands from the Unraid console or putty: 1. Delete the old plugin's settings folder, run: rm -r /boot/config/plugins/plexmediaserver 2. Next we want to move the plex Library data out of that Application Support sub directory. *remember* to replace both "/your/library/path" parts in this line below with the 'library directory' setting that you had set in the old plugin mv /your/library/path/Application\ Support/* /your/library/path/ 3. Delete the now empty Application Support directory. This line will fail if your directory still has files in it for some reason, meaning that the last line of code to mvoe the directory didn't work. You'll know if this line gives you an error that says "directory is not empty" rmdir /your/library/path/Application\ Support 4. place my plugin in your /boot/config/plugins directory so it will install on the next reboot 5. reboot 6. After reboot, go into the GUI for the new plugin on unraid settings page and enter your directories back in for Library and Transcode (formerly called temp directory in the old plugin). It is safe to leave the install directory to the default one, as each reboot this will just reinstall from the DEB file it stored on your USB stick. The application does not need to be persistent, only the library folder requires that to keep your database and settings after a reboot. Notes: I would suggest removing the old plexmediaserver-xxxx.txz file from your USB/extras folder if you have it there. You don't want the old one to install along side mine, because there can be only one! Also to note, the first time you run my plugin it will download the PLEX .deb file (which is the plex application and quite large) and that can take a few minutes so it may look like the web page is just hanging but its not. It will save this onto your USB/packages folder so that the next time you reboot or start plex it won't need to re-download plex again (unless a new version is out of course). The plex plugin GUI may take 5-10 seconds to load as you might have also noticed, this is because when you open the GUI page it is checking for the latest version of Plex online, and it all depends on their web servers response times. I know these few steps above may seem complicated for some of you, so I wanted to lay it out as simple as possible for those that do not know linux too well. Please ask on this thread if you have any questions about migrating from one plugin to the other.
May 16, 201412 yr sorry i went back to frankenplex waiting for chown and DU is not on my favorite pastimes list opening the page when storage size is enabled takes 15 minutes at least for DU to finish starting or stopping plex from the page seems to invoke chown on the complete data folder again which takes like 30 minutes at least it also crashed twice i think due to some compatibility issue with crashplan? not sure though May 16 16:43:25 R2D2 sudo: root : TTY=unknown ; PWD=/ ; USER=unraid-plex ; COMMAND=/bin/bash -c . /boot/config/plugins/plexmediaserver/startcfg.sh; /usr/local/plexmediaserver/"Plex Media Server" --version May 16 16:43:25 R2D2 kernel: Plex Media Serv[7384]: segfault at fffffffffffffff8 ip 00007fe8248b781b sp 00007fffc145f190 error 5 in libstdc++.so.6.0.18[7fe8247fe000+e4000] (Errors) waiting for updates from other people to see if they have same issues?
May 16, 201412 yr Author I'll look into the chown of the data folder and add a conditional statement to only do it if the runas user is different. Plex is picky when it comes to folder permissions. As for the DU, that really shouldn't take long (normally a second or two) but it can be turned off on the plugin GUI.
May 17, 201412 yr attempted this on unRAID 5.0.5 this morning and it will not start. My original plex installation was /mnt/cache/apps/Plex My original temp was /mnt/cache/apps/Plex/Temp so.... this is what i did: 1. Deleted the old plugin's settings folder 2. Moved the plex Library data out of that Application Support sub directory 3. Deleted the now empty Application Support directory 4. Deleted the .txz file 5. Rebooted with new plugin 6. Set it up as per the screen shot Anything obviously wrong? Version also doesn't work and on my unRAID console i get the following error:
May 17, 201412 yr well i installed it now again on both of my servers now that chown was repaired but i have like Ockingshay also these segfaults in my logs movieserver May 17 15:13:27 P8H67 sudo: root : TTY=unknown ; PWD=/usr/local/emhttp ; USER=nobody ; COMMAND=/bin/bash -c . /boot/config/plugins/plexmediaserver/startcfg.sh; /usr/local/plexmediaserver/"Plex Media Server" --version May 17 15:13:27 P8H67 kernel: Plex Media Serv[28960]: segfault at fffffffffffffff8 ip 00007f5fb68c881b sp 00007fffbd002d10 error 5 in libstdc++.so.6.0.18[7f5fb680f000+e4000] (Errors) May 17 15:14:28 P8H67 sudo: root : TTY=unknown ; PWD=/ ; USER=unraid-plex ; COMMAND=/bin/bash -c . /boot/config/plugins/plexmediaserver/startcfg.sh; /usr/local/plexmediaserver/"Plex Media Server" --version May 17 15:14:28 P8H67 kernel: Plex Media Serv[29142]: segfault at fffffffffffffff8 ip 00007f6ec107481b sp 00007fff66baf310 error 5 in libstdc++.so.6.0.18[7f6ec0fbb000+e4000] (Errors) tvserver May 17 14:17:03 R2D2 sudo: root : TTY=unknown ; PWD=/usr/local/emhttp ; USER=nobody ; COMMAND=/bin/bash -c . /boot/config/plugins/plexmediaserver/startcfg.sh; /usr/local/plexmediaserver/"Plex Media Server" --version May 17 14:17:03 R2D2 kernel: Plex Media Serv[15808]: segfault at fffffffffffffff8 ip 00007f1061aae81b sp 00007fffb0c92f70 error 5 in libstdc++.so.6.0.18[7f10619f5000+e4000] (Errors) May 17 14:18:16 R2D2 sudo: root : TTY=unknown ; PWD=/ ; USER=unraid-plex ; COMMAND=/bin/bash -c . /boot/config/plugins/plexmediaserver/startcfg.sh; /usr/local/plexmediaserver/"Plex Media Server" --version May 17 14:18:16 R2D2 kernel: Plex Media Serv[15987]: segfault at fffffffffffffff8 ip 00007f23bcbb581b sp 00007fff96901710 error 5 in libstdc++.so.6.0.18[7f23bcafc000+e4000] (Errors) May 17 14:18:54 R2D2 sudo: root : TTY=unknown ; PWD=/usr/local/emhttp ; USER=unraid-plex ; COMMAND=/bin/bash -c . /boot/config/plugins/plexmediaserver/startcfg.sh; /usr/local/plexmediaserver/"Plex Media Server" --version and i need to put storage size off as i tried again and it takes 30 minutes+ to get that size with DU :'( but ok i can live with that just curious about the segfaults
May 17, 201412 yr yeah DU is a killer, my plex is 83.62GB, so also have this turned off. Just copying over the last of the backup (1hr), so i can try out a few things. Righto....so i got it running from a clean install Why does the plugin download the .deb file and not the official .txz file on the pled website? Library directory is now the replacement for influencer's data directory....so if you previously had it installed to say /mnt/cache/apps/Plex, this is what you will put in this box. BUT as per the instructions one will need to remove the redundant "application support" directory first. OR in fact rename it to Library and then can have Install, Library and Temp at the same level within the Plex folder. Temp is whatever you want. syslog error is same as sacretagent: May 17 09:58:50 Ruby sudo: root : TTY=console ; PWD=/usr/local/emhttp ; USER=nobody ; COMMAND=/bin/bash -c . /boot/config/plugins/plexmediaserver/startcfg.sh; /mnt/cache/apps/Plex/Install/"Plex Media Server" --version May 17 09:58:50 Ruby kernel: Plex Media Serv[1387]: segfault at fffffffc ip b59a69ca sp bffde100 error 5 in libstdc++.so.6.0.13[b5913000+e4000] Also baring in mind that my plex data library is several years old and has been upgraded through countless PMS revisions something must be slightly different to what this new plugin is expecting. On the other plugins if i create a new install directory and allow that plugin to download the latest version it fixed the "couldn't find version" issue. But with this plugin when i do this it still produces the error. I created an install directory called /mnt/cache/apps/Plex/install.
May 17, 201412 yr Author well i installed it now again on both of my servers now that chown was repaired but i have like Ockingshay also these segfaults in my logs movieserver May 17 15:13:27 P8H67 sudo: root : TTY=unknown ; PWD=/usr/local/emhttp ; USER=nobody ; COMMAND=/bin/bash -c . /boot/config/plugins/plexmediaserver/startcfg.sh; /usr/local/plexmediaserver/"Plex Media Server" --version May 17 15:13:27 P8H67 kernel: Plex Media Serv[28960]: segfault at fffffffffffffff8 ip 00007f5fb68c881b sp 00007fffbd002d10 error 5 in libstdc++.so.6.0.18[7f5fb680f000+e4000] (Errors) May 17 15:14:28 P8H67 sudo: root : TTY=unknown ; PWD=/ ; USER=unraid-plex ; COMMAND=/bin/bash -c . /boot/config/plugins/plexmediaserver/startcfg.sh; /usr/local/plexmediaserver/"Plex Media Server" --version May 17 15:14:28 P8H67 kernel: Plex Media Serv[29142]: segfault at fffffffffffffff8 ip 00007f6ec107481b sp 00007fff66baf310 error 5 in libstdc++.so.6.0.18[7f6ec0fbb000+e4000] (Errors) tvserver May 17 14:17:03 R2D2 sudo: root : TTY=unknown ; PWD=/usr/local/emhttp ; USER=nobody ; COMMAND=/bin/bash -c . /boot/config/plugins/plexmediaserver/startcfg.sh; /usr/local/plexmediaserver/"Plex Media Server" --version May 17 14:17:03 R2D2 kernel: Plex Media Serv[15808]: segfault at fffffffffffffff8 ip 00007f1061aae81b sp 00007fffb0c92f70 error 5 in libstdc++.so.6.0.18[7f10619f5000+e4000] (Errors) May 17 14:18:16 R2D2 sudo: root : TTY=unknown ; PWD=/ ; USER=unraid-plex ; COMMAND=/bin/bash -c . /boot/config/plugins/plexmediaserver/startcfg.sh; /usr/local/plexmediaserver/"Plex Media Server" --version May 17 14:18:16 R2D2 kernel: Plex Media Serv[15987]: segfault at fffffffffffffff8 ip 00007f23bcbb581b sp 00007fff96901710 error 5 in libstdc++.so.6.0.18[7f23bcafc000+e4000] (Errors) May 17 14:18:54 R2D2 sudo: root : TTY=unknown ; PWD=/usr/local/emhttp ; USER=unraid-plex ; COMMAND=/bin/bash -c . /boot/config/plugins/plexmediaserver/startcfg.sh; /usr/local/plexmediaserver/"Plex Media Server" --version and i need to put storage size off as i tried again and it takes 30 minutes+ to get that size with DU :'( but ok i can live with that just curious about the segfaults segfault is there after install because I run a version check and if Plex doesn't have a valid config file it will throw a segfault then create that file. After it is created my plugin modifies the settings with the directory for transcode. Add long as you only see one per install/reboot that is expected.
May 17, 201412 yr Author yeah DU is a killer, my plex is 83.62GB, so also have this turned off. Just copying over the last of the backup (1hr), so i can try out a few things. Righto....so i got it running from a clean install Why does the plugin download the .deb file and not the official .txz file on the pled website? Library directory is now the replacement for influencer's data directory....so if you previously had it installed to say /mnt/cache/apps/Plex, this is what you will put in this box. BUT as per the instructions one will need to remove the redundant "application support" directory first. OR in fact rename it to Library and then can have Install, Library and Temp at the same level within the Plex folder. Temp is whatever you want. syslog error is same as sacretagent: May 17 09:58:50 Ruby sudo: root : TTY=console ; PWD=/usr/local/emhttp ; USER=nobody ; COMMAND=/bin/bash -c . /boot/config/plugins/plexmediaserver/startcfg.sh; /mnt/cache/apps/Plex/Install/"Plex Media Server" --version May 17 09:58:50 Ruby kernel: Plex Media Serv[1387]: segfault at fffffffc ip b59a69ca sp bffde100 error 5 in libstdc++.so.6.0.13[b5913000+e4000] Also baring in mind that my plex data library is several years old and has been upgraded through countless PMS revisions something must be slightly different to what this new plugin is expecting. On the other plugins if i create a new install directory and allow that plugin to download the latest version it fixed the "couldn't find version" issue. But with this plugin when i do this it still produces the error. I created an install directory called /mnt/cache/apps/Plex/install. Inside the txz are the same exact files as in the deb when it comes to the application, however with the deb there is a 64 bit version so I went with that. I extract only the application and run a version check which throws a segfault and forces Plex to create the conduit file which contains a PC "hash" identifier and that is unique to each computer. That only occurs right after install and gets it or of the way so when the GUI for the plugin loads everything should be ready to go.
July 6, 201411 yr I've gotten this up and running and things seem to work alright for about 5 mins then whatever content is playing freezes, and plex web app no longer can find the plex server... unless i do a restart and then again 5 minutes later another freeze... I'd love to use this as it seems like the way to go in upgrading to unraid 6 but it's not usable this way... any thoughts as to something I've missed.
July 6, 201411 yr Author I've gotten this up and running and things seem to work alright for about 5 mins then whatever content is playing freezes, and plex web app no longer can find the plex server... unless i do a restart and then again 5 minutes later another freeze... I'd love to use this as it seems like the way to go in upgrading to unraid 6 but it's not usable this way... any thoughts as to something I've missed. I'm runnign this on unraid 6 without any problems. Where do you have your temp directory set to?
July 6, 201411 yr Sorry that was confusing i did get this set up on 6 and it seemed to work fine, but I'm not entirely ready to switch over to V6 yet so I was trying to get this working with 5 to make the switch easier that's where the issue was occurring. The attached jpg shows the settings I have, tho i was reading up on some of the other threads and I do have unMenu installed was going through possible conflicting packages you listed but none of those are installed... I do get this error... Jul 6 00:15:40 tower kernel: Plex Media Serv[27481]: segfault at fffffffc ip b5a2cf5a sp bf846f20 error 5 in libstdc++.so.6.0.14[b59a0000+dd000] (Errors) which is a package installed in unmenu tho being a bit of noob i'm not sure i this is something i can turn off.
July 6, 201411 yr Author Settings look ok to me. If you have any other issues, try setting the RUNAS user to 'nobody' and hit apply. That will reset all the permissions on your database though and amy take a few minutes to complete. No need to run as 'plex-user' with my plugin, I think that was a limitation from the old plugin. Don't worry about the segfault, when the program installs, none of the config files exist so I force it to do a version check on itself knowing that it will segfault. By doing that, the config files are created when it segfaults and then it doesn't occur again. For some reason, plex devs haven't made the program smart enough to realize config files are missing and to just create them and continue loading, and instead throws that segfault on the very first launch of the app after a fresh install (only on linux).
July 6, 201411 yr Hmmm I did actually try those setting under both nobody, root and unraid-plex, to the same result (this is unraid v5). After I hit apply the webgui would say plex was running I'd check it in the plex web app to see the server listed, then start watching something via my plex desktop app and 2 to 5 mins the show would freeze. I'd check the web app the server would no longer be recognized and in Unraid console would still say everything was running fine... I've switched back to the old txz file (my family gets upset with the server down too long). I did get it working in unraid 6 no issues so it must be a conflict with my v5 setup. Thanks for you help and hardwork on this I did notice a speed increase and am looking forward to using the plugin when I do work out all the issues with a V6 upgrade! Update: I found an issue with one of the files i was trying to play once i fixed that everything worked great! Thanks for the great plugin!
August 3, 201411 yr Thanks for making this. I had some minor issue getting it to run the first time. not sure why, but I just switched the user to root and it seemed to fix this issue. Runs well now. I appreciate not having to manually create the 64bit version of plex. Thanks again!
August 9, 201411 yr I am having issues trying to get Plex to start fine with the plugin. I have tried the following: 1. Standard user vs my Plex Pass Account ---No difference, wont start 2. Changing the run-as user ---No difference, wont start 3. Renamed tmp/library directories to start fresh on reboot ---Loads fine, once switch back, fails to start error: Aug 8 23:48:01 Hades sudo: root : TTY=console ; PWD=/usr/local/emhttp ; USER=nobody ; COMMAND=/bin/bash -c . /boot/config/plugins/plexmediaserver/startcfg.sh; /usr/local/plexmediaserver/"Plex Media Server" --version Aug 8 23:48:01 Hades kernel: Plex Media Serv[18788]: segfault at fffffffc ip b55249ca sp bff19820 error 5 in libstdc++.so.6.0.13[b5491000+e4000] Any thoughts or more info I need would be appreciated, I really don't want to start fresh and the influencer plugin was handling the library fine, so I assume its not that. Also, other plugins I am running if it helps: Couchpotato - Phaze SAB - Phaze SickBeard - Phaze SimpleFeatures PlexConnect unMenu
August 9, 201411 yr Author I am having issues trying to get Plex to start fine with the plugin. I have tried the following: 1. Standard user vs my Plex Pass Account ---No difference, wont start 2. Changing the run-as user ---No difference, wont start 3. Renamed tmp/library directories to start fresh on reboot ---Loads fine, once switch back, fails to start error: Aug 8 23:48:01 Hades sudo: root : TTY=console ; PWD=/usr/local/emhttp ; USER=nobody ; COMMAND=/bin/bash -c . /boot/config/plugins/plexmediaserver/startcfg.sh; /usr/local/plexmediaserver/"Plex Media Server" --version Aug 8 23:48:01 Hades kernel: Plex Media Serv[18788]: segfault at fffffffc ip b55249ca sp bff19820 error 5 in libstdc++.so.6.0.13[b5491000+e4000] Any thoughts or more info I need would be appreciated, I really don't want to start fresh and the influencer plugin was handling the library fine, so I assume its not that. Also, other plugins I am running if it helps: Couchpotato - Phaze SAB - Phaze SickBeard - Phaze SimpleFeatures PlexConnect unMenu Since option 3 worked, you have a corrupted database file in your library. The only way around this is to do option 3 again and rescan for you shows and movies. This week rebuild he database from scratch.
August 10, 201411 yr when i switch over to the other plugin it works fine though, which is what is weird to me. No other thoughts?
August 10, 201411 yr Author when i switch over to the other plugin it works fine though, which is what is weird to me. No other thoughts? did you remove that folder mentioned in post 1 of this thread? The other plugin gas an extra folder in the library that was unneeded.
August 13, 201411 yr when i switch over to the other plugin it works fine though, which is what is weird to me. No other thoughts? did you remove that folder mentioned in post 1 of this thread? The other plugin gas an extra folder in the library that was unneeded. I had, its all good, I bit the bullet and wiped my database. New question, and it might be plex or maybe not, not sure but most server settings under plex I can not save. I just get "Your changes could not be saved." This was working on 9.9.13 under influencer, which is why I dont know if its plex or possibly the plugin (since switching to your's I have been on 9.9.14 and now 9.9.15. Anyone else experience this? Settings do save under Web, just not sErver.
August 14, 201411 yr Author when i switch over to the other plugin it works fine though, which is what is weird to me. No other thoughts? did you remove that folder mentioned in post 1 of this thread? The other plugin gas an extra folder in the library that was unneeded. I had, its all good, I bit the bullet and wiped my database. New question, and it might be plex or maybe not, not sure but most server settings under plex I can not save. I just get "Your changes could not be saved." This was working on 9.9.13 under influencer, which is why I dont know if its plex or possibly the plugin (since switching to your's I have been on 9.9.14 and now 9.9.15. Anyone else experience this? Settings do save under Web, just not sErver. Hmm, I haven't come across that problem. Try this: In the plugin settings change enable to no Then change run as user to root and hit a apply After a few seconds (or minutes if you have a large database) it will complete, change it back to nobody and hit apply When that complete, start it up again and check
August 15, 201411 yr Hmm, I haven't come across that problem. Try this: In the plugin settings change enable to no Then change run as user to root and hit a apply After a few seconds (or minutes if you have a large database) it will complete, change it back to nobody and hit apply When that complete, start it up again and check no go on that try.
August 15, 201411 yr i have a similar issue. plex will start with version 0.9.9.12. but not with versions 0.9.9.13 and 0.9.9.14. i just changed from the old plugin to yours because i had the same issue with that one. must be something wrong with the last two plex releases.
August 15, 201411 yr Author i have a similar issue. plex will start with version 0.9.9.12. but not with versions 0.9.9.13 and 0.9.9.14. i just changed from the old plugin to yours because i had the same issue with that one. must be something wrong with the last two plex releases. I'm not sure about that since I had .14 running fine and just now upgraded to .15 and it started fine. I suspect it's an issue coming from the old plugin to mine. Have you been able to see any logs in the Plex config folder that are showing startup errors?
August 15, 201411 yr i've searched the log files but cant find anything. its strange because if i put the .12 file or earlier in, reboot, it starts fine. if i try to put the .13 or .14 file in and reboot it wont start.
Archived
This topic is now archived and is closed to further replies.