clinton-hall / test

a test repository to verify working git clients
0 stars 1 forks source link

Contact for SABnzbd QNAP package #1

Closed Safihre closed 4 months ago

Safihre commented 8 years ago

This issue is not intended for installer problems, ask those in the QNAP forums!

Hey Clinton! Since I am not sure if your email address is active, I will try it this way! I am a dev for SABnzbd and on our forums and Reddit people ask about problems with the QNAP package you made for SAB, especially problems after the 1.0.0 upgrade. But we have no clue how this package works or what goes wrong.. Where can we send them so you can help them?

Thanks very much and for your work on the packages! Saf

clinton-hall commented 8 years ago

Hi Saf,

Yes, This is on my todo list. I recently fixed the SABnzbd app for Asustor, and QNAP will follow soon.

Basically, I now list git as a dependency and then use git to pull the latest version.

I'll try and post a new qpkg shortly.

Safihre commented 8 years ago

Great :+1:

clinton-hall commented 8 years ago

@Safihre https://www.dropbox.com/s/az7fxsqtnjd5zgn/SABnzbdplus_150424.qpkg

this version should allow QNAP users to keep up-to-date.

Safihre commented 8 years ago

Thanks! Have send it to some of our users that asked for it. You're still testing it and will later update it on the QNAP repository for other users to use?

clinton-hall commented 8 years ago

Still in testing... yes, just waiting for feedback to verify if it works for all.

I still have issues with different python qpkgs on different systems, somewhat waiting for a clear direction on where this needs to go.

As far as QNAP repository... to be honest this hasn't been well maintained or updated for a while. Most users tend to get from forum, and then there is a second community forum (in addition to the forums in other languages). A while back QNAP did update their repository with my SABnzbd and NZBGet packages... I'll contact them to see if this can be updated again... but I do want to figure out how to handle the python package dependency first.

Safihre commented 8 years ago

Thanks for the work! 2 users are already happy, but they might happen to be on the right python version already.

Safihre commented 8 years ago

Quick other question: will this version also install and compile the yEnc package? On those lower power devices sabnzbd needs all the help it can get :P

clinton-hall commented 8 years ago

I just checked, and when I export PYTHON_PATH I do include yenc.py and _yenc.so (In addition to a few other modules) so I believe this should be good. This is done for all 3 (main supported) platforms

thomas-rabiller commented 8 years ago

Hi Clinton, thanks a lot for these packages that should make the sabnzb/sickrage setup a lot easier. I am trying to use them but the dependency on git is causing problems because the package file for ARM published on QNAP community site is corrupt so the SABNZB install fails too because of missing dependency. Do you have a way of republishing it?

Thomas

clinton-hall commented 8 years ago

for x86 https://www.dropbox.com/s/fiay536scdscew7/git_2.1.0_x86.qpkg for arm https://www.dropbox.com/s/li00l16znp0zcue/git_2.1.0_arm.qpkg for arm dual core (x31 models) https://www.dropbox.com/s/aixw0rbzk3skm32/git_2.1.1_x31.qpkg

thomas-rabiller commented 8 years ago

Many thanks for these links, I confirm Git and SABnzbd installed correctly on my 219P.

But installing the other packages (SIckrage, couchpotato and headphones), I had the same issue and it turns out this is due to QNAP giving a direct link to dropbox. For those interested, here are the actual links to download:

https://www.dropbox.com/s/saxobnwcbziqtnh/SickBeard-TVRage_141223.qpkg https://www.dropbox.com/s/t6uxwrk0c42buks/Headphones_141108.qpkg https://www.dropbox.com/s/oemepz3q2zgbipm/SickBeard_141207.qpkg https://www.dropbox.com/s/q1zgst6tstoonls/CouchPotato2_141108.qpkg

Hikarinoko commented 8 years ago

Hi Clinton,

I'm having troubles to install SABnzbd on my QNAP NAS.

I went trough the qnap forum topic but could find any help.

I'm stuck because of an importerror on bz2, that i simply don't understand.

Here is where i am : I installed Python2.7.3 (Store) and Git 2.1.1 : Fine I downloaded the qpkg and used manual install : Fine I used SSH to get trough SABnzbd directory and tried to launch sabnzbd.sh script and got the following output : [/share/CACHEDEV2_DATA/.qpkg/SABnzbdplus] # ./sabnzbd.sh start armv7l Performing SABnzbdplus prestartup checks at Wed May 11 11:55:55 CEST 2016... Checking for git... Found! HEAD is now at c50957d V10.14 ready for merge Already up-to-date. Checking environment Checking if all configured directories exist....... Done Creating Symbolic links for required utils. Done Done Already up-to-date. Starting SABnzbdplusTraceback (most recent call last): File "SABnzbd.py", line 85, in <module> import sabnzbd File "/share/CACHEDEV2_DATA/.qpkg/SABnzbdplus/sabnzbd/sabnzbd/__init__.py", line 78, in <module> from sabnzbd.nzbqueue import NzbQueue File "/share/CACHEDEV2_DATA/.qpkg/SABnzbdplus/sabnzbd/sabnzbd/nzbqueue.py", line 43, in <module> import sabnzbd.downloader File "/share/CACHEDEV2_DATA/.qpkg/SABnzbdplus/sabnzbd/sabnzbd/downloader.py", line 42, in <module> import sabnzbd.scheduler File "/share/CACHEDEV2_DATA/.qpkg/SABnzbdplus/sabnzbd/sabnzbd/scheduler.py", line 29, in <module> import sabnzbd.dirscanner File "/share/CACHEDEV2_DATA/.qpkg/SABnzbdplus/sabnzbd/sabnzbd/dirscanner.py", line 27, in <module> import bz2 ImportError: No module named bz2 Done (Wed May 11 11:56:16 CEST 2016)

Could you please help, i'm really clueless about what to do.

clinton-hall commented 8 years ago

Try installing QPython or any available (newer) Python qpkg and test.

Sent from my iPhone

On 11 May 2016, at 10:23 PM, Hikarinoko notifications@github.com wrote:

Hi Clinton,

I'm having troubles to install SABnzbd on my QNAP NAS.

I went trough the qnap forum topic but could find any help.

I'm stuck because of an importerror on bz2, that i simply don't understand.

Here is where i am : I installed Python2.7.3 (Store) and Git 2.1.1 : Fine I downloaded the qpkg and used manual install : Fine I used SSH to get trough SABnzbd directory and tried to launch sabnzbd.sh script and got the following output : [/share/CACHEDEV2_DATA/.qpkg/SABnzbdplus] # ./sabnzbd.sh start armv7l Performing SABnzbdplus prestartup checks at Wed May 11 11:55:55 CEST 2016... Checking for git... Found! HEAD is now at c50957d V10.14 ready for merge Already up-to-date. Checking environment Checking if all configured directories exist....... Done Creating Symbolic links for required utils. Done Done Already up-to-date. Starting SABnzbdplusTraceback (most recent call last): File "SABnzbd.py", line 85, in import sabnzbd File "/share/CACHEDEV2_DATA/.qpkg/SABnzbdplus/sabnzbd/sabnzbd/init.py", line 78, in from sabnzbd.nzbqueue import NzbQueue File "/share/CACHEDEV2_DATA/.qpkg/SABnzbdplus/sabnzbd/sabnzbd/nzbqueue.py", line 43, in import sabnzbd.downloader File "/share/CACHEDEV2_DATA/.qpkg/SABnzbdplus/sabnzbd/sabnzbd/downloader.py", line 42, in import sabnzbd.scheduler File "/share/CACHEDEV2_DATA/.qpkg/SABnzbdplus/sabnzbd/sabnzbd/scheduler.py", line 29, in import sabnzbd.dirscanner File "/share/CACHEDEV2_DATA/.qpkg/SABnzbdplus/sabnzbd/sabnzbd/dirscanner.py", line 27, in import bz2 ImportError: No module named bz2 Done (Wed May 11 11:56:16 CEST 2016)

Could you please help, i'm really clueless about what to do.

— You are receiving this because you commented. Reply to this email directly or view it on GitHub

Hikarinoko commented 8 years ago

Hi ! Thanks for the feedback, but i must admit i gave up and ended installing NZBGet instead, that just works fine. Regards,

Date: Wed, 11 May 2016 13:53:22 -0700 From: notifications@github.com To: test@noreply.github.com CC: vianneyssj4@hotmail.com; comment@noreply.github.com Subject: Re: [clinton-hall/test] Contact for SABnzbd QNAP package (#1)

Try installing QPython or any available (newer) Python qpkg and test.

Sent from my iPhone

On 11 May 2016, at 10:23 PM, Hikarinoko notifications@github.com wrote:

Hi Clinton,

I'm having troubles to install SABnzbd on my QNAP NAS.

I went trough the qnap forum topic but could find any help.

I'm stuck because of an importerror on bz2, that i simply don't understand.

Here is where i am :

I installed Python2.7.3 (Store) and Git 2.1.1 : Fine

I downloaded the qpkg and used manual install : Fine

I used SSH to get trough SABnzbd directory and tried to launch sabnzbd.sh script and got the following output :

[/share/CACHEDEV2_DATA/.qpkg/SABnzbdplus] # ./sabnzbd.sh start

armv7l

Performing SABnzbdplus prestartup checks at Wed May 11 11:55:55 CEST 2016...

Checking for git... Found!

HEAD is now at c50957d V10.14 ready for merge

Already up-to-date.

Checking environment

Checking if all configured directories exist....... Done

Creating Symbolic links for required utils. Done

Done

Already up-to-date.

Starting SABnzbdplusTraceback (most recent call last):

File "SABnzbd.py", line 85, in

import sabnzbd

File "/share/CACHEDEV2_DATA/.qpkg/SABnzbdplus/sabnzbd/sabnzbd/init.py", line 78, in

from sabnzbd.nzbqueue import NzbQueue

File "/share/CACHEDEV2_DATA/.qpkg/SABnzbdplus/sabnzbd/sabnzbd/nzbqueue.py", line 43, in

import sabnzbd.downloader

File "/share/CACHEDEV2_DATA/.qpkg/SABnzbdplus/sabnzbd/sabnzbd/downloader.py", line 42, in

import sabnzbd.scheduler

File "/share/CACHEDEV2_DATA/.qpkg/SABnzbdplus/sabnzbd/sabnzbd/scheduler.py", line 29, in

import sabnzbd.dirscanner

File "/share/CACHEDEV2_DATA/.qpkg/SABnzbdplus/sabnzbd/sabnzbd/dirscanner.py", line 27, in

import bz2

ImportError: No module named bz2

Done (Wed May 11 11:56:16 CEST 2016)

Could you please help, i'm really clueless about what to do.

You are receiving this because you commented.

Reply to this email directly or view it on GitHub

— You are receiving this because you commented. Reply to this email directly or view it on GitHub

Safihre commented 8 years ago

@clinton-hall, Hi me again! So by default, will your packages pull from Git? I made a faulty commit just a few days ago and suddenly we had Qnap users with problems because they were on the develop branch. I know we have been bad with updating the Master branch, but we can make sure to update that one every time a new stable release comes out so you can pull from that. If that helps? We didn't know packages were pulling from git develop.

clinton-hall commented 8 years ago

@Safihre The script just does git clone https://github.com/sabnzbd/sabnzbd.git so if your "default" branch is develop, this is what the qpkg will download.

I can add a git checkout master immediately after the clone to put this onto master branch on first install (but won't switch branches if a user has manually switched this to develop etc.)

Safihre commented 8 years ago

Adding the git checkout master would be great. Our develop branch is really only for development and was assumed to be only used by experienced users. We will make sure the master branch gets updated with every release!

Thank you again for making these wrappers :)

clinton-hall commented 8 years ago

I updated the qpkg. https://www.dropbox.com/s/jms3ma8e4c0c1jh/SABnzbdplus_160522.qpkg

Hope this works.

Just as a note... hon the SABnzbd github site, if you go to settings, Branches check to see what you have set as the "default" branch... when I look it still appears that "develop" is the default branch, not master...

Safihre commented 8 years ago

This issue is not intended for installer problems, ask those in the QNAP forums!

Yes true, that was a choice by the others to keep develop the default. Since master wasn't changed for about a year (in between 0.7.20 and 1.0.x). Will discuss this with the others!

clinton-hall commented 8 years ago

All good. Obviously at my end I usually do a clone in the package as I expect the devastating dictate what branch they want users to pull by default...

Anyway, hopefully this is working over at QNAP now :)

skpnsf commented 8 years ago

Hello, I've been following this tread for a couple months. A bit of a newbie here, so not sure if I should update to version 1.0 . I'm x86 QNAP SAB version 0.7.2 with git version 2.1. and Python version 2.7.

Safihre commented 8 years ago

@clinton-hall We are updating our Wiki, where should we link on our Install on NAS page for the QNAP package?

Safihre commented 8 years ago

Should we just link here then in the hopes you will add newer download-links when they happen? :grin:

robc145 commented 8 years ago

Hi there, another Newbie here. I have a QNAP TS-453mini and cannot for some reason install Git 2.1 (have managed to install Python) - have tried a number of qpkg's and they just seem to fail. I did get QGit 2.8.1 installed, but that seems incompatible with the SABnzbd QPKG, which just keeps telling me I need 'Git'.

When I run 'git --version' in SSH it returns "git version 2.8.1".

Any suggestions welcome please??

clinton-hall commented 8 years ago

@Safihre Sorry, I meant to post the link but got distracted...

This is the link that I am keeping up-to-date with current qpkg builds. http://forum.qnap.com/viewtopic.php?f=133&t=86644

robc145 commented 8 years ago

Hi Clinton, is the SABnzbd qpkg referencing only version Git 2.1?

clinton-hall commented 8 years ago

Yes, this was based on my git app to avoide dependence on outdated optware. I have not had a chance to update my git app.

wbmk78 commented 8 years ago

Hi, i just did a fresh install of the latest version mentioned in the QNAP forum, but i also get the bz2 error.. Any idea's?

Performing SABnzbdplus prestartup checks at Tue Jun 21 20:35:29 CEST 2016...
 Checking for git...  Found!
HEAD is now at 2d77051 V10.15 ready for merge.
Already up-to-date.
 Checking environment
  Checking if all configured directories exist....... Done
  Creating Symbolic links for required utils. Done
Done
Already up-to-date.
Starting SABnzbdplusTraceback (most recent call last):
  File "SABnzbd.py", line 85, in <module>
    import sabnzbd
  File "/share/CACHEDEV1_DATA/.qpkg/SABnzbdplus/sabnzbd/sabnzbd/__init__.py", line 78, in <module>
    from sabnzbd.nzbqueue import NzbQueue
  File "/share/CACHEDEV1_DATA/.qpkg/SABnzbdplus/sabnzbd/sabnzbd/nzbqueue.py", line 43, in <module>
    import sabnzbd.downloader
  File "/share/CACHEDEV1_DATA/.qpkg/SABnzbdplus/sabnzbd/sabnzbd/downloader.py", line 42, in <module>
    import sabnzbd.scheduler
  File "/share/CACHEDEV1_DATA/.qpkg/SABnzbdplus/sabnzbd/sabnzbd/scheduler.py", line 29, in <module>
    import sabnzbd.dirscanner
  File "/share/CACHEDEV1_DATA/.qpkg/SABnzbdplus/sabnzbd/sabnzbd/dirscanner.py", line 27, in <module>
    import bz2
ImportError: No module named bz2
 Done (Tue Jun 21 20:35:49 CEST 2016)
clinton-hall commented 8 years ago

This is due to one of the Python qpkg a not having needed modules. Have you tried the QPython qpkg done by QNAP Stephanie?

wbmk78 commented 8 years ago

This one? http://forum.qnap.com/viewtopic.php?f=320&t=109899

I will give it a go.. Thanx!

-edit- Allas.. i am on a ARM system (TS-431+)... This QPython is only for X86

Safihre commented 8 years ago

@clinton-hall Since the QNAP forum requires an account, we also listed a link to this issue (specifically the comment above with the latest link) on our Wiki: https://sabnzbd.org/wiki/installation/install-nas

itsallover commented 8 years ago

Hi @clinton-hall, I am trying to work out how to install sabnzbd on my QNAP TS-419P+ (software version 4.2.1), but being a complete beginner and not knowing what I am doing, I was hoping to get some help for an expert. While attempting to install this, I got the following error (SABnzbdplus 141108 installation failed. The following QPKG must be installed and enabled: git.) Following some of these threads, I then tried to install GIT, but i keep getting an error during installation, and nothing shows up in the logs. I am lost and am not sure what i can do to install GIT on my QNAP. Is there somewhere else that i can see the logs?

Safihre commented 8 years ago

@itsallover I think for support you should be at the QNAP forum, not here.

itsallover commented 8 years ago

Hi @Safihre, thanks for pointing that out. honestly, I wasn't thinking when I posted here so I apologise for "hi-jacking" your thread.

mechanimal82 commented 8 years ago

Hi @clinton-hall, apologies for hijacking this thread however it appears yEnc is not working in your package. Although the references are there in the Sab config it's showing as not available. There is currently a thread in the QNAP forum here: https://forum.qnap.com/viewtopic.php?f=133&t=123940&p=556229&hilit=qsabnzbd#p556229

Any chance you could take a look please?

Sorry again and thanks!

Safihre commented 7 years ago

@clinton-hall, in our Develop branch we now use Python's build in certificate validation to verify Newsserver certificates. But a user reported that Newsservers with valid certificate (checked by us on desktop) still fail. Most probable cause would be outdated certificate storage on the device. Is there a way to update those in the package?

clinton-hall commented 7 years ago

is the outdated certificate storage on the device part of the python package, or is this a more "universal" function?

In either case this is probably external to my qpkg, but I could try and include an updated version.

What format does the certificate storage take and is it possible to force the location that is checked/used?

Safihre commented 7 years ago

The QNAP distro (what is it based on?) should come with pre-installed certificates from OpenSSL, but I guess Python/SSL can't find them. I found this list on the Python-bug page, could you see if on QNAP the certificates are available in any of these and the user under which SABnzbd is run has access to it?

cert_paths = [
    # Debian, Ubuntu, Arch, SuSE
    # NetBSD (security/mozilla-rootcerts)
    "/etc/ssl/certs/",
    # Debian, Ubuntu, Arch: maintained by update-ca-certificates
    "/etc/ssl/certs/ca-certificates.crt",
    # Red Hat 5+, Fedora, Centos
    "/etc/pki/tls/certs/ca-bundle.crt",
    # Red Hat 4
    "/usr/share/ssl/certs/ca-bundle.crt",
    # FreeBSD (security/ca-root-nss package)
    "/usr/local/share/certs/ca-root-nss.crt",
    # FreeBSD (deprecated security/ca-root package, removed 2008)
    "/usr/local/share/certs/ca-root.crt",
    # FreeBSD (optional symlink)
    # OpenBSD
    "/etc/ssl/cert.pem",
    # Mac OS X
    "/System/Library/OpenSSL/certs/cert.pem",
    ]
clinton-hall commented 7 years ago
[/etc/ssl/certs] # ls
myhost.crt    myrootca.crt

None of the others exist.

TooUnCool commented 7 years ago

I have an issue whereby sonarr can't access sabnzbd, coming back with an "Unknown version : develop" error. I am using the 160522 version from the 'official' download link. I tried downgrading to 150424 with the same issue.

Anyone got any ideas?

Safihre commented 7 years ago

This is an issue with sonarr that is fixed in their latest release: https://forums.sonarr.tv/t/adding-sabnzbd-download-client-failed-qsonarr/12278/2

Please use the QNAP forums for support... Not here!

jbuz commented 7 years ago

Hi @clinton-hall, had continual trouble accessing the sabnzb webgui via 8800 - I've reverted back to an older version for the time being, which seems to work - but it appears that the webgui via 8800 problem is common (a lot of discussion but not a specific answer anywhere). Any comments on a particular fix or method of fixing?

cjt20 commented 7 years ago

Hi. I've just bought a QNAP TS-251+ and installed Python 2.7.3, GIT 2.1 and SABnzbd+ build 160522. I too can't access the web interface via 8800. @jbuz can you tell me which older version you are using? I tried 141108 but that has the same problem for me.

dennuzz commented 7 years ago

hi @wbmk78 @clinton-hall ,

Did one of you ever find a solution for the "ImportError: No module named bz2" error? I would really like to use Sabnzbd but cannot. I have a TS-131p if this matters, also installed Python 2.7.3 from the store. I've used Sabnzbd package 160522

Thanks a lot in advance!

crimeac commented 7 years ago

hi @all Hi Clinton-Hall

first sorry for my bad english

i hope i get some help. i tried many hours to get sabnzb working on qnap ts 228. Installation is no Problem. when i start it. the browser cant reach him.

her is my log file.

Performing SABnzbdplus prestartup checks at Thu Dec 1 22:02:01 CET 2016... Checking for git... Found! /etc/init.d/sabnzbd.sh: line 50: /Apps/bin/git: cannot execute binary file /etc/init.d/sabnzbd.sh: line 50: /Apps/bin/git: cannot execute binary file Could not git clone git://github.com/clinton-hall/nzbToMedia.git /etc/init.d/sabnzbd.sh: line 56: /Apps/bin/git: cannot execute binary file /etc/init.d/sabnzbd.sh: line 57: /Apps/bin/git: cannot execute binary file Checking environment Checking if all configured directories exist....... Done Creating Symbolic links for required utils. Done Done /etc/init.d/sabnzbd.sh: line 39: /Apps/bin/git: cannot execute binary file /etc/init.d/sabnzbd.sh: line 39: /Apps/bin/git: cannot execute binary file /etc/init.d/sabnzbd.sh: line 40: /Apps/bin/git: cannot execute binary file /etc/init.d/sabnzbd.sh: line 42: cd: /share/CACHEDEV1_DATA/.qpkg/SABnzbdplus/sabnzbd: No such file or directory /etc/init.d/sabnzbd.sh: line 43: /Apps/bin/git: cannot execute binary file Starting SABnzbdplus/etc/init.d/sabnzbd.sh: line 209: cd: /share/CACHEDEV1_DATA/.qpkg/SABnzbdplus/sabnzbd: No such file or directory /usr/bin/python2.7: can't open file 'SABnzbd.py': [Errno 2] No such file or directory Done (Thu Dec 1 22:02:19 CET 2016)

clinton-hall commented 7 years ago

Please install my git .qpkg and enable this.

crimeac commented 7 years ago

@ clinton,,

Thx but where can i fid the right on..i installled different and nothing change.

clinton-hall commented 7 years ago

https://forum.qnap.com/viewtopic.php?f=133&t=86644

This has a link to my git qpkg under the dependencies section.

crimeac commented 7 years ago

Thx ,, i tried the link fom you..but nothing change..cant install the minimm wrapper..mustt install 90mb x86 ..but the same problem .nas ws reset ..i installes pyton 2.7.3..any idee..or should i better change the nas.

I installed all over the appcenter und they are on

crimeac commented 7 years ago

Last try.. have i to use a special command ..i installed it and then it appears onthe menu