atvloadly icon indicating copy to clipboard operation
atvloadly copied to clipboard

Apple TV HD with tvOS 18.4.1 not showing up for pairing (Synology NAS + Docker)

Open micer opened this issue 8 months ago • 7 comments

I'm running Docker on my Synology NAS. I've created a container from atvloadly image. I'm using only /volume1/docker/atvloadly:/data volume.

For dbus and avahi I installed them in the same container, I had to run

chmod 777 /tmp && mkdir /run/dbus && apt update && apt install -y avahi-daemon avahi-utils

and then start both services via

dbus-daemon --system &
avahi-daemon --no-chroot &

Now, when I run avahi-browser -a from inside my Docker container, I can see my Apple TV (named "Living Room") in manual pairing mode:

root@atvloadly:/# avahi-browse -a | grep "Living\ Room"
+   eth0 IPv4 Living Room                                   _remotepairing-manual-pairing._tcp local
+   eth0 IPv4 70-35-60-63.1 Living Room                     _sleep-proxy._udp    local
+   eth0 IPv4 Living Room                                   _companion-link._tcp local
+   eth0 IPv4 AECE2CC8028C@Living Room                      AirTunes Remote Audio local
+   eth0 IPv4 Living Room                                   AirPlay Remote Video local

It still doesn't show up on the atvloadly web page. What else could be wrong?

Image

micer avatar May 11 '25 22:05 micer

I use docker compose without an issue.

version: '3.8'

services:
  atvloadly:
    image: bitxeno/atvloadly:latest
    container_name: atvloadly
    privileged: true
    restart: always
    ports:
      - "5533:80"
    volumes:
      - /volume1/docker/atvloadly/data:/data
      - /var/run/dbus:/var/run/dbus
      - /var/run/avahi-daemon:/var/run/avahi-daemon

But still couldn't open the installed app, because of https://github.com/bitxeno/atvloadly/issues/32

helloint avatar May 20 '25 08:05 helloint

Thanks @helloint, for me this is not working as I don't dbus and avahi-daemon in Synology's OS and cannot install it there as it would be deleted on next update. I installed both services into the Docker container, but now I don't see my Apple TV on atvloadly webpage. Can't figure out why.

micer avatar May 25 '25 18:05 micer

18.5 same issue cant see the appletv to pair.

eeonee avatar May 31 '25 16:05 eeonee

idk if it helps you guys but I tried this on home assistant os, also an environment without avahid, so I used this compose

services:
  atvloadly:
    container_name: atvloadly
    hostname: atvloadly
    image: bitxeno/atvloadly:latest
    privileged: true
    volumes:
      - /mnt/data/supervisor/homeassistant/atvloadly:/data
      - /dev:/dev
    environment:
      - SERVICE_PORT=8080
    restart: unless-stopped
    network_mode: host
    entrypoint: ["/data/start.sh"]

start.sh script:

#!/bin/bash

apt-get install -y avahi-daemon dbus
mkdir -p /run/dbus /var/run/avahi-daemon

rm -f /run/dbus/pid
dbus-daemon --system --fork

avahi-daemon --no-chroot &
sleep 3

usbmuxd &
sleep 3 

exec /entrypoint.sh

works so far

Blackspell01 avatar Aug 14 '25 10:08 Blackspell01

idk if it helps you guys but I tried this on home assistant os, also an environment without avahid, so I used this compose

services:
  atvloadly:
    container_name: atvloadly
    hostname: atvloadly
    image: bitxeno/atvloadly:latest
    privileged: true
    volumes:
      - /mnt/data/supervisor/homeassistant/atvloadly:/data
      - /dev:/dev
    environment:
      - SERVICE_PORT=8080
    restart: unless-stopped
    network_mode: host
    entrypoint: ["/data/start.sh"]

start.sh script:

#!/bin/bash

apt-get install -y avahi-daemon dbus
mkdir -p /run/dbus /var/run/avahi-daemon

rm -f /run/dbus/pid
dbus-daemon --system --fork

avahi-daemon --no-chroot &
sleep 3

usbmuxd &
sleep 3 

exec /entrypoint.sh

works so far

Do you confirm that atvloadly works on latest tvOS?

ceedveed avatar Aug 21 '25 17:08 ceedveed

Do you confirm that atvloadly works on latest tvOS?

I may confirm that https://github.com/bitxeno/atvloadly/releases/tag/v0.2.7 works on TVOS 26.0

jfcabral avatar Oct 06 '25 21:10 jfcabral

Any update on getting it working on your Synology NAS?

enamel-hall avatar Nov 13 '25 06:11 enamel-hall