Same problem after upgrading debian
>>How did you install the modules? Installed on etch from install.sh also tried from tar and wbm. Both successful in etch.
>>Were there errors during installation of the modules? No, not in either install mode. No errors during apt-get dist-upgrade to lenny/sid either.
>>I suspect always using the same install type for all modules will reduce the chances of anything going wrong
Did use the same method and everything works fine in etch before upgrade.
These are fresh installs for virtualmin use only. Installed on a virtual client built using a minimal etch install as the base.
After the lenny/sid upgrade:
Linux version 2.6.26-1-amd64 (Debian 2.6.26-5) (waldi@debian.org) (gcc version 4.1.3 20080623 (prerelease) (Debian 4.1.2-23))
#1 SMP Wed Sep 10 15:31:12 UTC 2008
Debian GNU/Linux lenny/sid
BASH_VERSION=‘3.2.39(1)-release’
This is perl, v5.10.0 built for x86_64-linux-gnu-thread-multi
ii webmin-virtual-server 3.61.gpl Webmin module for 'Virtualmin Virtual Server
ii webmin-virtual-server-theme 6.1 Webmin theme ‘Virtualmin Framed Theme’
ii webmin-virtualmin-awstats 3.8 Webmin module for ‘AWstats Reporting’
ii webmin-virtualmin-dav 2.8 Webmin module for ‘Virtualmin DAV’
ii webmin-virtualmin-htpasswd 1.7 Webmin module for 'Virtualmin Protected Dire
ii webmin-virtualmin-mailman 5.1 Webmin module for 'Virtualmin Mailman Mailin
ii webmin-virtualmin-svn 3.6 Webmin module for 'Virtualmin Subversion Rep
###:/usr/share/webmin/virtual-server# more check-config.pl
#!/usr/bin/perl
###:/usr/share/webmin/virtual-server# more check.cgi
#!/usr/bin/perl
check.cgi
###:/usr/share/webmin/virtual-server# more edit_newfeatures.cgi
#!/usr/bin/perl
###:/usr/share/webmin# more perlpath.pl
#!/usr/bin/perl
perlpath.pl
###:/usr/share/webmin# more miniserv.pl
#!/usr/bin/perl
###:/etc/webmin# more perl-path
/usr/bin/perl
Everything still appears to point to /usr/bin/perl and all other perl packages and the rest of webmin appear to work properly.
Restarted webmin and restarted server. Tried multiple installations
###:/var/webmin# tail miniserv.log
[13/Sep/2008:11:24:24 -0700] "GET /virtual-server/edit_newfeatures.cgi HTTP/1.1" 200 2107
[13/Sep/2008:11:25:08 -0700] "GET /virtual-server/check.cgi HTTP/1.1" 200 2023
###:/var/webmin# tail miniserv.error
Error: require virtual-server/virtual-server-lib.pl failed : <pre>Undefined subroutine &virtual_server::init_config called at /usr/share/webmin/virtual-server/virtual-server-lib.pl line 5.
</pre>
Error: require virtual-server/virtual-server-lib.pl failed : <pre>Undefined subroutine &virtual_server::init_config called at /usr/share/webmin/virtual-server/virtual-server-lib.pl line 5.
</pre>
***repeats once per request, only error present in miniserv.error
no errors in /var/log messages or syslog, for webmin/virtualmin or any other app running.
Mysql, apache, subversion, postgresql, bind, sshd, postfix and all other packagages appear to work normally after upgrade.
To reproduce error
Download debian iso
http://cdimage.debian.org/debian-cd/4.0_r4a/amd64/iso-cd/debian-40r4a-amd64-businesscard.iso
Install debian-40r4a-amd64-businesscard.iso to virtual machine with 2gb disk and 512mb ram.
Choose default options, guided entire disk, deselect all packages except for dns server.
Reboot to complete install
apt-get update, apt-get dist-upgrade - to bring everything up to date.
Download virtualmin install.sh and install virtualmin
install will error out on dependencies, run apt-get -f install and re-run install.sh
the third time the virtualmin install.sh should complete successfully
login to webmin from browser
networking - network configuration - set static ip address, gateway, dns and hostname/domain
run virtualmin check-config
will error on "no mysql root password"
use webmin - servers - mysql - to set the mysql root password
run virtualmin check-config
will be successful
create virtual host and test web,db,subversion and mail
successful
edit /etc/apt/sources.list change etch to sid
apt-get update
apt-get dist-upgrade
test virtual host web,db,subversion and mail
successful
access webmin from browser, all modules work except for some virtualmin modules
Undefined subroutine &virtual_server::init_config
*** Error display from browser accessing check.cgi ***
Checking Configuration
The status of your system is being checked to ensure that all enabled features are available, that the mail server is properly configured, and that quotas are active …
BIND DNS server is installed, and the system is configured to use it.
Mail server Postfix is installed and configured.
Apache is installed.
Webalizer is installed.
Apache is configured to host SSL websites.
MySQL is installed and running.
ProFTPd is installed.
Logrotate is installed.
SpamAssassin and Procmail are installed and configured for use.
ClamAV is installed and assumed to be running.
require virtual-server/virtual-server-lib.pl failed :
Undefined subroutine &virtual_server::init_config called at /usr/share/webmin/virtual-server/virtual-server-lib.pl line 5.
*** Error display from browser accessing check.cgi ***
Features and Plugins
This page allows you to select the core features and plugins that are available for use by virtual servers. The checkbox in the first column determines if it is available at all, while the box in the Default column controls whether or not it is enabled by default.
require virtual-server/virtual-server-lib.pl failed :
Undefined subroutine &virtual_server::init_config called at /usr/share/webmin/virtual-server/virtual-server-lib.pl line 5.
<- Return to previous page