Skip to content
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

v1.0.13 Crashing on DS214Play/RS814 with DSM 7.1.1 #63

Closed
smlomas opened this issue Dec 21, 2022 · 42 comments
Closed

v1.0.13 Crashing on DS214Play/RS814 with DSM 7.1.1 #63

smlomas opened this issue Dec 21, 2022 · 42 comments
Labels
aircast AirCast related issues airconnect-bug Bug in the Airconnect binaries aircast and/or airupnp airupnp Airupnp related issues bug Something isn't working

Comments

@smlomas
Copy link

smlomas commented Dec 21, 2022

I was running a v0.2xxx release ok, with the occasional restart needed. Initially just ran the upgrade to 1.0.13, from the DSM GUI, but airupnp stops immediately after it reports it has started. Have uninstalled, then reinstalled, but still crashes out.

using : AirConnect-dsm7-x86-static-1.0.13-20221216.spk

[11:08:44] Starting AirConnect ...
[11:08:44] Linking airconnect configuration to "/volume1/airconnect/airconnect.conf".
[11:08:44] Linking airupnp configuration to "/volume1/airconnect/config.xml".
[11:08:44] Starting airupnp on 10.1.1.10:49154
[11:08:44] AirConnect successfully started on ip "10.1.1.10"!
[11:08:49] Status: airupnp not running!

@eizedev
Copy link
Owner

eizedev commented Dec 21, 2022

Which NAS model are you using?

You have downloaded the x86 (32bit) static version. This version does not exist at 0.2xx. Also the x86 version is for old NAS models, perhaps you need the x86_64 version?

