Welcome! Log In Create A New Profile

Advanced

Plex server on Pogoplug E02 and Debian?

Posted by rkrug 
Re: Plex server on Pogoplug E02 and Debian?
August 06, 2017 05:42PM
cdlenfert,

> Also noticed this in dmesg, where I made an initia
> l swap before realizing size was in bytes. I delet
> ed the smaller swap file, but it still shows here
> in the dmesg output.
>
> [5828804.972889] Adding 368k swap on /media/usb0/s
> wapfile.img.  Priority:-1 extents:3 across:876k
> [5831057.495173] Adding 383940k swap on /media/usb
> 0/swapfile.img.  Priority:-1 extents:13 across:432
> 876k
>
>

You probably forgot to run swapoff to remove all swaps, and then run swapon for the new swapfile.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Plex server on Pogoplug E02 and Debian?
August 07, 2017 12:10PM
The uboot thread only shows 2015.10 as the latest version. Seems like it also supports the uEnv.txt

I'm on 2013.10 I believe. Is there a command I can run to check the current version of uBoot on Wheezy? If I get on the 2015 version that should work right?
Re: Plex server on Pogoplug E02 and Debian?
August 07, 2017 04:35PM
cdlenfert,

> The
> uboot
thread only shows 2015.10 as the lates
> t version. Seems like it also supports the uEnv.tx
> t

That's the wrong u-boot! It is for the Pogo V3 Oxnas.

The Kirkwood Pogo E02 u-boot is here:
http://forum.doozan.com/read.php?3,12381

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Plex server on Pogoplug E02 and Debian?
August 07, 2017 05:00PM
Hey Bodhi, yeah, I should have mentioned I'm trying to do this on a Pogo Pro based on feedback from Alamaz. Sorry for the confusion. Obviously a pretty significant noob here :)

Quote

Cdlenfert2 Wrote:
-------------------------------------------------------
> Thank you Almaz! This is awesome. Just want to con
> firm that this is only feasible on the E-02 models
> with 256mb of RAM? Are you using swapdisc as well?
>
> And Bodhi, any idea why New user registration brok
> en on the forum?

It can be used on any model and I suggest to use swap disk.
Re: Plex server on Pogoplug E02 and Debian?
August 07, 2017 06:04PM
cdlenfert,

> Hey Bodhi, yeah, I should have mentioned I'm tryin
> g to do this on a Pogo Pro based on feedback from
> Alamaz. Sorry for the confusion. Obviously a prett
> y significant noob here :)

I see :) I've assumed you are doing this on Pogo E02 because of the thread title.

Quote

The uboot thread only shows 2015.10 as the latest version. Seems like it also supports the uEnv.txt

I'm on 2013.10 I believe. Is there a command I can run to check the current version of uBoot on Wheezy? If I get on the 2015 version that should work right?

Yes, uboot.2015.10-tld-1 should work.

To check u-boot version without serial console or netconsole.

grep -a --null-data U-Boot /dev/mtd0ro

Afer executing the above comand, you might find a lof of errors in dmesg as a side effect of this. Don't panic! it is normal.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Plex server on Pogoplug E02 and Debian?
August 07, 2017 07:04PM
Thanks. I have 2013. Do I need to upgrade to enable swap or can I do it manually and test plex first before going through the process of updating uboot?
U-Boot 2013.10-tld-4 (Sep 08 2014 - 19:43:38) for OXNASBT
Re: Plex server on Pogoplug E02 and Debian?
August 07, 2017 09:07PM
cdlenfert,

Please post the listing of your uboot envs:

fw_printenv

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Plex server on Pogoplug E02 and Debian?
August 07, 2017 09:24PM
autoload=no
baudrate=115200
bootargs=console=ttyS0,115200n8
bootcmd=run dt_bootcmd_usb
bootdelay=10
console=console=ttyS0,115200n8
dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop; reset
dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr
dt_load_dtb=ext2load usb 0:1 $dtb_addr /boot/dts/ox820-pogoplug-pro.dtb
dt_load_initrd=ext2load usb 0:1 $uinitrd_addr /boot/uInitrd
dt_load_uimage=ext2load usb 0:1 $uimage_addr /boot/uImage
dt_usb_boot=run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm
dt_usb_bootcmd=run usb_set_bootargs; run dt_usb_boot
dtb_addr=0x62c00000
ethact=mii0
ethaddr=00:25:31:00:f7:fd
fdt_file=/boot/dts/ox820-pogoplug-classic.dtb
if_netconsole=ping $serverip
ipaddr=192.168.2.4
mtdids=nand0=41000000.nand
mtdparts=mtdparts=41000000.nand:14m(boot),-(data)
preboot=run preboot_nc
preboot_nc=run if_netconsole start_netconsole
serverip=192.168.2.1
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version
stderr=serial
stdin=serial
stdout=serial
uimage_addr=0x60500000
uinitrd_addr=0x60e00000
usb_device=0:1
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10
Re: Plex server on Pogoplug E02 and Debian?
August 07, 2017 10:36PM
>
> autoload=no
> baudrate=115200
> bootargs=console=ttyS0,115200n8
> bootcmd=run dt_bootcmd_usb
> bootdelay=10
> console=console=ttyS0,115200n8
> dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb
> stop; reset
> dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_add
> r
> dt_load_dtb=ext2load usb 0:1 $dtb_addr /boot/dts/o
> x820-pogoplug-pro.dtb
> dt_load_initrd=ext2load usb 0:1 $uinitrd_addr /boo
> t/uInitrd
> dt_load_uimage=ext2load usb 0:1 $uimage_addr /boot
> /uImage
> dt_usb_boot=run dt_load_uimage; run dt_load_initrd
> ; run dt_load_dtb; run dt_bootm
> dt_usb_bootcmd=run usb_set_bootargs; run dt_usb_bo
> ot
> dtb_addr=0x62c00000
> ethact=mii0
> ethaddr=00:25:31:00:f7:fd
> fdt_file=/boot/dts/ox820-pogoplug-classic.dtb
> if_netconsole=ping $serverip
> ipaddr=192.168.2.4
> mtdids=nand0=41000000.nand
> mtdparts=mtdparts=41000000.nand:14m(boot),-(data)
> preboot=run preboot_nc
> preboot_nc=run if_netconsole start_netconsole
> serverip=192.168.2.1
> start_netconsole=setenv ncip $serverip; setenv boo
> tdelay 10; setenv stdin nc; setenv stdout nc; sete
> nv stderr nc; version
> stderr=serial
> stdin=serial
> stdout=serial
> uimage_addr=0x60500000
> uinitrd_addr=0x60e00000
> usb_device=0:1
> usb_set_bootargs=setenv bootargs console=ttyS0,115
> 200 root=/dev/sda1 rootdelay=10
>

This is a really old set of envs from 2013! You should really use the new default envs. But that's another day.

In Debian, set the zswap option to the bootarg directly:

fw_setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10 zswap.enabled=1'
And reboot.

And after log in again look at dmesg to confirm that zswap is running. And check current swap:
cat /proc/cmdline
dmesg | grep -i zswap
free

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 2 time(s). Last edit at 08/07/2017 10:37PM by bodhi.
Re: Plex server on Pogoplug E02 and Debian?
August 07, 2017 11:04PM
I was able to do the fw_setenv command and see it was entered by running fw_printenv. However now when I reboot I can no longer get SSH access. I thought it was my other connected USB devices causing issues (sound card, 512MB flash for swap, mircroUSB charger cable) but unplugging those and rebooting still gets me nowhere. I guess it's back to serial connection :( I'd love to know how to get this system to be a little more stable.

EDIT: I guess I didn't wait long enough. It finally came back online.

root@DebianPlugPro:~# cat /proc/cmdline
console=ttyS0,115200 root=/dev/sda1 rootdelay=10 zswap.enabled=1
root@DebianPlugPro:~# dmesg | grep -i zswap
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 zswap.enabled=1
root@DebianPlugPro:~# free
             total       used       free     shared    buffers     cached
Mem:        121776     119592       2184          0       4648      49780
-/+ buffers/cache:      65164      56612
Swap:       383944         48     383896

Now should I set swapiness? Starting at 10 and bumping up to 60 if need be? Where can I set that value? And as always. thanks so much!



