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
Sab RC4 notifications tab in config #672
Comments
Is there any more information? Like an error? |
I don't have chrome. the error is the tab doesn't load, surely ? |
it doesn't work in safari (mac latest version, if relevant) either |
Is it a 404, 500 or just a timeout? |
same result using |
Did you set a fixed numerical IP in Config->General? |
Maybe I missed something. The problem only happens for the Config->Notify page? |
it's a docker container, 0.0.0.0 and 127.0.0.1 are not going to work the ip used is the ip of the host system running docker. the tab works in 1.0.3 but not in RC4 in an identical docker @shypike, yes only the notifications tab. |
@sparklyballs Right, then I misinterpreted the problem. |
sidenote, have you checked out our docker ? lol. |
@sparklyballs It's something that has been forever on my to-do list: have a good lock at Docker in general and SABnzbd's docker specifically :( |
we'll be more than happy to help, or you could link us as an install option ? some of the other containers we build, the original app authors do that. couchpotato for example. |
@sparklyballs That is a good suggestion. I'll talk to the webmaster about offering it as an install option. |
cool, i don't turn every other support issue into a "sell" , honest... |
I tried to reproduce it by downloading the src file and running it in with |
Looking at the code (https://github.com/sabnzbd/sabnzbd/blob/develop/sabnzbd/interface.py#L2851-L2892) I cannot see anything special about this page that would make it fail? Could you maybe try with any of the other older RC's? Does it fail from the first beta/RC of 1.1.0? |
It is also very strange that the browsers say 'Cannot connect', because if you request a nonsense address from SABnzbd, say: |
the loading is less than 2 seconds or so, a little longer than usual for a normal page, but not excessively long. it's weird it's the only tab that doesn't load. i tried this file https://github.com/sabnzbd/sabnzbd/releases/download/1.1.0Beta1/SABnzbd-1.1.0Beta1a-src.tar.gz with the same result as the RC4. |
I have no clue how this could happen.. No timeout and no redirect? It almost seems impossible.. |
this is the dockerfile of the baseimage used for our sab docker https://github.com/linuxserver/docker-baseimage-alpine-python/blob/master/Dockerfile if there's anything that you can see that may be missing.. |
I tried the 1.0.3 docker release. I cannot get it working: I see it starting up and listening to 0.0.0.0:8080, but I cannot get Firefox to connect to it at all. |
you have to use the ip of the host system and not 127.0.0.1 etc. |
That's what I do, but no response. I assume this is the actual IP and not the one listed by ifconfig for "docker0"? |
docker0 is a bridge usually (it varies from host to host) my ifconfig output docker0 Link encap:Ethernet HWaddr XXXXXXXX enp2s2 Link encap:Ethernet HWaddr XXXXXXXXX lo Link encap:Local Loopback in this instance i would use |
Yes, similar to mine. I picked the address equivalent to yours. |
not sure, have no experience with VMWARE and little with windows, lol. but i shouldn't imagine so, that output is from a VM on unraid as the host, my dev server so to speak. |
if you ssh in to the VM , use the same ip you use for that... |
kk, i was afk yesterday (50th birthday) and my head is still a little fuzzy today, lol at least know it wasn't my imagination there is something going on with that tab. |
We don't understand what's going on. It looks like the Notify template runs into some limit. If we remove one section (any), it works. Why this only happens in a docker, no idea. |
Whenever you call up the Notifications page, SABnzbd simply crashes (or stops or is terminated). The Docker service starts it again immediately. What kind of crash it is, I don't know. There is absolutely zero logging available. |
on a test version local to me i moved the startup of sab to an init routine in the dockerfile, the services files in our dockers restart crashed apps. about the only extra infomation i can get is that it is a segmentation fault. as for the docker specifics you asked about, not sure. |
2016-09-04 11:46:21.011311500 /var/run/s6/etc/cont-init.d/30-startup: line 5: 205 Segmentation fault (core dumped) s6-setuidgid abc python /app/sabnzbd/SABnzbd.py -l 2 -f /config/sabnzbd.ini -b 0 -s 0.0.0.0:8080 |
Looks more like a Docker/python problem than a Sabnzbd problem? |
@Safihre looks like you could be right, just spun up an ubuntu xenial version of the docker running sabnzbd RC4 from the ppa and the notifications page is loading. |
so there is something in the alpine version of the docker. |
noticed something strange... |
each time you check off the box its trying to save.. if you told sab to change apikey but havent restarted.. that might explain the session key not being right. just tried 1.1.0RC4 on windows and ubuntu.. no problems here. you can load up firebug and see what is being passed and see whats going on.. the only thing on the config page that I cant really test is the whole ncenter part.. but thats osx related. speaking of, if you want to debug some.. navigate to where sab's installed, go modify the file |
@thezoggy |
yep.. so its due to too many variables it has to process... was able to prove this.. created config_notify.tmpl with only page fails to load:
I delete one line.. works
added two lines back with just text, no variables.. still works. so deff the issue is 782+ variables for it to deal with... changing |
further to @thezoggy's message... built a version without installing cherrypy, issue persists. |
CherryPy is not a factor, only Cheetah is. |
Is it possible to use another version of Cheetah on your Docker? |
i could build from source i suppose, do you mean version number or alternative cheetah author ? |
on another docker image there is issues with alpine: wonder if this is also causing this issue... |
@thezoggy that's a red herring with kodi, since that particular problem is also happening with an ubuntu based kodi-headless docker. |
@sparklyballs |
i compiled python from scratch using the offiicial python alpine docker recipe and adding in the requirements for sab. the notify issue remains with that, but interestingly the same issue then happens on the switches tab of the config section, which doesn't happen in the current linuxserver.io python base. |
@sparklyballs Like thezoggy said, it seems to be connected to the amount of variables Cheetah has to substitute. So it must be that Cheetah crosses some internal limit inside Python. I have no clue what that limit would be. Incidently: Cheetah uses a file called |
i see the warning, but the notifications tab is still not loading after removing the file. |
I give up. |
yeah, i don't get it either. With various different compiles of python, different sections of the configuration tabs fail with the same error, again still on alpine. I have a ubuntu xenial based image in a branch of my personal repo, i've been trying to put off using it, it's 100MB+ bigger than the alpine version, but it's looking increasingly like there may not be any option but to use it. |
Well, it's really an Alpine issue. I just made a VMWare image of Alpine 3.4.3 64bit and it gives a segfault as soon as you open Notifications in SABnzbd. |
I've made a PR from my personal repository branch using xenial to the linuxserver image. Thanks for your assistance. |
@sparklyballs You're welcome. I really appreciate your effort to make SABnzbd available as a Docker image. |
Hi i'm part of linuxserver.io and author of the sabnzbd docker we make.
https://github.com/linuxserver
https://github.com/linuxserver/docker-sabnzbd
Testing out RC4 in my personal repo and the notifications tab in settings gives
Unable to connect
(in firefox at least)
same container but using 1.0.3 and the notifications tab loads.
The text was updated successfully, but these errors were encountered: