TurnKey Linux Virtual Appliance Library

2 issues with TKL DokuWiki restore (Mostly Solved)

Don Sanderson's picture

After restoring a small backup to a new instance of the DokuWiki appliance (both v11.1) that I installed on bare metal I encountered the following:

1.) The "docuwiki appliance services" firstboot screen appears after every reboot.

This has to be exited before services will run.

How do I prevent this from occuring?

 

2.) Webmin will no longer start as the configuration expects to find it in /usr/share/webmin-1.530/, it is in reality in /usr/share/webmin/.

I created a link in /usr/share/ "ln -s webmin webmin-1.530" and now webmin runs OK.

 

When first booted the install asked me to do updates and I said yes, could this be what trashed webmin? I don't remember if the machine the backup was made from had been updated yet.

All other functions seem to be OK and changes/files correspond to the instance it was backed up from.

Don Sanderson's picture

One other issue......

After install the appliance logs in automattically as root.

I have to admit I'm used to RHEL/Cent/Fedora where security is overdone if anything, but this seems a bit scary.


Don Sanderson's picture

Solution

OK, I tried this again with 2 bare metal installs and things went much better.

The First time around the machine I backed up was running in a qemu VM from the LiveCD iso.

Aparently that isn't a good idea.

This time both were bare metal and things went better.

Still had some issues with changes to the wiki being properly displayed, I'm still working on that one.

The WebMin and root login issues are solved though.


Jeremy's picture

Sorry I missed this post.

I think you must have posted while I was writing :).

Anyway sounds like you've got many of your issues fixed. As for running as a VM, it shouldn't make any difference whether you are using bare metal, Amazon or any range of VM options. TKLBAM should be completely underlaying platform agnostic. It could be interesting to discover what was causing your problems though as it shouldn't have been like that.

Also it may be useful to document what changes were required to make your wiki display properly, perhaps there are some tweaks and adjustments that need to be made to the TKLBAM profile for this appliance to function  properly after a TKLBAM migration/restore? Alternatively perhaps you are putting things in 'naughty' places?

Jeremy's picture

Not sure about what's happening with Webmin

But your first issue shouldn't be an issue. I may be wrong but I think you are referring to the Config Console when you speak about "docuwiki appliance services". Is this what you are referring to?:

ConfConsole

If I'm correct this is by design and it is just coincidental that it seems like the services don't start until you exit. It is probably more likely that the services just take a few moments to initialise.

As to your third point, it should not auto login at all. To get to the root CLI you should have to exit the ConfConsole and log in using your password.

Don Sanderson's picture

I'll experiment further........

and document what I do, but so far:

1.) Yes, it was the Config Console, only mine says "DOKUWIKI appliance services" where yours says "Usage". It no longer seems to be an issue.

2.) The root autologon seems to carry over to the backup when made from a liveCD. I will explore this further. This worked fine when the backup was made from a running installation.

3.) Edits to DokuWiki were made thru DokuWiki itself. They showed up as "unsaved edits" after the restore. 'Naughty locations' were carefully avoided.

4.) My 'gut feeling' is that the system should be rebooted after initial configuration, and before an initial full backup is made, to restart services, reload config files, and 'clear the baffles' so to speak. This is impossible when using a liveCD and may be causing issues. PLUS, the initial round of security updates installs a new kernel, again a reboot is required to boot to the new kernel, not possible on a liveCD instance.

I'll play with this more and report my findings.


Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)