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

This is the best place for community developers to publish their genius work. Your Apps enrich the QNAP Turbo NAS.
Post Reply
potestus
Easy as a breeze
Posts: 317
Joined: Tue May 10, 2011 7:30 pm

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

Post by potestus »

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
Easy as a breeze
Posts: 317
Joined: Tue May 10, 2011 7:30 pm

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

Post by potestus »

[~] # cd/var/log -sh: cd/var/log: No such file or directory
[~] #
User avatar
OneCD
Guru
Posts: 12039
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

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

Post by OneCD »

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: 737
Joined: Tue Oct 14, 2014 4:16 pm

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

Post by GTunney »

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 | Watcher3 | QSabnzbd+ | QSickrage | Home Assistant | 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: 737
Joined: Tue Oct 14, 2014 4:16 pm

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

Post by GTunney »

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 | Watcher3 | QSabnzbd+ | QSickrage | Home Assistant | Kodi v18.4 MySQL
Other Devices: Netgear D7000 AC1900 VDSL Router | FTTC - 80/20 | Netgear GS108 Gigabit Switch
potestus
Easy as a breeze
Posts: 317
Joined: Tue May 10, 2011 7:30 pm

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

Post by potestus »

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
Guru
Posts: 12039
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

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

Post by OneCD »

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
Easy as a breeze
Posts: 317
Joined: Tue May 10, 2011 7:30 pm

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

Post by potestus »

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
Guru
Posts: 12039
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

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

Post by OneCD »

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
Easy as a breeze
Posts: 317
Joined: Tue May 10, 2011 7:30 pm

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

Post by potestus »

Many thanks the update has worked. Is there a way to create a share of these logs in the public space?
User avatar
OneCD
Guru
Posts: 12039
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

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

Post by OneCD »

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

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
potestus
Easy as a breeze
Posts: 317
Joined: Tue May 10, 2011 7:30 pm

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

Post by potestus »

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?
User avatar
OneCD
Guru
Posts: 12039
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

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

Post by OneCD »

potestus wrote: Mon Mar 01, 2021 6:01 pm Might need help with symlink.. I'm sure I had access to the root in the old days from the file station?
Something for you to research. ;)

No, File Station never had access to the root filesystem.

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

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

Post by GTunney »

Not sure if this is something that might help with my SSL issue, just saw this in the logs from today.

Code: Select all

2021-03-01 16:07:01,625::INFO::[notifier:122] Sending notification: Error - [01/Mar/2021:16:07:01] ENGINE Error in HTTPServer.serve
Traceback (most recent call last):
  File "/opt/lib/python3.9/site-packages/cheroot/server.py", line 1810, in serve
    self._connections.run(self.expiration_interval)
  File "/opt/lib/python3.9/site-packages/cheroot/connections.py", line 201, in run
    self._run(expiration_interval)
  File "/opt/lib/python3.9/site-packages/cheroot/connections.py", line 218, in _run
    new_conn = self._from_server_socket(self.server.socket)
  File "/opt/lib/python3.9/site-packages/cheroot/connections.py", line 271, in _from_server_socket
    s, ssl_env = self.server.ssl_adapter.wrap(s)
  File "/opt/lib/python3.9/site-packages/cheroot/ssl/builtin.py", line 277, in wrap
    s = self.context.wrap_socket(
  File "/opt/lib/python3.9/ssl.py", line 500, in wrap_socket
  File "/opt/lib/python3.9/ssl.py", line 1040, in _create
  File "/opt/lib/python3.9/ssl.py", line 1309, in do_handshake
ssl.SSLError: [SSL: BAD_KEY_SHARE] bad key share (_ssl.c:1122)
 (type=error, job_cat=None)
2021-03-01 16:07:01,625::ERROR::[_cplogging:213] [01/Mar/2021:16:07:01] ENGINE Error in HTTPServer.serve
Traceback (most recent call last):
  File "/opt/lib/python3.9/site-packages/cheroot/server.py", line 1810, in serve
    self._connections.run(self.expiration_interval)
  File "/opt/lib/python3.9/site-packages/cheroot/connections.py", line 201, in run
    self._run(expiration_interval)
  File "/opt/lib/python3.9/site-packages/cheroot/connections.py", line 218, in _run
    new_conn = self._from_server_socket(self.server.socket)
  File "/opt/lib/python3.9/site-packages/cheroot/connections.py", line 271, in _from_server_socket
    s, ssl_env = self.server.ssl_adapter.wrap(s)
  File "/opt/lib/python3.9/site-packages/cheroot/ssl/builtin.py", line 277, in wrap
    s = self.context.wrap_socket(
  File "/opt/lib/python3.9/ssl.py", line 500, in wrap_socket
  File "/opt/lib/python3.9/ssl.py", line 1040, in _create
  File "/opt/lib/python3.9/ssl.py", line 1309, in do_handshake
ssl.SSLError: [SSL: BAD_KEY_SHARE] bad key share (_ssl.c:1122)
Model: TS-653B 8GB
Disks: 3 x 4TB Western Digital WD40EFRX - RAID 5
Total Storage: 7.2TB
Applications: Plex MS | Watcher3 | QSabnzbd+ | QSickrage | Home Assistant | Kodi v18.4 MySQL
Other Devices: Netgear D7000 AC1900 VDSL Router | FTTC - 80/20 | Netgear GS108 Gigabit Switch
User avatar
OneCD
Guru
Posts: 12039
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

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

Post by OneCD »

GTunney wrote: Tue Mar 02, 2021 2:47 am Not sure if this is something that might help with my SSL issue, just saw this in the logs from today.
Great! :)

Can you please add this information to your topic on the SABnzbd forum?

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
Post Reply

Return to “Community Apps”