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

Radarr not working for DSM1517 - Seg Fault (ANNAPURNALABS Alpine AL314) #5302

Closed
1 task done
russholio opened this issue Jun 6, 2022 · 14 comments · Fixed by #5680
Closed
1 task done

Radarr not working for DSM1517 - Seg Fault (ANNAPURNALABS Alpine AL314) #5302

russholio opened this issue Jun 6, 2022 · 14 comments · Fixed by #5680
Labels
bug dotnet Related to dotnet (core)

Comments

@russholio
Copy link

russholio commented Jun 6, 2022

Is this a new Bug?

  • I checkd that the bug hasn't been reported before

Package Name

Radarr

Package Version

202205015-18

Device Model

DS1517

Device Architecture

ARMv7

Firmware Version

DSM 7.0.1-42218 Update 4

What happened?

I tried to do a brand new install of Radarr on my DS1517, I have never used Radarr before.

The package installs but does not start and the DSM package manager immediately shows "Repair" package.

Repairing the package does nothing.

I ssh in and checked the logs, I see that there is a Seg fault.

I am running Sonarr which I believe to be very similar in its tech stack and was surprised that Radarr wasn't working but Sonarr is.

I checked the listed build architectures on Synocommunity for Sonarr and Radarr and they seem to differ by 2 build arch's
7.0 aarch64
7.0 evansport

Reproduction steps

1. Install Radarr on a DSM1517

Install Log

2022/06/06 14:43:53 install radarr 20220515-18 Begin preinst
2022/06/06 14:43:53 Begin reload_inst_variables
2022/06/06 14:43:53 End reload_inst_variables
2022/06/06 14:43:53 Begin initialize_variables
2022/06/06 14:43:53 End initialize_variables
2022/06/06 14:43:53 ===> Step preinst. USER=sc-radarr GROUP=sc-download SHARE_PATH=
2022/06/06 14:43:53 install radarr 20220515-18 End preinst ret=[0]
2022/06/06 14:43:54 install radarr 20220515-18 Begin /bin/mkdir -p /volume2/@appstore/radarr
2022/06/06 14:43:54 install radarr 20220515-18 End /bin/mkdir -p /volume2/@appstore/radarr ret=[0]
2022/06/06 14:43:54 install radarr 20220515-18 Begin /bin/rm -rf /volume2/@appstore/radarr
2022/06/06 14:43:54 install radarr 20220515-18 End /bin/rm -rf /volume2/@appstore/radarr ret=[0]
2022/06/06 14:43:54 install radarr 20220515-18 Begin /bin/mv -f /volume2/@tmp/pkginstall/extract.gc9OXf/package /volume2/@appstore/radarr
2022/06/06 14:43:55 install radarr 20220515-18 End /bin/mv -f /volume2/@tmp/pkginstall/extract.gc9OXf/package /volume2/@appstore/radarr ret=[0]
2022/06/06 14:43:55 install radarr 20220515-18 Begin /bin/rm -rf /var/packages/radarr
2022/06/06 14:43:55 install radarr 20220515-18 End /bin/rm -rf /var/packages/radarr ret=[0]
2022/06/06 14:43:55 install radarr 20220515-18 Begin /bin/mkdir -p /var/packages/radarr
2022/06/06 14:43:55 install radarr 20220515-18 End /bin/mkdir -p /var/packages/radarr ret=[0]
2022/06/06 14:43:55 install radarr 20220515-18 Begin /bin/touch /var/packages/radarr/installing
2022/06/06 14:43:55 install radarr 20220515-18 End /bin/touch /var/packages/radarr/installing ret=[0]
2022/06/06 14:43:55 install radarr 20220515-18 Begin /bin/mv -f /volume2/@tmp/pkginstall/extract.gc9OXf/INFO /var/packages/radarr/INFO
2022/06/06 14:43:55 install radarr 20220515-18 End /bin/mv -f /volume2/@tmp/pkginstall/extract.gc9OXf/INFO /var/packages/radarr/INFO ret=[0]
2022/06/06 14:43:55 install radarr 20220515-18 Begin /bin/rm -rf /var/packages/radarr/scripts
2022/06/06 14:43:55 install radarr 20220515-18 End /bin/rm -rf /var/packages/radarr/scripts ret=[0]
2022/06/06 14:43:55 install radarr 20220515-18 Begin /bin/mv -f /volume2/@tmp/pkginstall/extract.gc9OXf/scripts /var/packages/radarr/scripts
2022/06/06 14:43:55 install radarr 20220515-18 End /bin/mv -f /volume2/@tmp/pkginstall/extract.gc9OXf/scripts /var/packages/radarr/scripts ret=[0]
2022/06/06 14:43:55 install radarr 20220515-18 Begin /bin/rm -rf /var/packages/radarr/WIZARD_UIFILES
2022/06/06 14:43:55 install radarr 20220515-18 End /bin/rm -rf /var/packages/radarr/WIZARD_UIFILES ret=[0]
2022/06/06 14:43:55 install radarr 20220515-18 Begin /bin/mv -f /volume2/@tmp/pkginstall/extract.gc9OXf/WIZARD_UIFILES /var/packages/radarr/WIZARD_UIFILES
2022/06/06 14:43:55 install radarr 20220515-18 End /bin/mv -f /volume2/@tmp/pkginstall/extract.gc9OXf/WIZARD_UIFILES /var/packages/radarr/WIZARD_UIFILES ret=[0]
2022/06/06 14:43:55 install radarr 20220515-18 Begin /bin/rm -rf /var/packages/radarr/conf
2022/06/06 14:43:55 install radarr 20220515-18 End /bin/rm -rf /var/packages/radarr/conf ret=[0]
2022/06/06 14:43:55 install radarr 20220515-18 Begin /bin/mv -f /volume2/@tmp/pkginstall/extract.gc9OXf/conf /var/packages/radarr/conf
2022/06/06 14:43:55 install radarr 20220515-18 End /bin/mv -f /volume2/@tmp/pkginstall/extract.gc9OXf/conf /var/packages/radarr/conf ret=[0]
2022/06/06 14:44:04 install radarr 20220515-18 Begin postinst
2022/06/06 14:44:04 Begin reload_inst_variables
2022/06/06 14:44:04 End reload_inst_variables
2022/06/06 14:44:04 Begin initialize_variables
2022/06/06 14:44:04 End initialize_variables
2022/06/06 14:44:04 ===> Step postinst. USER=sc-radarr GROUP=sc-download SHARE_PATH=
2022/06/06 14:44:04 Begin save_wizard_variables
2022/06/06 14:44:04 End save_wizard_variables
2022/06/06 14:44:04 Begin syno_sync_var_folder
2022/06/06 14:44:04 End syno_sync_var_folder
2022/06/06 14:44:04 Begin service_postinst
2022/06/06 14:44:04 Set update required
2022/06/06 14:44:04 End service_postinst
2022/06/06 14:44:04 install radarr 20220515-18 End postinst ret=[0]
2022/06/06 14:44:05 install radarr 20220515-18 Begin start-stop-status start
/var/packages/radarr/scripts/start-stop-status: line 115:  6418 Segmentation fault      (core dumped) ${SERVICE_COMMAND} >> ${OUT} 2>&1
2022/06/06 14:44:25 install radarr 20220515-18 End start-stop-status start ret=[1]
2022/06/06 14:44:25 (system) trigger radarr 20220515-18 Begin start-stop-status stop
2022/06/06 14:44:25 (system) trigger radarr 20220515-18 End start-stop-status stop ret=[0]

Service Log

Mon Jun  6 14:44:05 AEST 2022
Starting radarr command env HOME=/volume2/@appdata/radarr LD_LIBRARY_PATH=/volume2/@appstore/radarr/lib /volume2/@appstore/radarr/share/Radarr/bin/Radarr -nobrowser -data=/volume2/@appdata/radarr/.config/Radarr
radarr is not running

Other Logs

No response

@russholio russholio added the bug label Jun 6, 2022
@bakerboy448
Copy link

bakerboy448 commented Jun 10, 2022

Radarr is not Sonarr
Sonarr is not Radarr

they have completely different backends: Radarr is dotnet and Sonarr is still dotnet framework/mono

your NAS is not supported by the SynoComm packages as the processor not compatible

dotnet/runtime#56706
https://github.com/SynoCommunity/spksrc/wiki/Synology-and-SynoCommunity-Package-Architectures#x17-series

You can try the official (beta) packages instead
https://wiki.servarr.com/synology-packages

@hgy59 hgy59 added the dotnet Related to dotnet (core) label Aug 3, 2022
@mreid-tt
Copy link
Contributor

@russholio, I've been trying to solicit feedback to confirm compatibility with .NET builds of Radarr, Lidarr and Sonarr v4 running on ARMv7 architectures. If you have the time perhaps you can check out #5574 and add your feedback on the test packages I've shared. Appreciate the support.

@mreid-tt
Copy link
Contributor

@russholio a new version of Radarr (v20230215-19) has been published. This version includes Radarr 4.3.2.6857 and removes support for armada370 which is not dotnet 6 compatible as well as armv7 archs running under DSM 6 (as it does not have the required libraries).

In your original note you mentioned your setup was:

NAS Model: DS1517
DSM version: 7.0.1-42218 Update 4

This new version should be compatible with your model but only if you are running DSM 7.1. Let me know if this works for you.

@mreid-tt
Copy link
Contributor

@russholio, I wanted to follow up on your issue. Have you had a chance to try my suggested solution? Please let me know if it resolves the issue. If I don't hear back from you in the next few days, I'll assume the issue has been resolved and will close it.

@russholio
Copy link
Author

@russholio, I wanted to follow up on your issue. Have you had a chance to try my suggested solution? Please let me know if it resolves the issue. If I don't hear back from you in the next few days, I'll assume the issue has been resolved and will close it.

Thanks @mreid-tt I have not had a chance to try your solution. I will give it a try tonight and let you know the results

@russholio
Copy link
Author

russholio commented Mar 28, 2023

I just installed it from the synocommunity repo again.

Unfortunately, I get Segmentation fault (core dumped) still.

Weirdly the installed version says it is newer than the available version?

Screenshot 2023-03-28 at 7 40 17 pm

@mreid-tt
Copy link
Contributor

hey @russholio, thanks much for the update. This is indeed strange. If you can, I'd like you to SSH into your NAS and share with me the results of:

cat /etc.defaults/VERSION
cat /proc/cpuinfo
cat /var/packages/radarr/INFO | grep -v package_icon

I may have to update the results of my original testing based on the results.

@russholio
Copy link
Author

@mreid-tt

> cat /etc.defaults/VERSION
majorversion="7"
minorversion="1"
major="7"
minor="1"
micro="1"
productversion="7.1.1"
buildphase="GM"
buildnumber="42962"
smallfixnumber="4"
nano="4"
base="42962"
builddate="2023/02/01"
buildtime="20:01:57"
> cat /proc/cpuinfo
processor	: 0
model name	: ARMv7 Processor rev 4 (v7l)
Speed		: 1.7GHz
Features	: swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x2
CPU part	: 0xc0f
CPU revision	: 4

processor	: 1
model name	: ARMv7 Processor rev 4 (v7l)
Speed		: 1.7GHz
Features	: swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x2
CPU part	: 0xc0f
CPU revision	: 4

processor	: 2
model name	: ARMv7 Processor rev 4 (v7l)
Speed		: 1.7GHz
Features	: swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x2
CPU part	: 0xc0f
CPU revision	: 4

processor	: 3
model name	: ARMv7 Processor rev 4 (v7l)
Speed		: 1.7GHz
Features	: swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x2
CPU part	: 0xc0f
CPU revision	: 4

Hardware	: AnnapurnaLabs Alpine (Device Tree)
Revision	: 0000
Serial		: 0000000000000000
> cat /var/packages/radarr/INFO | grep -v package_icon
package="radarr"
version="20230216-19"
description="Radarr is a movie collection manager for Usenet and BitTorrent users. It can monitor multiple RSS feeds for new movies and will interface with clients and indexers to grab, sort, and rename them. It can also be configured to automatically upgrade the quality of existing files in the library when a better quality format becomes available."

arch="alpine alpine4k armada375 armada38x armadaxp monaco"
maintainer="Team Radarr"
maintainer_url="https://radarr.video/"
distributor="SynoCommunity"
distributor_url="https://synocommunity.com"
os_min_ver="7.1-42661"
helpurl="https://wiki.servarr.com/Radarr"
displayname="Radarr"
dsmuidir="app"
dsmappname="com.synocommunity.packages.radarr"
adminport="8310"
changelog="1. Upgrade to Radarr 4.3.2.6857.<br/>2. Fix package update.<br/>3. Enlarge the service start/stop timeout to 90 seconds.<br/>4. Add support for x86 (32-bit) architecture."
checksum="4a634a95e394eecc4af71f83793849a7"

I assume the version number difference maybe some how caused by me being in Australia and it is building the version number dynamically at some point. It wouldn't be the first time timezones have created some weirdism

@mreid-tt
Copy link
Contributor

mreid-tt commented Mar 28, 2023

hey @russholio, thanks much for the details. Everything seems as it should be as far as the software versions. Could I see the Segmentation fault (core dumped) details? It should be viewable with something like this:

tail -n 100 /var/log/packages/radarr.log

EDIT: It would also be useful to see the details of the dump files generated:

