Jump to content

Recommended Posts

sross44
Posted

I wanted to create a subforum under Linux dedicated to unRAID and all of us that setup Emby on an unRAID system. 

Feel free to message me or write if anyone ever needs help setting this up or has any questions. 

  • Like 2
  • Thanks 2
Neminem
Posted (edited)

I can not stress this enough, when creating a new docker Emby server in unRaid.

If you are using the official Emby Docker emby/embyserver:latest or emby/embyserver:beta.

But if you use some of the other docker out there, be sure to check.

You need to change UID to 99 and GID to 100.

Other wise you will end up with permission problems.

Below picture default Emby Server template.

image.png.0a4d27e51f2904eef286a83be8e63b45.png

Below with the needed changes.

image.png.e6614abc4f01235c76432fb5d064475b.png

Edited by jaycedk
  • Like 2
  • 3 weeks later...
richardvrusso
Posted

😮  i'm using the official repo and mine are 2's. Will change it now.

richardvrusso
Posted
On 7/31/2024 at 2:35 PM, sross44 said:

I wanted to create a subforum under Linux dedicated to unRAID and all of us that setup Emby on an unRAID system. 

Feel free to message me or write if anyone ever needs help setting this up or has any questions. 

That would be cool I think. I've been using it this way for years. 😁

richardvrusso
Posted

Also good timing. I was about to go searching around if anyone else is having a strange anomaly. It's only happened 2 or 3 times that no videos will play. I watched the dashboard activity the other night. I press play in the emby app for Fire TV, the dashboard shows it starting to play but after 10 sec just stops. The TV app then goes back to the screen before. I found in the logs a FFMPEG log where it says file not found. This is weird because the unRAID server can see/browse my TrueNAS Scale box. I finally gave up and restarted the docker container. Then when I went back into the emby server and all the movies/tvshows were gone. I did a rescan and it went fast to 90% and slowly finished from there. After that all was back to normal.

I wonder if I have to wait for it to happen again and then I can grab ______ log file(s) to share?

Posted
7 hours ago, richardvrusso said:

Also good timing. I was about to go searching around if anyone else is having a strange anomaly. It's only happened 2 or 3 times that no videos will play. I watched the dashboard activity the other night. I press play in the emby app for Fire TV, the dashboard shows it starting to play but after 10 sec just stops. The TV app then goes back to the screen before. I found in the logs a FFMPEG log where it says file not found. This is weird because the unRAID server can see/browse my TrueNAS Scale box. I finally gave up and restarted the docker container. Then when I went back into the emby server and all the movies/tvshows were gone. I did a rescan and it went fast to 90% and slowly finished from there. After that all was back to normal.

I wonder if I have to wait for it to happen again and then I can grab ______ log file(s) to share?

You’ll probably need to provide logs. I haven’t had any issues running Linux server.io image. Although my storage is all unraid and not on a separate box.

Posted

Logs would definitely be helpful there. But honestly, sometimes just a restart of the container like you did is all you need. 

richardvrusso
Posted
4 hours ago, sross44 said:

Logs would definitely be helpful there. But honestly, sometimes just a restart of the container like you did is all you need. 

Yeah I'm in that situation where it's not happening now so how the hell can I show something wrong. 🤦‍♂️😆  If it does happen again would I just grab the most recent embyserver.txt file and ffmpeg-remux files?

Posted

Yeah those would be good. I understand what you're saying since it's not happening now, just saying in the future, to share the logs and we can hopefully narrow down what's causing the issue for you! 

richardvrusso
Posted
2 hours ago, sross44 said:

Yeah those would be good. I understand what you're saying since it's not happening now, just saying in the future, to share the logs and we can hopefully narrow down what's causing the issue for you! 

😁🤘 will do! 

knowing my luck, there will be an update to the docker image and it will never happen again. 🤣

Posted
On 8/4/2024 at 2:00 PM, JayceDK said:

I can not stress this enough, when creating a new docker Emby server in unRaid.

If you are using the official Emby Docker emby/embyserver:latest or emby/embyserver:beta.

But if you use some of the other docker out there, be sure to check.

You need to change UID to 99 and GID to 100.

Other wise you will end up with permission problems.

Below picture default Emby Server template.

image.png.0a4d27e51f2904eef286a83be8e63b45.png

Below with the needed changes.

image.png.e6614abc4f01235c76432fb5d064475b.png

So it's okay for the official docker container to have those at 2 or should the official container be changed as well?

Neminem
Posted
8 hours ago, yocker said:

So it's okay for the official docker container to have those at 2

I have run Emby with uid  and gid 2, but had to fiddle with permissions, of both config folders and media folders.

If I for example wanted to upload a new plugin, then I had to edit permissions on the plugin dll file, for emby to see it.

When changing to uid and gid to 99 100 you are in effect running emby as unraid user nobody. 

8 hours ago, yocker said:

should the official container be changed as well?

Well its not a docker container issue pr say.

Its the template the unraid uses to run the docker.

If the template was corrected to use unraid nobody 99/100 then all is fine.

 

I have not tested changing uid / gid on a old install, Tbh I didn't have the stones 🤣😂

I have only testet with a new install.

Posted

I've always recommended that people running Emby on any Linux platform should mimic what the bare metal installer does. Create a user emby and group emby (or media, etc.) then grant this user access to the storage volumes/pools/shares/etc that will be used for media. Use this account for all Emby related stuff and you'll avoid access or "cross contamination" problems going forward. If multiple users need to access the media files and directories (like the *arr's) those accounts, if unique, can share a common group - ie: media. ACLs where supported and/or umask settings can insure the group members have the access they need to create and manage the media files.

At a minimum create a unique account even if using one for all media and related applications instead of the built-in daemon (2) and nobody (varies). These are meant to be low privilege and unprivileged accounts though it's best practice to have dedicated accounts to isolate applications and services. Escape from one process running as daemon or nobody would still have access to the resources of other processes running as the same user.

 

  • Like 2
Posted
18 hours ago, JayceDK said:

I have not tested changing uid / gid on a old install, Tbh I didn't have the stones 🤣😂

I have only testet with a new install.

Okay, i wont touch it then, plus i haven't had any problems anyway. :)

Posted
On 8/23/2024 at 1:40 PM, yocker said:

So it's okay for the official docker container to have those at 2 or should the official container be changed as well?

I mean you should usually change that value to what ever user/group you want the docker to run as to avoid permission issues. But if it's working for ya that's fine. Worst case you just change the permissions on the app data folder.

  • Agree 1
  • 3 weeks later...
Posted

I would love to see a plugin that moves your “next up” items and recently added items to the cache drives 

Posted
2 hours ago, gthrift said:

I would love to see a plugin that moves your “next up” items and recently added items to the cache drives 

You don't already have your downloads on the cache drive? My flow all on the cache drive is download -> use ARR to manage the file -> unraid moves file after 14 days to array off cache.

  • Agree 1
Posted
On 9/14/2024 at 10:35 PM, guunter said:

You don't already have your downloads on the cache drive? My flow all on the cache drive is download -> use ARR to manage the file -> unraid moves file after 14 days to array off cache.

yes, latest downloads are but for example, my wife is rewatching How I Met Your Mother in order.   It would be nice if overnight, there were a plugin that could look at the next upcoming episodes and transfer them to cache and move any watched episodes back.

Posted

Have a look at this.

[Plugin] Mover Tuning - Plugin Support - Unraid

It might help you.

But not with rewatching.

Unless you download the series files and reupload them after altering creation time stamp.

Then they should be on cache, if your Mover Tuning is setup right.

Posted

My concern for a plugin like this would be a lot of read and write to both cache and the array. Let's use this as an example. 

Your wife starts rewatching How I Met Your Mother. So the first video is played off of the array. Well now she wants to watch 3-4 episodes back to back so they play off of the array. Reading off the array is easy, it's what it's intended for. But now we have to move over how many episodes to the cache drive? So it reads off of the array, say the next 5 episodes and writes them to cache. So no big deal that's ok, but what if she doesn't watch them in the next day or so. Then it dumps it back on to the array, writing it again to something that's already done in the past. She opens Emby a week later and plays another few episodes... rinse and repeat. It's just a lot of back and forth, for something that the array should be able to handle flawlessly. 

I can spin up a 4k high bit rate movie off my array and it starts within seconds. The constant back and forth from cache to array to me doesn't seem worth it just to save maybe a second (if that) from startup. Just my thoughts on it. 

 

  • Agree 1
  • 2 months later...
DylanParham
Posted

Does anyone have experience with adding an Intel Arc GPU to their Unraid setup? My understanding is they are great budget cards for the types of tasks Emby performs (video serving and conversion). My Windows-based Emby server detects and uses the card totally fine.
 

I was hoping to consolidate some stuff in my lab and one of the things I’d like to try out is getting my Emby server running on my unraid machine as a container. Does the Arc series have any huge pitfalls I should be aware of? What kind of driver support can I expect? Am I better off just going with a slightly more expensive Nvidia card?

 

 Thanks!

  • Agree 1
richardvrusso
Posted
2 hours ago, DylanParham said:

Does anyone have experience with adding an Intel Arc GPU to their Unraid setup? My understanding is they are great budget cards for the types of tasks Emby performs (video serving and conversion). My Windows-based Emby server detects and uses the card totally fine.
 

I was hoping to consolidate some stuff in my lab and one of the things I’d like to try out is getting my Emby server running on my unraid machine as a container. Does the Arc series have any huge pitfalls I should be aware of? What kind of driver support can I expect? Am I better off just going with a slightly more expensive Nvidia card?

 

 Thanks!

2 hours ago, DylanParham said:

Does anyone have experience with adding an Intel Arc GPU to their Unraid setup? My understanding is they are great budget cards for the types of tasks Emby performs (video serving and conversion). My Windows-based Emby server detects and uses the card totally fine.
 

I was hoping to consolidate some stuff in my lab and one of the things I’d like to try out is getting my Emby server running on my unraid machine as a container. Does the Arc series have any huge pitfalls I should be aware of? What kind of driver support can I expect? Am I better off just going with a slightly more expensive Nvidia card?

 

 Thanks!

2 hours ago, DylanParham said:

Does anyone have experience with adding an Intel Arc GPU to their Unraid setup? My understanding is they are great budget cards for the types of tasks Emby performs (video serving and conversion). My Windows-based Emby server detects and uses the card totally fine.
 

I was hoping to consolidate some stuff in my lab and one of the things I’d like to try out is getting my Emby server running on my unraid machine as a container. Does the Arc series have any huge pitfalls I should be aware of? What kind of driver support can I expect? Am I better off just going with a slightly more expensive Nvidia card?

 

 Thanks!

 

I've been eyeing one of these for a while now. 😉 Saw a couple vids on how well it transcodes. Only $99 too. 

Sparkle Intel Arc A310 ECO, 4GB GDDR6, 50W TBP, Short Bracket is Included, Low-Profile, Single Fan, Single Slot, HDMI x1, Mini DisplayPort x2, SA310C-4G https://www.amazon.com/dp/B0CSFJN835/?coliid=I11SGBCRGQ127P&colid=2YW60H5TCI36E&psc=0&ref_=cm_sw_r_apann_lstpd_EWCE0AN5V48W3RQA3M8K&language=en_US

Posted
18 hours ago, DylanParham said:

Does anyone have experience with adding an Intel Arc GPU to their Unraid setup? My understanding is they are great budget cards for the types of tasks Emby performs (video serving and conversion). My Windows-based Emby server detects and uses the card totally fine.
 

I was hoping to consolidate some stuff in my lab and one of the things I’d like to try out is getting my Emby server running on my unraid machine as a container. Does the Arc series have any huge pitfalls I should be aware of? What kind of driver support can I expect? Am I better off just going with a slightly more expensive Nvidia card?

 

 Thanks!

No official support until next major version of unraid since the gpu support is in the kernel. If you run a custom kernel it will work though

  • Thanks 1
  • 1 month later...
Posted
On 04/08/2024 at 13:00, Neminem said:

I can not stress this enough, when creating a new docker Emby server in unRaid.

If you are using the official Emby Docker emby/embyserver:latest or emby/embyserver:beta.

But if you use some of the other docker out there, be sure to check.

You need to change UID to 99 and GID to 100.

Other wise you will end up with permission problems.

Below picture default Emby Server template.

image.png.0a4d27e51f2904eef286a83be8e63b45.png

Below with the needed changes.

image.png.e6614abc4f01235c76432fb5d064475b.png

I tried this, Emby was no longer available on Unraid and the cloients couldnt see it. I tried twice rebooting everything and if I cahnge to 99/100 it just doesn't work for me?

Reason I came here was everything is working great, and was working great with Binhex-Emby. But transcoding was not working on that container, so I installed the official emby container. TYook a while to get all up and running, and almost everything is. I thought, hoped I had stumbled across the reason all my backups now fail, they all worked before in the binhex container. But if I cannot access the emby on the unraid, and clients cannot see it, not great. I reset back to 2 and 2 and at least the emby is now working.

Any suggestions on this topic?

Finally, I am surprised that there isnt a specific unraid forum, everything else seems to have one, so that is a great idea!

Posted (edited)

When messing with a "already installed docker" permission vice, make sure you have everything set.

When I was fighting permissions do to 2 2 2.

I started over and changed it to 99 100 2 as if It was run by nobody in unRaid terms.

Did you delete appdata when you switched between docker image providers ?

I use  emby/embyserver:latest and also now I use Host network.

Edited by Neminem

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...