Lock for Plex Google Chrome App

Hi There

I have been following this thread and with a little help I managed to install sqlite3 and edit the lock / unlock files and now the system locks and unlocks from the command line. When I try it from the plexapp web or my iphone nothing happens.

Running standard ubuntu install

dean

Hi There

I have been following this thread and with a little help I managed to install sqlite3 and edit the lock / unlock files and now the system locks and unlocks from the command line. When I try it from the plexapp web or my iphone nothing happens.

Running standard ubuntu install

dean

This is the problem I was having.

Try this to help diagnose exactly what is going on:

First from the command line cd into the directory where you store your .sh files for this plug in then do the following.

sudo echo 'L0cking Error Log' >  l0ck_error.log
sudo chmod a+w l0ck_error.log

Then edit the l0ck.sh file and alter it similar to this. Note you will need to keep your query and path lines.

#!/bin/bash

l0ckplex=“UPDATE metadata_items SET metadata_type=20 WHERE library_section_id=7 and metadata_type=1; DELETE FROM library_sections WHERE id=7;UPDATE metadata_items SET metadata_type=20 WHERE library_section_id=12 and metadata_type=1; DELETE FROM library_sections WHERE id=12;”

cd /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Plug-ins/L0ck.bundle/Contents/Resources/l0ck_support/

echo LOCK: date >> l0ck_error.log
sqlite3 “/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db” “$l0ckplex”  >> l0ck_error.log 2>&1

exit;

Then from the command line enter

tail -f l0ck_error.log

Next try using the Lock plug in.  Does any thing appear in the log?

If every thing works correctly you should only see a new entry with LOCK and the date time stamp.  Otherwise you might see an error.  If nothing happens then it isn't working correctly and the .sh file is not being called.

Thanks for the help , It is now working from my iphone and command line. However I don't see an UNLOCK button on webapp just the lock and update feed ?

https://twitter.com/lockforplex/status/663283582832480256

Good stuff! you're almost there!

in the init.py file make the changes below or copy/paste:

import os
PREFIX = "/video/l0ck"
PASSWORD = "012345"
BASEPATHL0CK = 'var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/L0ck.bundle/Contents/Resources/l0ck_support/l0ck.sh'
BASEPATHUNL0CK = 'var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/L0ck.bundle/Contents/Resources/l0ck_support/unl0ck.sh'
GENERATE_DATE = "2nd NOV 2014"
DEV_MODE = False
NAME = 'L0ck'
ART = 'art-default.jpg'
ICON = 'icon-default.png'
L0CK_ICON = 'L0ck.png'
UNL0CK_ICON = 'unL0ck.png'
SUCCESS_ICON = 'success.png'
ERROR_ICON = 'error.png'
UPDATES_ICON = 'updates.png'

def Start():
    HTTP.CacheTime = 0
    ObjectContainer.art = R(ART)
    DirectoryObject.thumb = R(ICON)
    Plugin.AddViewGroup(“Details”, viewMode=“InfoList”, mediaType=“items”)
    Plugin.AddViewGroup(“List”, viewMode=“List”, mediaType=“items”)
    ObjectContainer.view_group = ‘Details’
    Logger(‘Platform: ’ + Platform.OS +’ Version: '+Platform.OSVersion, force=True)
    Logger('PMS Server: ’ + Platform.ServerVersion, force=True)
    Logger('Plex Media Server at ’ + Core.app_support_path, force=True)
    Logger('Plug-in bundles are located in ’ + Core.storage.join_path(Core.app_support_path, Core.config.bundles_dir_name), force=True)
    Logger('Plug-in support files are located in ’ + Core.storage.join_path(Core.app_support_path, Core.config.plugin_support_dir_name), force=True)
    Logger('L0ck Bundle path is ’ + Core.storage.join_path(Core.storage.join_path(Core.app_support_path, Core.config.bundles_dir_name), ‘L0ck.bundle’), force=True)
    Logger('BASEPATHL0CK: ’ + BASEPATHL0CK, force=True)
    Logger('BASEPATHUNL0CK: ’ + BASEPATHUNL0CK, force=True)
    Logger('L0ck plugin generated on: ’ + GENERATE_DATE, force=True)

@handler(PREFIX, NAME, ICON, ART)
@route(PREFIX + ‘/mainmenu’)
def MainMenu():
        oc = ObjectContainer(no_cache=True)
        oc.add(DirectoryObject(key=Callback(L0ck, path=BASEPATHL0CK, task=‘L0cked’, query=“”), title=“L0ck”, thumb=R(L0CK_ICON)))    
        oc.add(InputDirectoryObject(key=Callback(L0ck, path=BASEPATHUNL0CK, task=‘UnL0cked’), title=“UnL0ck”, thumb=R(UNL0CK_ICON), prompt=“Enter your password”))
        oc.add(DirectoryObject(key=Callback(Updates), title=“Update Feed”, thumb=R(UPDATES_ICON)))
        return oc

@route(PREFIX + ‘/Updates’)
def Updates():
        oc = ObjectContainer(title2=‘You generated the L0ck plugin on [’+ GENERATE_DATE +‘]’, view_group=‘List’, no_cache=True)
        updatedata = ‘’
        updatedate = ‘’
        xml = RSS.FeedFromURL(‘https://raw.githubusercontent.com/ish0w/L0ck-for-plex-media-server/gh-pages/xml/updates.xml’)
        for item in xml.entries:
            updatedata = item.description
            updatedate = item.title
            Logger(updatedate, force=True)
            Logger(updatedata, force=True)
            oc.add(DirectoryObject(key=Callback(MainMenu),title=‘[’ + updatedate +'] - ’ + updatedata))
        
        if len(oc) < 1:
            Logger(‘Something went wrong while pulling xml’, force=True)
            return oc.add(DirectoryObject(key=Callback(MainMenu),title=‘Pl. ensure your connected to the internet and try again!’))
        else:
            return oc

@route(PREFIX + ‘/L0ck’)
def L0ck(query, path, task):
    oc = ObjectContainer(title2=“L0ck”, no_cache=True)
    if task == ‘UnL0cked’:
        if query == PASSWORD:
            Logger(‘Password correct about to launch unL0ck’, force=True)
            #filepath = path.replace(’ ', '\ ')
            os.system(‘sh ’ + path)
            Logger(‘Launched unL0ck’, force=True)
            oc.add(PopupDirectoryObject(key=Callback(MainMenu), title=“UnL0cked”, duration=3, summary=“Section(s) successfully UnL0cked!”, thumb=R(SUCCESS_ICON)))
            return oc
        else:
            Logger(‘Password Incorrect, someone is trying to get in!’, force=True)
            oc.add(PopupDirectoryObject(key=Callback(MainMenu), title=“Incorrect Password”, duration=3, summary=“Try Again!”, thumb=R(ERROR_ICON)))
            return oc
    elif task == ‘L0cked’:
        Logger(‘L0cking’, force=True)
        #filepath = path.replace(’ ', '\ ')
        os.system('sh ’ + path)
        Logger(‘L0cked’, force=True)
        oc.add(PopupDirectoryObject(key=Callback(MainMenu), title=“L0cked”, duration=3, summary=“Section(s) successfuly L0cked!”, thumb=R(SUCCESS_ICON)))
        return oc

@route(PREFIX + ‘/logger’)
def Logger(message, force=False):
    if DEV_MODE:
        force = True
    if force:
        Log.Debug(‘======L0CK======’+message)
    else:
        pass

FYI - every instance of "filepath" needed to be changed to "path"

Now make the necessary changes to unl0ck.sh

change this below

./sqlite3 /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Plug-in\ Support/Databases/com.plexapp.plugins.library.db "$unl0ckplex" 

to

sqlite3 /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Plug-in\ Support/Databases/com.plexapp.plugins.library.db "$unl0ckplex" 

...and lastly dont forget to run the below commands in terminal again!

...Dont forget to run the below in terminal, it is critical! Copy and paste the below in terminal

cd "var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/"
sudo chown -R plex:plex L0ck.bundle

hit enter!

then copy/paste the below and hit enter

cd "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/L0ck.bundle/Contents/Resources/l0ck_support"
sudo chmod a+x l0ck.sh
sudo chmod a+x unl0ck.sh
sudo chmod a+x sqlite3

If you are logged in as root try:

cd "var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/"
chown -R plex:plex L0ck.bundle

hit enter!

then copy/paste the below and hit enter

cd "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/L0ck.bundle/Contents/Resources/l0ck_support"
chmod a+x l0ck.sh
chmod a+x unl0ck.sh
chmod a+x sqlite3

/iSh0w

thx for your answer, but unfortunately it will not work. the libary "home videos" is locked, but i cant unlock it.

2014-11-03 17:57:01,266 (7f93148a5700) :  INFO (core:347) - Starting framework core - Version: 2.5.0, Build: a51033b (Mon Jul 28 12:19:14 UTC 2014)
2014-11-03 17:57:01,267 (7f93148a5700) :  DEBUG (core:359) - Using the elevated policy
2014-11-03 17:57:01,267 (7f93148a5700) :  DEBUG (core:448) - Starting runtime component.
2014-11-03 17:57:01,268 (7f93148a5700) :  DEBUG (core:448) - Starting caching component.
2014-11-03 17:57:01,268 (7f93148a5700) :  DEBUG (core:448) - Starting data component.
2014-11-03 17:57:01,268 (7f93148a5700) :  DEBUG (core:448) - Starting networking component.
2014-11-03 17:57:01,268 (7f93148a5700) :  DEBUG (networking:288) - Loaded HTTP cookies
2014-11-03 17:57:01,269 (7f93148a5700) :  DEBUG (networking:458) - Setting the default network timeout to 20.0
2014-11-03 17:57:01,269 (7f93148a5700) :  DEBUG (core:448) - Starting localization component.
2014-11-03 17:57:01,269 (7f93148a5700) :  INFO (localization:408) - Setting the default locale to en-us
2014-11-03 17:57:01,269 (7f93148a5700) :  DEBUG (core:448) - Starting messaging component.
2014-11-03 17:57:01,270 (7f9309409700) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/system/messaging/clear_events/com.plexapp.plugins.l0ckunl0ck'
2014-11-03 17:57:01,270 (7f93148a5700) :  DEBUG (core:448) - Starting debugging component.
2014-11-03 17:57:01,270 (7f93148a5700) :  DEBUG (core:448) - Starting services component.
2014-11-03 17:57:01,271 (7f93148a5700) :  DEBUG (core:448) - Starting myplex component.
2014-11-03 17:57:01,271 (7f93148a5700) :  DEBUG (core:448) - Starting notifications component.
2014-11-03 17:57:01,369 (7f93148a5700) :  DEBUG (accessor:68) - Creating a new model access point for provider com.plexapp.plugins.l0ckunl0ck in namespace 'metadata'
2014-11-03 17:57:01,373 (7f93148a5700) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes'
2014-11-03 17:57:01,490 (7f9309409700) :  DEBUG (services:265) - Plug-in is not daemonized - loading services from system
2014-11-03 17:57:01,493 (7f9309409700) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0J1bmRsZVNlcnZpY2U6QWxsU2VydmljZXM_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMApyMAo_'
2014-11-03 17:57:01,490 (7f93148a5700) :  DEBUG (runtime:1111) - Created a thread named 'load_all_services'
2014-11-03 17:57:01,494 (7f9303fff700) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400'
2014-11-03 17:57:01,494 (7f93148a5700) :  DEBUG (runtime:1111) - Created a thread named 'get_server_info'
2014-11-03 17:57:01,497 (7f93148a5700) :  DEBUG (core:150) - Finished starting framework core
2014-11-03 17:57:01,497 (7f93148a5700) :  DEBUG (core:558) - Loading plug-in code
2014-11-03 17:57:01,546 (7f93148a5700) :  DEBUG (core:564) - Finished loading plug-in code
2014-11-03 17:57:01,548 (7f93148a5700) :  DEBUG (runtime:640) - Adding a prefix handler for 'L0ck' ('/video/l0ck')
2014-11-03 17:57:01,550 (7f93148a5700) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400'
2014-11-03 17:57:01,552 (7f9303fff700) :  DEBUG (core:536) - Machine identifier is 5de14e0adcefdc1185d317ad0dd7e14b2b2de26b
2014-11-03 17:57:01,553 (7f9303fff700) :  DEBUG (core:537) - Server version is 0.9.11.1.678-c48ffd2
2014-11-03 17:57:01,554 (7f93148a5700) :  DEBUG (core:519) - Attribute 'platformVersion' set to ' (#1 SMP Debian 3.16.3-2~bpo70+1 (2014-09-21))'
2014-11-03 17:57:01,554 (7f93148a5700) :  DEBUG (__init__:91) - ======L0CK======Platform: Linux Version:  (#1 SMP Debian 3.16.3-2~bpo70+1 (2014-09-21))
2014-11-03 17:57:01,555 (7f93148a5700) :  DEBUG (__init__:91) - ======L0CK======PMS Server: 0.9.11.1.678-c48ffd2
2014-11-03 17:57:01,555 (7f93148a5700) :  DEBUG (__init__:91) - ======L0CK======Plex Media Server at /var/lib/plexmediaserver/Library/Application Support/Plex Media Server
2014-11-03 17:57:01,555 (7f93148a5700) :  DEBUG (__init__:91) - ======L0CK======Plug-in bundles are located in /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins
2014-11-03 17:57:01,555 (7f93148a5700) :  DEBUG (__init__:91) - ======L0CK======Plug-in support files are located in /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support
2014-11-03 17:57:01,555 (7f93148a5700) :  DEBUG (__init__:91) - ======L0CK======L0ck Bundle path is /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/L0ck.bundle
2014-11-03 17:57:01,555 (7f93148a5700) :  DEBUG (__init__:91) - ======L0CK======BASEPATHL0CK: var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/L0ck.bundle/Contents/Resources/l0ck_support/l0ck.sh
2014-11-03 17:57:01,556 (7f93148a5700) :  DEBUG (__init__:91) - ======L0CK======BASEPATHUNL0CK: var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/L0ck.bundle/Contents/Resources/l0ck_support/unl0ck.sh
2014-11-03 17:57:01,556 (7f93148a5700) :  DEBUG (__init__:91) - ======L0CK======L0ck plugin generated on: 2nd NOV 2014
2014-11-03 17:57:01,556 (7f93148a5700) :  INFO (core:609) - Started plug-in
2014-11-03 17:57:01,556 (7f93148a5700) :  DEBUG (socketinterface:160) - Starting socket server
2014-11-03 17:57:01,557 (7f93148a5700) :  DEBUG (runtime:1111) - Created a thread named 'start'
2014-11-03 17:57:01,557 (7f93148a5700) :  INFO (socketinterface:184) - Socket server started on port 47720
2014-11-03 17:57:01,557 (7f93148a5700) :  INFO (pipeinterface:25) - Entering run loop
2014-11-03 17:57:01,557 (7f93148a5700) :  DEBUG (runtime:717) - Handling request GET /:/prefixes
2014-11-03 17:57:01,559 (7f93148a5700) :  DEBUG (runtime:814) - Found route matching /:/prefixes
2014-11-03 17:57:01,650 (7f9309409700) :  DEBUG (services:362) - Loaded services
2014-11-03 17:57:01,651 (7f93148a5700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 448 bytes
2014-11-03 17:57:01,655 (7f9308c08700) :  DEBUG (services:438) - No shared code to load
2014-11-03 17:57:01,657 (7f9308c08700) :  DEBUG (runtime:717) - Handling request GET /video/l0ck
2014-11-03 17:57:01,658 (7f9308c08700) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2014-11-03 17:57:01,659 (7f9308c08700) :  DEBUG (runtime:814) - Found route matching /video/l0ck
2014-11-03 17:57:01,660 (7f9308c08700) :  DEBUG (base:125) - Checking if com.plexapp.plugins.l0ckunl0ck is broken
2014-11-03 17:57:01,661 (7f9308c08700) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzAKY29tLnBsZXhhcHAucGx1Z2lucy5sMGNrdW5sMGNrczEwCmlkZW50aWZpZXJyMAo_'
2014-11-03 17:57:01,667 (7f9308c08700) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-11-03 17:57:01,667 (7f9308c08700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 1175 bytes
2014-11-03 17:57:01,707 (7f9308c08700) :  DEBUG (runtime:717) - Handling request GET /video/l0ck/mainmenu
2014-11-03 17:57:01,708 (7f9308c08700) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2014-11-03 17:57:01,709 (7f9308c08700) :  DEBUG (runtime:814) - Found route matching /video/l0ck/mainmenu
2014-11-03 17:57:01,711 (7f9308c08700) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-11-03 17:57:01,711 (7f9308c08700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 1175 bytes
2014-11-03 17:57:02,685 (7f9308c08700) :  DEBUG (runtime:717) - Handling request GET /video/l0ck
2014-11-03 17:57:02,686 (7f9308c08700) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2014-11-03 17:57:02,688 (7f9308c08700) :  DEBUG (runtime:814) - Found route matching /video/l0ck
2014-11-03 17:57:02,688 (7f9308c08700) :  DEBUG (base:125) - Checking if com.plexapp.plugins.l0ckunl0ck is broken
2014-11-03 17:57:02,689 (7f9308c08700) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzAKY29tLnBsZXhhcHAucGx1Z2lucy5sMGNrdW5sMGNrczEwCmlkZW50aWZpZXJyMAo_'
2014-11-03 17:57:02,698 (7f9308c08700) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-11-03 17:57:02,698 (7f9308c08700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 1175 bytes
2014-11-03 17:57:02,721 (7f9308c08700) :  DEBUG (runtime:717) - Handling request GET /video/l0ck/L0ck?path=var%2Flib%2Fplexmediaserver%2FLibrary%2FApplication+Support%2FPlex+Media+Server%2FPlug-ins%2FL0ck.bundle%2FContents%2FResources%2Fl0ck_support%2Fl0ck.sh&task=L0cked&query=
2014-11-03 17:57:02,722 (7f9308c08700) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2014-11-03 17:57:02,723 (7f9308c08700) :  DEBUG (runtime:814) - Found route matching /video/l0ck/L0ck
2014-11-03 17:57:02,724 (7f9308c08700) :  DEBUG (__init__:91) - ======L0CK======L0cking
2014-11-03 17:57:02,727 (7f9308c08700) :  DEBUG (__init__:91) - ======L0CK======L0cked
2014-11-03 17:57:02,729 (7f9308c08700) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-11-03 17:57:02,730 (7f9308c08700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 576 bytes
2014-11-03 17:57:03,542 (7f9308c08700) :  DEBUG (runtime:717) - Handling request GET /video/l0ck
2014-11-03 17:57:03,544 (7f9308c08700) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2014-11-03 17:57:03,545 (7f9308c08700) :  DEBUG (runtime:814) - Found route matching /video/l0ck
2014-11-03 17:57:03,546 (7f9308c08700) :  DEBUG (base:125) - Checking if com.plexapp.plugins.l0ckunl0ck is broken
2014-11-03 17:57:03,547 (7f9308c08700) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzAKY29tLnBsZXhhcHAucGx1Z2lucy5sMGNrdW5sMGNrczEwCmlkZW50aWZpZXJyMAo_'
2014-11-03 17:57:03,556 (7f9308c08700) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-11-03 17:57:03,556 (7f9308c08700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 1175 bytes
2014-11-03 17:57:03,570 (7f9308c08700) :  DEBUG (runtime:717) - Handling request GET /video/l0ck/mainmenu
2014-11-03 17:57:03,572 (7f9308c08700) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2014-11-03 17:57:03,573 (7f9308c08700) :  DEBUG (runtime:814) - Found route matching /video/l0ck/mainmenu
2014-11-03 17:57:03,576 (7f9308c08700) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-11-03 17:57:03,576 (7f9308c08700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 1175 bytes
2014-11-03 17:57:04,453 (7f9308c08700) :  DEBUG (runtime:717) - Handling request GET /video/l0ck
2014-11-03 17:57:04,454 (7f9308c08700) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2014-11-03 17:57:04,456 (7f9308c08700) :  DEBUG (runtime:814) - Found route matching /video/l0ck
2014-11-03 17:57:04,456 (7f9308c08700) :  DEBUG (base:125) - Checking if com.plexapp.plugins.l0ckunl0ck is broken
2014-11-03 17:57:04,457 (7f9308c08700) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzAKY29tLnBsZXhhcHAucGx1Z2lucy5sMGNrdW5sMGNrczEwCmlkZW50aWZpZXJyMAo_'
2014-11-03 17:57:04,466 (7f9308c08700) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-11-03 17:57:04,466 (7f9308c08700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 1175 bytes
2014-11-03 17:57:04,484 (7f9308c08700) :  DEBUG (runtime:717) - Handling request GET /video/l0ck/L0ck?path=var%2Flib%2Fplexmediaserver%2FLibrary%2FApplication+Support%2FPlex+Media+Server%2FPlug-ins%2FL0ck.bundle%2FContents%2FResources%2Fl0ck_support%2Fl0ck.sh&task=L0cked&query=
2014-11-03 17:57:04,485 (7f9308c08700) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2014-11-03 17:57:04,486 (7f9308c08700) :  DEBUG (runtime:814) - Found route matching /video/l0ck/L0ck
2014-11-03 17:57:04,487 (7f9308c08700) :  DEBUG (__init__:91) - ======L0CK======L0cking
2014-11-03 17:57:04,490 (7f9308c08700) :  DEBUG (__init__:91) - ======L0CK======L0cked
2014-11-03 17:57:04,493 (7f9308c08700) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-11-03 17:57:04,493 (7f9308c08700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 576 bytes
2014-11-03 17:57:05,312 (7f9308c08700) :  DEBUG (runtime:717) - Handling request GET /video/l0ck
2014-11-03 17:57:05,314 (7f9308c08700) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2014-11-03 17:57:05,315 (7f9308c08700) :  DEBUG (runtime:814) - Found route matching /video/l0ck
2014-11-03 17:57:05,316 (7f9308c08700) :  DEBUG (base:125) - Checking if com.plexapp.plugins.l0ckunl0ck is broken
2014-11-03 17:57:05,317 (7f9308c08700) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzAKY29tLnBsZXhhcHAucGx1Z2lucy5sMGNrdW5sMGNrczEwCmlkZW50aWZpZXJyMAo_'
2014-11-03 17:57:05,325 (7f9308c08700) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-11-03 17:57:05,326 (7f9308c08700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 1175 bytes
2014-11-03 17:57:05,343 (7f9308c08700) :  DEBUG (runtime:717) - Handling request GET /video/l0ck/mainmenu
2014-11-03 17:57:05,344 (7f9308c08700) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2014-11-03 17:57:05,345 (7f9308c08700) :  DEBUG (runtime:814) - Found route matching /video/l0ck/mainmenu
2014-11-03 17:57:05,347 (7f9308c08700) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-11-03 17:57:05,348 (7f9308c08700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 1175 bytes
2014-11-03 17:57:07,018 (7f9308c08700) :  DEBUG (runtime:717) - Handling request GET /video/l0ck
2014-11-03 17:57:07,019 (7f9308c08700) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2014-11-03 17:57:07,020 (7f9308c08700) :  DEBUG (runtime:814) - Found route matching /video/l0ck
2014-11-03 17:57:07,021 (7f9308c08700) :  DEBUG (base:125) - Checking if com.plexapp.plugins.l0ckunl0ck is broken
2014-11-03 17:57:07,022 (7f9308c08700) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzAKY29tLnBsZXhhcHAucGx1Z2lucy5sMGNrdW5sMGNrczEwCmlkZW50aWZpZXJyMAo_'
2014-11-03 17:57:07,031 (7f9308c08700) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-11-03 17:57:07,031 (7f9308c08700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 1175 bytes
2014-11-03 17:57:07,045 (7f9308c08700) :  DEBUG (runtime:717) - Handling request GET /video/l0ck/L0ck?path=var%2Flib%2Fplexmediaserver%2FLibrary%2FApplication+Support%2FPlex+Media+Server%2FPlug-ins%2FL0ck.bundle%2FContents%2FResources%2Fl0ck_support%2Funl0ck.sh&task=UnL0cked&query=012345
2014-11-03 17:57:07,047 (7f9308c08700) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2014-11-03 17:57:07,048 (7f9308c08700) :  DEBUG (runtime:814) - Found route matching /video/l0ck/L0ck
2014-11-03 17:57:07,048 (7f9308c08700) :  DEBUG (__init__:91) - ======L0CK======Password correct about to launch unL0ck
2014-11-03 17:57:07,051 (7f9308c08700) :  DEBUG (__init__:91) - ======L0CK======Launched unL0ck
2014-11-03 17:57:07,054 (7f9308c08700) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-11-03 17:57:07,054 (7f9308c08700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 581 bytes
2014-11-03 17:57:08,183 (7f9308c08700) :  DEBUG (runtime:717) - Handling request GET /video/l0ck
2014-11-03 17:57:08,184 (7f9308c08700) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2014-11-03 17:57:08,186 (7f9308c08700) :  DEBUG (runtime:814) - Found route matching /video/l0ck
2014-11-03 17:57:08,187 (7f9308c08700) :  DEBUG (base:125) - Checking if com.plexapp.plugins.l0ckunl0ck is broken
2014-11-03 17:57:08,188 (7f9308c08700) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzAKY29tLnBsZXhhcHAucGx1Z2lucy5sMGNrdW5sMGNrczEwCmlkZW50aWZpZXJyMAo_'
2014-11-03 17:57:08,196 (7f9308c08700) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-11-03 17:57:08,197 (7f9308c08700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 1175 bytes
2014-11-03 17:57:08,252 (7f9308c08700) :  DEBUG (runtime:717) - Handling request GET /video/l0ck/mainmenu
2014-11-03 17:57:08,254 (7f9308c08700) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2014-11-03 17:57:08,255 (7f9308c08700) :  DEBUG (runtime:814) - Found route matching /video/l0ck/mainmenu
2014-11-03 17:57:08,257 (7f9308c08700) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-11-03 17:57:08,257 (7f9308c08700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 1175 bytes

i think i found the error.

quotation marks are missing

cd "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/L0ck.bundle/Contents/Resources/l0ck_support"

i can now lock and unlock with the terminal, lock and unlock with the GUI (Browser) will not work

# cd "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/L0ck.bundle/Contents/Resources/l0ck_support"

# ./l0ck.sh

this lock my libary and

# ./unl0ck.sh

unlock my libary

i think i found the error.

quotation marks are missing

cd "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/L0ck.bundle/Contents/Resources/l0ck_support"

i can now lock and unlock with the terminal, lock and unlock with the GUI (Browser) will not work

# cd "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/L0ck.bundle/Contents/Resources/l0ck_support"

# ./l0ck.sh

this lock my libary and

# ./unl0ck.sh

unlock my libary

Try the steps I posted below to modify your l0ck.sh to confirm that the GUI is making the call correctly and you are not experiencing an error when the GUI does.

i ve done this, but it dont work ;(

login as: root
root@192.168.1.18's password:
Linux debian 3.16-0.bpo.2-amd64 #1 SMP Debian 3.16.3-2~bpo70+1 (2014-09-21) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Nov 3 20:44:05 2014 from buero.fritz.box
root@debian:~# cd “/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/”
root@debian:/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins# chown -R plex:plex L0ck.bundle
root@debian:/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins# cd “/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/L0ck.bundle/Contents/Resources/l0ck_support”
root@debian:/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/L0ck.bundle/Contents/Resources/l0ck_support# chmod a+x l0ck.sh
root@debian:/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/L0ck.bundle/Contents/Resources/l0ck_support# chmod a+x unl0ck.sh
root@debian:/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/L0ck.bundle/Contents/Resources/l0ck_support# chmod a+x sqlite3
root@debian:/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/L0ck.bundle/Contents/Resources/l0ck_support# service plexmediaserver restart
Killing Plex Media Server: done
Starting Plex Media Server: done
root@debian:/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/L0ck.bundle/Contents/Resources/l0ck_support#

i ve done this, but it dont work ;(

login as: root
root@192.168.1.18's password:
Linux debian 3.16-0.bpo.2-amd64 #1 SMP Debian 3.16.3-2~bpo70+1 (2014-09-21) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Nov 3 20:44:05 2014 from buero.fritz.box
root@debian:~# cd “/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/”
root@debian:/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins# chown -R plex:plex L0ck.bundle
root@debian:/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins# cd “/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/L0ck.bundle/Contents/Resources/l0ck_support”
root@debian:/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/L0ck.bundle/Contents/Resources/l0ck_support# chmod a+x l0ck.sh
root@debian:/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/L0ck.bundle/Contents/Resources/l0ck_support# chmod a+x unl0ck.sh
root@debian:/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/L0ck.bundle/Contents/Resources/l0ck_support# chmod a+x sqlite3
root@debian:/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/L0ck.bundle/Contents/Resources/l0ck_support# service plexmediaserver restart
Killing Plex Media Server: done
Starting Plex Media Server: done
root@debian:/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/L0ck.bundle/Contents/Resources/l0ck_support#

Yes but it does work from the command line correct?

If so then that means the issue would be one of two things.  An issue with the calling script to call the .sh files or an incompatibility issue with sqlite3 (this was my issue)

Looking at your __init__.py file I would suggest you make this modification.

Change the two lines that look like this:

os.system('sh ' + path)

to

os.system('sh "' + path + '"')

yes, commando line works.

i have change the py-file to os.system('sh "' + path + '"')

but this also dont work...

https://twitter.com/lockforplex/status/663283582832480256

i have not updated or unlocked mine in awhile... i went to plex web to unlock and it only has a lock i hit it a few times and it wont load the unlocked section. i even tried deleting the channel and still is hidden. I just want to be able to start fresh with your new updates but, i need it to be visible.

https://twitter.com/lockforplex/status/663283582832480256

after reading your FAQ i saw the reason why i didnt see the lock ;) but, dont ask how i went to try what it said and the channel is gone.. not in my trashcan either and its still hidden.

https://twitter.com/lockforplex/status/663283582832480256

here a video file, you can see my problem with L0ck

https://twitter.com/lockforplex/status/663283582832480256

hi, ive change the py-file and lock and unlock via terminal is possible.

here is the log file after log and unlock via terminal and lock(-attempt) via gui

2014-11-05 18:12:22,705 (7f5f8cc71700) :  INFO (core:347) - Starting framework core - Version: 2.5.0, Build: a51033b (Mon Jul 28 12:19:14 UTC 2014)
2014-11-05 18:12:22,705 (7f5f8cc71700) :  DEBUG (core:359) - Using the elevated policy
2014-11-05 18:12:22,705 (7f5f8cc71700) :  DEBUG (core:448) - Starting runtime component.
2014-11-05 18:12:22,707 (7f5f8cc71700) :  DEBUG (core:448) - Starting caching component.
2014-11-05 18:12:22,707 (7f5f8cc71700) :  DEBUG (core:448) - Starting data component.
2014-11-05 18:12:22,707 (7f5f8cc71700) :  DEBUG (core:448) - Starting networking component.
2014-11-05 18:12:22,707 (7f5f8cc71700) :  DEBUG (networking:288) - Loaded HTTP cookies
2014-11-05 18:12:22,707 (7f5f8cc71700) :  DEBUG (networking:458) - Setting the default network timeout to 20.0
2014-11-05 18:12:22,708 (7f5f8cc71700) :  DEBUG (core:448) - Starting localization component.
2014-11-05 18:12:22,708 (7f5f8cc71700) :  INFO (localization:408) - Setting the default locale to en-us
2014-11-05 18:12:22,708 (7f5f8cc71700) :  DEBUG (core:448) - Starting messaging component.
2014-11-05 18:12:22,709 (7f5f817d5700) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/system/messaging/clear_events/com.plexapp.plugins.l0ckunl0ck'
2014-11-05 18:12:22,709 (7f5f8cc71700) :  DEBUG (core:448) - Starting debugging component.
2014-11-05 18:12:22,709 (7f5f8cc71700) :  DEBUG (core:448) - Starting services component.
2014-11-05 18:12:22,710 (7f5f8cc71700) :  DEBUG (core:448) - Starting myplex component.
2014-11-05 18:12:22,710 (7f5f8cc71700) :  DEBUG (core:448) - Starting notifications component.
2014-11-05 18:12:22,799 (7f5f8cc71700) :  DEBUG (accessor:68) - Creating a new model access point for provider com.plexapp.plugins.l0ckunl0ck in namespace 'metadata'
2014-11-05 18:12:22,802 (7f5f8cc71700) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes'
2014-11-05 18:12:23,147 (7f5f817d5700) :  DEBUG (services:265) - Plug-in is not daemonized - loading services from system
2014-11-05 18:12:23,147 (7f5f8cc71700) :  DEBUG (runtime:1111) - Created a thread named 'load_all_services'
2014-11-05 18:12:23,149 (7f5f817d5700) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0J1bmRsZVNlcnZpY2U6QWxsU2VydmljZXM_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMApyMAo_'
2014-11-05 18:12:23,150 (7f5f807d3700) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400'
2014-11-05 18:12:23,151 (7f5f8cc71700) :  DEBUG (runtime:1111) - Created a thread named 'get_server_info'
2014-11-05 18:12:23,151 (7f5f8cc71700) :  DEBUG (core:150) - Finished starting framework core
2014-11-05 18:12:23,151 (7f5f8cc71700) :  DEBUG (core:558) - Loading plug-in code
2014-11-05 18:12:23,179 (7f5f8cc71700) :  DEBUG (core:564) - Finished loading plug-in code
2014-11-05 18:12:23,180 (7f5f8cc71700) :  DEBUG (runtime:640) - Adding a prefix handler for 'L0ck' ('/video/l0ck')
2014-11-05 18:12:23,182 (7f5f8cc71700) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400'
2014-11-05 18:12:23,185 (7f5f807d3700) :  DEBUG (core:536) - Machine identifier is 5de14e0adcefdc1185d317ad0dd7e14b2b2de26b
2014-11-05 18:12:23,185 (7f5f807d3700) :  DEBUG (core:537) - Server version is 0.9.11.1.678-c48ffd2
2014-11-05 18:12:23,186 (7f5f8cc71700) :  DEBUG (core:519) - Attribute 'platformVersion' set to ' (#1 SMP Debian 3.16.3-2~bpo70+1 (2014-09-21))'
2014-11-05 18:12:23,186 (7f5f8cc71700) :  DEBUG (__init__:91) - ======L0CK======Platform: Linux Version:  (#1 SMP Debian 3.16.3-2~bpo70+1 (2014-09-21))
2014-11-05 18:12:23,186 (7f5f8cc71700) :  DEBUG (__init__:91) - ======L0CK======PMS Server: 0.9.11.1.678-c48ffd2
2014-11-05 18:12:23,186 (7f5f8cc71700) :  DEBUG (__init__:91) - ======L0CK======Plex Media Server at /var/lib/plexmediaserver/Library/Application Support/Plex Media Server
2014-11-05 18:12:23,186 (7f5f8cc71700) :  DEBUG (__init__:91) - ======L0CK======Plug-in bundles are located in /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins
2014-11-05 18:12:23,186 (7f5f8cc71700) :  DEBUG (__init__:91) - ======L0CK======Plug-in support files are located in /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support
2014-11-05 18:12:23,187 (7f5f8cc71700) :  DEBUG (__init__:91) - ======L0CK======L0ck Bundle path is /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/L0ck.bundle
2014-11-05 18:12:23,187 (7f5f8cc71700) :  DEBUG (__init__:91) - ======L0CK======BASEPATHL0CK: /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/L0ck.bundle/Contents/Resources/l0ck_support/l0ck.sh
2014-11-05 18:12:23,187 (7f5f8cc71700) :  DEBUG (__init__:91) - ======L0CK======BASEPATHUNL0CK: /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/L0ck.bundle/Contents/Resources/l0ck_support/unl0ck.sh
2014-11-05 18:12:23,187 (7f5f8cc71700) :  DEBUG (__init__:91) - ======L0CK======L0ck plugin generated on: 2nd NOV 2014
2014-11-05 18:12:23,187 (7f5f8cc71700) :  INFO (core:609) - Started plug-in
2014-11-05 18:12:23,187 (7f5f8cc71700) :  DEBUG (socketinterface:160) - Starting socket server
2014-11-05 18:12:23,188 (7f5f8cc71700) :  DEBUG (runtime:1111) - Created a thread named 'start'
2014-11-05 18:12:23,188 (7f5f8cc71700) :  INFO (socketinterface:184) - Socket server started on port 46920
2014-11-05 18:12:23,188 (7f5f8cc71700) :  INFO (pipeinterface:25) - Entering run loop
2014-11-05 18:12:23,188 (7f5f8cc71700) :  DEBUG (runtime:717) - Handling request GET /:/prefixes
2014-11-05 18:12:23,189 (7f5f8cc71700) :  DEBUG (runtime:814) - Found route matching /:/prefixes
2014-11-05 18:12:23,263 (7f5f817d5700) :  DEBUG (services:362) - Loaded services
2014-11-05 18:12:23,264 (7f5f8cc71700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 448 bytes
2014-11-05 18:12:23,269 (7f5f80fd4700) :  DEBUG (services:438) - No shared code to load
2014-11-05 18:14:53,890 (7f5f80fd4700) :  DEBUG (runtime:717) - Handling request GET /video/l0ck
2014-11-05 18:14:53,894 (7f5f80fd4700) :  DEBUG (runtime:814) - Found route matching /video/l0ck
2014-11-05 18:14:53,896 (7f5f80fd4700) :  DEBUG (base:125) - Checking if com.plexapp.plugins.l0ckunl0ck is broken
2014-11-05 18:14:53,896 (7f5f80fd4700) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzAKY29tLnBsZXhhcHAucGx1Z2lucy5sMGNrdW5sMGNrczEwCmlkZW50aWZpZXJyMAo_'
2014-11-05 18:14:53,905 (7f5f80fd4700) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-11-05 18:14:53,906 (7f5f80fd4700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 1181 bytes
2014-11-05 18:14:55,411 (7f5f80fd4700) :  DEBUG (runtime:717) - Handling request GET /video/l0ck
2014-11-05 18:14:55,412 (7f5f80fd4700) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2014-11-05 18:14:55,413 (7f5f80fd4700) :  DEBUG (runtime:814) - Found route matching /video/l0ck
2014-11-05 18:14:55,414 (7f5f80fd4700) :  DEBUG (base:125) - Checking if com.plexapp.plugins.l0ckunl0ck is broken
2014-11-05 18:14:55,414 (7f5f80fd4700) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzAKY29tLnBsZXhhcHAucGx1Z2lucy5sMGNrdW5sMGNrczEwCmlkZW50aWZpZXJyMAo_'
2014-11-05 18:14:55,423 (7f5f80fd4700) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-11-05 18:14:55,424 (7f5f80fd4700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 1181 bytes
2014-11-05 18:14:55,441 (7f5f80fd4700) :  DEBUG (runtime:717) - Handling request GET /video/l0ck/L0ck?path=%2Fvar%2Flib%2Fplexmediaserver%2FLibrary%2FApplication+Support%2FPlex+Media+Server%2FPlug-ins%2FL0ck.bundle%2FContents%2FResources%2Fl0ck_support%2Fl0ck.sh&task=L0cked&query=
2014-11-05 18:14:55,442 (7f5f80fd4700) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2014-11-05 18:14:55,443 (7f5f80fd4700) :  DEBUG (runtime:814) - Found route matching /video/l0ck/L0ck
2014-11-05 18:14:55,443 (7f5f80fd4700) :  DEBUG (__init__:91) - ======L0CK======L0cking
2014-11-05 18:14:55,448 (7f5f80fd4700) :  DEBUG (__init__:91) - ======L0CK======L0cked
2014-11-05 18:14:55,450 (7f5f80fd4700) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-11-05 18:14:55,451 (7f5f80fd4700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 576 bytes
2014-11-05 18:16:48,149 (7f5f80fd4700) :  DEBUG (runtime:717) - Handling request GET /video/l0ck
2014-11-05 18:16:48,150 (7f5f80fd4700) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2014-11-05 18:16:48,151 (7f5f80fd4700) :  DEBUG (runtime:814) - Found route matching /video/l0ck
2014-11-05 18:16:48,152 (7f5f80fd4700) :  DEBUG (base:125) - Checking if com.plexapp.plugins.l0ckunl0ck is broken
2014-11-05 18:16:48,153 (7f5f80fd4700) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzAKY29tLnBsZXhhcHAucGx1Z2lucy5sMGNrdW5sMGNrczEwCmlkZW50aWZpZXJyMAo_'
2014-11-05 18:16:48,162 (7f5f80fd4700) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-11-05 18:16:48,162 (7f5f80fd4700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 1181 bytes
2014-11-05 18:16:49,301 (7f5f80fd4700) :  DEBUG (runtime:717) - Handling request GET /video/l0ck
2014-11-05 18:16:49,302 (7f5f80fd4700) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2014-11-05 18:16:49,304 (7f5f80fd4700) :  DEBUG (runtime:814) - Found route matching /video/l0ck
2014-11-05 18:16:49,304 (7f5f80fd4700) :  DEBUG (base:125) - Checking if com.plexapp.plugins.l0ckunl0ck is broken
2014-11-05 18:16:49,305 (7f5f80fd4700) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzAKY29tLnBsZXhhcHAucGx1Z2lucy5sMGNrdW5sMGNrczEwCmlkZW50aWZpZXJyMAo_'
2014-11-05 18:16:49,314 (7f5f80fd4700) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-11-05 18:16:49,315 (7f5f80fd4700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 1181 bytes
2014-11-05 18:16:49,330 (7f5f80fd4700) :  DEBUG (runtime:717) - Handling request GET /video/l0ck/L0ck?path=%2Fvar%2Flib%2Fplexmediaserver%2FLibrary%2FApplication+Support%2FPlex+Media+Server%2FPlug-ins%2FL0ck.bundle%2FContents%2FResources%2Fl0ck_support%2Fl0ck.sh&task=L0cked&query=
2014-11-05 18:16:49,331 (7f5f80fd4700) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2014-11-05 18:16:49,332 (7f5f80fd4700) :  DEBUG (runtime:814) - Found route matching /video/l0ck/L0ck
2014-11-05 18:16:49,333 (7f5f80fd4700) :  DEBUG (__init__:91) - ======L0CK======L0cking
2014-11-05 18:16:49,337 (7f5f80fd4700) :  DEBUG (__init__:91) - ======L0CK======L0cked
2014-11-05 18:16:49,339 (7f5f80fd4700) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-11-05 18:16:49,340 (7f5f80fd4700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 576 bytes
2014-11-05 18:16:50,006 (7f5f80fd4700) :  DEBUG (runtime:717) - Handling request GET /video/l0ck
2014-11-05 18:16:50,008 (7f5f80fd4700) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2014-11-05 18:16:50,009 (7f5f80fd4700) :  DEBUG (runtime:814) - Found route matching /video/l0ck
2014-11-05 18:16:50,010 (7f5f80fd4700) :  DEBUG (base:125) - Checking if com.plexapp.plugins.l0ckunl0ck is broken
2014-11-05 18:16:50,011 (7f5f80fd4700) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzAKY29tLnBsZXhhcHAucGx1Z2lucy5sMGNrdW5sMGNrczEwCmlkZW50aWZpZXJyMAo_'
2014-11-05 18:16:50,020 (7f5f80fd4700) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-11-05 18:16:50,020 (7f5f80fd4700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 1181 bytes
2014-11-05 18:16:50,036 (7f5f80fd4700) :  DEBUG (runtime:717) - Handling request GET /video/l0ck/mainmenu
2014-11-05 18:16:50,038 (7f5f80fd4700) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2014-11-05 18:16:50,039 (7f5f80fd4700) :  DEBUG (runtime:814) - Found route matching /video/l0ck/mainmenu
2014-11-05 18:16:50,041 (7f5f80fd4700) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-11-05 18:16:50,041 (7f5f80fd4700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 1181 bytes
2014-11-05 18:16:50,729 (7f5f80fd4700) :  DEBUG (runtime:717) - Handling request GET /video/l0ck
2014-11-05 18:16:50,731 (7f5f80fd4700) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2014-11-05 18:16:50,732 (7f5f80fd4700) :  DEBUG (runtime:814) - Found route matching /video/l0ck
2014-11-05 18:16:50,733 (7f5f80fd4700) :  DEBUG (base:125) - Checking if com.plexapp.plugins.l0ckunl0ck is broken
2014-11-05 18:16:50,733 (7f5f80fd4700) :  DEBUG (networking:172) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X1N0b3JlU2VydmljZTpJc0NoYW5uZWxCcm9rZW4_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMQpzMzAKY29tLnBsZXhhcHAucGx1Z2lucy5sMGNrdW5sMGNrczEwCmlkZW50aWZpZXJyMAo_'
2014-11-05 18:16:50,742 (7f5f80fd4700) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-11-05 18:16:50,742 (7f5f80fd4700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 1181 bytes
2014-11-05 18:16:50,761 (7f5f80fd4700) :  DEBUG (runtime:717) - Handling request GET /video/l0ck/L0ck?path=%2Fvar%2Flib%2Fplexmediaserver%2FLibrary%2FApplication+Support%2FPlex+Media+Server%2FPlug-ins%2FL0ck.bundle%2FContents%2FResources%2Fl0ck_support%2Fl0ck.sh&task=L0cked&query=
2014-11-05 18:16:50,762 (7f5f80fd4700) :  DEBUG (runtime:49) - Received packed state data (80 bytes)
2014-11-05 18:16:50,764 (7f5f80fd4700) :  DEBUG (runtime:814) - Found route matching /video/l0ck/L0ck
2014-11-05 18:16:50,764 (7f5f80fd4700) :  DEBUG (__init__:91) - ======L0CK======L0cking
2014-11-05 18:16:50,768 (7f5f80fd4700) :  DEBUG (__init__:91) - ======L0CK======L0cked
2014-11-05 18:16:50,770 (7f5f80fd4700) :  DEBUG (runtime:106) - Sending packed state data (111 bytes)
2014-11-05 18:16:50,771 (7f5f80fd4700) :  DEBUG (runtime:918) - Response: [200] MediaContainer, 576 bytes

https://twitter.com/lockforplex/status/663283582832480256

i had do it, but it dont help.... :(

is it possible to lock/unlock via terminal with the __init__.py file?