Blocked Hosts and Users Error after update

12 posts / 0 new
Last post
#1 Sun, 07/24/2011 - 12:49
Blueforce

Blocked Hosts and Users Error after update

Hi,

After the latest aupdates I get a error when I click "Blocked Hosts and Users" in Webmin and Usermin. It give me this error:

HTTP/1.0 500 Perl execution failed Server: MiniServ/1.556 Date: Sun, 24 Jul 2011 17:32:27 GMT Content-type: text/html Connection: close

Error - Perl execution failed Can't use an undefined value as a symbol reference at ./webmin-lib.pl line 1763.

Should I report this as a bug???

The box is running: CentOS Linux 5.6 Virtualmin version 3.87 Pro Webmin version 1.556

Best regards, Leffe

Sun, 07/24/2011 - 15:23
andreychek

Hmm, I don't seem to be able to reproduce that problem.

Here's something to try --

First, stop Webmin using "/etc/init.d/webmin stop".

After doing that -- do you receive any output when running this command:

ps auxw | grep miniserv | grep webmin

If so, try killing that process, then starting Webmin back up with "/etc/init.d/webmin start".

-Eric

Sun, 07/24/2011 - 15:44 (Reply to #2)
Blueforce

Hi Eric,

I did stop webmin and run the command but no output.

/Leffe

Sun, 07/24/2011 - 16:38 (Reply to #3)
Blueforce

Hi,

I dont know if this is of any help but here is the output from miniserv.error:

Use of uninitialized value in split at /usr/libexec/webmin/webmin/index.cgi line 60.
Use of uninitialized value in <HANDLE> at ./webmin-lib.pl line 1755.
readline() on unopened filehandle at ./webmin-lib.pl line 1755.
[24/Jul/2011:23:28:13 +0200] [x.x.x.x] /webmin/edit_blocked.cgi : Perl execution failed : Can't use an undefined value as a symbol reference at ./webmin-lib.pl line 1763.

/Leffe

Sun, 07/24/2011 - 17:52 (Reply to #4)
Blueforce

I found some more issues.

I now added this as a "bug" in issues.

Best regards, Leffe

Mon, 08/08/2011 - 19:37
yngens

I know, issues not for GPL users, but just so you know the exactly same error comes on GPL version too. Stopping Webmin and running the above-mentioned command does not produce any output.

Sun, 08/21/2011 - 21:36
hanil405

I have the same issue: Error - Perl execution failed

Can't use an undefined value as a symbol reference at ./webmin-lib.pl line 1763.

Thu, 08/25/2011 - 20:12
andreychek

The fix for that should be out soon, but you can always reset the block list by restarting Webmin with this command

/etc/init.d/webmin restart

Fri, 08/26/2011 - 02:12
oranjbox

Eric, I'm having the same issues. Was there ever a fix for this?

HTTP/1.0 500 Perl execution failed Server: MiniServ/1.560 Date: Fri, 26 Aug 2011 07:06:14 GMT Content-type: text/html Connection: close Error - Perl execution failed

Can't use an undefined value as a symbol reference at ./webmin-lib.pl line 1763.

Here is my server info. Operating system Debian Linux 6.0 Webmin version 1.560
Virtualmin version 3.87.gpl GPL Theme version 8.1
Kernel and CPU Linux 2.6.32-5-amd64 on x86_64

Was there ever a fix for this issue?

Fri, 08/26/2011 - 09:33
andreychek

It's fixed in the next Webmin version, but that's not out yet... I'll talk to Jamie about a way to resolve that in the meantime.

-Eric

Sat, 09/03/2011 - 16:43
mikerobinson

I'm having this problem on Webmin 1.561 / Virtualmin 3.87.gpl GPL.

I'm not sure if this is how I created the error, but I clicked on Webmin > Webmin Users and then selected one of the users from the list and then when the message "This Webmin user should not be edited as it is managed by the Virtualmin Virtual Servers (GPL) module. Click here to bypass this warning and edit the user anyway - but beware that any manual changes may be over-written!" came up, I clicked on the link but didn't make any changes.

I have restarted webmin with no effect. There were no errors, however it echo the following:

$ /etc/init.d/webmin restart

Stopping Webmin server in /usr/libexec/webmin

Starting Webmin server in /usr/libexec/webmin

Pre-loaded virtual-server/virtual-server-lib-funcs.pl in virtual_server

Pre-loaded virtual-server/feature-unix.pl in virtual_server

Pre-loaded virtual-server/feature-dir.pl in virtual_server

Pre-loaded virtual-server/feature-dns.pl in virtual_server

Pre-loaded virtual-server/feature-mail.pl in virtual_server

Pre-loaded virtual-server/feature-web.pl in virtual_server

Pre-loaded virtual-server/feature-webalizer.pl in virtual_server

Pre-loaded virtual-server/feature-ssl.pl in virtual_server

Pre-loaded virtual-server/feature-logrotate.pl in virtual_server

Pre-loaded virtual-server/feature-mysql.pl in virtual_server

Pre-loaded virtual-server/feature-postgres.pl in virtual_server

Pre-loaded virtual-server/feature-ftp.pl in virtual_server

Pre-loaded virtual-server/feature-spam.pl in virtual_server

Pre-loaded virtual-server/feature-virus.pl in virtual_server

Pre-loaded virtual-server/feature-webmin.pl in virtual_server

Pre-loaded virtual-server/feature-virt.pl in virtual_server

Pre-loaded virtual-server/feature-virt6.pl in virtual_server

Pre-loaded WebminCore

When I try to access Blocked Hosts and Users, I get:

HTTP/1.0 500 Perl execution failed Server: MiniServ/1.561 Date: Sat, 3 Sep 2011 21:37:49 GMT Content-type: text/html Connection: close

Error - Perl execution failed

Can't use an undefined value as a symbol reference at ./webmin-lib.pl line 1763.

Sat, 09/03/2011 - 18:25
mikerobinson

Looking in the /usr/libexec/webmin/webmin/webmin-lib.pl file, if you edit line 1763

close($fh);

and replace that with

if ($fh) { close($fh); }

it at least suppresses the error message. The file being read is /var/webmin/blocked, which in my case is empty, so I am not sure if this messed anything up (I doubt it), but it would appear to me that the script is having some sort of problem reading this file. Here are the permissions:

-rwx------ 1 root bin 0 Sep 3 17:50 /var/webmin/blocked

Edit: I'm not sure what the regular behavior of that module is supposed to be, but after adding this "fix", there is no way to actually ADD a blocked username or whatever.

Topic locked