Jump to content

NAS + NFS + Ubuntu + Docker + Emby + Firefox


mengoshmink

Recommended Posts

mengoshmink

The emby installation entirely, with reinstall.

Is there any particular reason you use docker?

 

The emby installation does nothing to your system except installing its files in /var/lib/emby, and create a systemd file for start/stop/restart.

You should easily be able to install without the need for docker, or any other kind of containment.

 

If you're using a remote NAS, be sure that it's on a good tier, any interrupts on the network, or the network being too slow, will result in the kind of errors you are having now.

 

Edit: I would not run NFS over WAN. I would recommend you to use a secure connectioon, and mount the remote NAS drive as a local remote with E.G sshfs.

Yes, I have deleted my install and tried again a few times.

I use the official Emby Docker image because I believed it would make several things easier.

I have tried without and had apparently the same problem.

 

The NAS is physically next to the server. They are on the same GB LAN in my home.

 

FYI, if I am not using Emby and it is just idling the server stays up.

I just logged into the server and it was running. I was curious if it had scraped all the metadata.

I noticed one was wrong so I did a manual identify, which worked correctly.

I scrolled through my list of movies, most were missing. When I scrolled back to the top, the server fell over.

Edited by mengoshmink
Link to comment
Share on other sites

Q-Droid

Is Emby the only app on your server using the NFS mounts, at least consistently? It's the most obvious common element to me since you've tried other OS and Emby installations. The NFS shares and hardware. You could run a stress test and memory test on your server. Mprime and MemTest86 come to mind. 

 

Not sure if these are current but also worth a shot: https://linux-nfs.org/wiki/index.php/Testing_tools

Link to comment
Share on other sites

mengoshmink

Is Emby the only app on your server using the NFS mounts, at least consistently? It's the most obvious common element to me since you've tried other OS and Emby installations. The NFS shares and hardware. You could run a stress test and memory test on your server. Mprime and MemTest86 come to mind. 

 

Not sure if these are current but also worth a shot: https://linux-nfs.org/wiki/index.php/Testing_tools

I use NFS mounts from my desktop machine to browse and playback media while I can not through Emby.

I have thought it could be the NFS exports but tried several configurations. When I have a permission problem it is normally more obvious.

 

I have considered running a memory test like MemTest86 but consider the crashes too predictable for it to be a hardware fault.

Also it would be a pain in the to remove the server and attach a monitor to run MemTest86.

 

However these are becoming more likely options.

Link to comment
Share on other sites

mengoshmink

Give it a shot without docker!

Sure, tried before but will try again :-)

Link to comment
Share on other sites

Cthalpa

Sure, tried before but will try again :-)

 

From what I can see, it the only intermediant that can cause issues, besides a poor NAS

Link to comment
Share on other sites

mengoshmink

From what I can see, it the only intermediant that can cause issues, besides a poor NAS

The NAS is a Synology DS918+

No guarantees it's not that but it's not a poor NAS :-)

Edited by mengoshmink
Link to comment
Share on other sites

mengoshmink

Give it a shot without docker!

 

Tried, similar results.

top - 19:07:35 up 47 min,  1 user,  load average: 0.65, 0.66, 0.49
Tasks: 128 total,   1 running, 127 sleeping,   0 stopped,   0 zombie
%Cpu(s): 17.0 us,  2.7 sy,  0.0 ni, 68.4 id, 10.7 wa,  0.0 hi,  1.2 si,  0.0 st
MiB Mem :   5692.4 total,    118.8 free,    412.1 used,   5161.6 buff/cache
MiB Swap:  10240.0 total,  10239.7 free,      0.2 used.   5014.0 avail Mem

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND  
   3701 emby      20   0 3611844 213636  60720 S  29.6   3.7   4:27.30 EmbySer+
   8178 emby      20   0   72420  18892  15476 D   1.3   0.3   0:00.04 ffprobe

 

embyserver-63725943381.txt

Link to comment
Share on other sites

mengoshmink

Is there any problem with chrome?

Sorry, I didn't try today.

I will try and install Chrome tomorrow and test.

Link to comment
Share on other sites

mengoshmink

Thank you for your patience.

  • Turn on server
  • SSh into server
  • $ sudo systemctl stop emby-server.service
  • $ sudo dpkg -P emby-server
  • $ docker rmi emby/embyserver:latest
  • $ docker ps -a    # Check I don't have any old Emby containers
  • $ cd ~/docker/    # ~/docker is actually a symlink to another location
  • $ rm -rf emby/    # Where my configuration files are for Emby
  • $ ls -lh /mnt/guardian/video/    # Check video share is mounted
total 0
dr-xr-xr-x 1 997 users  10 May 13 10:40 Archive
dr-xr-xr-x 1 997 users 198 Jan  5 20:33 Video
  • $ nano docker-compose.yml
version: '3.7'
services:

###
  emby:
    volumes:
      - /mnt/store/var/docker/emby:/config:rw
      - /mnt/guardian/video:/mnt/guardian/video:ro
      - /mnt/guardian/tmp:/mnt/guardian/tmp:ro
###      - /mnt/guardian/video/test:/mnt/guardian/video/test:rw
###      - /mnt/guardian/video/Archive/Video/.video/Movies/Boxsets/Aliens:/mnt/guardian/video/Archive/Video/.video/Movies/Boxsets/Aliens:rw
##    devices:
##      - /dev/dri:/dev/dri
### To mount all render nodes for VAAPI/NVDEC/NVENC
##    network_mode: "host"
    network_mode: "host"
#    ports:
#      - '8096:8096/tcp'
    restart: unless-stopped
    environment:
      - UID=1000
      - GID=100
##      - GIDLIST=100,120,1000
### GIDLIST = users, docker, mengoshmink
#      - TZ=Europe/London
    container_name: emby
    image: emby/embyserver:latest
/mnt/guardian/video/Archive/Video/Movies
/mnt/guardian/video/Archive/Video/Rockumentary
/mnt/guardian/video/Archive/Video/Stand-Up
/mnt/guardian/video/Video/Movies
/mnt/guardian/video/Video/Rockumentary
/mnt/guardian/video/Video/Stand-Up

/mnt/guardian/video/Archive/Video/.video/Movies
/mnt/guardian/video/Archive/Video/.video/Stand-Up
/mnt/guardian/video/Video/.video/Movies
/mnt/guardian/video/Video/.video/Rockumentary
/mnt/guardian/video/Video/.video/Stand-Up
  • Okay
  • Users > New user    # Create everyday account
  • Dashboard to watch library scan progress
  • Scan finished > Logs > Enable debug logging > logout
  • Login as everyday user
  • Click Movies > scroll down list

So far seems okay

  1. Login to identify some movies
  2. Logout
  3. Login to turn off debug logging

 

Had to identify more films than normal, and some of the animations are not as fluid but so far so good!

I wonder, has Luke solved it?

Link to comment
Share on other sites

  • 2 weeks later...

To be honest I'm not entirely sure what the issue was, but thanks for the feedback.

Link to comment
Share on other sites

mengoshmink

Honestly something went wrong soon after but not had a chance to investigate - a lot going on in personal life.

I hope to switch my server on again soon and investigate. In the meantime it may miraculously fix itself in a similar way to the problem appeared.

I keep thinking it has something it to do with library setup, just a feeling. But if that was the case I'd expect something noticeable in the logs.

 

Thank you all for your help so far, and your patience.

Be safe, take care

Link to comment
Share on other sites

  • 1 month later...
mengoshmink

Long story short, reset the BIOS and all now seems okay.

Thank you all.

Be safe, take care.

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