-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Solution for mapped drives? #27
Comments
Hi, I actually don't see this as an issue that needs solving. UNC paths work perfectly. |
Well they do. But they require full library refresh which i bet many users would like to avoid, while you can easily change mapped drive path in seconds. Adding mapped drive support would also make pmsservice more transparent. You just install and configure it and you dont have to change anything in your plex server. Also if you ever move your data to a new server you would need to change unc paths and refresh again. I think this is worth considering. |
Yeah, that's valid. I'll look at it when I get a chance. |
Add mapped drives issue #27 Add upnphost as dependency service. some settings layout changes and better window handling (single instance of windows allowed)
I see you have added drive mapping support. Tried using "Credential Manager" but I bet those passwords are not available for the service. |
I chose to avoid it to try and simplify as much as possible. Just make sure that the user account the service is run as, has access to the share. (check your share permissions). The same is true if you use a unc path with plex. The account plex media server is run as needs to have permission to access the share. |
Yes that will work but I dont think this is a good solution because it is some what limiting. You just cant predict user setups so its best to allow for flexibility where it is feasible. I tried to do it like you said, but in my case I had to create another user on the plex server system to match the user for the mapped drive, so I had to migrate plex settings and registry and I could not get the webui to work. But the logs indicated that the drive mapping was successful. |
Surely you could have just added the existing plex user account to the share permissions and saved all that hassle. I'll look at it in the next version, it's not difficult to add. My preference is that this should be handled by the user at the share permission level. |
i'm running v 1.1.2.0 because its been fine for me. but now i'm experimenting with adding a mapped rclone cache drive (z:) and when i run plex as a service via pmsservice, it can't see the z: drive. if i run plex normally it sees it fine. i've made sure that pmsservice is running as the same user as my rclone mount but that didn't seem to help. do you by chance have any ideas? will try to update to the latest pmsservice to see if that helps at all. |
Mappings are not created until the user session is created. Services run in session 0, the are no mapped drives. I've added the functionality to have this service create the mapping, it seems to work. Grab the latest version and try it. |
hmm yea i installed the latest but unfortunately i don't see a way to map an rclone remote via a UNC path, else i've read i could actually just add the UNC path in plex and it would see it ok. i'm using rclone to map my google drive if that helps at all. this isn't really a pmsservice issue, i was just hoping there might be a work around that you guys knew about. |
I'm not familiar with rclone, but if it's a command line utility you could add it as an auxillary application. Auxiliary applications are run when Plex starts and optionally kept running (restarted if they stop) you obviously would only want it to run once. UNC paths in Plex is the best way |
yea i tried auxillary app as well, it ran it but didn't pop up the command window like normal and the drive letter never showed up unfortunately. i tried with the arguments added to the arguments box and also with " " around a complete command line in the app box but show the process running but no drive ever appears. where-as the same command line ran at a prompt pops a drive up. |
It can't pop up the command window, it's running in a different session, that session has no desktop. Also, the working directory will need to be set correctly |
gotcha that makes sense. yea the working directory was the same as where the executable was at. would maybe the fact that its running it in a different session cause the drive letter to not appear for my session? |
Yep, but it may be available for Plex to use at that point, did you try Plex? |
hmmm no i sure didn't, let me try that and i'll let you know |
lol yup, plex sees it fine! thanks man, much appreciated. |
so any magical way you can think of for me to be able to access that Z: drive from my desktop? i know i could run a separate rclone mount for it, but don't think it will cache properly with that. being able to directly access that other z: would be ideal. |
Nope, it's not available to you. I. The same way that if another user was running it you couldn't access it. You'd have to run a seperate mount. I'm not familiar with the program so I can't really comment further |
I'm closing this issue as the mounting works. Currently my preference is to manage credentials at the share level, ie, add the account the service is run as to the share permissions, rather than use separate account details when connecting to map. |
According to some threads I found, like this one, its possible use a mapped drive if the service mapps the drive itself, or if another service running as the same user maps the drive first.
We could add settings for mapped drives (path, username, password, drive letter) to the tray options, and the service would map the drives in OnStart method.
As far as I can tell it should work.
There is a network drive api we could possibly use.
The text was updated successfully, but these errors were encountered: