Jump to content

Changing emby user stopped Emby working


preedy
Go to solution Solved by MRobi,

Recommended Posts

freenas 11.2 u7

Emby  4.2.1.0_1

 

I'm following the installing Emby instructions. Because I had user issue when I tried it myself.

After installing emby, the server is running and has ip: can access the shell. and www.

 

Then I do this part. I use 8675309 for my uid and gid,

 

service emby-server stop change the group and user id:

pw groupmod emby -n emby -g 1101

pw usermod emby -n emby -u 1101 -g 1101 change the  permission on the emby executables:

chown -R emby:emby /var/db/emby-server/ tell the jail which user is using the emby server

sysrc 'emby_server_user=emby'

start the emby server service emby-server start

 

At this point the Emby server will not start. no shell 

 

Ive tried, shell for my freenas cd /mnt/media/iocage/jails/emby

I found that my /vars/run/emby-server.pid was set to uid gid of 989 so I chown 8675309:8675309 vars/run/emby-server.pid

 

and still not running.

 

any ideas??

 

Thank you for your time

 

 

 

Link to comment
Share on other sites

not sure,,Ill give it a try.

I do not know how i can not get in the jail shell. 

if i try to change emby user in /mnt/media/iocage/jails/emby it says no user found.

Edited by preedy
Link to comment
Share on other sites

makarai

I don't really know this but is the UID number space limited? 8675309 seems quite a high number?

Edited by makarai
Link to comment
Share on other sites

ok, I figured it out, it was a mount point error. I deleted my mounting points and now it starts.

So,, what is wrong with

Source: /mnt/media

destination: /mnt/media/iocage/jails/emby/root/movemby

Link to comment
Share on other sites

ok once again, figured it out. it was permission on root they were root:wheel now media:media and it works.

Sorry about posting, but ive been working days on this. and lucky got it. thanks.

Link to comment
Share on other sites

  • Solution
MRobi

ok, I figured it out, it was a mount point error. I deleted my mounting points and now it starts.

So,, what is wrong with

Source: /mnt/media

destination: /mnt/media/iocage/jails/emby/root/movemby

Looking at your folder structure, if your source is /mtn/media you'll be mounting all of your jails inside the emby jail as well which could cause a recurring loop. This is because your iocage folder is located inside mnt/media

 

If you changed ownership of /mnt/media and made that recursive you might have changed ownership on all of your jails as well which is likely causing you issues somewhere else.

 

It should look more like this:

Source: /mnt/media/DATASET/LocationOfMediaFiles

Destination: /mnt/media/iocage/jails/emby/root/movemby

  • Like 1
Link to comment
Share on other sites

Thank you MRobi, 

I did figure that out shortly after I posted it. now nearly everthing is working correctly.

Ill start a new post on my next problem ;)

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...