(see also the table in the documentation https://github.com/eizedev/AirConnect-Synology#how-to-install)

@eizedev
Copy link
Owner

eizedev commented Dec 28, 2022

@smlomas Ah, sorry, totally missed the topic. 214play is a 32bit arch (evansport), so https://github.com/eizedev/AirConnect-Synology/releases/download/1.0.13-20221216/AirConnect-dsm7-x86-1.0.13-20221216.spk should be the correct package.

I also have a 214play, i will also test it later this week.

@tschniewind
Copy link

I have the same problem after upgrading a RS814 from DSM 6.2 to DSM DSM 7.1.1-42962 Update 3 and then installing the AirConnect-dsm7-arm-static-1.0.13-20221216.spk.

After downgrading to AirConnect-dsm7-arm-static-0.2.51.2-20220206.spk everything works fine.

@eizedev
Copy link
Owner

eizedev commented Jan 9, 2023

@tschniewind
Do you have any log files or error messages from the upgrade to 1.0.13 that did not work? With a log file or an error message that appears on update (preferably both) we can possibly narrow down the error more precisely.

Have you tried using the AirConnect-dsm7-arm-1.0.13-20221216.spk package without the static version?

I have no Synology device with ARM architecture, so i cannot reproduce the error or any error for this platform.

In general, the Synology package has only changed to a limited extent compared to the old version. What has changed are the two binaries airupnp and aircast because the developer of AirConnect has completely rebuilt this. Maybe there is a problem with the v1 version and you have to open an issue in the official AirConnect project.

@tschniewind
Copy link

tschniewind commented Jan 9, 2023

@eizedev

Thanks for your reply.

There seem to be no difference in using static or not. See the attached logfile written after a fresh install (removing the old package before). Even if the log says that AriConnect is started it is shown as stopped after a fiew seconds in the package manager. So there is unforunately no crash output.
airconnect(13).log

@eizedev
Copy link
Owner

eizedev commented Jan 9, 2023

This looks like airconnect is crashing and not related to the package. Could you please take a look at other logfiles located in /var/log, for example /var/log/messages?
Normally a core dump related error message or any other error about airupnp could be found, directly when it is crashing.

@tschniewind
Copy link

Yes indeed I found something in /var/log/messages:

2023-01-09T18:50:52+01:00 NAS2 coredump[12515]: Process airupnp[12514](/volume1/@appstore/AirConnect/airupnp) dumped core on signal [11]. Core file [/volume1/@airupnp.synology_armadaxp
_rs814.42962.core.gz]. Cmdline [/volume1/@appstore/AirConnect/airupnp -b 192.168.0.36:49154 -l 1000:2000 -x /volume1/@appstore/AirConnect/config.xml -o <NULL>,S1,S3,S5,S9,S12,ZP80,ZP90
,S15,ZP100,ZP120,1.0,LibreWireless,Fitzwilliam,2.2.6,AllShare1.0 -z -f /volume1/@appstore/AirConnect/log/airconnect.log -d all=info ]
2023-01-09T18:50:52+01:00 NAS2 coredump[12515]: Core file [/volume1/@airupnp.synology_armadaxp_rs814.42962.core.gz] size [45629]
2023-01-09T18:50:52+01:00 NAS2 coredump[12537]: Process aircast[12536](/volume1/@appstore/AirConnect/aircast) dumped core on signal [11]. Core file [/volume1/@aircast.synology_armadaxp
_rs814.42962.core.gz]. Cmdline [/volume1/@appstore/AirConnect/aircast -b 192.168.0.36 -l 1000:2000 -x /volume1/@appstore/AirConnect/config-cast.xml -z -f /volume1/@appstore/AirConnect/
log/airconnect.log -d all=info ]
2023-01-09T18:50:52+01:00 NAS2 coredump[12537]: Core file [/volume1/@aircast.synology_armadaxp_rs814.42962.core.gz] size [53658]

@eizedev
Copy link
Owner

eizedev commented Jan 12, 2023

@tschniewind Interesting! This is probably a bug of aircast/airupnp ARM binaries in connection to your architecture.
I have created an issue for you with the information at philippe44/AirConnect#446.

If @philippe44 needs the core dump file for debugging, it would be great if you provide it to him.

@eizedev eizedev added bug Something isn't working aircast AirCast related issues airupnp Airupnp related issues airconnect-bug Bug in the Airconnect binaries aircast and/or airupnp labels Jan 12, 2023
@tschniewind
Copy link

@tschniewind Interesting! This is probably a bug of aircast/airupnp ARM binaries in connection to your architecture. I have created an issue for you with the information at philippe44/AirConnect#446.

@eizedev Many thanks for your support. Hope that @philippe44 my help.

@philippe44
Copy link

It's likely that I don't build binaries for armv5 anymore

@tschniewind
Copy link

I think that armadaxp is base on armv7

@philippe44
Copy link

you're right - I need a log then (not a core dump)

@tschniewind
Copy link

where can I find the log you need?

@philippe44
Copy link

I'm not sure how @eizedev launches airconnect, but otherwise if you know how to launch it manually, it's -f

@eizedev
Copy link
Owner

eizedev commented Jan 13, 2023

@philippe44 default command line (airupnp) - config.xml is by default empty/not existing:

/volume1/@appstore/AirConnect/airupnp -b 192.168.1.10:49154 -l 1000:2000 -x /volume1/@appstore/AirConnect/config.xml -o <NULL>,S1,S3,S5,S9,S12,ZP80,ZP90,S15,ZP100,ZP120,1.0,LibreWireless -z -f /volume1/@appstore/AirConnect/log/airconnect.log -d all info

@tschniewind The log file is the airconnect.log file located in /volume1/airconnect/log/airconnect.log. It is a "mixed" log file with my logging events from the package and the log entries from airupnp/aircast to make it easier for the users.

You could also adjust the config in /volume1/airconnect/airconnect.conf. A log level change from info to debug:

Change AIRUPNP_LOGLEVEL="all=info" + AIRCAST_LOGLEVEL="all=info" to AIRUPNP_LOGLEVEL="all=debug" + AIRCAST_LOGLEVEL="all=debug" and restart the package. Therefore you do not need the SSH access.

Readme for the config part: https://github.com/eizedev/AirConnect-Synology#airconnectconf

@tschniewind
Copy link

Seems not to produce helpful infos. I deinstalled the 0.51-package an installed the 1.0.13-package. Then changed the loglevel for airupnp and started again, changed loglevel for aircast and started again. But after each try the package is not shown as started within the synology-ui and the each try after changing the loglevel logs first stopping ariConnect [17:15:15] & [17:19:39]:
[16:59:55] #### Start postinst... ####
[16:59:55] Creating airconnect config file at "/volume1/@appstore/AirConnect/airconnect.conf"
[16:59:55] Using installation type for both binaries (airupnp and aircast)
[16:59:55] Setting AIRUPNP_ENABLED=1 and AIRCAST_ENABLED=1 in "/volume1/@appstore/AirConnect/airconnect.conf"
[16:59:55] Setting AIRCAST_LATENCY="1000:2000" in "/volume1/@appstore/AirConnect/airconnect.conf"
[16:59:55] Setting AIRCAST_LOGLEVEL="all=info" in "/volume1/@appstore/AirConnect/airconnect.conf"
[16:59:55] Setting AIRUPNP_LATENCY="1000:2000" n "/volume1/@appstore/AirConnect/airconnect.conf"
[16:59:55] Setting AIRUPNP_LOGLEVEL="all=info" in "/volume1/@appstore/AirConnect/airconnect.conf"
[16:59:55] Setting AIRUPNP_PORT=49154 in "/volume1/@appstore/AirConnect/airconnect.conf"
[16:59:55] Setting FILTER_AIRPLAY2_DEVICES=",S1,S3,S5,S9,S12,ZP80,ZP90,S15,ZP100,ZP120,1.0,LibreWireless,Fitzwilliam,2.2.6,AllShare1.0" in "/volume1/@appstore/AirConnect/airconne
ct.conf"
[16:59:55] Setting SYNO_IP="192.168.0.36" in "/volume1/@appstore/AirConnect/airconnect.conf"
[16:59:55] #### Done postinst ####
[16:59:58] Starting AirConnect ...
[16:59:58] Linking airconnect configuration to "/volume1/airconnect/airconnect.conf".
[16:59:58] Linking airupnp configuration to "/volume1/airconnect/config.xml".
[16:59:58] Starting airupnp on 192.168.0.36:49154
[16:59:58] Linking aircast configuration to "/volume1/airconnect/config-cast.xml".
[16:59:58] Starting aircast on 192.168.0.36
[16:59:59] AirConnect successfully started on ip "192.168.0.36"!
[17:15:15] Stopping AirConnect ...
[17:15:29] Starting AirConnect ...
[17:15:29] Linking airconnect configuration to "/volume1/airconnect/airconnect.conf".
[17:15:29] Linking airupnp configuration to "/volume1/airconnect/config.xml".
[17:15:29] Starting airupnp on 192.168.0.36:49154
[17:15:30] Linking aircast configuration to "/volume1/airconnect/config-cast.xml".
[17:15:30] Starting aircast on 192.168.0.36
[17:15:30] AirConnect successfully started on ip "192.168.0.36"!
[17:19:39] Stopping AirConnect ...
[17:19:49] Starting AirConnect ...
[17:19:49] Linking airconnect configuration to "/volume1/airconnect/airconnect.conf".
[17:19:49] Linking airupnp configuration to "/volume1/airconnect/config.xml".
[17:19:49] Starting airupnp on 192.168.0.36:49154
[17:19:50] Linking aircast configuration to "/volume1/airconnect/config-cast.xml".
[17:19:50] Starting aircast on 192.168.0.36
[17:19:50] AirConnect successfully started on ip "192.168.0.36"!

@philippe44
Copy link

That's not the log I'm looking for

@tschniewind
Copy link

This is taken from /volume1/@appstore/AirConnect/log/airconnect.log
Where to look else?

@eizedev
Copy link
Owner

eizedev commented Jan 13, 2023

that's only the log output from the installation/synology package, really strange.

Do you have SSH access to your NAS? Could you please stop the Airconnect-Synology package or kill the airupnp and aircast processes and run it manually?

With Logging Level Info:

/volume1/@appstore/AirConnect/airupnp -b 192.168.0.36:49154 -l 1000:2000 -x /volume1/@appstore/AirConnect/config.xml -o <NULL>,S1,S3,S5,S9,S12,ZP80,ZP90,S15,ZP100,ZP120,1.0,LibreWireless -z -f /volume1/@appstore/AirConnect/log/airconnect.log -d all=info

That should produce any suitable log output in /volume1/@appstore/AirConnect/log/airconnect.log

The log entries from aircast/airupnp also have another timestamp:

In my example the timestamps only in format HH:MM:SS "Hour:Minute:Second" are from my package.
image

@tschniewind
Copy link

FATAL: kernel too old
Illegal instruction (core dumped)

@eizedev
Copy link
Owner

eizedev commented Jan 13, 2023

Ah, that explains why no log messages for airupnp or aircast will be written @philippe44

@tschniewind could you please post the output of uname -a?
or cat /proc/version to also see the gcc version.

@philippe44
Copy link

ah - In the update I've made to all my build tools, it includes min kernel and glibc. Having a kernel below 4.x is really a big risk

@tschniewind
Copy link

cat /proc/version
Linux version 3.2.101 (root@build2) (gcc version 8.5.0 (GCC) ) #42962 SMP Tue Oct 18 15:01:13 CST 2022

@philippe44
Copy link

oh, sorry about that but running on 3.2 is really really really bad

@tschniewind
Copy link

Doesn't come the linux kernel with the DSM-Installation?

@eizedev
Copy link
Owner

eizedev commented Jan 13, 2023

Synology does not update the kernel on older hardware models when updating to the newest DSM 7 Synology os release.

This is really crappy from Synology. I have a similar situation on my NAS. I also still have kernel 3.10 despite the latest DSM version.

@eizedev
Copy link
Owner

eizedev commented Jan 13, 2023

Synology is applying security updates and other changes heavily in there DSM versions, but the kernel version still stays on old release.

Synology has never changed the kernel version on any model, i.e. the kernel version that came with the model when it was initially released will be the kernel version for that model forever. When that kernel version becomes incompatible with a new DSM version the model stops getting DSM updates.
There are different kernel versions in use across the lineup, so it's not that Synology is wedded to a kernel version, it's that the devices are.
The heavily change the linux os for their DSM version

@tschniewind
Copy link

so there is no chance to get AirConnect run under this linux kernel?

@eizedev
Copy link
Owner

eizedev commented Jan 13, 2023

Could you please check your glibc version using /lib64/libc.so.6 --version or /lib/libc.so.6 --version?

@philippe44 Can you tell us the minimum versions of the kernel and glibc?

@philippe44
Copy link

philippe44 commented Jan 13, 2023

so there is no chance to get AirConnect run under this linux kernel?

You have to stick with older versions. More recent ones requires at least 4.x and changing that would mean rebuilding all my toolchains in favor of old stuff and that's precisely the very painful effort I went through : get everything up to date

@eizedev
Copy link
Owner

eizedev commented Jan 13, 2023

@philippe44 I think the kernel is not the main problem, I think glibc is the showstopper.
I am running at kernel 3.10.xxx but the newest airupnp/aircast version is running:

/volume1/@appstore/AirConnect/airupnp -v
v1.0.13 (Dec 10 2022 @ 11:10:19)

/lib64/libc.so.6 --version
GNU C Library (GNU libc) stable release version 2.26, by Roland McGrath et al.
Copyright (C) 2017 Free Software Foundation, Inc.

uname -r
3.10.108

@philippe44
Copy link

Could you please check your glibc version using /lib64/libc.so.6 --version or /lib/libc.so.6 --version?

@philippe44 Can you tell us the minimum versions of the kernel and glibc?

4.4.302 and 2.23

@tschniewind
Copy link

/lib/libc.so.6 --version
GNU C Library (GNU libc) stable release version 2.26, by Roland McGrath et al.
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 8.5.0.
Available extensions:
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
libc ABIs: UNIQUE
For bug reporting instructions, please see:
http://www.gnu.org/software/libc/bugs.html.

@eizedev
Copy link
Owner

eizedev commented Jan 13, 2023

interesting, I have an older kernel than 4.4 but "newer" glibc and on my system it is running.

@philippe44
Copy link

I'm not in front of an arm machine now but use ldd to check what I wrote

@eizedev
Copy link
Owner

eizedev commented Jan 13, 2023

ldd is not available on Synology devices, you could only the the version directly at the libraries running /lib/libc.so.6 --version or by running lsof -p $$ | grep libc (Result: /usr/lib/libc-2.26.so).

My system is also a x86_64 architecture. Perhaps this is the different to @tschniewind

@eizedev
Copy link
Owner

eizedev commented Jan 13, 2023

@tschniewind
Unfortunately, I don't think you'll be able to get it to work, other than continuing to use the older version.

You could stay at 0.2.51.2

I will update the documentation with this information.

@philippe44 is this "limitation" only for older ARMv7 architectures or also for other architectures? My x86_64 cpu arch with kernel 3.10. can still run airupnp and aircast.

@philippe44
Copy link

philippe44 commented Jan 13, 2023

The limitation is on all Linux builds. I'm surprised that it runs on your machine, as all my compilers (I build them using crosstools-ng) have 4.4.320 and 2.23 set

@eizedev
Copy link
Owner

eizedev commented Jan 13, 2023

I just saw your config for crosstools-ng. Strange while it is running on my system. https://github.com/philippe44/cross-compiling/blob/8bf4f5b4e05ca5454540c7c0a4a80c8b4b7d7cfd/crosstools-ng-1.25.0/.config.stretch.x86_64#L282

Any chance that you have used an older CT_LINUX_VERSION on armv7 than CT_LINUX_VERSION="4.4.302"?

I also have an older x86 Synology NAS. It has the same kernel version as @tschniewind but aircast/airupnp 1.0.13 is still running on this old system:

root@Storebox:~# ./aircast-linux-x86
[19:54:13.559022] main:884 Starting aircast version: v1.0.13 (Dec 10 2022 @ 11:14:03)
[19:54:13.559313] main:891 no config file, using defaults
[19:54:13.559628] Start:662 Binding to 192.168.1.11
[19:54:13.930364] AddCastDevice:613 [0x8ec9320]: creating MAC
[19:54:13.930474] AddCastDevice:627 [0x8ec9320]: adding renderer (SHIELD) with mac CCCC85116FE6
^C[19:54:15.148203] DeleteCastDevice:379 [0x8ec9320]: Cast device stopped
^C^Croot@Storebox:~# ^C

root@Storebox:~# ./airupnp-linux-x86
[19:57:56.426503] main:1355 Starting airupnp version: v1.0.13 (Dec 10 2022 @ 11:10:21)
[19:57:56.426798] main:1362 no config file, using defaults
[19:57:56.428479] Start:1087 Binding to 192.168.1.11:49152
[19:57:56.591762] AddMRDevice:1007 [0xb3078010] skipping Sonos slave 192.168.1.120 - Sonos Sub

root@Storebox:~# uname -a
Linux Storebox 3.2.101 #42661 SMP PREEMPT Mon Jun 27 15:08:01 CST 2022 i686 GNU/Linux synology_evansport_214play


root@Storebox:~# /lib/libc.so.6 --version
GNU C Library (GNU libc) stable release version 2.26

root@Storebox:~# file aircast-linux-x86
aircast-linux-x86: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 4.4.255, stripped

Edit:

On my Synology router with newer kernel (Linux RouterBox 4.4.60 #9346 SMP PREEMPT Fri Nov 4 11:49:28 CST 2022 armv7l GNU/Linux synology_ipq806x_rt2600ac) the arm version is running:
aircast-linux-arm: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 4.4.255, stripped

So anyway, don't know why it is still running on my older devices but I would appreciate it if it stays like this ;-)

@philippe44
Copy link

It is strange indeed - I have to check exactly how kernel version is checked. I know how glibc is during loading, but I've never checked precisely re kernel.

And don't worry, it will not change I don't want to rebuild all the tool chains and all the libraries that I need - it's a very cumbersome task.

@eizedev
Copy link
Owner

eizedev commented Jan 13, 2023

@smlomas als already mentioned, please install https://github.com/eizedev/AirConnect-Synology/releases/download/1.0.13-20221216/AirConnect-dsm7-x86-1.0.13-20221216.spk on your DS214play. I have just tested in on my DS214play, this version works without any problems.

@eizedev eizedev closed this as completed Jan 13, 2023
@eizedev eizedev pinned this issue Jan 13, 2023
@eizedev eizedev changed the title v1.0.13 Crashing on DS214Play with DSM 7.1.1 v1.0.13 Crashing on DS214Play/RS814 with DSM 7.1.1 Jan 13, 2023
@indywidualny
Copy link

For anyone having a problem with modern versions of the software. Simply use the older version. For example for Synology DS218j I found 0.2.51.2-20 version to be working alright, while all the recent ones are crashing with [11:08:49] Status: airupnp not running!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aircast AirCast related issues airconnect-bug Bug in the Airconnect binaries aircast and/or airupnp airupnp Airupnp related issues bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants