Finally upgraded and a problem

SYSTEM INFORMATION
OS type and version Debian Linux 11
Usermin version 2.400
Virtualmin version 7.40.1
Theme version 25.10
Apache version 2.4.65
Package updates All installed packages are up to date

Undefined subroutine &main::get_jabber_status called at ./status-lib.pl line 201.

ejabberd wasn’t supposed to be running anymore so I stopped it. I’ll probably remove the package. In the meantime I get an email every five minutes about this.

I just used the interface to stop it from coming up at boot. I thought I’d done this before, so, let’s just call this a note to myself that I did it. :wink:

I forgot to put in the original that I get this email every 5 minutes. Stopping the service didn’t stop the emails.

havent used jabber with virtualmin, but maybe it’s still enabled in “features and plugins” or someplace else in virtualmin (system settings/conf)?

  • maybe remove ejabberd alltogether, and do a virtualmin check-config afterwards.

So, it’s a bug that we’d be calling a nonexistent function.

But, you can just remove that status monitor in System and Server Status to make the error go away. It’s something you would have added, as ejabberd is definitely not a default monitor.

Er, but also, I can’t even find such a function in our repo. I don’t know where it came from, as I don’t think it was ever in Webmin. Did you install a Webmin module for ejabberd, maybe? Maybe it came with such a status monitor?

It’s been awhile. I’ll just remove it and see if the module shows up. I think there was a module when I started using it, but, that’s been awhile.

Since it ‘errors’ I can’t seem to find an option in the interface to yank it out. What file do I need to look at?

Look in /etc/webmin/status/services. See if there’s a monitor that looks like it’s for ejabberd, and just delete it.

It was a strange numbered file. There were a few in that format.

The 173… was the one grep said to look at. Removed and restarted webmin. Emails stopped. :smiley:

To recap though, before the upgrade, the service was running and there had been no problems. After upgrade, the service was still running but the error emails started.

I thought it was disable but it was running. Not sure why but that is a red herring here. Personally I wouldn’t spend too many cycles on it.

Oh, I’m not spending any cycles on it. It wasn’t our code that broke. I’m assuming there was an ejabberd module installed on whatever system you restored a backup from, and that it included a status check function…not having that module any more obviously means that code is gone, so Webmin can’t call it.

I guess we’d rather it not give an obscure Perl error and instead just showed up as a failed check, though.

There is a current module it seems. I purged ejabberd and reloaded modules but it doesn’t show up in the unused list now.

jabber.wbm.gz
2025-09-16 20:51 244K

Oh, apparently it was included in Webmin until recently. Weird. I didn’t even know that. So, it’s bug-like that a missing status function from a removed module results in a Perl error…users should never see Perl errors unless something terrible and unpredictable has happened. Removing modules is predictable, so it should probably be a comprehensible error.

@Jamie if you have free time, maybe a missing status function shouldn’t result in a confusing Perl error.

Yes, this is a bug. I’ll fix it in the next Webmin release though..

2 Likes

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.