11.2-U6 break plugin when updating & snapshot is unable to fix it

Kris Heslop

Dabbler
Joined
Feb 7, 2016
Messages
42
Thanks for the suggestion.
I will check that tonight when I get back home.

I know the IP is showing active on my router and it responds to pings.
 

zamana

Contributor
Joined
Jun 4, 2017
Messages
163
Thanks for the suggestion.
I will check that tonight when I get back home.

I know the IP is showing active on my router and it responds to pings.

IP active is an indication that the jail is running, only. The service running inside the plugin is another matter.

You can also check with:

ps -aux | grep -i plex | grep -v grep

if the service is really running.
 

Kris Heslop

Dabbler
Joined
Feb 7, 2016
Messages
42
Zamana,

Accessed via SSH to FreeNAS root, then accessed jail with: jexec # tcsh
Where # is the number of the jail, in my case #2.

When I ran: root@plex:/ # netstat -an | grep 32400

I got nothing, but did get the prompt to come back. Maybe I am misunderstanding how this is to be actually entered. So I tried: netstat -an

And got:
Code:
Active UNIX domain sockets
Address          Type   Recv-Q Send-Q            Inode             Conn             Refs          Nextref Addr
fffff8001b9181e0 dgram       0      0                0 fffff800200bb0f0                0                0
fffff800200bb0f0 dgram       0      0 fffff8009b7b9000                0 fffff8001b9181e0                0 /var/run/logpriv
fffff800201d9b40 dgram       0      0 fffff800a91211d8                0                0                0 /var/run/log


Then I tried: grep 32400

And I did not get anything, including no prompt to come back after a few moments. (I am guessing that was not the right command.)

Started a new process to get back into jail with a prompt, and then ran: ps -aux | grep -i plex | grep -v grep

Which gave me a prompt, but no output. I reran the above, seeking blindly, by replacing plex with the IP:32400 for Plex, and only got a prompt with no other response.

Then tried the following:
Code:
root@plex:/ # ps -aux
USER   PID %CPU %MEM  VSZ  RSS TT  STAT STARTED    TIME COMMAND
root 38763  0.0  0.0 6412 2452  -  SsJ  Mon11   0:00.99 /usr/sbin/syslogd -c -s
root 38814  0.0  0.0 6464 2424  -  IsJ  Mon11   0:01.74 /usr/sbin/cron -J 15 -s
root 11527  0.0  0.0 7488 3852  0  SJ   00:55   0:00.02 tcsh
root 15587  0.0  0.0 6992 2872  0  R+J  01:04   0:00.00 ps -aux
root@plex:/ #


Then tried: grep -i plex
Results, no response plus no prompt came back.

Logged back in via a new terminal ssh session and ran: grep -v grep
Results were null, including no prompt after entering and waiting for a fair amount of time.

Thanks for the help, hope you or someone can help guide me further.
 
Last edited:

Kris Heslop

Dabbler
Joined
Feb 7, 2016
Messages
42
I think I tried to create a new Plex jail, and then deleted it, which if I recall correctly from some other posts, can cause all of the original plugin to be removed? I think I still have (somewhere) the snapshot that was taken before the problems started.

I recall having to rollback to a snapshot previously, but have not been able to find where I got the instructions, beyond my recalling that it was part of directions on how to manually update the plex plugin and roll it back if it didn't work (and it didn't.)
 

Kris Heslop

Dabbler
Joined
Feb 7, 2016
Messages
42
OK, I attempted to look up how to go back to a Snapshot, and found the suggestion to reset some permissions, and did the following: chown plex:wheel /var/run/log.

One other thing that could have some impact, the Xfinity Gateway appears to have upgraded to IPV6 at some point near when some of this happened, and now I have very slow internet response times to most URLs.

Then I went in and stopped both the jail and the plugin, then attempted to update, but go the message snapshot exists or something like that.

Restarted the jail, and then restarted the plugin. Then went back into ssh and ran the following:

Code:
chown: plex: illegal user name
root@HeslopNAS:~ # jexec 2 tcsh
root@plex:/ # chown plex:wheel /var/run/log
root@plex:/ # Killed
root@HeslopNAS:~ # netstat -an |grep 32400
root@HeslopNAS:~ # netstat -an
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address          Foreign Address        (state)
tcp4       0      0 127.0.0.1.9042         127.0.0.1.43408        TIME_WAIT
tcp4       0      0 127.0.0.1.9042         127.0.0.1.32034        TIME_WAIT
tcp4       0      0 127.0.0.1.9042         127.0.0.1.47198        TIME_WAIT
tcp4       0      0 127.0.0.1.9042         127.0.0.1.61924        TIME_WAIT
tcp4       0      0 127.0.0.1.9042         127.0.0.1.19544        TIME_WAIT
tcp4       0      0 127.0.0.1.9042         127.0.0.1.45660        TIME_WAIT
tcp4       0      0 127.0.0.1.4700         127.0.0.1.43038        ESTABLISHED
tcp4       0      0 127.0.0.1.43038        127.0.0.1.4700         ESTABLISHED
tcp4       0      0 192.168.6.3.548        192.168.6.132.63292    ESTABLISHED
tcp4       0      0 127.0.0.1.6000         127.0.0.1.41387        ESTABLISHED
tcp4       0      0 127.0.0.1.41387        127.0.0.1.6000         ESTABLISHED
tcp4       0      0 192.168.6.3.80         192.168.6.132.63277    ESTABLISHED
tcp4       0      0 192.168.6.3.80         192.168.6.132.63268    ESTABLISHED
tcp4       0      0 192.168.6.3.22         192.168.6.132.63244    ESTABLISHED
tcp4       0      0 192.168.6.3.445        192.168.6.113.61874    ESTABLISHED
tcp6       0      0 ::1.21393              ::1.80                 CLOSED
tcp46      0      0 *.548                  *.*                    LISTEN
tcp4       0      0 127.0.0.1.9042         *.*                    LISTEN
tcp4       0      0 127.0.0.1.4700         *.*                    LISTEN
tcp4       0      0 127.0.0.1.8125         *.*                    LISTEN
tcp6       0      0 ::1.8125               *.*                    LISTEN
tcp4       0      0 127.0.0.1.19999        *.*                    LISTEN
tcp6       0      0 *.80                   *.*                    LISTEN
tcp4       0      0 192.168.6.3.80         *.*                    LISTEN
tcp6       0      0 *.443                  *.*                    LISTEN
tcp4       0      0 192.168.6.3.443        *.*                    LISTEN
tcp4       0      0 *.139                  *.*                    LISTEN
tcp4       0      0 *.445                  *.*                    LISTEN
tcp6       0      0 *.139                  *.*                    LISTEN
tcp6       0      0 *.445                  *.*                    LISTEN
tcp4       0      0 *.873                  *.*                    LISTEN
tcp6       0      0 *.873                  *.*                    LISTEN
tcp4       0      0 127.0.0.1.3493         127.0.0.1.21386        ESTABLISHED
tcp4       0      0 127.0.0.1.21386        127.0.0.1.3493         ESTABLISHED
tcp4       0      0 127.0.0.1.3493         *.*                    LISTEN
tcp4       0      0 *.22                   *.*                    LISTEN
tcp6       0      0 *.22                   *.*                    LISTEN
tcp4       0      0 *.6000                 *.*                    LISTEN
udp4       0      0 *.5353                 *.*                  
udp4       0      0 *.5353                 *.*                  
udp6       0      0 *.29180                *.*                  
udp4       0      0 *.29816                *.*                  
udp4       0      0 127.0.0.1.8125         *.*                  
udp6       0      0 ::1.8125               *.*                  
udp4       0      0 192.168.6.255.138      *.*                  
udp4       0      0 192.168.6.3.138        *.*                  
udp4       0      0 192.168.6.255.137      *.*                  
udp4       0      0 192.168.6.3.137        *.*                  
udp4       0      0 *.138                  *.*                  
udp4       0      0 *.137                  *.*                  
udp4       0      0 127.0.0.1.123          *.*                  
udp6       0      0 fe80::1%lo0.123        *.*                  
udp6       0      0 ::1.123                *.*                  
udp4       0      0 192.168.6.3.123        *.*                  
udp4       0      0 *.123                  *.*                  
udp6       0      0 *.123                  *.*                  
udp4       0      0 *.1031                 *.*                  
udp6       0      0 *.27498                *.*                  
udp4       0      0 *.41723                *.*                  
Active UNIX domain sockets
Address          Type   Recv-Q Send-Q            Inode             Conn             Refs          Nextref Addr
fffff80018dc8870 stream      0      0                0 fffff80079598b40                0                0
fffff80079598b40 stream      0      0                0 fffff80018dc8870                0                0
fffff800200bb4b0 stream      0      0                0 fffff80018dc6b40                0                0
fffff80018dc6b40 stream      0      0                0 fffff800200bb4b0                0                0
fffff80018dc6690 stream      0      0                0                0                0                0
fffff801d20cd2d0 stream      1      0                0                0                0                0
fffff8001b91a3c0 stream      0      0                0 fffff80018dc71e0                0                0
fffff80018dc71e0 stream      0      0                0 fffff8001b91a3c0                0                0
fffff800931840f0 stream      0      0                0 fffff80018dc9000                0                0 /var/run/mdnsd
fffff80018dc9000 stream      0      0                0 fffff800931840f0                0                0
fffff800931845a0 stream      0      0                0 fffff800201d8000                0                0 /var/run/mdnsd
fffff800201d8000 stream   5482      0                0 fffff800931845a0                0                0
fffff80093180000 stream      0      0                0 fffff80093181870                0                0 /var/run/mdnsd
fffff80093181870 stream      0      0                0 fffff80093180000                0                0
fffff800201d9d20 stream   8260      0                0                0                0                0
fffff80093181960 stream      0      0                0 fffff8002013a0f0                0                0 /var/run/mdnsd
fffff8002013a0f0 stream      0      0                0 fffff80093181960                0                0
fffff80018dc9690 stream      0      0                0 fffff800201d81e0                0                0 /var/run/mdnsd
fffff800201d81e0 stream      0      0                0 fffff80018dc9690                0                0
fffff80018dc7c30 stream      0      0                0 fffff80018dc7b40                0                0 /var/run/mdnsd
fffff80018dc7b40 stream   1188      0                0 fffff80018dc7c30                0                0
fffff80018dc7a50 stream      0      0                0 fffff80018dc7960                0                0 /var/run/mdnsd
fffff80018dc7960 stream   1044      0                0 fffff80018dc7a50                0                0
fffff80093184780 stream      0      0                0 fffff800201da3c0                0                0 /var/run/mdnsd
fffff800201da3c0 stream   2058      0                0 fffff80093184780                0                0
fffff800201da4b0 stream      0      0                0 fffff800201da5a0                0                0 /var/run/mdnsd
fffff800201da5a0 stream   2050      0                0 fffff800201da4b0                0                0
fffff800201da690 stream      0      0                0 fffff800201da780                0                0 /var/run/mdnsd
fffff800201da780 stream   3360      0                0 fffff800201da690                0                0
fffff800201da870 stream      0      0                0 fffff800201da960                0                0 /var/run/mdnsd
fffff800201da960 stream   2970      0                0 fffff800201da870                0                0
fffff800201dac30 stream      0      0                0 fffff800201dad20                0                0 /var/run/mdnsd
fffff800201dad20 stream   4661      0                0 fffff800201dac30                0                0
fffff800201dae10 stream      0      0                0 fffff8001b917000                0                0 /var/run/mdnsd
fffff8001b917000 stream   4425      0                0 fffff800201dae10                0                0
fffff8001b9170f0 stream      0      0                0 fffff8001b9171e0                0                0 /var/run/mdnsd
fffff8001b9171e0 stream   4130      0                0 fffff8001b9170f0                0                0
fffff8001b9172d0 stream      0      0                0 fffff8001b9173c0                0                0 /var/run/mdnsd
fffff8001b9173c0 stream   5839      0                0 fffff8001b9172d0                0                0
fffff8001b9174b0 stream      0      0                0 fffff8001b9175a0                0                0 /var/run/mdnsd
fffff8001b9175a0 stream   5882      0                0 fffff8001b9174b0                0                0
fffff8001b917690 stream      0      0                0 fffff8001b917780                0                0 /var/run/mdnsd
fffff8001b917780 stream   5482      0                0 fffff8001b917690                0                0
fffff8001b917870 stream      0      0                0 fffff8001b917960                0                0 /var/run/mdnsd
fffff8001b917960 stream   4484      0                0 fffff8001b917870                0                0
fffff8001b917a50 stream      0      0                0 fffff8001b917b40                0                0 /var/run/mdnsd
fffff8001b917b40 stream   4130      0                0 fffff8001b917a50                0                0
fffff8001b917c30 stream      0      0                0 fffff8001b917d20                0                0 /var/run/mdnsd
fffff8001b917d20 stream   6178      0                0 fffff8001b917c30                0                0
fffff8001b917e10 stream      0      0                0 fffff8001b918000                0                0 /var/run/mdnsd
fffff8001b918000 stream   7263      0                0 fffff8001b917e10                0                0
fffff8001b9180f0 stream      0      0                0 fffff800201385a0                0                0 /var/run/mdnsd
fffff800201385a0 stream   6619      0                0 fffff8001b9180f0                0                0
fffff80018dc91e0 stream      0      0                0 fffff80018dc8780                0                0 /var/run/mdnsd
fffff80018dc8780 stream   6619      0                0 fffff80018dc91e0                0                0
fffff80018dc8000 stream      0      0                0 fffff800201d82d0                0                0 /var/run/mdnsd
fffff800201d82d0 stream   4661      0                0 fffff80018dc8000                0                0
fffff800201d84b0 stream      0      0                0 fffff80018dc83c0                0                0 /var/run/mdnsd
fffff80018dc83c0 stream   4425      0                0 fffff800201d84b0                0                0
fffff80020138a50 stream      0      0                0 fffff800201d9000                0                0 /var/run/mdnsd
fffff800201d9000 stream   4130      0                0 fffff80020138a50                0                0
fffff800201d90f0 stream      0      0                0 fffff800200b83c0                0                0 /var/run/mdnsd
fffff800200b83c0 stream   5839      0                0 fffff800201d90f0                0                0
fffff800200bb960 stream      0      0                0 fffff800200bbb40                0                0 /var/run/mdnsd
fffff800200bbb40 stream   5882      0                0 fffff800200bb960                0                0
fffff80093185c30 stream      0      0                0 fffff800200ba690                0                0 /var/run/mdnsd
fffff800200ba690 stream   5482      0                0 fffff80093185c30                0                0
fffff80093185b40 stream      0      0                0 fffff800201380f0                0                0 /var/run/mdnsd
fffff800201380f0 stream   4484      0                0 fffff80093185b40                0                0
fffff8001b918e10 stream      0      0                0 fffff80020138b40                0                0 /var/run/mdnsd
fffff80020138b40 stream   4130      0                0 fffff8001b918e10                0                0
fffff800200bbc30 stream      0      0                0 fffff800201d91e0                0                0 /var/run/mdnsd
fffff800201d91e0 stream   7263      0                0 fffff800200bbc30                0                0
fffff80093184870 stream      0      0                0 fffff80093184960                0                0 /var/run/mdnsd
fffff80093184960 stream   5882      0                0 fffff80093184870                0                0
fffff80093184a50 stream      0      0                0 fffff80093184b40                0                0 /var/run/mdnsd
fffff80093184b40 stream   2058      0                0 fffff80093184a50                0                0
fffff80093184c30 stream      0      0                0 fffff80093184d20                0                0 /var/run/mdnsd
fffff80093184d20 stream   5482      0                0 fffff80093184c30                0                0
fffff80093184e10 stream      0      0                0 fffff80093185000                0                0 /var/run/mdnsd
fffff80093185000 stream   2050      0                0 fffff80093184e10                0                0
fffff800931850f0 stream      0      0                0 fffff800931851e0                0                0 /var/run/mdnsd
fffff800931851e0 stream   3360      0                0 fffff800931850f0                0                0
fffff800931852d0 stream      0      0                0 fffff800931853c0                0                0 /var/run/mdnsd
fffff800931853c0 stream   2970      0                0 fffff800931852d0                0                0
fffff80093185690 stream      0      0                0 fffff80093185780                0                0 /var/run/mdnsd
fffff80093185780 stream   6178      0                0 fffff80093185690                0                0
fffff80093185870 stream      0      0                0 fffff80093185960                0                0 /var/run/mdnsd
fffff80093185960 stream   7263      0                0 fffff80093185870                0                0
fffff80093185a50 stream      0      0                0 fffff8001b9194b0                0                0 /var/run/mdnsd
fffff8001b9194b0 stream   6619      0                0 fffff80093185a50                0                0
fffff800200bba50 stream      0      0                0 fffff800201d8e10                0                0 /var/run/mdnsd
fffff800201d8e10 stream      0      0                0 fffff800200bba50                0                0
fffff8001b919000 stream      0      0                0 fffff80018dc85a0                0                0
fffff80018dc85a0 stream      0      0                0 fffff8001b919000                0                0
fffff80018dc80f0 stream      0      0                0 fffff80018dc84b0                0                0
fffff80018dc84b0 stream      0      0                0 fffff80018dc80f0                0                0
fffff80018dc81e0 stream      0      0                0 fffff80018dc82d0                0                0 /var/run/rrdcached.sock
fffff80018dc82d0 stream      0      0                0 fffff80018dc81e0                0                0
fffff800201d7870 stream      0      0                0 fffff8001b91a000                0                0
fffff8001b91a000 stream      0      0                0 fffff800201d7870                0                0
fffff800201381e0 stream      0      0                0 fffff800201382d0                0                0 /var/run/dbus/system_bus_socket
fffff800201382d0 stream      0      0                0 fffff800201381e0                0                0
fffff800201d7960 stream      0      0                0 fffff800201d7a50                0                0 /var/run/mdnsd
fffff800201d7a50 stream      0      0                0 fffff800201d7960                0                0
fffff800201d7b40 stream      0      0                0 fffff800201d7c30                0                0 /var/run/mdnsd
fffff800201d7c30 stream      0      0                0 fffff800201d7b40                0                0
fffff800201d7d20 stream      0      0                0 fffff800201d7e10                0                0 /var/run/mdnsd
fffff800201d7e10 stream      0      0                0 fffff800201d7d20                0                0
fffff8001b9190f0 stream      0      0 fffff8002f6ac760                0                0                0 /var/run/mdnsd
fffff800200b9000 stream      0      0                0 fffff800200ba2d0                0                0
fffff800200ba2d0 stream      0      0                0 fffff800200b9000                0                0
fffff8001b9192d0 stream      0      0 fffff8002f6acce8                0                0                0 /var/run/dbus/system_bus_socket
fffff8001b9195a0 stream      0      0 fffff800271953b0                0                0                0 /var/run/rrdcached.sock
fffff800200b80f0 stream      0      0                0 fffff800200b8000                0                0 /var/run/mdnsd
fffff800200b8000 stream      0      0                0 fffff800200b80f0                0                0
fffff8002013a5a0 stream      0      0                0 fffff8002013ab40                0                0
fffff8002013ab40 stream      0      0                0 fffff8002013a5a0                0                0
fffff8001b919690 stream      0      0                0 fffff8001b919780                0                0
fffff8001b919780 stream      0      0                0 fffff8001b919690                0                0
fffff80018dc9c30 stream      1      0                0                0                0                0
fffff8001b919960 stream      0      0                0 fffff8001b919a50                0                0
fffff8001b919a50 stream      0      0                0 fffff8001b919960                0                0
fffff80018dc8a50 stream      0      0 fffff8014a49d588                0                0                0 /var/db/samba4/winbindd_privileged/pipe
fffff80018dc8b40 stream      0      0 fffff800271943b0                0                0                0 /var/run/samba4/winbindd/pipe
fffff8001b919c30 stream      0      0 fffff8014ae8a760                0                0                0 /var/run/samba4/nmbd/unexpected
fffff800201384b0 stream      0      0                0 fffff80020138780                0                0 /var/run/mdnsd
fffff80020138780 stream      0      0                0 fffff800201384b0                0                0
fffff800200b84b0 stream      0      0                0 fffff800200b85a0                0                0 /var/db/nut/usbhid-ups-ups
fffff800200b85a0 stream      0      0                0 fffff800200b84b0                0                0
fffff80020138e10 stream      0      0 fffff8014a3a5760                0                0                0 /var/db/nut/usbhid-ups-ups
fffff800200b8780 stream      0      0                0 fffff800200b8870                0                0 /var/run/mdnsd
fffff800200b8870 stream      0      0                0 fffff800200b8780                0                0
fffff800200b8960 stream      0      0                0 fffff800200b8a50                0                0 /var/run/mdnsd
fffff800200b8a50 stream      0      0                0 fffff800200b8960                0                0
fffff800200b8b40 stream      0      0                0 fffff800200b8c30                0                0 /var/run/mdnsd
fffff800200b8c30 stream      0      0                0 fffff800200b8b40                0                0
fffff80020139870 stream      0      0                0 fffff800200b8d20                0                0 /var/run/mdnsd
fffff800200b8d20 stream      0      0                0 fffff80020139870                0                0
fffff800201d9780 stream      0      0                0 fffff80020139c30                0                0 /var/run/mdnsd
fffff80020139c30 stream      0      0                0 fffff800201d9780                0                0
fffff800201d93c0 stream      0      0                0 fffff80020139960                0                0 /var/run/mdnsd
fffff80020139960 stream      0      0                0 fffff800201d93c0                0                0
fffff80020139e10 stream      0      0                0 fffff8002013a3c0                0                0 /var/run/mdnsd
fffff8002013a3c0 stream      0      0                0 fffff80020139e10                0                0
fffff800201395a0 stream      0      0 fffff8014a426938                0                0                0 /var/db/syslog-ng.ctl
fffff80020139b40 stream      0      0 fffff8014a1c0ce8                0                0                0 /var/run/mdnsd
fffff800200b8e10 stream      0      0                0 fffff800200b90f0                0                0 /var/run/devd.pipe
fffff800200b90f0 stream      0      0                0 fffff800200b8e10                0                0
fffff800201d9870 stream      0      0 fffff8014a14dce8                0                0                0 /var/run/devd.pipe
fffff800200b91e0 stream      0      0                0 fffff800200b92d0                0                0
fffff800200b92d0 stream      0      0                0 fffff800200b91e0                0                0
fffff800200ba870 stream      0      0                0 fffff800200ba1e0                0                0
fffff800200ba1e0 stream      0      0                0 fffff800200ba870                0                0
fffff800200b93c0 stream      0      0                0 fffff800200b94b0                0                0
fffff800200b94b0 stream      0      0                0 fffff800200b93c0                0                0
fffff80018dc8960 stream      0      0                0 fffff800200ba0f0                0                0
fffff800200ba0f0 stream      0      0                0 fffff80018dc8960                0                0
fffff800200ba960 stream      0      0                0 fffff8002013a2d0                0                0
fffff8002013a2d0 stream      0      0                0 fffff800200ba960                0                0
fffff800200b9780 stream      0      0 fffff8003c91bb10                0                0                0 /var/run/middlewared.sock
fffff8002013ac30 stream      0      0                0 fffff8002013ad20                0                0
fffff8002013ad20 stream      0      0                0 fffff8002013ac30                0                0
fffff8002013a960 dgram       0      0                0 fffff80020138000                0                0
fffff80020138000 dgram       0      0 fffff800c8c931d8                0 fffff8002013a960                0 /var/run/logpriv
fffff80140ab8a50 dgram       0      0 fffff801b85843b0                0                0                0 /var/run/log
fffff800931821e0 dgram       0      0 fffff80114a33760                0                0                0 /var/db/samba4/private/msg.sock/78750
fffff80018dc75a0 dgram       0      0                0 fffff80020139780                0 fffff80018dc7d20
fffff800200ba780 dgram       0      0                0 fffff80020139690                0 fffff800200bbe10
fffff80018dc7d20 dgram       0      0                0 fffff80020139780                0 fffff800201d92d0
fffff800200bbe10 dgram       0      0                0 fffff80020139690                0 fffff800200bbd20
fffff800200bbd20 dgram       0      0                0 fffff80020139690                0 fffff8001b9191e0
fffff8001b9191e0 dgram       0      0                0 fffff80020139690                0 fffff8001b919e10
fffff80018dc9e10 dgram       0      0 fffff800259023b0                0                0                0 /var/db/samba4/private/msg.sock/3294
fffff800200ba4b0 dgram       0      0 fffff8014a49d1d8                0                0                0 /var/db/samba4/private/msg.sock/3293
fffff8001b919870 dgram       0      0 fffff800243da1d8                0                0                0 /var/db/samba4/private/msg.sock/3292
fffff80018dc92d0 dgram       0      0 fffff8014a49d938                0                0                0 /var/db/samba4/private/msg.sock/3291
fffff8001b919e10 dgram       0      0                0 fffff80020139690                0 fffff80020138c30
fffff8001b919d20 dgram       0      0 fffff80027194000                0                0                0 /var/db/samba4/private/msg.sock/3284
fffff800200ba3c0 dgram       0      0 fffff80027194b10                0                0                0 /var/db/samba4/private/msg.sock/3258
fffff8001b919b40 dgram       0      0 fffff8014a75d000                0                0                0 /var/db/samba4/private/msg.sock/3253
fffff8002013a4b0 dgram       0      0 fffff8014ae8ab10                0                0                0 /var/db/samba4/private/msg.sock/3250
fffff800201d92d0 dgram       0      0                0 fffff80020139780                0                0
fffff80020138c30 dgram       0      0                0 fffff80020139690                0 fffff80020138d20
fffff80020138d20 dgram       0      0                0 fffff80020139690                0 fffff800200b8690
fffff800200b8690 dgram       0      0                0 fffff80020139690                0 fffff80020139000
fffff80020139000 dgram       0      0                0 fffff80020139690                0 fffff800201d9690
fffff800201d9690 dgram       0      0                0 fffff80020139690                0 fffff800201394b0
fffff800201394b0 dgram       0      0                0 fffff80020139690                0                0
fffff80020139690 dgram       0      0 fffff8014a426b10                0 fffff800200ba780                0 /var/run/logpriv
fffff80020139780 dgram       0      0 fffff8014a426ce8                0 fffff80018dc75a0                0 /var/run/log
fffff80018dc8690 seqpac      0      0                0 fffff8001b918c30                0                0 /var/run/devd.seqpacket.pipe
fffff8001b918c30 seqpac      0      0                0 fffff80018dc8690                0                0
fffff800201d94b0 seqpac      0      0 fffff8014a14db10                0                0                0 /var/run/devd.seqpacket.pipe
root@HeslopNAS:~ #


In case this helps.
 

zamana

Contributor
Joined
Jun 4, 2017
Messages
163
From the output of "netstat -an" and "ps -aux", the conclusion is that the Plex Media Server service is not running. That's why you can't "manage" the service when you click on the GUI.

In my jail, the Plex is installed at /usr/local/share/plexmediasever-plexpass (if you don't have the subscription, I guess you should remove the "plexplass" part from now on...).

Code:
/usr/local/share/plexmediaserver-plexpass # ls -l
total 18487
-rwxr-xr-x   1 plex  plex   1458704 Nov 22 07:25 CrashUploader
-rwxr-xr-x   1 plex  plex    418200 Nov 22 07:25 Plex Commercial Skipper
-rwxr-xr-x   1 plex  plex   4017144 Nov 22 07:25 Plex DLNA Server
-rwxr-xr-x   1 plex  plex    127120 Nov 22 07:25 Plex Media Fingerprinter
-rwxr-xr-x   1 plex  plex   6228952 Nov 22 07:25 Plex Media Scanner
-rwxr-xr-x   1 plex  plex  20356432 Nov 22 07:25 Plex Media Server
-rwxr-xr-x   1 plex  plex    708768 Nov 22 07:25 Plex Relay
-rwxr-xr-x   1 plex  plex      9768 Nov 22 07:25 Plex Script Host
-rwxr-xr-x   1 plex  plex    267632 Nov 22 07:25 Plex Transcoder
-rwxr-xr-x   1 plex  plex   3935672 Nov 22 07:25 Plex Tuner Service
lrwxr-xr-x   1 root  plex        17 Nov 24 14:49 Plex_Media_Server -> Plex Media Server
drwxr-xr-x  10 plex  plex        49 Nov 22 07:37 Resources
drwxr-xr-x   3 plex  plex        50 Nov 22 07:25 lib
-rwxrwxr-x   1 plex  plex       967 Nov 22 07:37 start.sh


Inside this folder, there is a symbolic link from "Plex Media Server" to "Plex_Media_Server". If you check the rc script at /usr/local/etc/rc.d/plexmediaserver_plexpass, you will see that it tries to run the "Plex_Media_Server" version, so the symlink.

In order to manage the service, execute
Code:
service plexmediaserver_plexpass status

and if it isn't running, execute
Code:
service plexmediaserver_plexpass start


and then execute again those "netstat -an" and "ps -aux" that you executed before, and check if you can access the Plex WEBUI.

If that works, check that you a have a line "plexmediaserver_plexpass_enable="YES"" into your /etc/rc.conf. This will make the service start automatically every time you "boot" the jail/plugin.

Hope this helps.
 

Kris Heslop

Dabbler
Joined
Feb 7, 2016
Messages
42
Thanks you for what I think were detailed instructions, although perhaps not enough for me to get everything right. I think I have forgotten how to do some of this, but I think I was able to confirm that something is broken and it is not running or starting PMS.

I went to go back in to the jail and was told teh command was invalid...checked "jls" again and discovered that the jail number had changed from 2 to 4, although I don't recall rebooting ar anything like that in the last 10-hours...so doesn't matter, it is not the same jail # and I went forward. I switched to #4 and got the following:

For me the path was ../iocage/jails/plex/root/usr/local/etc/rc.d/plexmediaserver.

BTW, I installed plexmedia-plexpass, previoulsy with success, and in between the problems and now switched from the free to life paid subscription.

Code:
root@plex:/ # /usr/local/share/
/usr/local/share/: Permission denied.
root@plex:/ #
root@plex:/ # service plexmedia start
plexmedia does not exist in /etc/rc.d or the local startup
directories (/usr/local/etc/rc.d), or is not executable
root@plex:/ # service plexmedia_plexpass start
plexmedia_plexpass does not exist in /etc/rc.d or the local startup
directories (/usr/local/etc/rc.d), or is not executable
root@plex:/ # service plexmedia_plexpass status
plexmedia_plexpass does not exist in /etc/rc.d or the local startup
directories (/usr/local/etc/rc.d), or is not executable
root@plex:/ #


Along the way, since I could not remember the correct way to navigate directories within the terminal window, I went to finder (filemanager) to:/usr/local/etc/rc.d/plexmediaserver

Doing that opened a terminal window with the following:

Code:
Last login: Sat Nov 30 07:48:41 on ttys000
/Volumes/Heslop3t/iocage/jails/plex/root/usr/local/etc/rc.d/plexmediaserver ; exit;
Kris-rMBP:~ krisheslop$ /Volumes/Heslop3t/iocage/jails/plex/root/usr/local/etc/rc.d/plexmediaserver ; exit;
/Volumes/Heslop3t/iocage/jails/plex/root/usr/local/etc/rc.d/plexmediaserver: line 21: /etc/rc.subr: No such file or directory
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
Deleting expired sessions...25 completed.

[Process completed]


It was after that when I ran the service plexmedia...start.

So it is missing something, but not remembering or knowing what to do or how to do it, I am at a bit of a loss.

Appreciate any further help...maybe what would be equal to a manual copy of the old config files like if I was doing a transfer from the old jails to the iocage jails.
 
Last edited:

zamana

Contributor
Joined
Jun 4, 2017
Messages
163
I'm really sorry, but your environment seems a little bit... "corrupted".

By they, it seems that you are mixing the host environment (... /iocage/jails/plex/root/ ...) with the jail environment (/usr/local/etc/rc.d etc).

In order to configure the plex service (or any other), you need to be inside that jail.

What's the output of "iocage list" on the host?
 

Kris Heslop

Dabbler
Joined
Feb 7, 2016
Messages
42
I'm really sorry, but your environment seems a little bit... "corrupted".

By they, it seems that you are mixing the host environment (... /iocage/jails/plex/root/ ...) with the jail environment (/usr/local/etc/rc.d etc).

In order to configure the plex service (or any other), you need to be inside that jail.

What's the output of "iocage list" on the host?

Zamana, Yes, clearly something is corrupted, and I would say a lot.

As background, After I started a workaround of installing and deleting another instance, they added the note to the trouble ticket that doing so can delete both jails (completely?) Perhaps it would be easier and wiser to start over?

If I understand iocage correctly, which is likely wrong, iocage is used to create jails and comprises of the tools and resources used to create the jails; however, the impression from your phrasing its something "more" that is also running.

So I ran the iocage list command with the following null report:

Code:
root@HeslopNAS:~ # iocage list
+-----+------+-------+---------+-----+
| JID | NAME | STATE | RELEASE | IP4 |
+=====+======+=======+=========+=====+
+-----+------+-------+---------+-----+
root@HeslopNAS:~ #


So nothing is running in iocage.

I went back in and checked the jail and it is not showing anything either. I rebooted and confirmed, nothing is present.

When I search the file directories, it looks like they are gone also...

So that looks like my idea to start over is the only option?

As for being inside the jail, I thought going in through the discovery command: jls, which gave the jail number and confirmed it was (at that time) plex, and then accessing the plex jail via ssh would have me working inside of the plex jail?

So I will start from scratch, at least the media files are all still present.

Now when I access the
 

zamana

Contributor
Joined
Jun 4, 2017
Messages
163
I guess that start over would be the fastest and simplest way to fix your environment. But you need to be absolutely sure, with 110% of certainty, that you have a restorable backup of your data.

Then, after installing a fresh FreeNAS, be sure to use the GUI to create your jails/plugins. As long as I know, the "jls' command is legacy now...
 

Kris Heslop

Dabbler
Joined
Feb 7, 2016
Messages
42
I was thinking I should start over with a new iocage jail for the plex plugin. My media storage pools are performing fine (I have set up a PMS on a Win10 machine that has full access to them unless another better way is suggested.

Zamana, Thank you for putting me on the path to validate that PMS was blown out (again,) not sure why, but this happened after an upgrade a couple of years ago, although then I knew less and just gave up and started over without knowing how to check on any "inner workings."

Thank you again for steering me along.
 
Top