ls -all /volume1/*.core.gz

@russholio
Copy link
Author

@mreid-tt contents of /var/log/packages/radarr.log

2023/03/28 20:32:22 install radarr 20230216-19 Begin preinst
2023/03/28 20:32:22 Begin load_variables_from_file
2023/03/28 20:32:23 End load_variables_from_file
2023/03/28 20:32:23 Begin initialize_variables
2023/03/28 20:32:23 End initialize_variables
2023/03/28 20:32:23 ===> Step preinst. STATUS=INSTALL USER=sc-radarr GROUP= SHARE_PATH=
2023/03/28 20:32:23 install radarr 20230216-19 End preinst ret=[0]
2023/03/28 20:32:23 install radarr 20230216-19 Begin /bin/mkdir -p /volume2/@appstore/radarr -m 755
2023/03/28 20:32:23 install radarr 20230216-19 End /bin/mkdir -p /volume2/@appstore/radarr -m 755 ret=[0]
2023/03/28 20:32:23 install radarr 20230216-19 Begin /bin/rm -rf /volume2/@appstore/radarr
2023/03/28 20:32:23 install radarr 20230216-19 End /bin/rm -rf /volume2/@appstore/radarr ret=[0]
2023/03/28 20:32:23 install radarr 20230216-19 Begin /bin/mv -f /volume2/@tmp/synopkg/install.xZ2anU/package /volume2/@appstore/radarr
2023/03/28 20:32:23 install radarr 20230216-19 End /bin/mv -f /volume2/@tmp/synopkg/install.xZ2anU/package /volume2/@appstore/radarr ret=[0]
2023/03/28 20:32:23 install radarr 20230216-19 Begin /bin/rm -rf /var/packages/radarr
2023/03/28 20:32:23 install radarr 20230216-19 End /bin/rm -rf /var/packages/radarr ret=[0]
2023/03/28 20:32:23 install radarr 20230216-19 Begin /bin/mkdir -p /var/packages/radarr -m 755
2023/03/28 20:32:23 install radarr 20230216-19 End /bin/mkdir -p /var/packages/radarr -m 755 ret=[0]
2023/03/28 20:32:23 install radarr 20230216-19 Begin /bin/touch /var/packages/radarr/installing
2023/03/28 20:32:23 install radarr 20230216-19 End /bin/touch /var/packages/radarr/installing ret=[0]
2023/03/28 20:32:23 install radarr 20230216-19 Begin /bin/mv -f /volume2/@tmp/synopkg/install.xZ2anU/INFO /var/packages/radarr/INFO
2023/03/28 20:32:23 install radarr 20230216-19 End /bin/mv -f /volume2/@tmp/synopkg/install.xZ2anU/INFO /var/packages/radarr/INFO ret=[0]
2023/03/28 20:32:23 install radarr 20230216-19 Begin /bin/rm -rf /var/packages/radarr/scripts
2023/03/28 20:32:23 install radarr 20230216-19 End /bin/rm -rf /var/packages/radarr/scripts ret=[0]
2023/03/28 20:32:23 install radarr 20230216-19 Begin /bin/mv -f /volume2/@tmp/synopkg/install.xZ2anU/scripts /var/packages/radarr/scripts
2023/03/28 20:32:23 install radarr 20230216-19 End /bin/mv -f /volume2/@tmp/synopkg/install.xZ2anU/scripts /var/packages/radarr/scripts ret=[0]
2023/03/28 20:32:23 install radarr 20230216-19 Begin /bin/rm -rf /var/packages/radarr/WIZARD_UIFILES
2023/03/28 20:32:23 install radarr 20230216-19 End /bin/rm -rf /var/packages/radarr/WIZARD_UIFILES ret=[0]
2023/03/28 20:32:23 install radarr 20230216-19 Begin /bin/mv -f /volume2/@tmp/synopkg/install.xZ2anU/WIZARD_UIFILES /var/packages/radarr/WIZARD_UIFILES
2023/03/28 20:32:23 install radarr 20230216-19 End /bin/mv -f /volume2/@tmp/synopkg/install.xZ2anU/WIZARD_UIFILES /var/packages/radarr/WIZARD_UIFILES ret=[0]
2023/03/28 20:32:23 install radarr 20230216-19 Begin /bin/rm -rf /var/packages/radarr/conf
2023/03/28 20:32:23 install radarr 20230216-19 End /bin/rm -rf /var/packages/radarr/conf ret=[0]
2023/03/28 20:32:23 install radarr 20230216-19 Begin /bin/mv -f /volume2/@tmp/synopkg/install.xZ2anU/conf /var/packages/radarr/conf
2023/03/28 20:32:23 install radarr 20230216-19 End /bin/mv -f /volume2/@tmp/synopkg/install.xZ2anU/conf /var/packages/radarr/conf ret=[0]
2023/03/28 20:32:28 install radarr 20230216-19 Begin postinst
2023/03/28 20:32:28 Begin load_variables_from_file
2023/03/28 20:32:28 End load_variables_from_file
2023/03/28 20:32:28 Begin initialize_variables
2023/03/28 20:32:28 End initialize_variables
2023/03/28 20:32:28 ===> Step postinst. STATUS=INSTALL USER=sc-radarr GROUP= SHARE_PATH=
2023/03/28 20:32:28 Begin save_wizard_variables
2023/03/28 20:32:28 End save_wizard_variables
2023/03/28 20:32:28 Begin syno_sync_var_folder
2023/03/28 20:32:28 Install files from var folder
2023/03/28 20:32:28 /bin/rsync -avh --ignore-existing --remove-source-files /volume2/@appstore/radarr/var/ /volume2/@appdata/radarr
2023/03/28 20:32:28 sending incremental file list
2023/03/28 20:32:28 ./
2023/03/28 20:32:29 .config/
2023/03/28 20:32:29 .config/Radarr/
2023/03/28 20:32:29 .config/Radarr/config.xml
2023/03/28 20:32:29 sent 384 bytes  received 58 bytes  884.00 bytes/sec
2023/03/28 20:32:29 total size is 199  speedup is 0.45
2023/03/28 20:32:29 /bin/rsync -avh --remove-source-files /volume2/@appstore/radarr/var/ /volume2/@appdata/radarr
2023/03/28 20:32:29 sending incremental file list
2023/03/28 20:32:29 .config/Radarr/
2023/03/28 20:32:29 sent 117 bytes  received 17 bytes  268.00 bytes/sec
2023/03/28 20:32:29 total size is 0  speedup is 0.00
2023/03/28 20:32:29 End syno_sync_var_folder
2023/03/28 20:32:29 Begin service_postinst
2023/03/28 20:32:29 Set update required
2023/03/28 20:32:29 End service_postinst
2023/03/28 20:32:29 install radarr 20230216-19 End postinst ret=[0]
2023/03/28 20:32:29 install radarr 20230216-19 Begin start-stop-status start
/var/packages/radarr/scripts/start-stop-status: line 151:  5590 Segmentation fault      (core dumped) ${service} >> ${OUT} 2>&1
2023/03/28 20:34:01 install radarr 20230216-19 End start-stop-status start ret=[1]
2023/03/28 20:34:01 (system) trigger radarr 20230216-19 Begin start-stop-status stop
2023/03/28 20:34:01 (system) trigger radarr 20230216-19 End start-stop-status stop ret=[0]

@russholio
Copy link
Author

Just and FYI I dumped the environment variables at service startup too

MAX_DB_CONNECTIONS=20
SYNOPKG_PKGVAR=/volume2/@appdata/radarr
SYNOPKG_PKGPORT=8310
SYNOPKG_USERNAME=********
SYNOPKG_PKGNAME=radarr
SYNOPKG_DSM_VERSION_MAJOR=7
SYNOPKG_PKGHOME=/volume2/@apphome/radarr
SYNOPKG_DSM_VERSION_MINOR=1
SYNOPKG_PKGTMP=/volume2/@apptemp/radarr
SYNOPKG_DSM_VERSION_BUILD=42962
SELF=radarr
PWD=/
SYNOPKG_PKGVER=20230216-19
SYNOPKG_DSM_LANGUAGE=enu
SYNOPKG_DSM_ARCH=alpine
TMPDIR=/volume2/@apptemp/radarr
SYNOPKG_PKGDEST_VOL=/volume2
SHLVL=2
CPU_COUNT=20
SYNOPKG_PKG_STATUS=START
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin
SYNOPKG_TEMP_LOGFILE=/tmp/synopkgmgr.log-radarr
SYNOPKG_PKGDEST=/volume2/@appstore/radarr
_=/bin/env

I tried turning up the logging level in the radarr config.xml file, but the app crashes immediately. I have tried just running the dotnet core runtime and it seg faults on my system too.

@mreid-tt
Copy link
Contributor

@russholio, thanks for the detailed feedback. Based on this I believe we can definitively confirm that the alpine processor is indeed incompatible with dotnet 6 packages on DSM 7. This was not my original expectation but the evidence is clear. These archs will be removed from future updates.

If you wish the folks over at Servarr have released some packages which can be manually installed on older CPUs. These packages include a special wrapper that may work with dotnet 6. I cannot guarantee that it will resolve your issue but some users have found success on older CPUs.

@russholio
Copy link
Author

Thanks @mreid-tt I gave bubblewrap a try in the past but with no joy. I don't know if it is still supported as they seem to be pushing docker containers. Unfortunately my synology does not support docker either. I think I am just a victim of a crappy chipset. Thanks for your help with trying to get it working.

@bakerboy448
Copy link

bakerboy448 commented Apr 3, 2023

Thanks @mreid-tt I gave bubblewrap a try in the past but with no joy. I don't know if it is still supported as they seem to be pushing docker containers. Unfortunately my synology does not support docker either. I think I am just a victim of a crappy chipset. Thanks for your help with trying to get it working.

just to clarify - the Servarr team does not maintain, create, nor develop any docker containers.

Ideally if your synology supports docker that's the best route; otherwise the bubblewrap packages should work.
https://radarr.video/discord => syno-net-core channel for help with that

There are some Syno's whos kernels are too old, that may be the root cause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug dotnet Related to dotnet (core)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants