*New 12.1 series Release:
2019-11-08: XigmaNAS 12.1.0.4.7091 - released!

*New 11.3 series Release:
2019-10-19: XigmaNAS 11.3.0.4.7014 - released


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

[EXTENSION] Plex Media Server

XigmaNAS Extensions / Add-ons

Moderator: crest

Forum rules
Set-Up GuideFAQsForum Rules
uecasm
NewUser
NewUser
Posts: 6
Joined: 18 Aug 2019 07:25
Status: Offline

Re: [EXTENSION] Plex Media Server

#751

Post by uecasm » 26 Oct 2019 11:05

uecasm wrote:
18 Aug 2019 07:46
I also recently updated the Plex extension to 4.3.007 in nas4free 10.2 and it stopped working.
In ssh, plexinit -s reported success but the status in gui stayed stopped.

Upgraded to XigmaNAS 11.2, still wouldn't start.
Updated Plex again, this time it upgraded from plex server 1.12 to 1.16, still wouldn't start.
Dropped to ssh and ran plexinit -s and it gave a permissions error.
Re-ran it as root and this time it started and is running ok now.

But: in the extension web gui only the Save button is enabled; the start/stop buttons are all disabled, which seems a bit weird. But otherwise it seems to be working ok now.
I'm still experiencing this issue (it's running 1.18 now). When the NAS reboots, Plex doesn't start automatically (despite it being enabled in rc.conf). When I go to the extension page, it shows STOPPED and only the Save button is enabled, but it does have the correct path to Plex.

If I open ssh and run plexinit -s then it does start the server and the extension page does update to say that it's running and shows the PID, but the start/stop buttons are still disabled.

I even tried running plexinit -x; plexinit, or using the gui uninstall/install buttons to reinstall; no change. (It's evidently remembering something across the reinstall though because it kept the same path without prompting.)

Any ideas?

User avatar
JoseMR
Hardware & Software Guru
Hardware & Software Guru
Posts: 1220
Joined: 16 Apr 2014 04:15
Location: PR
Contact:
Status: Offline

Re: [EXTENSION] Plex Media Server

#752

Post by JoseMR » 26 Oct 2019 17:52

uecasm wrote:
26 Oct 2019 11:05
uecasm wrote:
18 Aug 2019 07:46
I also recently updated the Plex extension to 4.3.007 in nas4free 10.2 and it stopped working.
In ssh, plexinit -s reported success but the status in gui stayed stopped.

Upgraded to XigmaNAS 11.2, still wouldn't start.
Updated Plex again, this time it upgraded from plex server 1.12 to 1.16, still wouldn't start.
Dropped to ssh and ran plexinit -s and it gave a permissions error.
Re-ran it as root and this time it started and is running ok now.

But: in the extension web gui only the Save button is enabled; the start/stop buttons are all disabled, which seems a bit weird. But otherwise it seems to be working ok now.
I'm still experiencing this issue (it's running 1.18 now). When the NAS reboots, Plex doesn't start automatically (despite it being enabled in rc.conf). When I go to the extension page, it shows STOPPED and only the Save button is enabled, but it does have the correct path to Plex.

If I open ssh and run plexinit -s then it does start the server and the extension page does update to say that it's running and shows the PID, but the start/stop buttons are still disabled.

I even tried running plexinit -x; plexinit, or using the gui uninstall/install buttons to reinstall; no change. (It's evidently remembering something across the reinstall though because it kept the same path without prompting.)

Any ideas?
Hello, is Plex Extension installed in a permanent data location, i.e. on a ZFS or UFS data share located on either an HDD or SSD, and not placed in a slow USB stick?, does the installation path has sane permissions i.e. ~755?.

Between, I will have a look into this and will try to reproduce on both the latest XigmaNAS 11.2 and 12.x.

Regards
System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)

uecasm
NewUser
NewUser
Posts: 6
Joined: 18 Aug 2019 07:25
Status: Offline

Re: [EXTENSION] Plex Media Server

#753

Post by uecasm » 26 Oct 2019 21:28

JoseMR wrote:
26 Oct 2019 17:52
Hello, is Plex Extension installed in a permanent data location, i.e. on a ZFS or UFS data share located on either an HDD or SSD, and not placed in a slow USB stick?, does the installation path has sane permissions i.e. ~755?.
It's an Embedded install running from a HDD, yes. I'm not sure exactly where the extension itself is installed, but the Plex instance is installed in a (I think) non-ZFS share on the same HDD. (The actual video files are in a ZFS share on a separate HDD.)

Not sure about permissions off the top of my head (it's actually installed at someone else's house, so I only have access to it periodically) but it's able to install and upgrade ok other than this GUI/autostart issue so I don't think that's the problem.


Another slightly odd thing is that the OneButtonInstaller page complains that it can't contact github.com, but it was still able to update its package list and reinstall Plex ok. It's possible that I have an out-of-date version of that, if it doesn't auto-update.

uecasm
NewUser
NewUser
Posts: 6
Joined: 18 Aug 2019 07:25
Status: Offline

Re: [EXTENSION] Plex Media Server

#754

Post by uecasm » 26 Oct 2019 21:54

I think maybe this line is the problem:

https://github.com/JRGTH/nas4free-plex- ... i.php#L223

I don't remember seeing this checkbox actually appear (though it does display the installation path). And if I'm reading the rest of the code correctly, it will disable the buttons if that checkbox isn't ticked.

uecasm
NewUser
NewUser
Posts: 6
Joined: 18 Aug 2019 07:25
Status: Offline

Re: [EXTENSION] Plex Media Server

#755

Post by uecasm » 27 Oct 2019 08:05

uecasm wrote:
26 Oct 2019 21:54
I think maybe this line is the problem:

https://github.com/JRGTH/nas4free-plex- ... i.php#L223

I don't remember seeing this checkbox actually appear (though it does display the installation path). And if I'm reading the rest of the code correctly, it will disable the buttons if that checkbox isn't ticked.
Ok, apparently I'm just blind. The checkbox was there, in the top-right corner where nobody looks. Ticking that and hitting SAVE has enabled the buttons now. Haven't tried rebooting but I assume that was the issue with that too.

My apologies for the noise. (Though maybe you should move that to a normal row?)

User avatar
JoseMR
Hardware & Software Guru
Hardware & Software Guru
Posts: 1220
Joined: 16 Apr 2014 04:15
Location: PR
Contact:
Status: Offline

Re: [EXTENSION] Plex Media Server

#756

Post by JoseMR » 27 Oct 2019 09:36

uecasm wrote:
27 Oct 2019 08:05
uecasm wrote:
26 Oct 2019 21:54
I think maybe this line is the problem:

https://github.com/JRGTH/nas4free-plex- ... i.php#L223

I don't remember seeing this checkbox actually appear (though it does display the installation path). And if I'm reading the rest of the code correctly, it will disable the buttons if that checkbox isn't ticked.
Ok, apparently I'm just blind. The checkbox was there, in the top-right corner where nobody looks. Ticking that and hitting SAVE has enabled the buttons now. Haven't tried rebooting but I assume that was the issue with that too.

My apologies for the noise. (Though maybe you should move that to a normal row?)

Hello, thanks for report back that Plex Ext. is working for you, I quick tested but can't reproduced here on later releases.
As for the underlying extension code, it is a bit older compared to more recent XigmaNAS code standards but I plan to make an overall extension update soon.

Regards
System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)

User avatar
JoseMR
Hardware & Software Guru
Hardware & Software Guru
Posts: 1220
Joined: 16 Apr 2014 04:15
Location: PR
Contact:
Status: Offline

Re: [EXTENSION] Plex Media Server

#757

Post by JoseMR » 29 Oct 2019 09:04

uecasm wrote:
27 Oct 2019 08:05
uecasm wrote:
26 Oct 2019 21:54
I think maybe this line is the problem:

https://github.com/JRGTH/nas4free-plex- ... i.php#L223

I don't remember seeing this checkbox actually appear (though it does display the installation path). And if I'm reading the rest of the code correctly, it will disable the buttons if that checkbox isn't ticked.
Ok, apparently I'm just blind. The checkbox was there, in the top-right corner where nobody looks. Ticking that and hitting SAVE has enabled the buttons now. Haven't tried rebooting but I assume that was the issue with that too.

