Jump to content

Recommended Posts

DoingBobThings
Posted (edited)

Howdy, folks.  Long time Emby user, just migrated to a UGREEN 4800 and have been having a crash course in Docker.

I have Emby server up and running, but wanted to add a Health Check statement to the compose file.  It seems to be working but I have a red dot indicating a problem.  Taking a deeper dive (using Dockhand) I came across this.  Could this be the issue?  If so, I have no idea how to correct it.  I'd be grateful for some help to point me in the right direction.

Thanks in advance!

image.thumb.png.1a01b123976213d0d913a699cb4a3c34.png

image.thumb.png.6fdca6f7154718c1ff2b280a965dac56.png

 

services:
  emby:
    image: emby/embyserver:latest
    container_name: emby

    restart: unless-stopped

    network_mode: bridge

    ports:
      - "8096:8096"
      - "8920:8920"

    environment:
      - UID=1000
      - GID=10
      - TZ=America/New_York

    devices:
      - /dev/dri:/dev/dri

    healthcheck:
      test: ["CMD", "curl", "-f", "http://xxx.xxx.x.xxx:8096"]
      interval: 1m30s
      timeout: 10s
      retries: 3
      start_period: 30s 

    volumes:
      # Emby application data
      - /volume1/Docker/Emby/config:/config
      - /volume1/Docker/Emby/cache:/cache
#      - /volume1/Docker/Emby/transcode:/transcode

      # Shared media (read only)
      - /volume1/Media:/media:ro

 

Edited by DoingBobThings
spelling error
Lessaj
Posted

I would do the health check as http://xxx.xxx.x.xxx:8096/System/Ping instead.

DoingBobThings
Posted

Updated with:

    healthcheck:
      test: ["CMD", "curl", "-f", "http://192.168.1.100:8096/System/Ping"]
      interval: 1m30s
      timeout: 10s
      retries: 3
      start_period: 30s 

However the issue with the red warning still remains.

Posted

Sorry, not familiar with this tool. What does the Health tab show? I doubt Layers has anything to do with it.

DoingBobThings
Posted

LOL

Yeah, it'd probably be a good idea to check that, I suppose.  😉

OCI runtime exec failed: exec failed: unable to start container process: exec: "curl": executable file not found in $PATH: unknown

Posted

Aha, that's the problem. Generally a pretty common util to have, but maybe have to fully qualify the path for it based on the error. I assume it runs the command in the container so if you can get into the shell and find out if it has curl and where it is, the full path might work. It's usually /usr/bin/curl.

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