Welcome, Guest
Please Login or Register.
Lost Password?
Latest updates break Virtualmin! (1 viewing)
Post Reply

TOPIC: Latest updates break Virtualmin!

#14716
DavidLaw (User)
Posts: 11
graphgraph
Re:Latest updates break Virtualmin! 2008/07/12 17:42  
Hey Joe,

Not tried the above yet (definitely don't want to be the first to try it!) and might not if the 3.60 version is due relatively soon as found a partial work around. Looking at your past updates looks like you update roughly every 3 weeks, as you updated last on the 1st of July I shouldn't have to wait too long for 3.60 (would appreciate a confirmation it's going to be fixed for certain).

Anyway, the partial work around for the left menu error (does not help with updating) if you have the same error I get regarding Perl-

Undefined subroutine &virtual_server::list_visible_domains called at /usr/libexec/webmin/virtual-server-theme/left.cgi line 80."

in the left menu.

You can remove some of the error, but it doesn't give full access to all options normally available.

I downloaded the left.cgi file (from /usr/libexec/webmin/virtual-server-theme/) and commented out line 80.

line 80 is-

@doms = &virtual_server::list_visible_domains();

Renamed the original left.cgi on the server (effectively backing it up) then uploaded the commented out left.cgi file.

Refreshed the page and some of the menu now works, specifically the Webmin link at the top that give access to all the most important server config files.

This doesn't give access to the Virtualmin options, but it's better than nothing and if the problem will be fixed in 3.60 so I can with running yum or use the built in Virtualmin update feature update to 3.60 I can hang on a week or two.

You can remove the remaining error by commenting out line 351 as well, but not much point as all you get extra is a link to refresh the server info and log out. So I wouldn't bother.

I think I can do the tasks I had planned through the Webmin interface.

David Law
  The administrator has disabled public write access.
#14718
Joe (Admin)
Posts: 4084
graph
Re:Latest updates break Virtualmin! 2008/07/12 19:43  
Oh! You don't need to do anything like that. Just upgrade manually.

You installed via a wbm, so upgrade via the wbm from Webmin.com using the Webmin:Webmin Configuration:Webmin Modules page.
  The administrator has disabled public write access.
#14721
DavidLaw (User)
Posts: 11
graphgraph
Re:Latest updates break Virtualmin! 2008/07/13 02:08  
Finally got it working, wahoo :)

This is what I did:

From my server I downloaded

/usr/libexec/webmin/virtual-server-theme/left.cgi

Commented out line 80

line 80 is-

@doms = &virtual_server::list_visible_domains();

Renamed the original left.cgi file on the server (effectively backing it up) then uploaded the commented out left.cgi file.

When you load Virtualmin the Webmin part now works in the left menu (rest still broke).

Click
Webmin > +Webmin > Webmin Configuration > Webmin Modules

From http://download.webmin.com/download/virtualmin/ I downloaded virtual-server-3.59.gpl.wbm.gz (http://download.webmin.com/download/virtualmin/virtual-server-3.59.gpl.wbm.gz) and uploaded it to my server (I put it in /downloads/).

From the Webmin Modules page I left the "From local file" ticked and used the browse button (...) across from it to browse my way to the file /downloads/virtual-server-3.59.gpl.wbm.gz

I left all the other settings at their defaults and clicked the Install Module button.

And it worked :)

This didn't update the left.cgi file I'd edited, so went back to where that file was and restored the renamed backup (I renamed the commented out left.cgi then renamed the original back to left.cgi, there's other ways of backing up files, but I find this the easiest way to track changes on my own system).

This fixes the Perl menu error listed in this thread and updates Virtualmin to 3.59. I don't think it solves the automated update problem since under VirtualMin Packages I still see the option to update wbm-virtual-server is still there, so if the developers don't do something I suspect I still won't be able to automatically upgrade to 3.60 when it's released.

Fixed for now though.

BTW I rebooted the system before reverting the commented out version of left.cgi, (just in case there was a new file and a reboot was needed to activate it: there wasn't new file) but not sure it's needed?

And that's how you explain something like this to people (like myself) who are not comfortable messing around with servers :)

David Law
  The administrator has disabled public write access.
#14735
Joe (Admin)
Posts: 4084
graph
Re:Latest updates break Virtualmin! 2008/07/13 16:21  
Hey David,

Thanks for the update. I obviously wasn't aware of how dramatic this problem was--I didn't realize you couldn't even browse to the Webmin configuration page with the broken theme. ;-)

But, here's how you can do the manual upgrade without making any file changes:

Browse to /webmin/ on the system (e.g. I would browse to https://www.virtualmin.com:10000/webmin/ ). This will take you out of the framed theme, and remove the left menu from the equation entirely...and allow you to click on "Webmin Modules".

From there you can upgrade to the 3.59 wbm package...which fixes the left-hand menus.

No need to reboot after this change. Just force your browser to reload the whole page. I believe upgrading the module will cause Webmin to restart, which is also needed.

BTW-The above recommendation to install manually using rpm with the --noscripts option is far less dramatic and complicated than modifying the Perl code, isn't it? I didn't mean to make it sound super scary, I just wanted to make sure you backed up you configuration before doing the upgrade. You should be making regular backups of everything, regardless. ;-)

I suspect the next version of the package will allow overwrites of wbm packages, but, again, doing the bits I documented above will get you onto the RPM version and is not particularly risky...Apologies for making it sound more dangerous than it is.
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.