Strange, entering without http and any added special characters?
eg:- 127.0.0.1 or 192.168.1.19
Pl. let me know if it still does not work, just used it, working fine!
What OS is PMS on?
Latest version of PMS, I hope?
Most importantly, what browser are you on? (Suggest the latest Firefox)
/iSh0w
Sent from my iPhone using Tapatalk
I got it to work in the end by going to the actual server machine and doing it there using 127.0.0.1 - cannot get it to work at all using the machine's IP address for some reason.
Works now though - great job on the plugin! Long overdue for PMS.
I played around extensively with the batch scripts due to having issues initiating the lock through the plex lock channel. It seemed to be a problem with the starting directory. I'm on windows 7 and consistently got a UNC path error. After fixing the registry to try to change this I was still not able to lock from plex, but still could directly from the .bat files. I tried replacing the relative directories with hard links and still had similar problems. Finally I added the following to both .bat files:
set mydir=%~dp0
PUSHD "%mydir%"
This seems to fix the erroneous problems. The root of my problem may have been that I have my user account files and AppData folder on my secondary HD by altering the registry value for the location. This doesn't work with everything 100%. I may be one of the few that will ever have this problem but figured I should at least post this just in case.
iSh0w - latest Linux build has a few issues, nothing super major, but one that is a show-stopper.
__init__.py, you're missing the import for the subprocess class, add the following. Also, in the Unlock portion of the code, you left the os.chdir in there that is not necessary since we have that directly in the subprocess call now. You can remove the commented line from below.
import subprocess
...
...
Logger('Password correct about to launch unlock', force=True)
#os.chdir(os.path.dirname(path))
subprocess.call(['./' + str(os.path.basename(path)), Core.storage.join_path(Core.app_support_path)], cwd=os.path.dirname(path))
Logger('Launched unlock', force=True)
I think with those changes alone, everything looks good. I also see you updated the download page with the instructions. If you want, you can bundle these in a setup shell script like below. For the paths I have below it's given this script is in the directory: Lock.bundle/Contents/Setup
File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 843, in handle_request
result = f(**d)
File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Lock.bundle/Contents/Code/__init__.py", line 55, in Lock
File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 843, in handle_request
result = f(**d)
File "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Lock.bundle/Contents/Code/__init__.py", line 55, in Lock
Fixed the import subprocess issue but locking the channel does nothing
iankellog - yeah, look at this post right before yours. I've been working with iSh0w for the Linux material as he doesn't have a working Linux implementation to test on. His latest Linux build had a few errors in it and I don't think he's updated the public distro.
As for the locking, are you doing this from web/phone/iOS? Also, did you make sure to make the shell script executable? If you're not getting any errors, but still the library lock isn't happening, it's most likely due to the shell permissions. If not, post the log files here in the forum and I'll see if I can help you out.
Just to let you know, I had an issue generating the plugin zip using Safari, not sure if this is a browser specific issue but it worked fine in Chrome. It generated but no download dialog appeared and I couldn't easily find a link to download?
Synology NAS plex package was not built to be used like the normal plex media server.
Really? seems to work just like the windows and other linux versions - although I'm by no means linux proficient, I'm happy to try to help understand what's not working if you tell me what to look for.
1) Can you access plex/web from any other machine on your network? (with the same ip address 192.168.1.100 of your NAS)
2) Is plex/web in any way different than the plex/web that of other plex media server packages like for windows (to the best of your knowledge, presuming you've tried PMS on something other than Synology NAS)
Yes. It seems to be the same as the windows version
Allrighty then, looks like you'd like to get to know da L0ck a lil better ;)...
So it turns out it was having "Require authentication on local networks" that the generator didn't like. Having unticked that it ran. However the path cd /var/lib/plexmediaserver/Library/ is actually at /volume1/Plex/Library/ in the default Synology Plex installation. So, then I...
1. Stopped PMS
2. put the script files in /volume1/Plex/Library/Application\ Support/Plex\ Media\ Server/Plug-ins/L0ck.bundle/Contents/Resources/l0ck_support/
3. I edited the .sh files to replace /var/lib/plexmediaserver/ with /volume1/Plex/
4. set the permissions to 777, and owner as plex for l0ck.sh, unl0ck.sh, sqlite3
5. Started PMS again
Now I see the channel "L0ck", but when I click on it I get "This channel is not responding."
Is there something else I need to change?
l0ck.sh currently looks like this
#!/bin/bash
l0ckplex=“UPDATE metadata_items SET metadata_type=20 WHERE library_section_id=4 and metadata_type=2; DELETE FROM library_sections WHERE id=4;”
cd /volume1/Plex/Library/Application\ Support/Plex\ Media\ Server/Plug-ins/L0ck.bundle/Contents/Resources/l0ck_support/
Just noticed that when I try form Android, clicking on the 'L0ck" channel gives me both lock and unlock icons, whereas the web app only shows the lock icon. If I ciick on the 'lock' icon it says the directory appears to be empty. If I click on unlock, i get prompted for the password.
Just tried running the scripts from command line (via Putty) and noticed
1. scripts to to lock and unlock seem to work fine."
2. Plex via the Web App completely hides the section, whereas the Android client continues to show the locked client, but returns "The directory appears to be empty" when you click on it.
Any tips as to how to get the channel working? (I did start reading the thread you suggested, but frankly the database stuff is beyond me)