PMS won't start

Discussion in 'Plugins' started by C Mo, Nov 16, 2013.

  1. Offline

    C Mo

    Member Since:
    Nov 16, 2013
    Messages:
    1
    Message Count:
    1
    Likes Received:
    0
    Trophy Points:
    1
    C Mo, Nov 16, 2013

    Hi All,

    I've been searching on the forum for a fix to this issue to no avail, it seems that other people is having the same problem but there is no fix that I could find.

    The problem is the following, when I install PMS 0.9.8.10.215 on FreeNAS-9.1.1-RELEASE-x64 (a752d35) all goes well, I can edit the plugin from the Jails tab, but it doesn't show on the Plugins tree, and when I try to turn on the service I get an error on the top of the screen that says "Some error occurred" and it goes back to off.

    If I check /var/log/messages from the jail I see:

    Code (text):
    1.  root@plex_1:/ # cat /var/log/messages
    2. Nov 16 14:48:44 plex_1 newsyslog[60639]: logfile first created
    3. Nov 16 14:48:44 plex_1 syslogd: kernel boot file is /boot/kernel/kernel
    4. Nov 16 14:48:45 plex_1 su: setpriority 'root' (root): Permission denied
    5. Nov 16 14:55:41 plex_1 syslogd: exiting on signal 15
    6. Nov 16 14:56:19 plex_1 syslogd: kernel boot file is /boot/kernel/kernel
    7. root@plex_1:/ #
    I also tried to start it manually using
    Code (text):
    1.  /usr/pbi/plexmediaserver-amd64/etc/rc.d/plexmediaserver start
    and got a message telling me to use onestart instead or add plexmediaserver_enable="YES" to /etc/rc.conf . I did both things and still nothing.

    Any help is much appreciated. Also please let me know if you need more info.

    Thanks!
  2. Offline

    cliffboss

    Member Since:
    Jul 29, 2013
    Messages:
    22
    Message Count:
    22
    Likes Received:
    0
    Trophy Points:
    1
    cliffboss, Nov 16, 2013

    Also having the same issue.
  3. Offline

    jpimp

    Member Since:
    Nov 17, 2013
    Messages:
    1
    Message Count:
    1
    Likes Received:
    0
    Trophy Points:
    1
    jpimp, Nov 17, 2013

    I had the same problem last night when I installed this version. I have the previous pms plugin installed and it starts without a problem.


    Sent from my iPhone using Tapatalk
  4. Offline

    Freezor

    Member Since:
    Jun 10, 2011
    Messages:
    2
    Message Count:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Freezor, Nov 23, 2013

  5. Offline

    Persuter

    Member Since:
    Nov 23, 2013
    Messages:
    2
    Message Count:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Persuter, Nov 23, 2013

    I'm having what appears to be a very similar problem. I installed the PMS plugin through the GUI and set up the jail. It shows the Plex Media Server in the plugins tree and in the Installed Plugins section, but when I try to start it, the console output says that it "exited on signal 6". Going into the jail and checking /var/log/messages, I see the exact same log file above. Plexmediaserver_enable was already turned on in rc.conf.
  6. Offline

    freenas-deluxe

    Member Since:
    Nov 23, 2013
    Messages:
    13
    Message Count:
    13
    Likes Received:
    3
    Trophy Points:
    3
    freenas-deluxe, Nov 23, 2013

    +1
    I had the plugin in Version 0.9.8.6 running for some weeks without a problem on FreeNAS 9.1.1
    Now I saw the new version, uninstalled 0.9.8.6, rebooted and installed 0.9.8.10.
    But this version does not start at all.
    Plexmediaserver_enable is turned on in rc.conf.
    Code (text):
    1. root@plex_1:/ # service plexmediaserver start                        
    2. Starting plexmediaserver.
    3. root@plex_1:/ # service plexmediaserver status                        
    4. plexmediaserver is not running.
    Code (text):
    1. root@plex_1:/ # tail /var/log/messages                                
    2. Nov 23 23:50:37 plex_1 syslogd: kernel boot file is /boot/kernel/kernel
    3. Nov 23 23:50:37 plex_1 su: setpriority 'root' (root): Permission denied
    4. Nov 23 23:58:32 plex_1 syslogd: exiting on signal 15                  
    5. Nov 24 00:01:34 plex_1 syslogd: kernel boot file is /boot/kernel/kernel
    6. Nov 24 01:09:56 plex_1 root: /usr/sbin/service: WARNING: $svnserve_enable is not
    7. set properly - see rc.conf(5).                                      
    8. Nov 24 01:09:56 plex_1 root: /usr/sbin/service: WARNING: $dbus_enable is not set
    9. properly - see rc.conf(5).                                          
    10. Nov 24 01:10:06 plex_1 root: /usr/sbin/service: WARNING: $svnserve_enable is not
    11. set properly - see rc.conf(5).                                      
    12. Nov 24 01:10:06 plex_1 root: /usr/sbin/service: WARNING: $dbus_enable is not set
    13. properly - see rc.conf(5).                                          
    14. Nov 24 01:18:12 plex_1 root: /usr/sbin/service: WARNING: $svnserve_enable is not
    15. set properly - see rc.conf(5).                                      
    16. Nov 24 01:18:12 plex_1 root: /usr/sbin/service: WARNING: $dbus_enable is not set
    17. properly - see rc.conf(5).
    Code (text):
    1. root@plex_1:/ # cat /etc/rc.conf                                          
    2. portmap_enable="NO"                                                      
    3. sshd_enable="YES"                                                        
    4. sendmail_enable="NO"                                                      
    5. sendmail_submit_enable="NO"                                              
    6. sendmail_outbound_enable="NO"                                            
    7. sendmail_msp_queue_enable="NO"                                            
    8. hostname="plex_1"                                                        
    9. devfs_enable="YES"                                                        
    10. devfs_system_ruleset="devfsrules_common"                                  
    11. plexmediaserver_enable="YES"            
    Code (text):
    1. root@plex_1:/usr/pbi/plexmediaserver-amd64/plexdata/Plex Media Server/Logs # cat
    2. Plex\ Media\ Server.log                                                      
    3. Nov 24, 2013 02:09:16 [0x807407400] INFO - Plex Media Server v0.9.8.10.215-02045
    4. 6b - FreeBSD PC amd64                                                        
    5. Nov 24, 2013 02:09:16 [0x807407400] DEBUG - Opening 10 database sessions to libr
    6. ary, SQLite 3.8.0.2, threadsafe=1                                            
    7. Nov 24, 2013 02:09:16 [0x807407400] ERROR - SQLITE3:10, 8, statement aborts at 2
    8. : [PRAGMA journal_mode=WAL]
  7. Offline

    Persuter

    Member Since:
    Nov 23, 2013
    Messages:
    2
    Message Count:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Persuter, Nov 23, 2013

    I am also getting that same error:

    Code (text):
    1. Nov 23, 2013 12:29:24 [0x807407400] INFO - Plex Media Server v0.9.8.10.215-02045
    2. 6b - FreeBSD PC amd64                                                          
    3. Nov 23, 2013 12:29:24 [0x807407400] DEBUG - Opening 10 database sessions to libr
    4. ary, SQLite 3.8.0.2, threadsafe=1                                              
    5. Nov 23, 2013 12:29:24 [0x807407400] ERROR - SQLITE3:10, 8, statement aborts at 2
    6. : [PRAGMA journal_mode=WAL]    
  8. Offline

    shackrock Newbie

    Member Since:
    Dec 21, 2011
    Messages:
    86
    Message Count:
    86
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    DC
    shackrock, Nov 24, 2013

    Hm, same error for me as well, see thread: http://forums.freenas.org/threads/plex-plugin-wont-start.16449/#post-84512

    In the interest of keeping in one thread, I'm pasting my findings:
    I think I have done everything I need to:

    Install from the list - Plex Media Server Plugin version 0.9.8.10.215
    Go to the Jails and then plex_1 then Storage, and add all of my Media links.
    At this point I think I should be able to just turn the switch to ON for the plugin. Unfortunately, it stays OFF and I see the messages below each time I try to start it. I also attached a screenshot.


    Nov 24 07:48:45 freenas kernel: pid 58352 (Plex Media Server), uid 972: exited on signal 6
    Nov 24 07:48:48 freenas manage.py: [common.pipesubr:57] Popen()ing: /usr/local/bin/warden list -v
    Nov 24 07:48:49 freenas kernel: pid 58446 (Plex Media Server), uid 972: exited on signal 6

    Also, I see this in the warden.log:
    Code (text):
    1.  
    2. Building new Jail... Please wait...
    3. zfs clone DEC2010/jails/.warden-template-9.1-RELEASE-amd64-pluginjail@clean DEC2010/jails/plex_1
    4. Success!
    5. Jail created at /mnt/DEC2010/jails/plex_1
    6.  
    UPDATE:
    Ok so I also went into /var/log/messages and saw this:
    Code (text):
    1.  
    2. Nov 24 07:39:16 plex_1 newsyslog[27988]: logfile first created
    3. Nov 24 07:39:16 plex_1 syslogd: kernel boot file is /boot/kernel/kernel
    4. Nov 24 07:39:16 plex_1 su: setpriority 'root' (root): Permission denied
    5.  
    Seems like my root user isn't allowed access????
  9. Offline

    dir_d

    Member Since:
    Nov 9, 2013
    Messages:
    3
    Message Count:
    3
    Likes Received:
    1
    Trophy Points:
    3
    dir_d, Nov 24, 2013

    I logged in to say that it is working for me, I have both the old and new running at the same time. Im a noob but if there is anything that you want me to do to help identify why its not working for some people ill try to help.
  10. Offline

    TheRev

    Member Since:
    Nov 24, 2013
    Messages:
    2
    Message Count:
    2
    Likes Received:
    0
    Trophy Points:
    1
    TheRev, Nov 25, 2013

    I had a similar problem in that python was crashing.

    I deleted PMS then installed again and it is working. Apparently some of the dependencies did not load the first install.
  11. Offline

    freenas-deluxe

    Member Since:
    Nov 23, 2013
    Messages:
    13
    Message Count:
    13
    Likes Received:
    3
    Trophy Points:
    3
    freenas-deluxe, Nov 25, 2013

    OK, I solved the issue with FreeNAS 9.1.1. and PMS 0.9.8.10.215:

    1.) Goto Jails -> View Jails
    2.) Select you Plex_1 jail and press "Edit Jail"
    3.) DEselect "VIMAGE" and press "Save"
    4.) Restart the Plex_1 Jail.
    5.) Goto Plugins and start Plexmediaserver.

    All credits goto:
    http://forums.freenas.org/threads/plex-media-server.13834/
    ssgoku129 likes this.
  12. Offline

    shackrock Newbie

    Member Since:
    Dec 21, 2011
    Messages:
    86
    Message Count:
    86
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    DC
    shackrock, Nov 26, 2013

    This solution did not work for me. The plex plugin still won't start after following this procedure.

    FYI I restarted the jail by clicking it, hten at the bottom some icons show up to STOP, then afterwards to START.
  13. Offline

    freenas-deluxe

    Member Since:
    Nov 23, 2013
    Messages:
    13
    Message Count:
    13
    Likes Received:
    3
    Trophy Points:
    3
    freenas-deluxe, Nov 26, 2013

    First you press "Stop", then you press "Start".
    Those buttons are next to the "Edit Jail" Button.
    ssgoku129 likes this.
  14. Offline

    shackrock Newbie

    Member Since:
    Dec 21, 2011
    Messages:
    86
    Message Count:
    86
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    DC
    shackrock, Nov 26, 2013

    Yep just found that, thanks. See above, I edited my post while you were posting.
  15. Offline

    dir_d

    Member Since:
    Nov 9, 2013
    Messages:
    3
    Message Count:
    3
    Likes Received:
    1
    Trophy Points:
    3
    dir_d, Nov 26, 2013

    I was receiving the error about toot too at one time too but for another jail that i created. I found out that i had changed the shell of root to bash and bash is not copied over to the jail when its created. Once i changed the shell back to csh my problems went away. it might be a long shot but its something to try.
  16. Offline

    shackrock Newbie

    Member Since:
    Dec 21, 2011
    Messages:
    86
    Message Count:
    86
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    DC
    shackrock, Nov 27, 2013


    Can you explain how you did this?
  17. Offline

    shackrock Newbie

    Member Since:
    Dec 21, 2011
    Messages:
    86
    Message Count:
    86
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    DC
    shackrock, Nov 27, 2013

    Ok so I tried to delete the original plugin/jail and start over. I installed the plugin, turned off VIMAGE, clicked save. Then I went to the jail and STOPPED it via the GUI. Finally, I clicked START. At that point, the "loading" pop up froze on the screen.

    After about 10 minutes, I figured something was certainly wrong. I can no longer access my CIFS share, and I can no longer access the web portal. I tried a restart, but unfortunately it remains the same. I also tried SSH, no connection.

    I do see FreeNAS booted properly though on restart (see attached). I know this because my motherboard shows me and lets me "virtually" connect from my PC as if I had a keyboard and monitor connected. See the attached image.

    I'm not sure what happened when I started the jail, but it did not like it.

    How can I get back to where I was before this jail? How can I get back into the GUI via the web interface, or even SSH?

    Attached Files:

  18. Offline

    dir_d

    Member Since:
    Nov 9, 2013
    Messages:
    3
    Message Count:
    3
    Likes Received:
    1
    Trophy Points:
    3
    dir_d, Nov 27, 2013

    I deleted the jail, went to acconut-->users-->view users then i selected the root user and changed the shell to csh. Then i reinstalled the jail manually. i creaed the jail by going to jails-->add jail, left all the settings alone except change the jail type from standard to pluginjail. I went to appcafe and downloaded the plexmediaserver-0.9.8.10.215-amd64.pbi plugin to my winbox while the plugin was being created. Once the jail was up and running, I highlighted the new jail then at the bottom of the jail screen there is a brown box stating to upload the plugin. Once the plugin was uploaded i went to the plugins page to turn it on and it worked.
    nehmia likes this.
  19. Offline

    rm-r FreeNAS Aware

    Member Since:
    Jan 7, 2013
    Messages:
    156
    Message Count:
    156
    Likes Received:
    3
    Trophy Points:
    18
    Location:
    New Zealand
    rm-r, Dec 5, 2013

    OK guys - same problem - the way I sorted it....

    • delete the plex plugin
    • reinstall the plex plugin
    • start the plex plugin
    • THEN create your in jail dataset and mount point
    job done
    Key = mount points AFTER starting server for first time it seems!
  20. Offline

    cyberjock Forum Guard Dog/Admin

    Member Since:
    Mar 25, 2012
    Messages:
    12,416
    Message Count:
    12,416
    Likes Received:
    618
    Trophy Points:
    113
    cyberjock, Dec 5, 2013

    That shouldn't matter. Especially since when you ever have to reboot you'll get the mount points at bootup. You probably fixed an error in your configuration by deleting and reinstalling the plugin. :)

Share This Page