[QPKG] sherpa mini-package-manager (CLI)

This is the best place for community developers to publish their genius work. Your Apps enrich the QNAP Turbo NAS.
Post Reply
potestus
Getting the hang of things
Posts: 98
Joined: Tue May 10, 2011 7:30 pm

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by potestus » Sun Feb 28, 2021 11:21 am

OneCD wrote:
Sun Feb 28, 2021 11:10 am
Can you post the contents back here?
2021-02-28 02:40:43,603::WARNING::[__init__:187] Signal 15 caught, saving and exiting...
2021-02-28 02:40:43,685::INFO::[nzbqueue:231] Saving queue
2021-02-28 02:40:43,794::INFO::[postproc:134] Saving postproc queue
2021-02-28 02:42:00,448::INFO::[SABnzbd:1148] --------------------------------
2021-02-28 02:42:00,475::INFO::[SABnzbd:1149] SABnzbd.py-3.1.1 (rev=99b5a00c12c1d8e17bb3e4a9a98339f59152c842)
2021-02-28 02:42:00,477::INFO::[SABnzbd:1150] Full executable path = /share/MD0_DATA/.qpkg/SABnzbd/SABnzbd/SABnzbd.py
2021-02-28 02:42:00,516::INFO::[SABnzbd:1160] Platform = posix
2021-02-28 02:42:00,519::INFO::[SABnzbd:1161] Python-version = 3.9.0 (default, Nov 30 2020, 13:01:15)
[GCC 8.4.0]
2021-02-28 02:42:00,521::INFO::[SABnzbd:1162] Arguments = "/share/MD0_DATA/.qpkg/SABnzbd/SABnzbd/SABnzbd.py" "--daemon" "--browser" "0" "--config-file" "/share/MD0_DATA/.qpkg/SABnzbd/config/config.ini" "--pidfile" "/var/run/SABnzbd.pid"
2021-02-28 02:42:00,545::INFO::[SABnzbd:1166] Not inside a docker container
2021-02-28 02:42:00,548::INFO::[SABnzbd:1169] Preferred encoding = UTF-8
2021-02-28 02:42:00,556::INFO::[SABnzbd:1185] SSL version = OpenSSL 1.1.1h 22 Sep 2020
2021-02-28 02:42:00,682::INFO::[SABnzbd:1194] Certifi version: 2020.12.05
2021-02-28 02:42:00,705::INFO::[SABnzbd:1195] Loaded additional certificates from: /opt/lib/python3.9/site-packages/certifi/cacert.pem
2021-02-28 02:42:00,707::INFO::[SABnzbd:1240] Using INI file /share/MD0_DATA/.qpkg/SABnzbd/config/config.ini
2021-02-28 02:42:01,158::INFO::[postproc:140] Loading postproc queue
2021-02-28 02:42:01,264::INFO::[scheduler:216] Setting schedule for midnight BPS reset
2021-02-28 02:42:01,288::INFO::[__init__:349] All processes started
2021-02-28 02:42:01,313::INFO::[SABnzbd:303] Template location for Glitter is /share/MD0_DATA/.qpkg/SABnzbd/SABnzbd/interfaces/Glitter
2021-02-28 02:42:01,318::INFO::[SABnzbd:303] Template location for Config is /share/MD0_DATA/.qpkg/SABnzbd/SABnzbd/interfaces/Config
2021-02-28 02:42:01,360::INFO::[misc:986] [N/A] Running external command: ['/opt/bin/unrar']
2021-02-28 02:42:01,636::INFO::[misc:986] [N/A] Running external command: ['/opt/bin/par2', '-h']
2021-02-28 02:42:01,764::INFO::[SABnzbd:404] SABYenc module (v4.0.2)... found!
2021-02-28 02:42:01,767::INFO::[SABnzbd:423] Cryptography module (v3.2.1)... found!
2021-02-28 02:42:01,770::INFO::[SABnzbd:428] par2 binary... found (/opt/bin/par2)
2021-02-28 02:42:01,793::INFO::[SABnzbd:435] UNRAR binary... found (/opt/bin/unrar)
2021-02-28 02:42:01,795::INFO::[SABnzbd:445] UNRAR binary version 5.91
2021-02-28 02:42:01,800::INFO::[SABnzbd:453] 7za binary... found (/opt/bin/7za)
2021-02-28 02:42:01,823::INFO::[SABnzbd:464] nice binary... found (/opt/bin/nice)
2021-02-28 02:42:01,826::INFO::[SABnzbd:468] ionice binary... found (/opt/bin/ionice)
2021-02-28 02:42:01,870::INFO::[SABnzbd:1427] Starting web-interface on 0.0.0.0:8800
2021-02-28 02:42:01,905::INFO::[_cplogging:213] [28/Feb/2021:02:42:01] ENGINE Bus STARTING
2021-02-28 02:42:02,325::INFO::[_cplogging:213] [28/Feb/2021:02:42:02] ENGINE Serving on http://0.0.0.0:8800
2021-02-28 02:42:02,328::INFO::[_cplogging:213] [28/Feb/2021:02:42:02] ENGINE Bus STARTED
2021-02-28 02:42:02,353::INFO::[SABnzbd:1464] Starting SABnzbd.py-3.1.1
2021-02-28 02:42:02,531::INFO::[postproc:232] Completed Download Folder /share/MD0_DATA/Qdownload/sabnzbd/complete is not on FAT
2021-02-28 02:42:02,574::INFO::[dirscanner:117] Dirscanner starting up
2021-02-28 02:42:02,603::INFO::[urlgrabber:96] URLGrabber starting up
2021-02-28 02:42:02,620::INFO::[notifier:122] Sending notification: SABnzbd - SABnzbd 3.1.1 started (type=startup, job_cat=None)
2021-02-28 02:42:04,015::INFO::[zconfig:71] No Bonjour/ZeroConfig support installed
2021-02-28 02:42:16,273::INFO::[rss:564] Starting scheduled RSS read-out for "Drnkrn slug"
2021-02-28 02:42:16,803::INFO::[rss:325] RSS Feed https://api.drunkenslug.com/rss?t=-2&dl ... e0bc&del=1 was empty
2021-02-28 02:42:32,002::INFO::[rss:564] Starting scheduled RSS read-out for "Nzbfinder"
2021-02-28 02:42:32,558::INFO::[rss:325] RSS Feed https://nzbfinder.ws/rss/cart?dl=1&i=12 ... 2a7c&del=1 was empty
2021-02-28 02:42:47,775::INFO::[rss:580] Finished scheduled RSS read-outs
2021-02-28 02:42:59,584::INFO::[notifier:122] Sending notification: User logged in - User logged in to the web interface (type=new_login, job_cat=None)
2021-02-28 02:42:59,590::INFO::[interface:686] Successful login from 192.168.1.121
2021-02-28 02:56:01,273::INFO::[rss:564] Starting scheduled RSS read-out for "Drnkrn slug"
2021-02-28 02:56:01,793::INFO::[rss:325] RSS Feed https://api.drunkenslug.com/rss?t=-2&dl ... e0bc&del=1 was empty
2021-02-28 02:56:16,942::INFO::[rss:564] Starting scheduled RSS read-out for "Nzbfinder"
2021-02-28 02:56:17,395::INFO::[rss:325] RSS Feed https://nzbfinder.ws/rss/cart?dl=1&i=12 ... 2a7c&del=1 was empty
2021-02-28 02:56:32,654::INFO::[rss:580] Finished scheduled RSS read-outs
2021-02-28 03:11:32,696::INFO::[rss:564] Starting scheduled RSS read-out for "Drnkrn slug"
2021-02-28 03:11:37,161::INFO::[rss:325] RSS Feed https://api.drunkenslug.com/rss?t=-2&dl ... e0bc&del=1 was empty
2021-02-28 03:11:45,940::WARNING::[__init__:187] Signal 15 caught, saving and exiting...
2021-02-28 03:11:46,214::INFO::[nzbqueue:231] Saving queue
2021-02-28 03:11:46,800::INFO::[postproc:134] Saving postproc queue

potestus
Getting the hang of things
Posts: 98
Joined: Tue May 10, 2011 7:30 pm

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by potestus » Sun Feb 28, 2021 11:29 am

Sab didn't restart an nothing for the actual timestamp. Started by sherpa. I've downloaded the update should I run it from that?

User avatar
OneCD
Ask me anything
Posts: 8972
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by OneCD » Sun Feb 28, 2021 11:40 am

I want to see what's in your /var/log/SABnzbd.log file. Please post it here.

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

potestus
Getting the hang of things
Posts: 98
Joined: Tue May 10, 2011 7:30 pm

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by potestus » Sun Feb 28, 2021 11:47 am

OneCD wrote:
Sun Feb 28, 2021 11:40 am
I want to see what's in your /var/log/SABnzbd.log file. Please post it here.
What is /var? I've had a good hunt around and can't see that directory?
/qpkg/SABnzbd/config/logs/SABnzbd.log is the only one I can see and that's what I posted.

potestus
Getting the hang of things
Posts: 98
Joined: Tue May 10, 2011 7:30 pm

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by potestus » Sun Feb 28, 2021 12:31 pm

[~] # cd/var/log -sh: cd/var/log: No such file or directory
[~] #

User avatar
OneCD
Ask me anything
Posts: 8972
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by OneCD » Sun Feb 28, 2021 12:54 pm

potestus wrote:
Sun Feb 28, 2021 12:31 pm
[~] # cd/var/log -sh: cd/var/log: No such file or directory
[~] #
You’re missing the required whitespace after the ‘cd’ command. Use this instead:

Code: Select all

cd /var/log

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

User avatar
GTunney
Been there, done that
Posts: 682
Joined: Tue Oct 14, 2014 4:16 pm

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by GTunney » Sun Feb 28, 2021 10:23 pm

OneCD wrote:
Sun Feb 28, 2021 3:45 am
GTunney wrote:
Sat Feb 27, 2021 5:14 pm
Is anybody having trouble connecting to sab lately over https?

For some reason my sab just gets stuck on loading over https, interface is still accessible over http.
Have you upgraded SAB to 3.2.0? viewtopic.php?f=133&t=159860

Does the issue still exist after upgrading?

Yes I'm already on 3.2.0. I think it may have started after upgrading to 3.2.0

I've managed to resolve, it looks like sab didn't have write access to the config/admin folder, after changing CHMOD for the admin folder it's now working fine and I can access over https. Not sure if the permissions were changed after the upgrade to 3.2.0?
Model: TS-653B 8GB
Disks: 3 x 4TB Western Digital WD40EFRX - RAID 5
Total Storage: 7.2TB
Applications: Plex MS | QCouchPotato | QSabnzbd+ | QSickrage | QHeadphones | HTPC Manager | Kodi v18.4 MySQL
Other Devices: Netgear D7000 AC1900 VDSL Router | FTTC - 80/20 | Netgear GS108 Gigabit Switch

User avatar
GTunney
Been there, done that
Posts: 682
Joined: Tue Oct 14, 2014 4:16 pm

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by GTunney » Mon Mar 01, 2021 2:39 am

GTunney wrote:
Sun Feb 28, 2021 10:23 pm
OneCD wrote:
Sun Feb 28, 2021 3:45 am
GTunney wrote:
Sat Feb 27, 2021 5:14 pm
Is anybody having trouble connecting to sab lately over https?

For some reason my sab just gets stuck on loading over https, interface is still accessible over http.
Have you upgraded SAB to 3.2.0? viewtopic.php?f=133&t=159860

Does the issue still exist after upgrading?

Yes I'm already on 3.2.0. I think it may have started after upgrading to 3.2.0

I've managed to resolve, it looks like sab didn't have write access to the config/admin folder, after changing CHMOD for the admin folder it's now working fine and I can access over https. Not sure if the permissions were changed after the upgrade to 3.2.0?
I tell a lie, it’s still doing it. Really don’t know why it keeps doing it and only for https
Model: TS-653B 8GB
Disks: 3 x 4TB Western Digital WD40EFRX - RAID 5
Total Storage: 7.2TB
Applications: Plex MS | QCouchPotato | QSabnzbd+ | QSickrage | QHeadphones | HTPC Manager | Kodi v18.4 MySQL
Other Devices: Netgear D7000 AC1900 VDSL Router | FTTC - 80/20 | Netgear GS108 Gigabit Switch

potestus
Getting the hang of things
Posts: 98
Joined: Tue May 10, 2011 7:30 pm

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by potestus » Mon Mar 01, 2021 4:31 pm

OneCD wrote:
Sun Feb 28, 2021 12:54 pm
potestus wrote:
Sun Feb 28, 2021 12:31 pm
[~] # cd/var/log -sh: cd/var/log: No such file or directory
[~] #
You’re missing the required whitespace after the ‘cd’ command. Use this instead:

Code: Select all

cd /var/log
OK that switched to the directory how do I see the log? That directory doesn't appear in file manager.

User avatar
OneCD
Ask me anything
Posts: 8972
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by OneCD » Mon Mar 01, 2021 4:34 pm

potestus wrote:
Mon Mar 01, 2021 4:31 pm
OK that switched to the directory how do I see the log?

Code: Select all

cat /var/log/SABnzbd.log

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

potestus
Getting the hang of things
Posts: 98
Joined: Tue May 10, 2011 7:30 pm

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by potestus » Mon Mar 01, 2021 4:41 pm

interfaces/Glitter/templates/static/stylesheets/colorschemes/Light.css
Please move or remove them before you merge.
Aborting
Updating e8d6eebb..16618b3a"
result: [1]
current git branch: master
file (/opt/bin/python3): exists
load UI ports from application: OK
start daemon: OK
file (/var/run/SABnzbd.pid): exists
daemon: IS active
daemon PID: 29400
daemon listening address: 0.0.0.0
check for UI port 8800 response: UI port responded after 0 seconds
HTTP port 8800: OK
update QPKG icon with UI ports: OK
>>>>>>>>>> datetime:'Sun Feb 28 04:39:02 GMT 2021',request:'stop',QPKG:'210128',app:'3.1.1' <<<<<<<<<<
daemon: IS active
daemon PID: 29400
stop daemon with SIGTERM: stopped OK in 2 seconds
daemon: NOT active
>>>>>>>>>> datetime:'Sun Feb 28 04:39:21 GMT 2021',request:'start',QPKG:'210128',app:'3.1.1' <<<<<<<<<<
daemon: NOT active
file (/opt/bin/git): exists
update 'SABnzbd' from remote repository: failed!
= ExecuteAndLog()
output: "HEAD is now at e8d6eebb Set version to 3.1.1
warning: Pulling without specifying how to reconcile divergent branches is
discouraged. You can squelch this message by running one of the following
commands sometime before your next pull:

git config pull.rebase false # merge (the default strategy)
git config pull.rebase true # rebase
git config pull.ff only # fast-forward only

You can replace "git config" with "git config --global" to set a default
preference for all repositories. You can also pass --rebase, --no-rebase,
or --ff-only on the command line to override the configured default per
invocation.

error: The following untracked working tree files would be overwritten by merge:
.github/funding.yml
.github/workflows/build_release.yml
.github/workflows/integration_testing.yml
builder/SABnzbd.spec
builder/make_dmg.py
builder/osx/entitlements.plist
builder/osx/image/nzbfile.icns
builder/osx/image/sabnzbd_new_bg.png
builder/osx/image/sabnzbd_new_bg.psd
builder/osx/image/sabnzbdplus.icns
builder/package.py
builder/requirements.txt
builder/win/NSIS_Installer.nsi
builder/win/nsis/Include/nsProcess.nsh
builder/win/nsis/Include/registerExtension.nsh
builder/win/nsis/Include/servicelib.nsh
builder/win/nsis/Plugins/liteFirewallW.dll
builder/win/nsis/Plugins/nsProcess.dll
interfaces/Glitter/templates/static/stylesheets/colorschemes/Auto.css
interfaces/Glitter/templates/static/stylesheets/colorschemes/Light.css
Please move or remove them before you merge.
Aborting
Updating e8d6eebb..16618b3a"
result: [1]
current git branch: master
file (/opt/bin/python3): exists
load UI ports from application: OK

User avatar
OneCD
Ask me anything
Posts: 8972
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by OneCD » Mon Mar 01, 2021 4:45 pm

potestus wrote:
Mon Mar 01, 2021 4:41 pm
interfaces/Glitter/templates/static/stylesheets/colorschemes/Light.css
Please move or remove them before you merge.
Aborting
OK, you have some local changes to the git clone of SAB. This is stopping the 'git pull' operation.

Please clean your SABnzbd installation with:

Code: Select all

/etc/init.d/sabnzbd3.sh clean
Your settings will be retained.

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

potestus
Getting the hang of things
Posts: 98
Joined: Tue May 10, 2011 7:30 pm

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by potestus » Mon Mar 01, 2021 5:13 pm

Many thanks the update has worked. Is there a way to create a share of these logs in the public space?

User avatar
OneCD
Ask me anything
Posts: 8972
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by OneCD » Mon Mar 01, 2021 5:18 pm

Yes, you might try creating a new shared folder then symlink the /var/log directory into it.

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage

potestus
Getting the hang of things
Posts: 98
Joined: Tue May 10, 2011 7:30 pm

Re: [QPKG] sherpa mini-package-manager (CLI)

Post by potestus » Mon Mar 01, 2021 6:01 pm

OneCD wrote:
Mon Mar 01, 2021 5:18 pm
Yes, you might try creating a new shared folder then symlink the /var/log directory into it.
Might need help with symlink.. I'm sure I had access to the root in the old days from the file station?

Post Reply

Return to “Community Apps”