Luke 37064 Posted January 6, 2015 Author Share Posted January 6, 2015 did you enable it in the metadata section? the task is only going to perform extractions on the video types that you've enabled it for. 1 Link to comment Share on other sites More sharing options...
whitestrat13 33 Posted January 6, 2015 Share Posted January 6, 2015 Thanks @@Luke. That did it. I haven't set up a MB server since I built my main server, shortly after MB3 was released. I guess I'm a bit rusty. Link to comment Share on other sites More sharing options...
woodsb02 17 Posted January 6, 2015 Share Posted January 6, 2015 I did have to add a user with User ID 989 and give it rights to the volume with my media on it to allow MBS to write metadata and images. I hope this can help anyone with a similar issue. @@Luke - this is because I configured the MediaBrowser service to run as a dedicated user (with UID 989). This is to ensure that if an attacker was able to find a security flaw in the mono or MediaBrowser code base that allowed remote code execution, they would hopefully be restricted to the privileges of the dedicated user (very little), rather than immediately gaining root privileges on the computer. This is particularly important in FreeBSD where MediaBrowser may be running on the host computer, and less important on FreeNAS where it runs in a jail by default (restricting their privileges to within the jail). The issue is that if MediaBrowser is run in a jail (as on FreeNAS), the dedicated user is only created within the jail (not on the host). If MediaBrowser needs write access to the media directory, the administrator would need to manually create a new user on the host (with UID 989), and add that user to a group that has write access to the media directories. I didn't believe this to be a problem, as it was my understanding MediaBrowser only reads from the media directories, and saves metadata to the database directories where it has full write access (the database directories are owned by UID 989). Does the MediaBrowser server ever write to the media directories? One example might be with camera photo upload from mobile phones... Link to comment Share on other sites More sharing options...
Luke 37064 Posted January 6, 2015 Author Share Posted January 6, 2015 yes there are settings that allow users to save metadata within media directories if they want Link to comment Share on other sites More sharing options...
woodsb02 17 Posted January 6, 2015 Share Posted January 6, 2015 Ok - advise to any users of the FreeNAS plugin that are reading this, if you want to use the settings to save metadata within the media directories, you will have to create a FreeNAS user with UID 989 and give that user write access to the media folders (which would also have to be mounted read/write in the jail). Link to comment Share on other sites More sharing options...
embeathome 7 Posted January 6, 2015 Share Posted January 6, 2015 Congrats on getting it working. As I mentioned you should test your direct path by trying to open a movie from that path in mpc. It's easy to forget a folder, I did the same thing at first. Thanks! Yes, exactly that is what i did, copied complete path to MPC-HC and it didn't work...so i realized that the problem is not in MBS, MBT, MPC-HC, but between keyboard and chair Anyway, thanks. MB(3) is the best! I also tried several other possibilities but finally found MB... Link to comment Share on other sites More sharing options...
embeathome 7 Posted January 6, 2015 Share Posted January 6, 2015 (edited) Ok - advise to any users of the FreeNAS plugin that are reading this, if you want to use the settings to save metadata within the media directories, you will have to create a FreeNAS user with UID 989 and give that user write access to the media folders (which would also have to be mounted read/write in the jail). Is this for sure? I don't have any user with UID 989 and it works, metadata writes etc...my volume permissions looks like below: EDIT: Just playing with Metadata settings of some movies, since english is not my mother tongue, i am trying to set only pics to be downloaded and i plan to use movie info from MCM (csfd scraper). I now realized that i cannot delete pics already downloaded, fanarts etc...because of UID 989 rights... Edited January 6, 2015 by embeathome Link to comment Share on other sites More sharing options...
woodsb02 17 Posted January 6, 2015 Share Posted January 6, 2015 Is this for sure? I don't have any user with UID 989 and it works, metadata writes etc...It's only if you have changed the MediaBrowser settings to write the metadata into the media directory, rather than the default directory. Link to comment Share on other sites More sharing options...
embeathome 7 Posted January 6, 2015 Share Posted January 6, 2015 (edited) I did no changes there, actually MBS is set to save metadata into media folders. No matter if it saves or not to media folders, i cannot delete some stuff, see below (i created UID 989 anyway but i am not sure if i set permissions correctly since i am also new to Freenas) EDIT: Set permission recursively did the trick, i can now delete files/folders. Let me again test writes of metadata to media folders... Edited January 6, 2015 by embeathome Link to comment Share on other sites More sharing options...
embeathome 7 Posted January 6, 2015 Share Posted January 6, 2015 (edited) Hm....i have serious problem here....just set all necessary in MBS, installed few MBS plugins, system asked me to restart server. So i restarted whole Freenas, but then MBS dashboard wont load anymore. So i checked Mediabrowser plugin and it is turned off. So i tried to turn it ON - not possible, no errors, plugin just doesn't start. So I uninstalled it, install again, in this case plugin started, so i set everything once again, restarted FreeNas again, and same issue. Plugin is stopped and not possible to run it again Any ideas how to solve this? Thanks. Edited January 6, 2015 by embeathome Link to comment Share on other sites More sharing options...
Vidman 589 Posted January 6, 2015 Share Posted January 6, 2015 (edited) Just FYI when media browser asks you to restart you can just turn off then back on the media browser plugin in the freenas dashboard.... No need to restart the whole machine Edited January 6, 2015 by Vidman Link to comment Share on other sites More sharing options...
Vidman 589 Posted January 6, 2015 Share Posted January 6, 2015 Ok - advise to any users of the FreeNAS plugin that are reading this, if you want to use the settings to save metadata within the media directories, you will have to create a FreeNAS user with UID 989 and give that user write access to the media folders (which would also have to be mounted read/write in the jail).I'm new to freeNAS too could you possibly explain this a bit more... Maybe with a few screenshots on how to set this up? Link to comment Share on other sites More sharing options...
woodsb02 17 Posted January 6, 2015 Share Posted January 6, 2015 I'm new to freeNAS too could you possibly explain this a bit more... Maybe with a few screenshots on how to set this up?You don't have to do anything. You only have to do this if you have changed the default MediaBrowser settings to store metadata into the media folders. Link to comment Share on other sites More sharing options...
josh4trunks 70 Posted January 7, 2015 Share Posted January 7, 2015 you only really need to restart the freenas host when you have updates for it (the host) that require a restart. restarting the MB plugin, and possibly the MB jail should be all you need to do for this plugin. If the plugin isn't responding it's probably a networking issue. I've noticed turning off VIMAGE and restarting the plugin's jail fixes this anytime I have an issue. Link to comment Share on other sites More sharing options...
Hisma 15 Posted January 7, 2015 Share Posted January 7, 2015 Hm....i have serious problem here....just set all necessary in MBS, installed few MBS plugins, system asked me to restart server. So i restarted whole Freenas, but then MBS dashboard wont load anymore. So i checked Mediabrowser plugin and it is turned off. So i tried to turn it ON - not possible, no errors, plugin just doesn't start. So I uninstalled it, install again, in this case plugin started, so i set everything once again, restarted FreeNas again, and same issue. Plugin is stopped and not possible to run it again Any ideas how to solve this? Thanks. Access the command prompt for the jail and try the command:service mediabrowser restart See what happens. I had to manually start the server from inside the jail after a recent reboot of the host machine. No clue why it didn't work automatically, but the restart fixed it and it's been working fine since. If it gives you an error, post it here and we'll see if we can help. Link to comment Share on other sites More sharing options...
Vidman 589 Posted January 7, 2015 Share Posted January 7, 2015 You don't have to do anything. You only have to do this if you have changed the default MediaBrowser settings to store metadata into the media folders.I store the metadata in the media folders Link to comment Share on other sites More sharing options...
woodsb02 17 Posted January 7, 2015 Share Posted January 7, 2015 I store the metadata in the media foldersDoes it work for you without having made any changes? Link to comment Share on other sites More sharing options...
embeathome 7 Posted January 7, 2015 Share Posted January 7, 2015 (edited) Access the command prompt for the jail and try the command: service mediabrowser restart See what happens. I had to manually start the server from inside the jail after a recent reboot of the host machine. No clue why it didn't work automatically, but the restart fixed it and it's been working fine since. If it gives you an error, post it here and we'll see if we can help. Oke thanks! I would do this in the evening, however could you please specify more in details steps how to do this since i am also new to freenas, i have no clue how to do it. Do you mean opening shell and if so, how to get into jail? And then, when i am there, just typing command as you described above and that's it? EDIT: I was able to enter jails using shell command: cd /mnt/Storage_embe/jails but when i tried command "service mediabrowser restart" it returned following: I am most probably doing something wrong here.... Edited January 7, 2015 by embeathome Link to comment Share on other sites More sharing options...
Hisma 15 Posted January 7, 2015 Share Posted January 7, 2015 Here is a step-by-step on how to gain shell access to your jail. You really should know how to do this if you plan to use freenas effectively, as doing any maintenance or adding any customization to your jail will require you to access the jail directly. This will be rudimentary to some, but I always make step-by-step guides assuming the person has little to no prior knowledge. Step 1 - Access the freenas shell Step 2 - type the command jls to determine what the JID is of your mediabrowser jail. My mb3 JID is "5". Step 3 - type the command jexec <JID> tcsh Step 4 - you should see the prompt change to signify you are now have shell access to your jail. Default jail name "mediabrowser_1", or whatever your jail name is, should be visible. Type the command service mediabrowser restart If successful, the output should match similar to what is shown in the screenshot below. Pretty simple. I don't know if this is all you need to do at this point, but we should get some info as to what is going on based on what tells us. I unfortunately do not know where the mb3 logfile is stored (I tried looking, couldn't find it). Link to comment Share on other sites More sharing options...
embeathome 7 Posted January 7, 2015 Share Posted January 7, 2015 Perfect, thanks! Really appreciate. In between i found that jail shell is also accessible directly from dashboard in view jails. Anyway...still learning Freenas, i like it but sometimes is over my head... I did the steps as you described, and got following below.... In MBS dashboard, which is of course not accessible to me, in very 1st start page there are paths described where logs are stored. I seen it yesterday when i was searching for path where metadata are stored.... Link to comment Share on other sites More sharing options...
embeathome 7 Posted January 7, 2015 Share Posted January 7, 2015 attached - not sure if this is the right log, but found this in jails\mediabroswer_1\var\log (i tried to open with notepad /var/run/mediabrowser.pid but it was empty) auth.log Link to comment Share on other sites More sharing options...
Hisma 15 Posted January 7, 2015 Share Posted January 7, 2015 Jan 6 22:09:26 mediabrowser_1 su: in openpam_check_desc_owner_perms(): /etc/pam.d/su: insecure ownership or permissions Jan 6 22:09:26 mediabrowser_1 su: pam_start: system error There is history on this error. It is stating there is a permissions problem with that file. Check here: https://forums.freenas.org/index.php?threads/plugins-wont-start-in-openpam_check_desc_owner_perms-etc-pam-d-su-insecure-ownership-or-permis.17466/ I like the solution of post #17. chaging the permission of pam.d/* to 755 should get rid of that problem, but I would also check ownership as well. Good luck. Link to comment Share on other sites More sharing options...
josh4trunks 70 Posted January 7, 2015 Share Posted January 7, 2015 When I see that PAM error I suggest you try installing another plugin and see if it works. thinks could get really complicated trying to fix it cause it's an underlying problem with the jail not specifically this plugin. i would hope a fresh install of a second instance of MB works, then I'd just use that working instance. Link to comment Share on other sites More sharing options...
embeathome 7 Posted January 8, 2015 Share Posted January 8, 2015 @@josh4trunks. Before Hisma replied, I uninstalled MB plugin and installed again. Plugin turns on without any issues but cannot access MBS dashboard. It seems i played with restrictions too much so I believe now fresh install of Freenas will only solve it (of course if I would have more knowledge of freenas, I would be most probably able to solve it but I don't have - still learning it...) Link to comment Share on other sites More sharing options...
woodsb02 17 Posted January 8, 2015 Share Posted January 8, 2015 A FreeNAS reinstall seems quite drastic for a plugin issue. When you uninstall the MB plugin does it also delete the corresponding jail? If not, do that manually before reinstalling the MB plugin. That will ensure a fresh start with all the permissions in the plugin jail. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now