Closed eos1d3 closed 3 years ago
Hi @eos1d3 Thanks for the detailed description of your problem and the information, that always helps a lot to narrow down the problem more precisely.
This looks like a multicast problem. IGMP Snooping / Multicast Routing is a little bit difficult to integrate with Airplay. In my local environment i am using IGMP version 2, with version 3 i had similar problems as you. In general you do not need to enable multicast for this purpose if you have all your devices in the same network subnet.
There exists a known bug with your router so that sometimes cast/upnp devices will disappear, for more information please take a look at this chapter in the readme
When players disappear regularly, it might be that your router is filtering out multicast packets. For example and testing, for a Asus AC-RT68U, you have to login by ssh and run
echo 0 > /sys/class/net/br0/bridge/multicast_snooping
but it does not stay after a reboot.
Maybe there exist new information about this problem for your router, maybe you can find more in google. Also there are a few closed issues in the official airconnect repository about disappearing devices.
btw. in one of the next version you can decide during the installation if you want to install only aircast or airupnp or if you want to install both. I just don't have enough time to finish it at the moment.
René
Thanks! At the very beginning I did not enable multicast at all. But after seeing the problem, I enabled multicast settings but still get the same problem. I will try to use IGMP2 instead.
My all devices are in the same subnet. So that is strange to see the problem. And my problem is not the same as others. Both cast devices can last many hours (usually more than 10 hours). This happens repeatedly at least 3 times/3 days.
I am running Merlin firmware for Asus router, if nothing works I will try the multicast_snooping
command with auto-start script in the router.
I will report back later.
Hi, the same problem exists when using IGMP2.
When I tried echo 0 > /sys/class/net/br0/bridge/multicast_snooping
but I got the error:
-sh: can't create /sys/class/net/br0/bridge/multicast_snooping: Permission denied
I am using the same and the only Asus router admin account. There is no root
account. Any idea for this?
When I tried
echo 0 > /sys/class/net/br0/bridge/multicast_snooping
but I got the error:
Hmm, busybox... no sudo, no permission to the devices. don't know the Asus Router, found a few posts about multicast problems through Google: example
You could also open an issue in the official AirConnect repository. The spk Package should not be the problem. I think the Problem is located in a combination of aircast + your network setup. You could also try to run the binaries on a windows/linux computer in the same Network to verify this.
Right, there is no sudo. I login Synology NAS again with account name, now it still shows
$cat /sys/class/net/br0/bridge/multicast_snooping
cat: /sys/class/net/br0/bridge/multicast_snooping: No such file or directory
Anyway, I did find something. I stopped the SPK and I run aircast-win
on my Windows 10 machine in the same network, it has been more than 2 days and cast devices are still there. So original AirConnect on Windows platform does not have this issue.
I have two cast devices, Nest Mini and Chromecast Audio, I see only one entry of this after two days in AirConnect
log file.
[03:12:02.169] mDNSsearchCallback:527 [022B8BF8]: removing renderer (Chromecast Audio+) 36483040
And unlike SPK version, there is NO DeleteCastDevice:512 [0xfb3ff0]: Cast device stopped
after receiving mDNSsearchCallback
.
It looks like some mDNS announces are not relayed. These mDNS packages have a time to live (ttl) configured but i don't know long the timeout is set for. Do you have any managed switches in your environment? Or any differences in the connection from your windows pc and your NAS to your router? (Windows PC -> XX -> Router -> IPhone | NAS -> XX -> Router -> IPhone). I also had a miss configuration in my environment setup in the past (Repeater in combination with a missing multicast configuration on my managed switches).
I think it would be best if you inform the developer @philippe44 of AirConnect directly (open an issue), so that he can check it again. not that there is a bug in the aircast package.
You could also try to raise the logging level to sdebug instead of the normal command line execution. Maybe he can then also identify your problem more precisely if you upload the logfile.
/volume1/@appstore/AirConnect/aircast -b [synology device local ip] -l 1000:2000 -x "/volume1/@appstore/AirConnect/config-cast.xml" -z -f "/var/log/airconnect.log" -d all=sdebug
I will keep testing for a while. Original AirConnect is not problem free. It won't disappear, but when I try to connect the devices, they just have no response.
I have a managed switch with VLAN support. But I will try router setting first as I just find it has Enable IGMP Snooping
option in Wireless setting, not in Lan setting. It was enabled before, so shall I disable it to see any difference?
The problem may be caused by AirCast 0.2.44.0 because I also found SPK version can't add cast device back after power reset. See https://github.com/philippe44/AirConnect/issues/330
I am running aircast-x86-64
0.2.44.1 directly on my DS918+ without using SPK. It has been running more than 20 hours and everything is OK.
I will run it for some more days in order to confirm it is caused by 0.2.44.0.
Hi, I am still running AirCast 0.2.44.1 (not SPK version) for 2 days in my Synology NAS. Both cast devices are still working. So it is very likely the problem is caused by 0.2.44.0.
@eos1d3 Thanks for the debugging and clarification! You are right, the problem was introduced in 0.2.43.0, for more information please check this issue: https://github.com/philippe44/AirConnect/issues/330
I have update the spk package to the newest version 0.2.44.1
, you can find the release here: https://github.com/eizedev/AirConnect-Synology/releases/tag/0.2.44.1-20210308
Please give a short feedback if it works.
0.2.44.1
fixes the issue after further test. Thanks!
Describe the bug CastDevices disappear after some hours, usually on the next day.
To Reproduce Just wait for a long time, usually next day.
Expected behavior CastDevice should always be shown.
Logfiles
Hardware (Device on which you are running AirConnect-Synology):
Package (which package from the releases page have you downloaded):
Additional context I have two devices, one Nest Mini and one Chromecast Audio. I found if I do not use both of them, all will be disappeared on the next day. If I keep using Nest Mini, I find it is still there on the next day, but Chromecast Audio is disappeared.
I have to stop the spa in NAS and start it again, and both will work for around one day.
I tried enable multicast routing in Asus router, it won't help at all. These are the settings:
I tried to restart Chromecast Audio, but I still can't see its Airplay counterpart.