-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No such file or directory: './pairings/accessory-secret' #43
Comments
Interesting. It's attempting to write the file to that path. Permissions to be able to write to that folder |
Hi systemcrash, I have the same error and after docker run -it --rm --device /dev/snd --net host invano/ap2-receiver |
OK - then I think the docker image needs extending slightly to understand that the pairings dir should be mapped. Think you could pull together a docker-compose.yaml file with that in? |
I‘m not very familiar with docker. If you can guide me a little bit this should be no Problem… |
I learned a ton about docker from google and stack overflow. 😎
|
For me, compose alone did not solve the issue.
|
Thank you for your help. I will test as soon as possible. I'm on holiday and have little time to play with my raspberry pi 😅 |
Can one of you try with the version: '3.8'
services:
ap2:
restart: unless-stopped
network_mode: host
build: .
# ports:
# - "7000:7000"
# - "10000-10100:10000-10100/udp"
volumes:
- ./pairings:/airplay2/pairings/
devices:
- "/dev/snd"
environment: # All variables are optional.
- AP2HOSTNAME=Airplay2
- AP2IFACE=eth0 |
See 2aa2613 |
Thanks, as you speak about docker love. @systemcrash would you mind optimizing build? |
Use docker-compose or avoid the build step. |
Hello,
when i run the docker container on rpi 4 :
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemo[.ok
Traceback (most recent call last):
��File "ap2-receiver.py", line 190, in
��LTPK = LTPK()
��File "ap2-receiver.py", line 164, in init
��announce_id, self.ltpk = Hap(PI).configure()
��File "/airplay2/ap2/pairing/hap.py", line 170, in init
����with open("./pairings/accessory-secret", "wb") as secret_file:
FileNotFoundError: [Errno 2] No such file or directory: './pairings/accessory-secret'
The text was updated successfully, but these errors were encountered: