Eugene's picture

Hi there and thanks for the help in advance!  I tried to perform an update of of Turnkey Linux through Webmin and it got stuck on a prompt for Postfix asking for one of several configuration options, which I couldn't respond to because of course it was showing the text on a normal HTML page where I could type to select an option.  So eventually I decided to just reset the VM, and it boots and my sites hosted on the VM works but none of the admin components are now responsive.

Could someone perhaps make suggestions of how I can get everything to come to life again?  My Linux skills are somewhat limited!

Thank you,

Eugene

Forum: 
Jeremy Davis's picture

TBH, without knowing more about what actually went wrong, I can't really advise on specifics. However I can share some generic advice which hopefully will head you in the right direction.

It sounds like you're a Webmin user, but I'd really encourage you to use the commandline as much as possible. It can feel intimidating at first (speaking from experience) but once you get comfortable, IMO it's much easier to understand. There's also so much info about online that makes config even easier. I use the Apache Webmin module as a specific example. I really struggled to get new Apache sites working from within Webmin. From the commandline it's really easy and IMO quite intuitive (I found Webmin quite confusing).

So in the spirit of that, here's some commandline for you to test out. Often if a package is broken, it can be repaired by running 'apt-get install -f' (don't add any package names, just the '-f' switch). AWS Marketplace users need to prepend 'sudo'. Another option is to just re-run the upgrade (particularly if it crashed halfway through). That is as simple as this:

apt-get update
apt-get upgrade

FWIW 'upgrade' is pretty conservative and will skip packages that have a major version bump. As a general rule, I avoid doing major version bumps on production servers, but YMMV. If you want to ensure that you upgrade as much as possible, use 'apt-get dist-upgrade' instead.

Hope that helps.

Eugene's picture

Thank you very much for taking the time to comment.  It seems something went awry with the update of webmin, not sure which component, and I eventually manually downloaded a newer version of webmin and installed it and it sprung back to life.  Lucky guess really as I couldn't make head or tale out of the errors when running apt-get upgrade.


Thanks again!

Jeremy Davis's picture

Any reason why you need a newer version of Webmin? Or did you just want it?

We package Webmin ourselves, specifically for TurnKey. It may not always be the latest version but it has been tested to work well with TurnKey and includes our TKLBAM (TurnKey Backup And Migration tool) interface. If you aren't using TKLBAM and/or are happy to use it via the commandline, there is nothing fundamentally wrong with using an a different build of Webmin. You may even be able to get our module to work with it too. But to avoid future issues, you should really remove the old version first (ideally before you install a new version).

That is because the package management system will try to reinstall our Webmin over the top of the one you've installed, next time it runs (i.e. next time you run an 'apt-get upgrade').

There is also another much more concerning probability. If your package management system is broken (which sounds likely), then it is also highly likely that the automated security updates are now broken also!

If you are only using this to learn Linux or as a hobby site or similar, then you may not be too concerned. However, if your site is publicly available (i.e. can be accessed via the internet) I would urge you to make sure that this is fixed. Unpatched software publicly available is a recipe for disaster!

If you need assistance fixing this, please give copy/paste (if possible, screenshot if not) the output of 'apt-get -f' for me.

Alternatively, if this is a v14.x based appliance and you're not particularly familiar with Linux (as I gather), it may be your best bet may actually be to use TKLBAM to migrate your data to a fresh new server. To use TKLBAM, you will need a Hub account with the "standard" plan ($10/mth) enabled. If you don't already have a Hub account, you get a free 14 day trial of "backup standard". If you don't wish to keep paying for it, you can delete any unwanted backup sets and downgrade to free (free plan only supports a single server).

Add new comment