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

After updating it doesn't wanna stop app. #44

Closed
Rasmusho12 opened this issue Apr 6, 2024 · 4 comments
Closed

After updating it doesn't wanna stop app. #44

Rasmusho12 opened this issue Apr 6, 2024 · 4 comments

Comments

@Rasmusho12
Copy link

Rasmusho12 commented Apr 6, 2024

After updating from 3.0.41 to 3.0.45 it doesn't want to stop the app. It fails to do so, however when checking directly on the synology, the app has stopped.
image

After downgrading there is no problem at all
image

@007revad
Copy link
Owner

007revad commented Apr 6, 2024

  • v3.0.41 had separate code for DSM 7.2 and newer and DSM 7.1.1 and older.
  • v3.0.45 has combined the 2 sections of code into 1 section.

With DSN Server running what does the following command return?

sudo /usr/syno/bin/synopkg status DNSServer; echo $?

And the same command when DSN Server is stopped?

And for a package that is not installed:

sudo /usr/syno/bin/synopkg status foobar; echo $?

@dakky
Copy link

dakky commented Apr 10, 2024

have the same issue:
the problem is here:

RUNNING_

root@hive /volume1/scripts/Synology_app_mover-3.0.45 $ /usr/syno/bin/synopkg status MailServer; echo $?
{"aspect":{"active":{"status":"running","status_code":0,"status_description":"retrieve from status script"}},"description":"Status: [0], package is started","package":"MailServer","status":"running"}
0

STOPPED:

root@hive /volume1/scripts/Synology_app_mover-3.0.45 $ /usr/syno/bin/synopkg status MailServer; echo $?
{"aspect":{"active":{"status":"stop","status_description":"translate from systemd status"}},"description":"Status: [0], package is stopped","package":"MailServer","status":"stop"}
0

the return code is always 0

DSM Version: DSM 7.1.1-42962 Update 6

@dakky
Copy link

dakky commented Apr 10, 2024

Probably better:

root@hive /volume1/scripts/Synology_app_mover-3.0.45 $ /usr/syno/bin/synopkg is_onoff MailServer; echo $?
package MailServer isn't turned on, status: [262]
1
root@hive /volume1/scripts/Synology_app_mover-3.0.45 $ /usr/syno/bin/synopkg is_onoff MailServer; echo $?
package MailServer is turned on
0

007revad added a commit that referenced this issue Apr 10, 2024
v3.0.46
- DSM 6 to 7.1.1 bug fix where script incorrectly showed package failed to stop error. Issue #44
- DSM 6 to 7.1.1 bug fix for not detecting when package was not installed (for Restore mode).
@007revad 007revad mentioned this issue Apr 10, 2024
@007revad
Copy link
Owner

@dakky @Rasmusho12

I've released a new version that fixes this issue.
https://github.com/007revad/Synology_app_mover/releases/tag/v3.0.46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants