Perl error: undefined value as a symbol reference

8 posts / 0 new
Last post
#1 Thu, 03/10/2011 - 08:03
Czar

Perl error: undefined value as a symbol reference

Hi,

I broke usermin today... and I have no idea how. :(

Usermin was running all the time, no problems. It was configured to listen at port 443.

Today I decided to use SSL for a website and temporarely deactivated usermin and configured it to listen to standard port 20000 instead.

My test with the ssl website was a .. hmm a fail. But I had documented all my changes with screenshots, therefore I just set the old parameters and did a reboot.

The first thing that I noticed: dovecot was no longer working. I recently switched to inetd as I noticed that hosts.deny entries have no effect to dovecot. The inetd services where strangely set to a wrong folder (actually the /dovecot in the foldername were missing). I corrected the entries and it worked.

All looked perfect again until I tested usermin:

Entry in miniserv.error [10/Mar/2011:14:39:08 +0100] [xx.xx.x.xx] /mailbox/ : Perl execution failed : Can't use an undefined value as a symbol reference at /usr/share/usermin/mailbox/folders-lib.pl line 1983.

The error message is also shown in the browser.

I checked the settings of the "Read mail" module. I do not see anything wrong. The "Read mail" module of webmin is still working.

While accessing usermin, it seems to occur only for mail-reading/writing related stuff, I can check my quotas, procmail filters, scheduled emailsending, fetchmail ...

I cannot find an error in my config, it looks like before... does anyone have an idea, what to do???

Usermin, webmin, virtualmin are all on current state. Everything else seems to run smooth.

There is another entry here in the forum, but it seems not to be related to my problem.

Thanks in advance Christian

Thu, 03/10/2011 - 13:07
andreychek

Hrm, it's strange that Dovecot would just stop working. I suspect your issue is somehow related to it :-)

If you setup your mail client on your desktop to access your email from your server via IMAP (which would use Dovecot) -- do notice anything unusual, or have any problems?

After attempting to login using Usermin, do you see any errors in the mail logs -- either /var/log/maillog, or /var/log/mail.log?

-Eric

Fri, 03/11/2011 - 07:54
Czar

Ok, ... I solved it. bangheadondesk

I was thinking that imap is ok, but it wasn't. imapS was ok... thats what I'm using all the time accessing my mails.

The reason for the error: portsentry is set up and strange as it is, it was listening to port 143; imap. That prevented the imap inetd service to work properly.

I corrected the port in the portsentry config, and after that the inetd service came up... everything working as intended.

That means, not my current changes did break usermin, but some old changes that were fully activated after the reboot.

Fri, 03/11/2011 - 09:01
andreychek

Ah! Nice catch :-) I'm glad you got it working, thanks for the update!

-Eric

Thu, 07/21/2011 - 15:01
miroff
Can give some advice?

Error - Perl execution failed

Can't use an undefined value as a symbol reference at /usr/share/usermin/mailbox/folders-lib.pl line 1983, line 1.

this error occurs when im login as user But my root user logins right and no error.

Fri, 03/29/2013 - 00:38
Murz

Got the same error on each mailbox on Debian 6.0 with Virtualmin 3.94 Can't use an undefined value as a symbol reference at /usr/share/usermin/mailbox/folders-lib.pl line 1988, line 1.

Fri, 04/05/2013 - 07:29
Hans
Error - Perl execution failed

Can't use an undefined value as a symbol reference at /usr/share/usermin/mailbox/folders-lib.pl line 1988,  line 1.

fresh install via install.sh Usermin 1.540, Virtualmin Version 3.99.gpl, Webmin 1.620,

I have not changed any of the default values - "Mail storage format for Inbox" is set to "Remote IMAP Server"

Tue, 02/10/2015 - 11:37
andreapernici

I have the same issue till more than 2 months.

Topic locked