Edited 2 time(s). Last edit at 08/07/2017 11:17PM by cdlenfert.
Re: Plex server on Pogoplug E02 and Debian?
August 08, 2017 03:26AM
cdlenfert,

> root@DebianPlugPro:~# dmesg | grep -i zswap
> [ 0.000000] Kernel command line: console=ttyS0,
> 115200 root=/dev/sda1 rootdelay=10 zswap.enabled=1

You are running a kernel that does not have zswap. You should see:

Quote

[ 6.469764] zswap: loaded using pool lzo/zbud

Which kernel is this?

uname -a

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Plex server on Pogoplug E02 and Debian?
August 08, 2017 09:18PM
Linux DebianPlugPro 3.18.5-oxnas-tld-1 #2 SMP PREEMPT Thu Feb 12 11:17:40 PST 20
15 armv6l GNU/Linux

I was able to start the Plex server with my current setup (swap enabled) and leave it on overnight, and access and play the 1 album I loaded in to the music library. But after adding another library, the scanning process seemed to kill the service almost immediately.

I'd be glad to get everything up to date, but I'm curious if Zswap is going to help with the performance on the PogoPro in this case.

I also am fairly confident there will be some gaps in my understanding of how to get everything updated (Kernel, Rootfs, uBoot) so I'll warn ahead of time that many a question will likely be asked.

Thanks again
Re: Plex server on Pogoplug E02 and Debian?
August 08, 2017 10:46PM
cdlenfert,

> Linux DebianPlugPro 3.18.5-oxnas-tld-1 #2 SMP PREE
> MPT Thu Feb 12 11:17:40 PST 20
> 15 armv6l GNU/Linux

This kernel does not have zswap. So you should install the latest kernel.

> I was able to start the Plex server with my curren
> t setup (swap enabled) and leave it on overnight,
> and access and play the 1 album I loaded in to the
> music library. But after adding another library, t
> he scanning process seemed to kill the service alm
> ost immediately.
>
> I'd be glad to get everything up to date, but I'm
> curious if Zswap is going to help with the perform
> ance on the PogoPro in this case.

It might help. Since zswap compresses the swapped out memory in RAM so it swaps much more infrequently. However, when it crashes like that, then you would need more swap space. Perhaps 384M is not enough. I would experiment with a larger USB drive to see how much Plex needs.

In any case, zswap is going to help a lot when the swap space is on flash drive. I did the experiment myself on these 128MB RAM plugs with xfce desktop running, constantly out of RAM. But I don't use Plex so don't know the technicals, i.e. how it would help.

> I also am fairly confident there will be some gaps
> in my understanding of how to get everything updat
> ed (Kernel, Rootfs, uBoot) so I'll warn ahead of t
> ime that many a question will likely be asked.

I'd would be glad to answer any kernel installation and booting understanding/problems! The key to get your questions answered faster, without a lot of exchanges, is to keep a log of what you do, and post it along with the questions.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Plex server on Pogoplug E02 and Debian?
August 13, 2017 02:25PM
I've decided to try Plex on my new PogoPro with the latest uBoot, Kernel, and rootfs. This is the result after a reboot. cat /proc/cmdline doesn't mention zswap. It is however in the demsg output.
root@debian:~# cat /proc/cmdline
console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=41000000.nand:14m(b                   oot),-(data)
root@debian:~# cat /uEnv.txt
custom_params=zswap.enabled=1

dmesg output
zswap: loaded using pool lzo/zbud

So good to go on zswap?
Re: Plex server on Pogoplug E02 and Debian?
August 13, 2017 04:43PM
cdlenfert

> dmesg output
>
> zswap: loaded using pool lzo/zbud
>
>
> So good to go on zswap?

Yes. It is activated. To verify, simply rename uEnv.txt to something else to deactivate it.

Now you can use vmstat to monitor the swap to see if it helps.
vmstat 5 300

A lot of swapping will occur when you run something as memory intensivve as Plex. With zswap enabled, the swapping should be a lot less infrequent. And use a 4GB swap file to see if if handle Plex OK. If 4GB is not enough, use 8GB swap fle.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Plex server on Pogoplug E02 and Debian?
August 16, 2017 12:39PM
Still crashing on my after initiating a scan. Here is the output of vmstat after starting Plex. The second line was the point that it was up and running.
 0  0      0   8692   4704  86024    0    0     0     0  202   12  0  0 100  0  0
 2  0      0   2188   4712  84308    0    0    10     0  377  110 23  4 73  0  0
 0  1    864   1888   5584  73572    0  173  1949   195 3974 1399 31  8 48 13  0
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 2  0   1040   1800   3912  71232    0   35   934    35 1763  931 40  5 48  7  0
 1  0   1200   2056   2880  67312    0   32    18    47  603  155 50  1 49  1  0
 1  0   1200   1716   2888  66912    0    0     0     2  228   31 50  0 49  0  0
 1  0   1200   1972   2672  66212    0    0     0     0  231   22 50  0 50  0  0
 1  0   1200   1776   1976  65472    0    0     9     0  262   42 50  1 49  0  0
 1  0   1200   1756   1976  65472    0    0     0    16  908 1401 50  1 49  0  0
 1  0   1200   2084   1820  65104    0    0     6     4  229   35 50  0 50  0  0

Then I started a library scan and this was the output of vmstat. Right around the line that starts with 4 is where it crashes.
2  0   9956   2116   4304  48156    0  524  2725   553 3100 1090 22  6 58 13  0
 1  0  11092   2204   2872  45404    0  227  1188   238 2216  975 40  5 47  7  0
 2  1  14152   2096   1336  45424    0  612  1090   830 2041  763 28  5 39 29  0
 1  1  14848   2092   1500  42768    0  139  2311   230 2499 1475 48  9  1 42  0
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 3  0  15000   2832   1128  38912    0   30  1934   110 2036  985 24  8  3 65  0
 0  2  15512   2188   1872  36908    0  102  2802   118 3077 1550 40 15  2 43  0
 1  0  15996   1724   1948  36684    0   97   693   141 1283  954 56  6 30  8  0
 3  0  16924   2240   1920  32960    0  186    90   204 2564 2946 64  6 29  1  0
 2  0  17796   2464   1812  33192    0  174  1314   183 3961 5895 48  5 43  4  0
 3  0  17796   2244   1828  33240    0    0    11     6 3067 5589 48  4 48  0  0
 2  0  17996   2060   2256  32604    6   41   186    75 2436 3755 35  4 55  6  0
 0  1  18340   2420   1972  32940    0   69   428   186 2802 3665 36  4 46 14  0
 4  0  20568   4116   1000  34176   14  453  1419   482 3727 1088 13 15 34 38  0
 0  0  12644  22940   1040  39120   34    0  1017    31 1205  705 20  7 62 11  0
 0  0  12644  22940   1040  39128    0    0     0     0  224  161  0  0 100  0  0
 1  0  12644  22924   1040  39128    0    0     0     0  218  150  0  0 100  0  0

I've dedicated a 4GB thumb drive as a SWAP partition. I can try with 8GB, but I expected there to be a difference when using 4GB swap vs 384mb and it's choking at the exact same point I think. Anyone have this working and care to share their OS, Swap size, etc?
Re: Plex server on Pogoplug E02 and Debian?
August 16, 2017 04:17PM
cdlenfert,

Do you have the dmesg log show how it crashed?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Plex server on Pogoplug E02 and Debian?
August 16, 2017 10:19PM
Something is definitely wrong, I'm running sickrage, plex, couchpotato, samba, transmission and a lot of other services on E02 and it never crashed. I don't use usb memory because it's slow. I prefer running OS on the same hard drive as my media file server, makes it much faster for everything.



Edited 1 time(s). Last edit at 08/16/2017 10:24PM by Almaz.
Re: Plex server on Pogoplug E02 and Debian?
August 16, 2017 10:49PM
What size is your swap? I'll reboot and run again and see when the crash occurs
Re: Plex server on Pogoplug E02 and Debian?
August 16, 2017 10:53PM
My swap size is 256mb
Re: Plex server on Pogoplug E02 and Debian?
August 16, 2017 11:00PM
Just a guess, you could have bad/corrupted file in media folder. Plex might crash because of that .