My apologies for the noise. (Though maybe you should move that to a normal row?)
I was able to reproduce this Enable box issue on XigmaNAS 12.1 :? , so I did fixed the checkbox issue on version 4.3.009 in the mean time.

Regards
System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)

commix
NewUser
NewUser
Posts: 1
Joined: 04 Nov 2019 12:22
Status: Offline

Re: [EXTENSION] Plex Media Server

#758

Post by commix » 04 Nov 2019 12:41

Hello. I'm still kind of hitting the aforementioned problem on Extension version 4.3.009 and XigmaNAS 12.0.0.4.6928. Plex starts up after a reboot, but on the extension page only the Save button is available, all others are greyed out. The "Enabled" checkbox is not checked and even after checking it and pressing Save, it refreshes the page and stays unchecked.

User avatar
lindsay
Forum Moderator
Forum Moderator
Posts: 308
Joined: 23 Jun 2012 09:59
Location: Steinkjer,Norway
Status: Offline

Re: [EXTENSION] Plex Media Server

#759

Post by lindsay » 04 Nov 2019 21:09

It is the same to mee too.
Thought it was only for me.
Protected by smoothiebox Red,Green,
Purple,Orange Zones/VLAN`s
Powered by AMD A10-6700T


XigmaNAS Box-1 11.2.0.4 - Omnius (revision 6625)
Platform : x64-embedded on 2X Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz
Motherboard: ASUS Z10PA-D8, 2xSocket-2011-3
SATA Controllers : 1X Avago Technologies (LSI) SAS2008 and 1x Avago Technologies (LSI) SAS2308
Pool 1 (Media-Pool) 8X4TB in raidz2
Pool 2 (Media-Pool-2) 4X2TB in raidz2 and 2X2TB in mirror mirror and 2X3TB in mirror
Pool 3 (Media-Pool-3) 2X2TB in mirror and 2X4TB in mirror and 2X1TB in mirror

User avatar
jerryone
Starter
Starter
Posts: 63
Joined: 22 Sep 2017 21:45
Location: Timisoara
Contact:
Status: Offline

Re: [EXTENSION] Plex Media Server

#760

Post by jerryone » 04 Nov 2019 21:14

Me to
Dell T610 Xeon x5650 x2 , 192 GB DELL ECC, HBA 9211-8i LSI x2 , 7xHGST-4TB, 2xSamsung 1TB, , 1xKingston 128GB-SSD boot sys
CIFS/SMB, Syncthing, DLNA/UPnP MiniDLNA, BitTorrent, Plex Media Server

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4978
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [EXTENSION] Plex Media Server

#761

Post by raulfg3 » 04 Nov 2019 21:27

same here

some screen capture to see:
1.jpg
You do not have the required permissions to view the files attached to this post.
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

User avatar
JoseMR
Hardware & Software Guru
Hardware & Software Guru
Posts: 1220
Joined: 16 Apr 2014 04:15
Location: PR
Contact:
Status: Offline

Re: [EXTENSION] Plex Media Server

#762

Post by JoseMR » 05 Nov 2019 02:01

raulfg3 wrote:
04 Nov 2019 21:27
same here

some screen capture to see:
1.jpg

I will work and fix this bug today with latest FireFox and Chrome browsers, sorry inconvenience. :oops:

Regards
System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)

User avatar
JoseMR
Hardware & Software Guru
Hardware & Software Guru
Posts: 1220
Joined: 16 Apr 2014 04:15
Location: PR
Contact:
Status: Offline

Re: [EXTENSION] Plex Media Server

#763

Post by JoseMR » 05 Nov 2019 03:14

The enable checkbox, change and persistence has been fixed as for version 4.3.010, please hit Upgrade button under maintenance tab.

Feedback would be appreciated if fixed for you, I've tested under XigmaNAS 12.1(RC2) and Firefox v70.0 x64.

Regards
System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)

Shperrung
experienced User
experienced User
Posts: 107
Joined: 04 Apr 2018 16:29
Status: Offline

Re: [EXTENSION] Plex Media Server

#764

Post by Shperrung » 05 Nov 2019 06:12

Hi JoseMR
Thank you for this fix. All works fine on my 12ROZ.
After upgrade it's needed to reset/clear site's settings.
11.2.0.4 - Omnius (revision 6177) embedded -> XigmaNAS 12.0.0.4.6928 RootOnZFS
ASRock J3710-ITX, LAN: Winyao 2 ports; 16Gb RAM; WD 1Tbx2, WD 2Tb; UPS Powercom WOW500U.

User avatar
JoseMR
Hardware & Software Guru
Hardware & Software Guru
Posts: 1220
Joined: 16 Apr 2014 04:15
Location: PR
Contact:
Status: Offline

Re: [EXTENSION] Plex Media Server

#765

Post by JoseMR » 05 Nov 2019 14:41

Shperrung wrote:
05 Nov 2019 06:12
Hi JoseMR
Thank you for this fix. All works fine on my 12ROZ.
After upgrade it's needed to reset/clear site's settings.

Thanks Shperrung for confirm working, also yeah it may need a browser cache cleanup too.

Regards
System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4978
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [EXTENSION] Plex Media Server

#766

Post by raulfg3 » 05 Nov 2019 15:13

solved, I confirm the same on my signature NAS
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

User avatar
JoseMR
Hardware & Software Guru
Hardware & Software Guru
Posts: 1220
Joined: 16 Apr 2014 04:15
Location: PR
Contact:
Status: Offline

Re: [EXTENSION] Plex Media Server

#767

Post by JoseMR » 05 Nov 2019 15:41

raulfg3 wrote:
05 Nov 2019 15:13
solved, I confirm the same on my signature NAS

That's great raul. thank you.

I'll my check my others add-ons to make sure the checkbox working too and update if needed.

Regards
System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)

User avatar
jerryone
Starter
Starter
Posts: 63
Joined: 22 Sep 2017 21:45
Location: Timisoara
Contact:
Status: Offline

Re: [EXTENSION] Plex Media Server

#768

Post by jerryone » 05 Nov 2019 21:37

Thanks @JoseMr extension now is working at full capacity! 😉😜
Dell T610 Xeon x5650 x2 , 192 GB DELL ECC, HBA 9211-8i LSI x2 , 7xHGST-4TB, 2xSamsung 1TB, , 1xKingston 128GB-SSD boot sys
CIFS/SMB, Syncthing, DLNA/UPnP MiniDLNA, BitTorrent, Plex Media Server

User avatar
JoseMR
Hardware & Software Guru
Hardware & Software Guru
Posts: 1220
Joined: 16 Apr 2014 04:15
Location: PR
Contact:
Status: Offline

Re: [EXTENSION] Plex Media Server

#769

Post by JoseMR » 06 Nov 2019 03:47

jerryone wrote:
05 Nov 2019 21:37
Thanks @JoseMr extension now is working at full capacity! 😉😜
That's great thanks for confirming. 8-)

Regards
System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)

User avatar
jerryone
Starter
Starter
Posts: 63
Joined: 22 Sep 2017 21:45
Location: Timisoara
Contact:
Status: Offline

Re: [EXTENSION] Plex Media Server

#770

Post by jerryone » 06 Nov 2019 14:15

@joseMr Hi,

I am experience a bug again on another XigmaNas Server with latest update of Plex. after a hard reset to server i can no longer start Plex service. i have re-check config, flush cache, restart server normaly, fsck drive nothing! See some screen. Many thanks

PS. On my main server i didn't try to reproduce the error, because i don't want to lose both connection. any help much appreciated. on first bug with missing buttons i can tell that PLEX is initiated after restart and hard reset.Thank you!
You do not have the required permissions to view the files attached to this post.
Dell T610 Xeon x5650 x2 , 192 GB DELL ECC, HBA 9211-8i LSI x2 , 7xHGST-4TB, 2xSamsung 1TB, , 1xKingston 128GB-SSD boot sys
CIFS/SMB, Syncthing, DLNA/UPnP MiniDLNA, BitTorrent, Plex Media Server

User avatar
JoseMR
Hardware & Software Guru
Hardware & Software Guru
Posts: 1220
Joined: 16 Apr 2014 04:15
Location: PR
Contact:
Status: Offline

Re: [EXTENSION] Plex Media Server

#771

Post by JoseMR » 06 Nov 2019 15:32

jerryone wrote:
06 Nov 2019 14:15
@joseMr Hi,

I am experience a bug again on another XigmaNas Server with latest update of Plex. after a hard reset to server i can no longer start Plex service. i have re-check config, flush cache, restart server normaly, fsck drive nothing! See some screen. Many thanks

PS. On my main server i didn't try to reproduce the error, because i don't want to lose both connection. any help much appreciated. on first bug with missing buttons i can tell that PLEX is initiated after restart and hard reset.Thank you!
Hi, can you try start the Plex service from CLI by executing "plexinit -s" and write down any error encountered.

After such hard reset, the Extension script need to re-link the Plex environment again and should start automatically, however if the paths has been changed then the PostInit command also need to be updated under Advanced > Command scripts.

P.S. Another thing may be that that after the reset if the OS major version has lowered, the older Plex program may need to be deleted and let the extension fetch latest files available for that version, but be aware that "plexdata" can be left untouched. if after that still don't work, the plex "preferences.xml" file may need to be renamed to "preferences.xml.old" and set again the initial per-configuration of the server.

Regards
System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)

User avatar
jerryone
Starter
Starter
Posts: 63
Joined: 22 Sep 2017 21:45
Location: Timisoara
Contact:
Status: Offline

Re: [EXTENSION] Plex Media Server

#772

Post by jerryone » 06 Nov 2019 22:04

Hi joseMr,
no error appear after i have run "plexinit -s" command. But i have resolved my problem with an uninstall of Plex and reinstall complet the app. So right now the app is working. i also look into Command script and also all the config was there. maybe somewhere something didn't work. But my problem right now is solved! Thanks for your help. Have a great evening!
Dell T610 Xeon x5650 x2 , 192 GB DELL ECC, HBA 9211-8i LSI x2 , 7xHGST-4TB, 2xSamsung 1TB, , 1xKingston 128GB-SSD boot sys
CIFS/SMB, Syncthing, DLNA/UPnP MiniDLNA, BitTorrent, Plex Media Server

User avatar
JoseMR
Hardware & Software Guru
Hardware & Software Guru
Posts: 1220
Joined: 16 Apr 2014 04:15
Location: PR
Contact:
Status: Offline

Re: [EXTENSION] Plex Media Server

#773

Post by JoseMR » 07 Nov 2019 01:00

jerryone wrote:
06 Nov 2019 22:04
Hi joseMr,
no error appear after i have run "plexinit -s" command. But i have resolved my problem with an uninstall of Plex and reinstall complet the app. So right now the app is working. i also look into Command script and also all the config was there. maybe somewhere something didn't work. But my problem right now is solved! Thanks for your help. Have a great evening!

Hi, jerryone, thanks for post back that you resolved the issue, it may help further users experiencing this same Plex issue.

Regards
System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)

funpolice652
NewUser
NewUser
Posts: 6
Joined: 19 Nov 2019 22:26
Status: Offline

Re: [EXTENSION] Plex Media Server

#774

Post by funpolice652 » 19 Nov 2019 22:31

Hi. I went to use plex today and it said my server was unreachable. I checked my server and it said it was active so I rebooted to make sure and now plex is not listed in extensions. just onebuttoninstaller. in onebuttoninstaller it has a green checkmark beside plex. I don't know what to do. please help. I'm running Nas4free 10.3.0.3
thanks

User avatar
JoseMR
Hardware & Software Guru
Hardware & Software Guru
Posts: 1220
Joined: 16 Apr 2014 04:15
Location: PR
Contact:
Status: Offline

Re: [EXTENSION] Plex Media Server

#775

Post by JoseMR » 20 Nov 2019 06:26

funpolice652 wrote:
19 Nov 2019 22:31
Hi. I went to use plex today and it said my server was unreachable. I checked my server and it said it was active so I rebooted to make sure and now plex is not listed in extensions. just onebuttoninstaller. in onebuttoninstaller it has a green checkmark beside plex. I don't know what to do. please help. I'm running Nas4free 10.3.0.3
thanks
Hi, NAS4Free 10.x is an EOL product and support has been recently dropped in the "plexinit" script to support from 11.0 and later versions, since XigmaNAS changes in PHP constantly, recent Plex compatXYZ removal etc., so upgrading to a later/supported XigmaNAS version is the best solution.

However users wanting to unlock the "plexinit" script to run the Plex Extension on legacy EOL products without any guarantee/support, can simply edit the following section in the "plexinit" script to allow versions down to 10.0 in this example:

Change from this:

Code: Select all

	# Check for product compatibility.
	if [ ! "${PRDVERSION}" -ge "110" ]; then
		echo "Unsupported version!"; exit 1
	fi 
To this:

Code: Select all

	# Check for product compatibility.
	if [ ! "${PRDVERSION}" -ge "100" ]; then
		echo "Unsupported version!"; exit 1
	fi
Command to update "plexinit" script from the ssh/console, note the two single quotes after -i '' in this example:

Code: Select all

sed -i '' 's/-ge "110"/-ge "100"/g' /path/to/plexinit
If the Plex extension work on such legacy setup after modify, then the Plex Extension postinit command may need edit to auto-update it in case the user Upgrade the Extension files, here is an example(edit path accordingly):

Code: Select all

sed -i '' 's/-ge "110"/-ge "100"/g' /mnt/Data/plex/plexinit && /mnt/Data/plex/plexinit
Note: Be aware that legacy PHP code in the Extension files are being cleaned slowly such as legacy postinit command creation/removal etc. so the best recommendation is to Upgrade to a later/supported XigmaNAS version whenever possible.

Regards
System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)

funpolice652
NewUser
NewUser
Posts: 6
Joined: 19 Nov 2019 22:26
Status: Offline

Re: [EXTENSION] Plex Media Server

#776

Post by funpolice652 » 04 Dec 2019 04:17

thanks. now i have a dumb question. do I just go to the command line and enter those commands? I am new to this so I'm figuring it out as I go

User avatar
JoseMR
Hardware & Software Guru
Hardware & Software Guru
Posts: 1220
Joined: 16 Apr 2014 04:15
Location: PR
Contact:
Status: Offline

Re: [EXTENSION] Plex Media Server

#777

Post by JoseMR » 04 Dec 2019 08:56

funpolice652 wrote:
04 Dec 2019 04:17
thanks. now i have a dumb question. do I just go to the command line and enter those commands? I am new to this so I'm figuring it out as I go
Hi, I'm afraid you need to edit this file manually from the command line of from the built-in editor in NAS4Free WebGUI, also you need to reference to your own paths.

Just try to find the below code in the plexinit script and change the "110" to "100", and if works do not Upgrade the Extension again:

Code: Select all

	# Check for product compatibility.
	if [ ! "${PRDVERSION}" -ge "110" ]; then
		echo "Unsupported version!"; exit 1
	fi 
P.S. Sorry I can't test here for you as I no longer have XigmaNAS development VM's below 11.2.

Regards
System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)

funpolice652
NewUser
NewUser
Posts: 6
Joined: 19 Nov 2019 22:26
Status: Offline

Re: [EXTENSION] Plex Media Server

#778

Post by funpolice652 » 04 Dec 2019 17:33

that restored plex but now it won't start. I click start and it says "Plex Media Server started successfully." but the status still shows stopped

User avatar
JoseMR
Hardware & Software Guru
Hardware & Software Guru
Posts: 1220
Joined: 16 Apr 2014 04:15
Location: PR
Contact:
Status: Offline

Re: [EXTENSION] Plex Media Server

#779

Post by JoseMR » 04 Dec 2019 19:03

funpolice652 wrote:
04 Dec 2019 17:33
that restored plex but now it won't start. I click start and it says "Plex Media Server started successfully." but the status still shows stopped
Looks like you also need to install the older plexmediaserver package manually as well, that should still reside in /var/cache/pkg if you haven't cleaned that out.

P.S Any reason to stay with the 10.3 EOL product and not to upgrade to at least 11.3 instead?

Regards
System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)

funpolice652
NewUser
NewUser
Posts: 6
Joined: 19 Nov 2019 22:26
Status: Offline

Re: [EXTENSION] Plex Media Server

#780

Post by funpolice652 » 04 Dec 2019 19:44

I would love to upgrade, I just don't know how

Post Reply

Return to “Extensions / Add-ons”