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

[New Package] Readarr #5110

Merged
merged 14 commits into from
Apr 9, 2023
Merged

[New Package] Readarr #5110

merged 14 commits into from
Apr 9, 2023

Conversation

EckPhi
Copy link
Contributor

@EckPhi EckPhi commented Jan 29, 2022

Description

motivation: New e-book collection manager in *arr flavour, Readarr.

Closes: #4801

Checklist

  • Build rule all-supported completed successfully
  • New installation of package completed successfully
  • Package upgrade completed successfully (Manually install the package again)
  • Package functionality was tested
  • Any needed documentation is updated/created

Type of change

  • Bug fix
  • New Package
  • Package update
  • Includes small framework changes
  • This change requires a documentation update (e.g. Wiki)

cross/readarr/Makefile Outdated Show resolved Hide resolved
Copy link
Member

@publicarray publicarray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome and Nice work 👍 but please change the version number (SPK_VERS).

@EckPhi
Copy link
Contributor Author

EckPhi commented Jan 30, 2022

Thank you! You are right I got the SPK_VERS from another package.

Poses the fact that their release server only provides the latest release (at least I didn't find a way to request a specific version) a problem?

@publicarray
Copy link
Member

publicarray commented Feb 1, 2022

@bakerboy448 @ta264 do you think the project is stable enough for production use on Synology devices? With the warning in the wiki in mind:

Readarr is currently in beta testing and thus using the nightly branch. It is generally still in a work in progress. Features may be broken, incomplete, or cause spontaneous combustion.

I personally lean towards to wait until a release (more stable than nightly) is ready.

@bakerboy448

This comment has been minimized.

Copy link

@bakerboy448 bakerboy448 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommending waiting until a develop release drops and using that rather than nightly

Develop Dropped late Feb 2022

EckPhi and others added 4 commits May 13, 2022 21:27
Co-authored-by: Sebastian Schmidt <publicarray@users.noreply.github.com>
- update readarr to v0.1.0.1248
- fix PID file
- add sc-download group
- use date for version as readarr uses internal updater
@hgy59 hgy59 requested a review from publicarray May 13, 2022 19:32
@hgy59
Copy link
Contributor

hgy59 commented May 13, 2022

@publicarray as this is another "*arr" package that uses the internal updater I prefer to use date as SPK_VER.

- avoid readarr downgrade on package update
- use explicit data folder
For consistency with other `*arr` apps
@mreid-tt mreid-tt dismissed publicarray’s stale review February 3, 2023 15:19

Maintain SPK_VER given similar codebase to other *arr packages

@mreid-tt
Copy link
Contributor

mreid-tt commented Feb 3, 2023

@hgy59, @publicarray... I've gone through the code and updated it with the latest enhancements from the other *arr packages over the past few months and should be ready to merge. If the team can give it a last once over that would be great.

EDIT: I've already begun harmonising the changes for the other *arr packages but we can use this as a standard baseline for them and I'll go back and ensure they are all in sync.

Also add build for x86 arch, exclusions for ARMv7 archs
@mreid-tt mreid-tt force-pushed the readarr branch 2 times, most recently from fd969f2 to c394934 Compare February 4, 2023 02:30
@mreid-tt mreid-tt mentioned this pull request Feb 4, 2023
7 tasks
spk/readarr/Makefile Outdated Show resolved Hide resolved
spk/readarr/Makefile Outdated Show resolved Hide resolved
@mreid-tt mreid-tt force-pushed the readarr branch 2 times, most recently from 8579c0c to 9fd63e2 Compare February 11, 2023 13:39
@mreid-tt
Copy link
Contributor

@hgy59, @publicarray... while we await the full review of this package, there was a user who tested it and got an error with the internal auto-updater following installation. Their platform details are as follows:

DSM: DSM 7.1.1-42962 Update 1
Model name: DS216play
CPU: STM Monaco STiH412

Per their note (#5574 (comment)), they received the following error in the Readarr log file:

2023-02-05 13:49:27.5|Info|InstallUpdateService|Starting update client /tmp/readarr_update/Readarr.Update
2023-02-05 13:49:27.5|Info|InstallUpdateService|Readarr will restart shortly.
2023-02-05 13:49:27.9|Info|InstallUpdateService|Updater Arguments: 29540 /tmp/readarr_update /volume1/@appstore/Readarr/Readarr
2023-02-05 13:49:29.3|Error|CommandExecutor|Error occurred while executing task ApplicationUpdate

[v0.1.2.1532] System.ComponentModel.Win32Exception (13): An error occurred trying to start process '/tmp/readarr_update/Readarr.Update' with working directory '/usr/syno/synoman/webapi'. Permission denied

Now I tried to replicate the error but could not. My platform details are a bit different:

DSM: DSM 7.1.1-42962 Update 2
Model name: VirtualDSM (DS916+)
CPU: INTEL Pentium N3710

My Readarr log file looks like this:

2023-02-11 09:57:56.6|Info|InstallUpdateService|Starting update client /volume1/@apptemp/readarr/readarr_update/Readarr.Update
2023-02-11 09:57:56.6|Info|InstallUpdateService|Readarr will restart shortly.
2023-02-11 09:57:56.6|Info|InstallUpdateService|Updater Arguments: 14991 /volume1/@apptemp/readarr/readarr_update /volume1/@appstore/readarr/share/Readarr/bin/Readarr /data=/volume1/@appdata/readarr/.config/Readarr /nobrowser
2023-02-11 09:58:17.7|Info|Bootstrap|Starting Readarr - /volume1/@appstore/readarr/share/Readarr/bin/Readarr.dll - Version 0.1.2.1558

What I notice is that the user's updater is starting in /tmp/readarr_update whereas my updater is starting in /volume1/@apptemp/readarr/readarr_update. Would this be contributing to the failed updater? If so, given there should be no significant changes in the build between his armv7-7.1 package and my x64-7.1 package, can you think of any reason for this?

@bakerboy448
Copy link

/tmp is not executable on DSM7

None of the updated packages would point to /tmp; sounds like they weren't running the package/version they think they are?

@hgy59 hgy59 added the new-package PR/WIP for a new package label Apr 7, 2023
@mreid-tt
Copy link
Contributor

mreid-tt commented Apr 8, 2023

So I was testing this and while it installed find on DSM 6 and DSM 7 and did perform an auto-update, I feel that the way the package launches is different than the other *arr apps. On first install I see this line in the install logs:

2023/04/08 13:30:59	install readarr 20230408-1 Begin start-stop-status start
/var/packages/readarr/scripts/start-stop-status: line 151: 11599 Killed                  ${service} >> ${OUT} 2>&1
2023/04/08 13:32:19	install readarr 20230408-1 End start-stop-status start ret=[0]

Around the same time, the service log shows this:

[Debug] Readarr.Update: Starting /volume1/@apptemp/readarr/readarr_update/Readarr.Update 11599 /volume1/@apptemp/readarr/readarr_update /volume1/@appstore/readarr/share/Readarr/bin/Readarr /data=/volume1/@appdata/readarr/.config/Readarr /nobrowser 
[Debug] InstallUpdateService: Install in progress, giving installer 30 seconds. 

In the app once installed, it seems to be updated correctly. Don't know if this is a concern before merging. Don't see similar logs with Sonarr v4 on fresh install even though it's also a beta that auto-updates.

@mreid-tt
Copy link
Contributor

mreid-tt commented Apr 8, 2023

I've pushed an update to 0.1.4.1596 because I saw in 0.1.2.1558 there was a note on "Don't block task queue for queued update task when long running tasks queued". Re-running the clean install on DSM 6 and DSM 7 now has a clean install log.

@hgy59, @publicarray I believe this should be good to merge. Any objections to this?

@hgy59 hgy59 merged commit a743da6 into SynoCommunity:master Apr 9, 2023
@hgy59
Copy link
Contributor

hgy59 commented Apr 9, 2023

@mreid-tt just updated the wiki page documenting the ports used by SynoCommunity packages (https://github.com/SynoCommunity/spksrc/wiki/SynoCommunity-Used-Ports)

@hgy59 hgy59 added status/published Published and activated (may take up to 48h until visible in DSM package manager) and removed status/needs-review labels Apr 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-package PR/WIP for a new package status/published Published and activated (may take up to 48h until visible in DSM package manager)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Package Request] Readarr
6 participants