3.0 Alpha 1 Ubuntu 18.04 LTS: zombie and a child of the sabnzb process.

Questions and bug reports for Beta releases should be posted here.
Forum rules
Help us help you:
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
granbebe
Newbie
Newbie
Posts: 2
Joined: May 1st, 2020, 2:16 am

3.0 Alpha 1 Ubuntu 18.04 LTS: zombie and a child of the sabnzb process.

Post by granbebe »

Hello,

I'm using Sabnzbplus on a Ubuntu 18.04.4 LTS 64bits server.
I get updates from jcfp ppa.

I have upgraded to le 3.0 Alpha 1 recently and now I got a Zombie process created by sabnzb.
nicolas@Coruscant:~$ ps aux | grep -E 'sabnzb|defunct'
nicolas 6921 0.2 1.0 1995720 82496 ? Sl 09:06 0:02 /usr/bin/python3 -OO /usr/bin/sabnzbdplus --daemon --pidfile /var/run/sabnzbdplus/pid --server 127.0.0.1
nicolas 6938 0.0 0.0 0 0 ? Z 09:06 0:00 [sh] <defunct>
nicolas 13656 0.0 0.0 15660 2792 pts/0 S+ 09:23 0:00 grep --color=auto -E sabnzb|defunct
nicolas@Coruscant:~$ pstree -p -s 6938
systemd(1)───python3(6921)───sh(6938)
nicolas@Coruscant:~$
As you can see, the process 6938 is a zombie and is a child of the sabnzb process.
I use systemd to start sabnzb.
Currently sabnzb is not doing anything. In fact I just restarted it and the zombie pops up at sabnzb start without any noticeable delay.

There is no error in the journal logs nor in the sabnzb logs.
Can I provide you with more information ?

Thanks in advance,
User avatar
jcfp
Release Testers
Release Testers
Posts: 1004
Joined: February 7th, 2008, 12:45 pm

Re: 3.0 Alpha 1 Ubuntu 18.04 LTS: zombie and a child of the sabnzb process.

Post by jcfp »

I suspect this is one of the cases where sab doesn't close file/process handles. Looking at recent github issues and commits, Sanderjo is on a mission to hunt these down.
User avatar
safihre
Administrator
Administrator
Posts: 5523
Joined: April 30th, 2015, 7:35 am
Contact:

Re: 3.0 Alpha 1 Ubuntu 18.04 LTS: zombie and a child of the sabnzb process.

Post by safihre »

We discovered the -X dev mode of Python to alert us of those errors :)
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
safihre
Administrator
Administrator
Posts: 5523
Joined: April 30th, 2015, 7:35 am
Contact:

Re: 3.0 Alpha 1 Ubuntu 18.04 LTS: zombie and a child of the sabnzb process.

Post by safihre »

@jcfp: could it be that I maybe broke the deamon mode? I did make some changes.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
jcfp
Release Testers
Release Testers
Posts: 1004
Joined: February 7th, 2008, 12:45 pm

Re: 3.0 Alpha 1 Ubuntu 18.04 LTS: zombie and a child of the sabnzb process.

Post by jcfp »

As far as I can tell every sab function continues to work just fine, daemon mode included. There's only the possibility of a (probably minor) resource leak until the sab parent process eventually exits and that zombie process disappears with it.
User avatar
safihre
Administrator
Administrator
Posts: 5523
Joined: April 30th, 2015, 7:35 am
Contact:

Re: 3.0 Alpha 1 Ubuntu 18.04 LTS: zombie and a child of the sabnzb process.

Post by safihre »

Good thing we have been on top of these things now :)
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
granbebe
Newbie
Newbie
Posts: 2
Joined: May 1st, 2020, 2:16 am

Re: 3.0 Alpha 1 Ubuntu 18.04 LTS: zombie and a child of the sabnzb process.

Post by granbebe »

Hi,
I want to let you know that it seems the zombie process is no longer an issue.
For an unknown reason, there is no more zombie on my system for a few days now.
What has changed is just the system's updates done, via apt. I did not check if there was an update on python3 in it.

Anyway, thanks for the info you provide and the work done.

On another subject, I just found out that since 3.0.0Alpha I do not receive email from sabnzb.
The test button says it's OK, but nothing show on my local postifx server. I will try to find out more and when I have more info on that I will get back to you

I found it.

There is an issue in /usr/share/sabnzbdplus/sabnzbd/constants py
In this file there is a value DEF_EMAIL_TMPL = "../share/sabnzbdplus/email'"
Note there is an unwanted single quote after the word email. This makes sabnzb unable to fetch the email templates and then it fails to send it's email.
I looked at Github source code, and there, the value is not the same so I suppose this issue is related to Ubuntu packaging.

Solving this makes the system able to send emails again.
User avatar
jcfp
Release Testers
Release Testers
Posts: 1004
Joined: February 7th, 2008, 12:45 pm

Re: 3.0 Alpha 1 Ubuntu 18.04 LTS: zombie and a child of the sabnzb process.

Post by jcfp »

The email issue is caused a typo in a packaging-specific patch, will be fixed in the alpha2 package. Thanks for reporting.
Post Reply