Jump to content


Photo

Issues in Linux setup

metadata slow

  • Please log in to reply
29 replies to this topic

#1 eversmannx OFFLINE  

eversmannx

    Member

  • Members
  • 14 posts
  • Local time: 04:40 PM

Posted 30 May 2019 - 07:14 AM

Hi All,

 

I am attempting to setup Emby on Ubuntu 18.04 and I have a couple of issues I am looking for help. I have all my media in a old NAS (which doesn't support apps like Emby on it), so I am running Ubuntu on a seperate laptop - all connected with ethernet cables and my broadband is 300mbps.

 

  • I tried many times, but Emby server on Ubuntu never indexed my full library. My library is not huge - I have about 100 movies, and 10 TV shows. After a few fresh attempts I managed to get the TV shows done, but then when I add Movies, it just doesn't do the full job. and I Uninstalled the server and all packages including metadata folders using a package uninstaller, but just never been able to index everything which is really frustrating.
  • When I try this on Windows 7 on the same laptop, it works like a charm, and takes much less time.
  • The main reason I am trying to stick to Linux is because, with Win 7 I feel the laptop is boiling - and it's a setup I only use for this server, so I can't see any other heavy processes running, yet it's always really hot and it's worrying to keep the laptop like that under my TV unit. Ubuntu on the other hand was just fine, and I had Emby server running for a whole day - I don't think it ever got as hot as it did with Win7.
  • My 2nd issue is to be able to delete files from the interface (web client or my 3x kodi setups with emby add on). With windows 7, my file locations are simply mapped as \\MYBOOKLIVE\MOVIES\xx, in Ubuntu, I didn't want user log in's to be a problem, so allowed anonymous access and file locations would refer as smb://mybooklive/movies/xx - although I can read/write within the Ubuntu explorer, I think I am only getting read only access from Emby server. Maybe this a question on how to setup network folders in Linux to use with Emby.

 

Any help would be much appreciated.

 

Many Thanks

 



#2 sargenthp OFFLINE  

sargenthp

    Advanced Member

  • Members
  • 39 posts
  • Local time: 09:40 AM
  • LocationEau Claire, WI

Posted 30 May 2019 - 07:18 AM

Sounds like a permission issue to me. Emby runs under the emby user. Make sure that user has the rights.


Sent from my PH-1 using Tapatalk

#3 eversmannx OFFLINE  

eversmannx

    Member

  • Members
  • 14 posts
  • Local time: 04:40 PM

Posted 30 May 2019 - 07:37 AM

Sounds like a permission issue to me. Emby runs under the emby user. Make sure that user has the rights.


Sent from my PH-1 using Tapatalk

 

How do you mean "emby user"?

 

the user def has right and able to read the media locations. 



#4 sargenthp OFFLINE  

sargenthp

    Advanced Member

  • Members
  • 39 posts
  • Local time: 09:40 AM
  • LocationEau Claire, WI

Posted 30 May 2019 - 07:41 AM

Emby runs under the user 'emby'. At the console you can switch to the user and test the permissions by executing... sudo -u emby bash

Sent from my PH-1 using Tapatalk

#5 sector327 OFFLINE  

sector327

    Advanced Member

  • Members
  • 46 posts
  • Local time: 10:40 AM

Posted 30 May 2019 - 12:01 PM

How do you mean "emby user"?

 

the user def has right and able to read the media locations. 

 

been a while since I touched a deb based linux but w/ the RH variants, you can look in /etc/password and see all the users. 


Edited by sector327, 30 May 2019 - 07:17 PM.


#6 eversmannx OFFLINE  

eversmannx

    Member

  • Members
  • 14 posts
  • Local time: 04:40 PM

Posted 31 May 2019 - 07:24 AM

Thanks for the replies. But I am not as proficient in Linux to check these. I'd appreciate if I can get a bit more specific advice. I've attached screenshots and notes along with them.

 

https://imgur.com/a/ibok31y

 

  • If the problem is the way is how I am referring to the location in emby server setup, please guide on what is the best way (if user login details have to built into it etc)
  • How do I test the "emby" user credentials in this setup (i.e. I don't know how to navigate to the network location in my screenshot to check sudo -u emby bash etc)

Many Thanks



#7 sargenthp OFFLINE  

sargenthp

    Advanced Member

  • Members
  • 39 posts
  • Local time: 09:40 AM
  • LocationEau Claire, WI

Posted 31 May 2019 - 08:09 AM

I would be interested in seeing the TV shows folder rights. The last screen shot shows that the user eversmannx has full rights, but groups and others have zero rights... rwx --- ---

So do this once...
sudo -u emby bash
cd /run/user/1000/gvfs/smb-share:server=mybooklive,share=movies/_MOVIES/__English
ls -l
exit

See if will let you get this far to get into the folder and list the folders as the user emby.

Sent from my PH-1 using Tapatalk

#8 sargenthp OFFLINE  

sargenthp

    Advanced Member

  • Members
  • 39 posts
  • Local time: 09:40 AM
  • LocationEau Claire, WI

Posted 31 May 2019 - 08:34 AM

Now that I think about it. You are getting the file names but just not getting the metadata such as movie art, correct? When you set up the Movies folder, did you set it up as a Movie type and have the Movie metadata downloaders selected?

Sent from my PH-1 using Tapatalk

#9 eversmannx OFFLINE  

eversmannx

    Member

  • Members
  • 14 posts
  • Local time: 04:40 PM

Posted 31 May 2019 - 09:59 AM

Yes, That's right. titles come through and Yes, setup as "Movie" type, and metadata downloaders selected. I tried changing the settings to save artwork etc save to same folder, but not sure if that had any major differences. 

Like I said, some of the movies pick up the full metadata, but not all. Any reason it took so long compared to Windows setup?



#10 eversmannx OFFLINE  

eversmannx

    Member

  • Members
  • 14 posts
  • Local time: 04:40 PM

Posted 31 May 2019 - 10:03 AM

I would be interested in seeing the TV shows folder rights. The last screen shot shows that the user eversmannx has full rights, but groups and others have zero rights... rwx --- ---

So do this once...
sudo -u emby bash
cd /run/user/1000/gvfs/smb-share:server=mybooklive,share=movies/_MOVIES/__English
ls -l
exit

See if will let you get this far to get into the folder and list the folders as the user emby.

Sent from my PH-1 using Tapatalk

 

 

eversmannx@ThinkPad-T410:~$ sudo -u emby bash
[sudo] password for eversmannx:
emby@ThinkPad-T410:~$ cd /run/user/1000/gvfs/smb-share:server=mybooklive,share=movies/_MOVIES/__English
bash: cd: /run/user/1000/gvfs/smb-share:server=mybooklive,share=movies/_MOVIES/__English: Permission denied
emby@ThinkPad-T410:~$
 

No, permission denied.



#11 eversmannx OFFLINE  

eversmannx

    Member

  • Members
  • 14 posts
  • Local time: 04:40 PM

Posted 04 June 2019 - 11:48 AM

after a lot of research/testing, I managed to mount the movies share like this:

 

sudo mount -t cifs //192.168.0.22/Movies /nas/movies -o sec=ntlm,vers=1.0

 

and after that, it literally only took a couple of minutes for emby to index the files and artwork (from /nas/movies). Amazing!

 

@mastrmind11 now, I need to figure out the correct way to put these into /etc/fstab - if anybody can guide on this next step, that'll be of great help (I'm trying a few syntax's but not much luck so far). 



#12 mastrmind11 OFFLINE  

mastrmind11

    Advanced Member

  • Members
  • 2690 posts
  • Local time: 11:40 AM
  • LocationLong Island, NY

Posted 04 June 2019 - 01:33 PM

after a lot of research/testing, I managed to mount the movies share like this:

 

sudo mount -t cifs //192.168.0.22/Movies /nas/movies -o sec=ntlm,vers=1.0

 

and after that, it literally only took a couple of minutes for emby to index the files and artwork (from /nas/movies). Amazing!

 

@mastrmind11 now, I need to figure out the correct way to put these into /etc/fstab - if anybody can guide on this next step, that'll be of great help (I'm trying a few syntax's but not much luck so far). 

https://wiki.ubuntu....aresPermanently

 

old article but cifs hasn't changed much over the past decade  :lol:


Edited by mastrmind11, 04 June 2019 - 01:35 PM.


#13 eversmannx OFFLINE  

eversmannx

    Member

  • Members
  • 14 posts
  • Local time: 04:40 PM

Posted 05 June 2019 - 09:32 AM

Thanks. After messing about with some more syntax (from that reference), this did the trick.

 

//192.168.0.22/Movies /nas/movies  cifs  guest,iocharset=utf8,sec=ntlm,vers=1.0  0  0

 

Still having issues deleting media from the interface - Adding username/password to this line causes errors (both direct and through credentials file) - need to play around a bit more.  



#14 mastrmind11 OFFLINE  

mastrmind11

    Advanced Member

  • Members
  • 2690 posts
  • Local time: 11:40 AM
  • LocationLong Island, NY

Posted 05 June 2019 - 04:00 PM

Thanks. After messing about with some more syntax (from that reference), this did the trick.

 

//192.168.0.22/Movies /nas/movies  cifs  guest,iocharset=utf8,sec=ntlm,vers=1.0  0  0

 

Still having issues deleting media from the interface - Adding username/password to this line causes errors (both direct and through credentials file) - need to play around a bit more.  

if your NAS supports NFS I'd recommend sharing that way.  cifs/smb is garbage.


  • sector327 likes this

#15 sargenthp OFFLINE  

sargenthp

    Advanced Member

  • Members
  • 39 posts
  • Local time: 09:40 AM
  • LocationEau Claire, WI

Posted 05 June 2019 - 05:30 PM

I would recommend installing and using autofs, instead of mapping a network drive in fstab.

Sent from my PH-1 using Tapatalk
  • sector327 likes this

#16 sector327 OFFLINE  

sector327

    Advanced Member

  • Members
  • 46 posts
  • Local time: 10:40 AM

Posted 05 June 2019 - 08:46 PM

I would recommend installing and using autofs, instead of mapping a network drive in fstab.
Sent from my PH-1 using Tapatalk

No doubt. Autofs works great for this.

How interesting to see someone using cifs. I thought it was replaced by smb (which is known for speed & security issues). Just a really old protocol to be still using. Not criticising or anything. Just something I rarely ever see anymore.

Edited by sector327, 05 June 2019 - 08:52 PM.


#17 eversmannx OFFLINE  

eversmannx

    Member

  • Members
  • 14 posts
  • Local time: 04:40 PM

Posted 06 June 2019 - 05:41 AM

Thanks guys. I'll look into autofs

 

I didn't know if cifs was old or if there were newer ones like nfs :-) after trying so many guides, and fiddling with settings, that was the only thing i managed to get it to work - my NAS is old (WD MybookLive bought in 2012), but it does support NFS for sure (when I look up from Kodi directly, this option is given). 


  • mastrmind11 likes this

#18 sargenthp OFFLINE  

sargenthp

    Advanced Member

  • Members
  • 39 posts
  • Local time: 09:40 AM
  • LocationEau Claire, WI

Posted 06 June 2019 - 07:36 AM

Cifs is not old. It is the standardized protocol for sharing Windows type shares. Using NFS is usually preferred for UNIX/Linux, so if you have that option I would say that would be the best bet.

Sent from my PH-1 using Tapatalk

#19 eversmannx OFFLINE  

eversmannx

    Member

  • Members
  • 14 posts
  • Local time: 04:40 PM

Posted 06 June 2019 - 07:54 AM

Thanks,

 

I've read a few guides on autofs, but not much luck setting it up correctly so far. Any chance someone can provide the syntax for NFS (and AUTOFS). My working setup as below:

 

Manual mount:

sudo mount -t cifs //192.168.0.22/Movies /nas/movies -o sec=ntlm,vers=1.0

 

fstab:

//192.168.0.22/Movies /nas/movies  cifs  guest,iocharset=utf8,sec=ntlm,vers=1.0  0  0



#20 sargenthp OFFLINE  

sargenthp

    Advanced Member

  • Members
  • 39 posts
  • Local time: 09:40 AM
  • LocationEau Claire, WI

Posted 06 June 2019 - 08:27 AM

With your CIFS mount command I am kinda surprised it works since you have vers=1. SMB1 has security issues. Windows 10 is now SMB3.0.

** Commands for NFS mount **
You need the nfs client installed...
$ apt-get install nfs-utils

See what exports are shared...
$ showmount -e 192.168.0.22

This should work for mounting...
$ sudo mount -t nfs -o rw,soft,intr //192.168.0.22:/export_path /nas/movies


** Autofs Setup **
Edit /etc/auto.master and add in the line...
/nas /etc/auto.nas

Create the file /etc/auto.nas and add in the line...
movies -fstype=nfs,rw,soft,intr 192.168.0.22:/export_path

Start and enable the autofs service.
$ sudo systemctl enable autofs
$ sudo systemctl start autofs

See if you can get to the mount under /nas/movies


Sent from my PH-1 using Tapatalk





Also tagged with one or more of these keywords: metadata, slow

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users