Trying to set status of non-existing server - Error Message

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • 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
yt88d
Newbie
Newbie
Posts: 3
Joined: December 6th, 2019, 1:12 pm

Trying to set status of non-existing server - Error Message

Post by yt88d »

Hi, I have a constant nag message in SABnzbd about the client not being able to set the status of an old news server that I deleted from the Settings/Server a while back. How I can remove this message from appearing every couple hours?

The warning message says:
Trying to set status of non-existing server
... proceeded by the hostname of the old deleted news server. Here is a screenshot: Image
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: Trying to set status of non-existing server - Error Message

Post by sander »

which version of SABnzbd is this?
yt88d
Newbie
Newbie
Posts: 3
Joined: December 6th, 2019, 1:12 pm

Re: Trying to set status of non-existing server - Error Message

Post by yt88d »

sander wrote: March 23rd, 2020, 11:50 am which version of SABnzbd is this?
Thanks for the reply. I keep it updated - SABnzbd version: 2.3.9
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: Trying to set status of non-existing server - Error Message

Post by sander »

OK, good. I was triggered by the strange GUI ... that is old, I would say.

Anyway: I had a look at the source code, and that text is from two functions, which seem to be called from the scheduler. So ... check your scheduler (config/scheduling/) if that old server is there somewhere. If so, remove that schedule.

Code: Select all

def enable_server(server):
    """ Enable server (scheduler only) """
    try:
        config.get_config("servers", server).enable.set(1)
    except:
        logging.warning(T("Trying to set status of non-existing server %s"), server)
        return
    config.save_config()
    Downloader.do.update_server(server, server)


def disable_server(server):
    """ Disable server (scheduler only) """
    try:
        config.get_config("servers", server).enable.set(0)
    except:
        logging.warning(T("Trying to set status of non-existing server %s"), server)
        return
    config.save_config()
    Downloader.do.update_server(server, server)
yt88d
Newbie
Newbie
Posts: 3
Joined: December 6th, 2019, 1:12 pm

Re: Trying to set status of non-existing server - Error Message

Post by yt88d »

sander wrote: March 23rd, 2020, 2:37 pm OK, good. I was triggered by the strange GUI ... that is old, I would say.

Anyway: I had a look at the source code, and that text is from two functions, which seem to be called from the scheduler. So ... check your scheduler (config/scheduling/) if that old server is there somewhere. If so, remove that schedule.
I follow and just prefer that Glitter Night tabbed layout. It seems so easy, but I think you nailed. There were two tasks, that I don't remember adding, in the Scheduler, to enable + disable that old server. I deleted those two entries.

I left that warning nagging me for 6+ months and you solved it. Thank you for your help. I appreciate it.
Post Reply