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

sherpa file download failed #300

Closed
DarkKman opened this issue Feb 6, 2025 · 8 comments
Closed

sherpa file download failed #300

DarkKman opened this issue Feb 6, 2025 · 8 comments
Assignees

Comments

@DarkKman
Copy link

DarkKman commented Feb 6, 2025

Hi. I have been trying to post on the QNAP forum but getting some errors when posting (so not a good day for faults for me)... So apologies for posting here.

I haven't had to touch Sherpa CLI (QNAP NAS) for a while (all packages were working fine) but recently Transmission stopped working so thought I'd go and check for an update in Sherpa (via PuTTy) and got a similar error to the one I found below (I can't access my own error now).

[~] # sherpa
sherpa 230227-stable • a mini-package-manager for QNAP NAS

/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 1584: Args.Unknown.IsAny: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 798: Args.Unknown.IsNone: command not found
• Usage: sherpa [action] [packages] [package group] [options]

   To list available [action]s:
      # sherpa list actions

   To list available [packages]:
      # sherpa list packages
      # sherpa p

   To list available [package group]s:
      # sherpa list groups

   Or, for more [options]:
      # sherpa list options

• More in the wiki: https://github.com/OneCDOnly/sherpa/wiki
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcBackup.IsBackedUp.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcClean.IsBackedUp.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcInstall.IsBackedUp.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcReassign.IsBackedUp.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcRebuild.IsBackedUp.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcReinstall.IsBackedUp.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcRestart.IsBackedUp.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcRestore.IsBackedUp.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcStart.IsBackedUp.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcStop.IsBackedUp.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcUninstall.IsBackedUp.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcUpgrade.IsBackedUp.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcBackup.IsInstalled.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcClean.IsInstalled.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcInstall.IsInstalled.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcReassign.IsInstalled.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcRebuild.IsInstalled.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcReinstall.IsInstalled.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcRestart.IsInstalled.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcRestore.IsInstalled.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcStart.IsInstalled.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcStop.IsInstalled.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcUninstall.IsInstalled.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcUpgrade.IsInstalled.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcBackup.IsMissing.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcClean.IsMissing.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcInstall.IsMissing.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcReassign.IsMissing.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcRebuild.IsMissing.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcReinstall.IsMissing.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcRestart.IsMissing.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcRestore.IsMissing.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcStart.IsMissing.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcStop.IsMissing.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcUninstall.IsMissing.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcUpgrade.IsMissing.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcBackup.IsStarted.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcClean.IsStarted.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcInstall.IsStarted.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcReassign.IsStarted.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcRebuild.IsStarted.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcReinstall.IsStarted.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcRestart.IsStarted.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcRestore.IsStarted.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcStart.IsStarted.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcStop.IsStarted.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcUninstall.IsStarted.IsSet: command not found
/share/CACHEDEV1_DATA/.qpkg/sherpa/cache/sherpa.manager.sh: line 3773: QPKGs.AcUpgrade.IsStarted.IsSet: command not found
[~] #

I followed the instructions to simply do a sherpa reset;

sherpa reset

then restarted by PuTTY session and now I get the below error;

[~] # sherpa status
warn: Remote file download failed
bort: Unable to find target file
[~] #

I'm hesitant to do anything further as don't want to lose (if I haven't already) the connection to all the other applications I installed through Sherpa previously. If I just follow the guide to install will this remove the link to the apps I already have setup?

Anyone offer any advice/help? Eeeek...

Thanks in advance!

@OneCDOnly
Copy link
Owner

Hi @DarkKman, and thanks for reporting this. 👍🏽

It looks like your existing management script is very old, and is struggling to update itself.

Can you please manually install the current sherpa QPKG?

curl -skL https://tinyurl.com/get-sherpa > /share/Public/sherpa.qpkg;
sudo sh /share/Public/sherpa.qpkg;

@DarkKman
Copy link
Author

DarkKman commented Feb 7, 2025

Aha! Wonderful. Thanking you kindly 👍 Sherpa is back up and running. Still got a few issues with some QNAP apps (non-Sherpa related) but SABnzbd still not accessible. I got the results below which are a little odd. Is there something I should do prior to trying to update SABnzbd? e.g. apps showing as unsupported or not-found (in the case of SAB)

QPKG name:     Status:                          Action (result):  QPKG version (new):  Appl. version:  Location:
  Entware      - enabled, active                  unsupported       1.03a                1.03a           /share/CACHEDEV1_DATA/.>
  nzbToMedia   - enabled, active, upgradable      unsupported       230312 (240205)      dynamic         /share/CACHEDEV1_DATA/.>
  Par2         - enabled, active                  unsupported       0.8.1.1              0.8.1           /share/CACHEDEV1_DATA/.>
  Par2turbo    - enabled, active                  unsupported       1.1.0                1.1.0           /share/CACHEDEV1_DATA/.>
  SABnzbd      - enabled, inactive, upgradable    not-found         230619 (250127)      dynamic         /share/CACHEDEV1_DATA/.>
  sherpa       - enabled, active                  start (OK)        241001               241001          /share/CACHEDEV1_DATA/.>
  OSickGear    - enabled, active, upgradable      not-found         230312 (250127)      dynamic         /share/CACHEDEV1_DATA/.>
  SortMyQPKGs  - enabled, active                  not-found         230227               241214          /share/CACHEDEV1_DATA/.>
  Unrar        - enabled, active                  unsupported       7.0.8                7.01 beta 1     /share/CACHEDEV1_DATA/.>

@OneCDOnly
Copy link
Owner

Good work, looks better already. 🤓

OK, next thing is to upgrade your QPKGs. Please run this command:

sherpa upgrade new

... and also please ensure all your QPKGs are re-signed, as the old signing certificate expires next month:

sherpa sign installed

@OneCDOnly
Copy link
Owner

OneCDOnly commented Feb 8, 2025

Regarding the unsupported action result: this means the existing package doesn't support sherpa actions. It's not a fault with the QPKG or application, so it can be ignored.

not found means that QPKG does support actions, but a last action hasn't been recorded yet.

BTW: what version of QTS are you running please?

@DarkKman
Copy link
Author

DarkKman commented Feb 8, 2025

Thanks (as always) for your wonderful support. I'm currently on QTS 5.2.3.3006 (I think there may be an update available but I generally don't update unless things break as I always have so many issues getting everything back up and running. Maybe I need to change my maintenance processes ;)

Anyway, I used the upgrade new with partial success (results below) but looks like some issues with some and the re-signing seemed fine;

[~] # sherpa upgrade new
sherpa v250206-stable
done: actions complete.

• Package actions started @ 11:34:45 AM, ended @ 11:35:59 AM, elapsed = 1m:14s

• These package actions completed OK:
    download nzbToMedia QPKG in 1 second
    download SABnzbd QPKG in 1 second
    download OSickGear QPKG in 1 second
    deactivate nzbToMedia QPKG in 1 second
    reactivate Par2turbo QPKG in 1 second
    reactivate Unrar QPKG in 1 second
    reactivate Entware QPKG in 2 seconds
    upgrade nzbToMedia QPKG in 15 seconds (v230312 -> v240205)
    upgrade SABnzbd QPKG in 13 seconds (v230619 -> v250127)
    upgrade OSickGear QPKG in 13 seconds (v230312 -> v250127)
    activate OSickGear QPKG in 16 seconds

• These package actions failed (and why):
    deactivate SABnzbd QPKG in 1 second (for more information: /etc/init.d/sabnzbd.sh log)
    deactivate OSickGear QPKG in 4 seconds (for more information: /etc/init.d/osickgear.sh log)
    activate nzbToMedia QPKG in 2 seconds (1)
    activate SABnzbd QPKG in 5 seconds (for more information: /etc/init.d/sabnzbd.sh log)

and

[~] # sherpa sign installed
sherpa v250206-stable
done: actions complete.

• Package actions started @ 11:37:59 AM, ended @ 11:38:06 AM, elapsed = 7 seconds

• These package actions completed OK:
    "sign" Entware QPKG in 1 second
    "sign" Par2 QPKG in 1 second
    "sign" Par2turbo QPKG in 1 second
    "sign" sherpa QPKG in 1 second
    "sign" SortMyQPKGs QPKG in 1 second
    "sign" Unrar QPKG in 1 second
    "sign" nzbToMedia QPKG in 1 second
    "sign" SABnzbd QPKG in 1 second
    "sign" OSickGear QPKG in 1 second

I can still access OSickGear via the web GUI but SABnzbd doesn't seem to start (and can't really test nzbToMedia without SAB. Any suggestions for next steps? I'm sorry to put you out... :(

edit I just saw in the QNAP error log the below errors re nzbToMedia;
[nzbToMedia] unable to install addons: virtual environment does not exist!
[nzbToMedia] failed!

edit2 I also just tried installing Watcher 3 as fed up with CouchPotato constant issues and got the error below. I already have Python 2.7.12.1.2 (which I think was from an earlier sherpa install) and disabled Python 3 3.12.6.1 (which I think was recommended at some point). I'm probably quite out of touch with requirements and apologise again for giving you an unnecessary headache
[OWatcher3] unable to install addons: 'virtual Python environment does not exist'

@OneCDOnly
Copy link
Owner

OneCDOnly commented Feb 8, 2025

No trouble at-all: that's what I'm here for. 🤓

Next step: please check your installation:

sherpa check

... then, clean each of your application files (your configs won't be affected):

sherpa clean installed

... then start everything:

sherpa start installed

With regard to Python QPKGs: sherpa uses only the Python IPKs installed through Entware. No external Python QPKGs are required.

Regarding Watcher3, please note: development ceased on this application some time ago (just like it did with CouchPotato Server). It's still available for install, but may not work correctly. Try one of the *arr alternatives instead. The alternative for movies is Radarr. Radarr is not yet available via sherpa. But, it is available on the myqnap.org repo (for 64b CPUs only), and requires the purchase of the Apache84 QPKG as a dependency: https://www.myqnap.org/product/radarr84/

@DarkKman
Copy link
Author

DarkKman commented Feb 9, 2025

No trouble at-all: that's what I'm here for. 🤓

Well it is very VERY much appreciated! Thank you so much...

Ran through all the steps and I won't post the output of each but ran a quick sherpa status after and...

[~] # sherpa status
sherpa v250206-stable
done: actions complete.

QPKG name:     Status:            Action (result):  QPKG version:  Appl. version:  Location:
  Entware      - enabled, active    unsupported       1.03a          1.03a           /share/CACHEDEV1_DATA/.qpkg/Entware
  nzbToMedia   - enabled, active    unsupported       240205         dynamic         /share/CACHEDEV1_DATA/.qpkg/nzbToMedia
  Par2         - enabled, active    unsupported       0.8.1.1        0.8.1           /share/CACHEDEV1_DATA/.qpkg/Par2
  Par2turbo    - enabled, active    unsupported       1.1.0          1.1.0           /share/CACHEDEV1_DATA/.qpkg/Par2turbo
  SABnzbd      - enabled, active    start (OK)        250127         dynamic         /share/CACHEDEV1_DATA/.qpkg/SABnzbd
  sherpa       - enabled, active    start (OK)        241001         241001          /share/CACHEDEV1_DATA/.qpkg/sherpa
  OSickGear    - enabled, active    start (OK)        250127         dynamic         /share/CACHEDEV1_DATA/.qpkg/OSickGear
  SortMyQPKGs  - enabled, active    not-found         230227         241214          /share/CACHEDEV1_DATA/.qpkg/SortMyQPKGs
  Unrar        - enabled, active    unsupported       7.0.8          7.01 beta 1     /share/CACHEDEV1_DATA/.qpkg/Unrar
  OWatcher3    - enabled, active    start (OK)        250127         final           /share/CACHEDEV1_DATA/.qpkg/OWatcher3

This makes me VERY happy... Even Watcher started so I guess I'll give it a go and look into Radarr too. You have gone above and beyond so thank you for your patience and help!

@OneCDOnly
Copy link
Owner

OneCDOnly commented Feb 9, 2025

Excellent, no worries mate. :)

You can also use the short-form of status which is:

sherpa s

The original problem happened because over the last couple of years, I've modified the auto-updater so it works a bit better. Unfortunately, it meant everyone had to reinstall the sherpa QPKG about a year ago. 🤓

Cheers!

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

2 participants