Edited 1 time(s). Last edit at 08/16/2017 11:03PM by Almaz.
Re: Plex server on Pogoplug E02 and Debian?
August 17, 2017 12:42AM
Thanks for helping Almaz! you would be able help cdlenfert more than I can (I don't use Plex).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 08/17/2017 12:43AM by bodhi.
Re: Plex server on Pogoplug E02 and Debian?
August 17, 2017 05:41PM
thanks Bodhi, Almaz. I can't recall the command I entered to see where the Plex process was killed. But I did manage to run htop to see the following:

  1  [||                                                                    1.9%]     Tasks: 30, 25 thr; 1 running
  2  [||||                                                                  4.4%]     Load average: 0.65 0.68 0.82 
  Mem[||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||46/118MB]     Uptime: 9 days, 18:26:21
  Swp[|||                                                               11/374MB]     Time: 15:26:05
  Hostname: DebianPlugPro

  PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
    1 root       20   0  2160   380   352 S  0.0  0.3  0:20.01 init [2]
17584 root       20   0  193M 24000 16892 S  0.0 19.7  0:04.02 `- /usr/lib/plexmediaserver/Plex DLNA Server
17822 root       20   0  193M 24000 16892 S  0.0 19.7  0:00.00 |  `- /usr/lib/plexmediaserver/Plex DLNA Server
17617 root       20   0  193M 24000 16892 S  0.0 19.7  0:00.00 |  `- /usr/lib/plexmediaserver/Plex DLNA Server
17609 root       20   0  193M 24000 16892 S  0.0 19.7  0:00.08 |  `- /usr/lib/plexmediaserver/Plex DLNA Server
17605 root       20   0  193M 24000 16892 S  0.0 19.7  0:00.07 |  `- /usr/lib/plexmediaserver/Plex DLNA Server
17603 root       20   0  193M 24000 16892 S  0.0 19.7  0:00.00 |  `- /usr/lib/plexmediaserver/Plex DLNA Server
17602 root       20   0  193M 24000 16892 S  0.0 19.7  0:00.00 |  `- /usr/lib/plexmediaserver/Plex DLNA Server
17601 root       20   0  193M 24000 16892 S  0.0 19.7  0:00.17 |  `- /usr/lib/plexmediaserver/Plex DLNA Server
17600 root       20   0  193M 24000 16892 S  0.0 19.7  0:00.00 |  `- /usr/lib/plexmediaserver/Plex DLNA Server
17599 root       20   0  193M 24000 16892 S  0.0 19.7  0:00.00 |  `- /usr/lib/plexmediaserver/Plex DLNA Server
17598 root       20   0  193M 24000 16892 S  0.0 19.7  0:00.09 |  `- /usr/lib/plexmediaserver/Plex DLNA Server
17596 root       20   0  193M 24000 16892 S  0.0 19.7  0:00.02 |  `- /usr/lib/plexmediaserver/Plex DLNA Server
17546 root       35  15  177M 30592  9180 S  0.0 25.1  1:12.26 `- Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-4601e39/Framework.bundle
17784 root       20   0  177M 30592  9180 S  0.0 25.1  0:00.26 |  `- Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-4601e39/Framework.bun
17572 root       35  15  177M 30592  9180 S  0.0 25.1  0:00.49 |  `- Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-4601e39/Framework.bun
17570 root       20   0  177M 30592  9180 S  0.0 25.1  0:01.08 |  `- Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-4601e39/Framework.bun
17563 root       20   0  177M 30592  9180 S  0.0 25.1  0:00.00 |  `- Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-4601e39/Framework.bun
17562 root       20   0  177M 30592  9180 S  0.0 25.1  0:00.00 |  `- Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-4601e39/Framework.bun
17558 root       20   0  177M 30592  9180 S  0.0 25.1  0:00.00 |  `- Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-4601e39/Framework.bun
17557 root       20   0  177M 30592  9180 S  0.0 25.1  0:00.00 |  `- Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-4601e39/Framework.bun
17556 root       20   0  177M 30592  9180 S  0.0 25.1  0:00.00 |  `- Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-4601e39/Framework.bun
17555 root       20   0  177M 30592  9180 S  0.0 25.1  0:00.00 |  `- Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-4601e39/Framework.bun
17554 root       20   0  177M 30592  9180 S  0.0 25.1  0:00.00 |  `- Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-4601e39/Framework.bun
17553 root       20   0  177M 30592  9180 S  0.0 25.1  0:00.00 |  `- Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-4601e39/Framework.bun
17552 root       20   0  177M 30592  9180 S  0.0 25.1  0:00.00 |  `- Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-4601e39/Framework.bun
17551 root       20   0  177M 30592  9180 S  0.0 25.1  0:00.00 |  `- Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-4601e39/Framework.bun
 2792 root       20   0 49592  1288  1264 S  0.0  1.1  6:31.65 `- /usr/local/bin/shairport-sync -d
 2808 root       20   0 49592  1288  1264 S  0.0  1.1  0:00.00 |  `- /usr/local/bin/shairport-sync -d
 2345 root       20   0  2076   284   280 S  0.0  0.2  0:00.01 `- /sbin/getty -L ttyS0 115200 linux
 2312 ntp        20   0  5700  1112  1000 S  0.0  0.9  2:19.17 `- /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 104:106
 2265 root       20   0  6268   548   544 S  0.0  0.5  0:00.03 `- /usr/sbin/sshd
16797 root       20   0  9312  1696  1580 S  0.0  1.4  0:01.11 |  `- sshd: root@pts/1
16831 root       20   0  3272  2040  1892 S  0.0  1.7  0:00.14 |  |  `- -bash
17455 root       20   0  4348  3016  2076 R  5.0  2.5  0:31.33 |  |     `- htop
15652 root       20   0  9312  1576  1468 S  0.0  1.3  0:00.97 |  `- sshd: root@pts/0
15657 root       20   0  3276  2104  1892 S  0.0  1.7  0:00.14 |     `- -bash
 2208 root       20   0 19764  2932  2764 S  0.0  2.4  0:06.28 `- /usr/sbin/smbd -D
25341 root       20   0 20252  3732  3532 S  0.0  3.1  0:19.83 |  `- /usr/sbin/smbd -D
 2226 root       20   0 19892  1072   960 S  0.0  0.9  0:00.38 |  `- /usr/sbin/smbd -D
 2205 root       20   0  9984  1376  1280 S  0.0  1.1  0:41.10 `- /usr/sbin/nmbd -D
 2123 avahi      20   0  3684   820   556 S  0.0  0.7  8:55.97 `- avahi-daemon: running [DebianPlugPro.local]
 2124 avahi      20   0  3420   252   248 S  0.0  0.2  0:00.00 |  `- avahi-daemon: chroot helper
 2060 messagebu  20   0  3224   288   284 S  0.0  0.2  0:00.02 `- /usr/bin/dbus-daemon --system
 2036 root       20   0  2452   452   420 S  0.0  0.4  0:04.07 `- /sbin/syslogd -C128
 2035 root       20   0  2324   488   484 S  0.0  0.4  0:00.07 `- /sbin/klogd
 1864 root       20   0  2952   312   308 S  0.0  0.3  0:00.00 `- /usr/sbin/rpc.idmapd
 1852 statd      20   0  2684   332   328 S  0.0  0.3  0:00.02 `- /sbin/rpc.statd
 1820 root       20   0  2364   400   348 S  0.0  0.3  0:02.48 `- /sbin/rpcbind -w
 1722 root       20   0  4924   576   572 S  0.0  0.5  0:00.09 `- dhclient -v -pf /run/dhclient.wlan0.pid -lf /var/lib/dhcp/dhclient.wlan0.leases wlan0
 1651 root       20   0  5956  1624  1520 S  0.0  1.3  0:08.71 `- /sbin/wpa_supplicant -s -B -P /var/run/wpa_supplicant.wlan0.pid -i wlan0 -D nl80211,wext -C /var/run/w
 1604 root       20   0  4924   816   680 S  0.0  0.7  0:08.23 `- dhclient -v -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases eth0
  271 root       20   0  2812   580   576 S  0.0  0.5  0:00.39 `- udevd --daemon
  629 root       20   0  2808  1116  1116 S  0.0  0.9  0:00.00    `- udevd --daemon
F1Help  F2Setup F3SearchF4FilterF5Tree  F6SortByF7Nice -F8Nice +F9Kill  F10Quit

Not a lot of the main memory is being used (46mb), and very little of the swap (11mb), however it shows Plex as using 193mb. This is on the PogoPlug Pro with the smaller swap file.

If you guys can give a better command to monitor the death of Plex, please let me know. I can pretty easily repeat the killing by playing a song or running a library scan.

Thanks
Re: Plex server on Pogoplug E02 and Debian?
August 17, 2017 06:00PM
Disable Plex DLNA Server if you don't use it.

Also do the following


nano /etc/default/plexmediaserver

# default script for Plex Media Server

# the number of plugins that can run at the same time
PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=1

# ulimit -s $PLEX_MEDIA_SERVER_MAX_STACK_SIZE
PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000

# where the mediaserver should store the transcodes
PLEX_MEDIA_SERVER_TMPDIR=/tmp

# uncomment to set it to something else
# PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="${HOME}/Library/Application\ Support"

# the user that PMS should run as, defaults to 'plex'
# note that if you change this you might need to move
# the Application Support directory to not lose your
# media library
PLEX_MEDIA_SERVER_USER=root

Re: Plex server on Pogoplug E02 and Debian?
August 17, 2017 07:54PM
Disabled the DLNA server, but that didn't reduce the ram usage it showed for Plex. It actually was higher at 213mb.

Editing the default script file the only change was to change:
PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=1

Which I did. I had it =2 before.

Added a library (single folder with 2 albums of appx 128kbps mp3 files). The scan crashed the plex server.

Running htop after the crash I still see this

  1  [||||                                                         3.8%]     Tasks: 27, 14 thr; 1 running
  2  [                                                             0.0%]     Load average: 0.64 0.75 0.75 
  Mem[|||||||||||||||||||||||||||||||||||||||||||||||||||||||||38/118MB]     Uptime: 9 days, 20:53:46
  Swp[||                                                       10/374MB]     Time: 17:53:31
  Hostname: DebianPlugPro

  PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
    1 root       20   0  2160   372   344 S  0.0  0.3  0:20.19 init [2]
22770 root       35  15  177M 26952  6012 S  0.0 22.1  1:21.35 `- Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-4601e3
22944 root       20   0  177M 26952  6012 S  0.0 22.1  0:00.77 |  `- Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-460
22802 root       35  15  177M 26952  6012 S  0.0 22.1  0:01.04 |  `- Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-460
22800 root       20   0  177M 26952  6012 S  0.0 22.1  0:01.73 |  `- Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-460
22793 root       20   0  177M 26952  6012 S  0.0 22.1  0:00.00 |  `- Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-460
22792 root       20   0  177M 26952  6012 S  0.0 22.1  0:00.00 |  `- Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-460
22787 root       20   0  177M 26952  6012 S  0.0 22.1  0:00.00 |  `- Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-460
22786 root       20   0  177M 26952  6012 S  0.0 22.1  0:00.00 |  `- Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-460
22785 root       20   0  177M 26952  6012 S  0.0 22.1  0:00.00 |  `- Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-460
22784 root       20   0  177M 26952  6012 S  0.0 22.1  0:00.00 |  `- Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-460
22783 root       20   0  177M 26952  6012 S  0.0 22.1  0:00.00 |  `- Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-460
22782 root       20   0  177M 26952  6012 S  0.0 22.1  0:00.00 |  `- Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-460
22781 root       20   0  177M 26952  6012 S  0.0 22.1  0:00.00 |  `- Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-460
22780 root       20   0  177M 26952  6012 S  0.0 22.1  0:00.00 |  `- Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-460
 2792 root       20   0 49592  1292  1268 S  0.0  1.1  6:31.66 `- /usr/local/bin/shairport-sync -d
 2808 root       20   0 49592  1292  1268 S  0.0  1.1  0:00.00 |  `- /usr/local/bin/shairport-sync -d
 2345 root       20   0  2076   280   280 S  0.0  0.2  0:00.01 `- /sbin/getty -L ttyS0 115200 linux
 2312 ntp        20   0  5700   836   712 S  0.0  0.7  2:20.50 `- /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 104:106
 2265 root       20   0  6268   448   396 S  0.0  0.4  0:00.04 `- /usr/sbin/sshd
22740 root       20   0  9312  2260  2144 S  0.0  1.9  0:00.89 |  `- sshd: root@pts/0
22742 root       20   0  3268  2116  1908 S  0.0  1.7  0:00.07 |     `- -bash
22941 root       20   0  4456  3308  2080 R  4.0  2.7  0:16.51 |        `- htop
Re: Plex server on Pogoplug E02 and Debian?
August 17, 2017 08:01PM
Plex requires the correct locale. I'd guess it might cause a problem.
locale -a

C
C.UTF-8
en_US.utf8  ----> IF MISSING then
POSIX

apt-get install locales
dpkg-reconfigure locales

If nothing works reinstall debian from scratch which can be done in less than 30 min
Re: Plex server on Pogoplug E02 and Debian?
August 17, 2017 08:05PM
root@DebianPlugPro:~# locale -a
C
C.UTF-8
POSIX
Re: Plex server on Pogoplug E02 and Debian?
August 17, 2017 08:08PM
cdlenfert Wrote:
-------------------------------------------------------
>
> root@DebianPlugPro:~# locale -a
> C
> C.UTF-8
> POSIX
>


You must add en_US.utf8
Re: Plex server on Pogoplug E02 and Debian?
August 17, 2017 08:17PM
Try this as well
apt-get install libc6
Re: Plex server on Pogoplug E02 and Debian?
August 17, 2017 08:56PM
I wasnt able to use the configuration tool to generate the locale, so I edited the local.gen file manually to uncomment the en_US.utf8 line:

root@DebianPlugPro:~# nano /etc/locale.gen
root@DebianPlugPro:~# locale-gen
Generating locales (this might take a while)...
  en_US.UTF-8... done
Generation complete.

My order is different if that matters?

root@DebianPlugPro:~# locale -a
C
C.UTF-8
POSIX
en_US.utf8

And the following seemed to go fine:
root@DebianPlugPro:~# apt-get install libc6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libc-bin libc-dev-bin libc6-dev
Suggested packages:
  glibc-doc
Recommended packages:
  manpages-dev
The following packages will be upgraded:
  libc-bin libc-dev-bin libc6 libc6-dev
4 upgraded, 0 newly installed, 0 to remove and 26 not upgraded.
Need to get 8052 kB of archives.
After this operation, 5120 B of additional disk space will be used.
Do you want to continue [Y/n]? Y          
Get:1 http://security.debian.org/ wheezy/updates/main libc6-dev armel 2.13-38+deb7u12 [2515 kB]
Get:2 http://security.debian.org/ wheezy/updates/main libc-dev-bin armel 2.13-38+deb7u12 [225 kB]
Get:3 http://security.debian.org/ wheezy/updates/main libc-bin armel 2.13-38+deb7u12 [1211 kB]
Get:4 http://security.debian.org/ wheezy/updates/main libc6 armel 2.13-38+deb7u12 [4101 kB]
Fetched 8052 kB in 9s (814 kB/s)                                                                                                                     
Preconfiguring packages ...
(Reading database ... 38692 files and directories currently installed.)
Preparing to replace libc6-dev:armel 2.13-38+deb7u11 (using .../libc6-dev_2.13-38+deb7u12_armel.deb) ...
Unpacking replacement libc6-dev:armel ...
Preparing to replace libc-dev-bin 2.13-38+deb7u11 (using .../libc-dev-bin_2.13-38+deb7u12_armel.deb) ...
Unpacking replacement libc-dev-bin ...
Preparing to replace libc-bin 2.13-38+deb7u11 (using .../libc-bin_2.13-38+deb7u12_armel.deb) ...
Unpacking replacement libc-bin ...
Processing triggers for man-db ...
Setting up libc-bin (2.13-38+deb7u12) ...
(Reading database ... 38692 files and directories currently installed.)
Preparing to replace libc6:armel 2.13-38+deb7u11 (using .../libc6_2.13-38+deb7u12_armel.deb) ...
Unpacking replacement libc6:armel ...
Setting up libc6:armel (2.13-38+deb7u12) ...
Setting up libc-dev-bin (2.13-38+deb7u12) ...
Setting up libc6-dev:armel (2.13-38+deb7u12) ...

However, when I run Plex it seems to crash even quicker than before, basically with no interaction.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: