Webtool, Subtitle Manager (Development)

plexusmerror.log (1.04 MB)

Like always I plugged it and expected it to work, and it did this time.

There is a log file as soon you start plexusm so the only reason you wouldn't have one is:

1. wrong server

2. not using v0.4.3

@ dagalufh:

all, my files (from my nas) have an url with "//com.plexapp..." from your log.

Here is the log I got from deleting all my season 3 subs from plex while trying to delete the local one from the 1st episode.

I do believe the "//' is the culprit.

Nope  :P

dagalufh was correct here....the web user only had read access to the doc root, so you have been bad, and messed with the file rights  :lol:

@dagalufh:

Tried what a Dane should always do, and deleted a swedish subtitle from OS agent  :lol:

But no go, and guess there's no exception for swedish titles here  :lol:

Attached the log

@dane22

"Unable to find 'C:/users/Your Windows Account Name/AppData/Local/Plex Media Server/Media/Localhost/b/3450b4640cd87ff8e189f77ce85a9502504246c.bundle/Contents/Subtitles/fr//com.plexapp.agents.opensubtitles_0bc01a0f8166e7eee6800ec272ae1408c94823a5.srt' on disk."

that is not from her latest? Can't find it there...

That's from the public log, so guess that Ismelda PM'ed you some more?

Do the webbuser have write permissions in it's own directory? plexusm directory?

You are better that Sherlock Holmes here

I'll look into //, do you think it have an impact? 

Yep, Linux systems are very sensitive regarding file names, cases and path, as well as forward vs. backslash

/Tommy

attachicon.gifplexusmerror.log

Nope  :P

dagalufh was correct here....the web user only had read access to the doc root, so you have been bad, and messed with the file rights  :lol:

I have admin right on all my NAS!!! I can write and delete almost everywhere.

I also host an ftp where users can read and write on a specific folder of the web folder and then see the other folders and read but not write in them. So yes i did managed the rights for the web folder.

Alright, i'll see to it that double / are removed. I was looking at it earlier but then i googled abit and regarding paths it said it didn't matter. But i couldn't really let it go...

@ismelda:

14-09-26 00:09:48 [info] [/share/MD0_DATA/Web/plexusm/delete.php Line:21] Successfully deleted file: file:///share/MD0_DATA/Multimedia/-=Sci-Fi=-/Haven/S03//3x01 - 301.eng.srt

It says it did remove that file. You mean it's still there?

There is no indications of any other deletions in the logfile.

If you look in delete.php you see that everything that passes through the for-loop and the unlink() command gets printed.

There is no record of it even receiving any paths relating to your agents subs... So even if the double slashes are causing some issues, it can't be this issue? Since the paths to the local srt:s are different allover than the agents.

I checked the latest log you posted, the one with a [5] in the end of the filename. But also see that after that, in the reload, it dosn't list any agents anymore..

i have admin right on  all my NAS!!! I can write and delete almost everywhere.

True....You have, but not the web server!

Do a cat /etc/passwd from a terminal

That will list a user named httpdusr

That user is the user running the webserver!

At least in a std. conf.

/Tommy

@dane22, permissions in the plex agents subtitle folder for the webuser?

Don't know if you know much php but since you know python i figure you have no trouble at all understanding it.

Take a peek and see if you can find anything that could point to the issue that Ismelda is having?

I mean, the script dosn't say it's removing anything relating to agents, but still they get removed....

@dane22, permissions in the plex agents subtitle folder for the webuser?

Don't know if you know much php but since you know python i figure you have no trouble at all understanding it.

Take a peek and see if you can find anything that could point to the issue that Ismelda is having?

I mean, the script dosn't say it's removing anything relating to agents, but still they get removed....

That's what I think as well.....

And now we are getting to a more critical issue here, regarding security, so I humbly doesn't think that's the way to go, but has a suggestion for you...

Are you on skype?

/T

@dagalufh: indeed the files it says it deleted hasn't been while all the others have.

I guess there is no authorization issue there as files supposedly well hidden are deleted.

@dane22, yeah, sometimes, don't have it updated. But i'm easier to get a hold of on Google+ if you have it? Mikael Aspehed is the name :)

@ismelda: okey, i just tried this on my crunch and after just going all in since it's a testlab (chmod 777.... scary), i had no issues at all removing the wanted one. Both agent and local worked.

come in the irc channel! (see my signature)

After talking to @dane22, he had a great suggestion for solving the issues with security. The new version will depend on DevTools being installed completely. No timeframe can be given at this time, i'll update this when there is a new version available.

I've updated the first post with a new version.

This time it requires DevTools (minimum version 0.0.0.6) by Dane22.

There is an error thrown from the start as it doesn’t recognize the server path.

I’m using Dane22 v0.0.6 Dev tools of course.

error log

The top error

14-09-30 20:09:34 [info] [/share/MD0_DATA/Web/plexusm/functions.php Line:227] Found correct DevTools. Found: [Error authenticating]
14-09-30 20:09:34 [info] [/share/MD0_DATA/Web/plexusm/functions.php Line:240] Set PathToPlexMediaFolder to: 'Error authenticating/Media/localhost/'

indicates that the secret set in settings.php and the one configured in DevTools via preferences in channels are not the same. Please set a new one and try again and see if the error reoccurs.

I'm working with Dane22 to solve some other issues that has occured. Thats why the download link had been taken down.

It seems there are 2 places where the subs are in the series:

1 - PlexMediaServer\Library\Plex Media Server\Media\localhost\7\cb8f957774ad11d4ab310f756711d57160ef373.bundle\Contents\Subtitles\en<br>
and

2 - PlexMediaServer\Library\Plex Media Server\Media\localhost\7\cb8f957774ad11d4ab310f756711d57160ef373.bundle\Contents\Subtitle Contributions\com.plexapp.agents.opensubtitles\en<br>
also they are listed in:
3 - PlexMediaServer\Library\Plex Media Server\Media\localhost\7\cb8f957774ad11d4ab310f756711d57160ef373.bundle\Contents\Subtitles.xml

As far I can tell, removing them from 1 (That is what your program is supposed to do) then refreshing the episode redownload all the previous ones and add a new one (current bug from the PMS).

The only way I could manage to remove the extra subs (manually) was to remove them from 1 & 2 then edit 3 to remove the deleted sub from it. After a refresh of the episode I had only the subs I kept (plus the new on due to that bug in PMS).

PS: did the secret thingy. I had no clue we had to set it manually. Server properly identified now

It seems there are 2 places where the subs are in the series:

1 - PlexMediaServer\Library\Plex Media Server\Media\localhost\7\cb8f957774ad11d4ab310f756711d57160ef373.bundle\Contents\Subtitles\en\

and

2 - PlexMediaServer\Library\Plex Media Server\Media\localhost\7\cb8f957774ad11d4ab310f756711d57160ef373.bundle\Contents\Subtitle Contributions\com.plexapp.agents.opensubtitles\en\

also they are listed in:
3 - PlexMediaServer\Library\Plex Media Server\Media\localhost\7\cb8f957774ad11d4ab310f756711d57160ef373.bundle\Contents\Subtitles.xml

As far I can tell, removing them from 1 (That is what your program is supposed to do) then refreshing the episode redownload all the previous ones and add a new one (current bug from the PMS).

The only way I could manage to remove the extra subs (manually) was to remove them from 1 & 2 then edit 3 to remove the deleted sub from it. After a refresh of the episode I had only the subs I kept (plus the new on due to that bug in PMS).

PS: did the secret thingy. I had no clue we had to set it manually. Server properly identified now

The subtitles are only located in the "Subtitles Contributions" directory.

The other ones are symbolic links

And regarding your findings, then that's the exact way I plan to develop

https://github.com/ukdtom/DevTools.bundle/issues/7 

/T

Good Morning people!

I've updated first post with new version and changelog.

It no longer requires any access directly to the harddrive of plex, this is done via DevTools.

Please take it for a spin.

Remove any old versions you have first and then update DevTools and install PlexUSM.

A new tool has been released in cooperation with Dane22.

This tool is almost the same as this one, except it dosn't require a PHP server or anything like that, you install it as a bundle and follow the instruction on the github wiki.

The features are basically the same, but it has a few more goodies up it's sleve.

https://forums.plex.tv/topic/126254-rel-webtools/

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.