TurnKey Linux Virtual Appliance Library

Errors were encountered while processing: webmin-tklbam

Drew Ruggles's picture

uh... what's this mean? It's looking like webmin-tklbam is creating some sort of error on my installs, but can't figure out what's going on... any thoughts?

Drew

 

Installing package(s) with command apt-get -y --force-yes -f install proftpd ..

 

Setting up webmin-tklbam (1.0+4+gb0c7a4c) ...
/var/lib/dpkg/info/webmin-tklbam.postinst: 4: ./install-module.pl: not found
dpkg: error processing webmin-tklbam (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 webmin-tklbam
Reading package lists...
Building dependency tree...
Reading state information...
Note, selecting proftpd-basic instead of proftpd
Suggested packages:
  proftpd-doc proftpd-mod-mysql proftpd-mod-pgsql proftpd-mod-ldap
  proftpd-mod-odbc proftpd-mod-sqlite
The following packages will be REMOVED:
  ftpd
The following NEW packages will be installed:
  proftpd-basic
0 upgraded, 1 newly installed, 1 to remove and 1 not upgraded.
1 not fully installed or removed.
Need to get 867kB of archives.
After this operation, 2007kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ lucid-security/universe proftpd-basic 1.3.2c-1ubuntu0.1 [867kB]
[master e6cb7ca] saving uncommitted changes in /etc prior to apt run
 19 files changed, 59 insertions(+), 5 deletions(-)
 create mode 100644 webmin/proftpd/config
 rewrite webmin/system-status/info (80%)
debconf: delaying package configuration, since apt-utils is not installed
Fetched 867kB in 2s (383kB/s)
(Reading database ... 51061 files and directories currently installed.)
Removing ftpd ...
Processing triggers for man-db ...
Selecting previously deselected package proftpd-basic.
(Reading database ... 51052 files and directories currently installed.)
Unpacking proftpd-basic (from .../proftpd-basic_1.3.2c-1ubuntu0.1_i386.deb) ...
Processing triggers for man-db ...
Setting up webmin-tklbam (1.0+4+gb0c7a4c) ...
/var/lib/dpkg/info/webmin-tklbam.postinst: 4: ./install-module.pl: not found
dpkg: error processing webmin-tklbam (--configure):
 subprocess installed post-installation script returned error exit status 127
Setting up proftpd-basic (1.3.2c-1ubuntu0.1) ...
Installing new version of config file /etc/ftpusers ...
Warning: The home dir /var/run/proftpd you specified can't be accessed: No such file or directory
Adding system user `proftpd' (UID 107) ...
Adding new user `proftpd' (UID 107) with group `nogroup' ...
Not creating home directory `/var/run/proftpd'.
Adding system user `ftp' (UID 108) ...
Adding new user `ftp' (UID 108) with group `nogroup' ...
Creating home directory `/home/ftp' ...
`/usr/share/proftpd/templates/welcome.msg' -> `/home/ftp/welcome.msg.proftpd-new'
 * Starting ftp server proftpd
   ...done.

Errors were encountered while processing:
 webmin-tklbam
[master 0b4ca49] committing changes in /etc after apt run
 22 files changed, 671 insertions(+), 5 deletions(-)
 create mode 100644 default/proftpd
 create mode 100755 init.d/proftpd
 create mode 100644 logrotate.d/proftpd-basic
 create mode 100644 pam.d/proftpd
 create mode 100644 proftpd/ldap.conf
 create mode 100644 proftpd/modules.conf
 create mode 100644 proftpd/proftpd.conf
 create mode 100644 proftpd/sql.conf
 create mode 100644 proftpd/tls.conf
 create mode 120000 rc0.d/K50proftpd
 create mode 120000 rc1.d/K50proftpd
 create mode 120000 rc2.d/S50proftpd
 create mode 120000 rc3.d/S50proftpd
 create mode 120000 rc4.d/S50proftpd
 create mode 120000 rc5.d/S50proftpd
 create mode 120000 rc6.d/K50proftpd
E: Sub-process /usr/bin/dpkg returned an error code (1)

.. install failed!

Jeremy's picture

It looks like the install of proftpd was successful

But it can't find a file that it needs to install webmin-tklbam. Did you do an apt-get upgrade at some point? Personally on server systems I tend to shy away from apt-get upgrade whenever possible. But that's obviously not an option for you now.

You could try this:

apt-get remove --purge webmin-tklbam
apt-get clean
apt-get update
apt-get install webmin-tklbam

This should remove the webmin-tklbam, purge (all) the cached package(s) and then redownload and reinstall it. Assuming it was a corrupted package this should hopefully fix it.

Geez you've been having some troubles Drew... Hope you get it all sorted out real soon.

Drew Ruggles's picture

3 Good, 1 Error

Thanks, Jeremy.

I did indeed do an apt-get upgrade at some point...

I ran the commands you listed, and the first three ran fine, but the fourth came back with an error:

root@antilles /home/Drew# apt-get install webmin-tklbam
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  webmin-tklbam
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 25.0kB of archives.
After this operation, 32.8kB of additional disk space will be used.
Get:1 http://archive.turnkeylinux.org/ubuntu/ lucid/main webmin-tklbam 1.0+4+gb0c7a4c [25.0kB]
Fetched 25.0kB in 0s (86.9kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously deselected package webmin-tklbam.
(Reading database ... 51128 files and directories currently installed.)
Unpacking webmin-tklbam (from .../webmin-tklbam_1.0+4+gb0c7a4c_i386.deb) ...
Setting up webmin-tklbam (1.0+4+gb0c7a4c) ...
/var/lib/dpkg/info/webmin-tklbam.postinst: 4: ./install-module.pl: not found
dpkg: error processing webmin-tklbam (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 webmin-tklbam
E: Sub-process /usr/bin/dpkg returned an error code (1)

Drew

Jeremy's picture

Bugger!

You got something messed up going on. I found an old v11.0 ISO and installed and updated that package and it worked fine. Just to be sure I download the deb package and extracted it and from what I can gather everything is all good there.

Out of interest what does the command return?:

cat /usr/share/webmin/install-module.pl

If you get an error or something like that then I think your problem is actually with the Webmin package itself rather than the webmin-tklbam package.

So how about you try this:

apt-get remove --purge webmin-tklbam
apt-get install webmin
apt-get install webmin-tklbam

Hopefully that'll work for you...

If not, try purging the webmin package and reinstalling it.

Drew Ruggles's picture

Here it is

response:

cat: /usr/share/webmin/install-module.pl: No such file or directory

and of course...

root@antilles ~# apt-get remove --purge webmin-tklbam
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  webmin-tklbam*
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 32.8kB disk space will be freed.
Do you want to continue [Y/n]? Y
[master 14f27d9] saving uncommitted changes in /etc prior to apt run
 21 files changed, 55 insertions(+), 3 deletions(-)
 create mode 100644 apt/sources.list.d/security.sources.list.save
 create mode 100644 apt/sources.list.d/sources.list.save
 create mode 100644 apt/sources.list.d/yannubuntu-boot-repair-lucid.list
 create mode 100644 apt/sources.list.d/yannubuntu-boot-repair-lucid.list.save
 rewrite webmin/system-status/info (100%)
(Reading database ... 51713 files and directories currently installed.)
Removing webmin-tklbam ...
Purging configuration files for webmin-tklbam ...
root@antilles ~# apt-get update
Hit http://download.virtualbox.org lucid Release.gpg
Hit http://download.virtualbox.org lucid Release
Hit http://archive.turnkeylinux.org lucid-security Release.gpg
Hit http://us.archive.ubuntu.com lucid-security Release.gpg
Hit http://us.archive.ubuntu.com lucid Release.gpg
Hit http://us.archive.ubuntu.com lucid-updates Release.gpg
Hit http://download.virtualbox.org lucid/contrib Packages
Get:1 http://ppa.launchpad.net lucid Release.gpg [316B]
Hit http://download.virtualbox.org lucid/non-free Packages
Hit http://archive.turnkeylinux.org lucid Release.gpg
Hit http://us.archive.ubuntu.com lucid-security Release
Hit http://us.archive.ubuntu.com lucid Release
Get:2 http://ppa.launchpad.net lucid Release [14.0kB]
Hit http://archive.turnkeylinux.org lucid-security Release
Hit http://us.archive.ubuntu.com lucid-updates Release
Hit http://archive.turnkeylinux.org lucid Release
Hit http://us.archive.ubuntu.com lucid-security/main Packages
Hit http://us.archive.ubuntu.com lucid-security/universe Packages
Hit http://us.archive.ubuntu.com lucid/main Packages
Hit http://us.archive.ubuntu.com lucid/universe Packages
Get:3 http://ppa.launchpad.net lucid/main Packages [1122B]
Ign http://archive.turnkeylinux.org lucid-security/main Packages
Ign http://archive.turnkeylinux.org lucid/main Packages
Hit http://us.archive.ubuntu.com lucid-updates/main Packages
Hit http://us.archive.ubuntu.com lucid-updates/universe Packages
Ign http://archive.turnkeylinux.org lucid-security/main Packages
Ign http://archive.turnkeylinux.org lucid/main Packages
Hit http://archive.turnkeylinux.org lucid-security/main Packages
Hit http://archive.turnkeylinux.org lucid/main Packages
Fetched 15.4kB in 1s (15.1kB/s)
Reading package lists... Done
root@antilles ~# apt-get install webmin
Reading package lists... Done
Building dependency tree
Reading state information... Done
webmin is already the newest version.
webmin set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
root@antilles ~# apt-get install webmin-tklbam
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  webmin-tklbam
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 0B/25.0kB of archives.
After this operation, 32.8kB of additional disk space will be used.
Selecting previously deselected package webmin-tklbam.
(Reading database ... 51711 files and directories currently installed.)
Unpacking webmin-tklbam (from .../webmin-tklbam_1.0+4+gb0c7a4c_i386.deb) ...
Setting up webmin-tklbam (1.0+4+gb0c7a4c) ...
/var/lib/dpkg/info/webmin-tklbam.postinst: 4: ./install-module.pl: not found
dpkg: error processing webmin-tklbam (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 webmin-tklbam
E: Sub-process /usr/bin/dpkg returned an error code (1)


Jeremy's picture

Sorry my bad

I meant to get you to remove webmin, not webmin-tklbam, the fact that the required file isn't found demonstrates that there is something messed up with the Webmin package. Not sure how or why (because it reports as already at the latest) version.

But in retrospect it's probably a good thing, as now I think about it, I imagine that all the other Webmin modules will depend on the Webmin package and they'd all need to be reinstalled afterwards too. So plan B.

If you download the webmin package directly from the TKL repo using wget and then manually install with dpkg like this (remove the tklbam package again first):

apt-get remove --purge webmin-tklbam

wget http://archive.turnkeylinux.org/ubuntu/pool/lucid/main/w/webmin/webmin_1...

dpkg -i webmin_1.520-turnkey+4+ga5a493f_i386.deb

(The middle line is code too it just cuts of if it's formatted here) Fingers crossed that will work this time...

Sorry to lead you astray, but as I said it's probably a good thing...

Drew Ruggles's picture

I think that worked

and just for the hell of it:

root@antilles /home/Drew# cat /usr/share/webmin/install-module.pl
#!/usr/bin/perl
# install-module.pl
# Install a single module file

# Check arguments
$nodeps = 0;
if ($ARGV[0] eq "--nodeps") {
        shift(@ARGV);
        $nodeps = 1;
        }
while($ARGV[0] eq "--acl") {
        shift(@ARGV);
        push(@grant, shift(@ARGV));
        }
if (@ARGV > 2 || !@ARGV) {
        die "usage: install-module.pl [--nodeps] [--acl user]* <module.wbm> [config_directory]";
        }
$file = $ARGV[0];
$config = $ARGV[1] ? $ARGV[1] : "/etc/webmin";
-r $file || die "$file does not exist";
open(CONF, "$config/miniserv.conf") ||
        die "Failed to read $config/miniserv.conf - maybe $config is not a Webmin config directory";
while(<CONF>) {
        s/\r|\n//g;
        if (/^root=(.*)/) {
                $root = $1;
                }
        }
close(CONF);
-d $root || die "Webmin directory $root does not exist";
chop($var = `cat $config/var-path`);

if ($file !~ /^\//) {
        chop($pwd = `pwd`);
        $file = "$pwd/$file";
        }

# Set up webmin environment
$ENV{'WEBMIN_CONFIG'} = $config;
$ENV{'WEBMIN_VAR'} = $var;
$no_acl_check++;
chdir($root);
$0 = "$root/install-module.pl";
eval "use WebminCore;";
&init_config();

# Install it, using the standard function
&foreign_require("webmin", "webmin-lib.pl");
if (@grant) {
        $newusers = \@grant;
        }
else {
        $newusers = &webmin::get_newmodule_users();
        $newusers ||= [ "root", "admin" ];
        }
$rv = &webmin::install_webmin_module($file, 0, $nodeps, $newusers);
if (ref($rv)) {
        for($i=0; $i<@{$rv->[0]}; $i++) {
                printf "Installed %s in %s (%d kb)\n",
                        $rv->[0]->[$i],
                        $rv->[1]->[$i],
                        $rv->[2]->[$i];
                }
        }
else {
        $rv =~ s/<[^>]+>//g;
        print STDERR "Install failed : $rv\n";
        }

I didn't see any errors, and ran the above command, which looks different from when it failed, before.

...except, now I don't have any Webmin interface. Oops!

Drew

Drew Ruggles's picture

I got issues...

Looks like the version of tklbam you sent the link to was 1.520, but I was on 1.570 webmin, so I think things are a bit hosed, at the moment. Can I just reinstall webmin updates?

Drew

Drew Ruggles's picture

Oops... Now it's really broken

Before I was just getting some errors, but now she's gone. I can get to shell, but not to Webmin at all. I did a wget of the webmin 1.520 turnkey deb file and a dpkg as you mentioned, but it's not working. Any thoughts?

Drew

Jeremy's picture

Oh no! Ahh... I guess that was your problem all along then...

I suspect that the webmin-tklbam module is incompatible with Webmin 1.570 (at least OOTB). Unless there is a good reason, it is generally not recommended to update software to a newer version in Linux. I sometimes ignore that sound advice myself, especially when on a desktop system but it rarely ever ends in anything but pain!

If you are comming from a Windows background perhaps much of the "Linux way" of doing things is foreign. Generally Linux favours stability and security over having the latest version and maximum functionality (in the sense that newer versions of software often have enhanced functionality). Rather than updating software, security fixes are backported to the version of the software that the particular version of Linux shipped with. Generally TKL follows this lead, although sometimes not (there are various reasons why you wouldn't or can't). Because of this build design, things should be generally very stable and as soon as you start adding additional repos and updating versions of software etc that stability is gradually but almost surely erroded.

TBH personally I'd be inclined to start again (but copy out config files of anything that you have already got working as you'd want). If you don't want to do that you could try uninstalling Webmin completely (apt-get remove --purge webmin which should completely remove it all as well as all the Webmin modules). Take note of all the Webmin modules it uninstalls and then reinstall (apt-get install webmin) and add the names of the Webmin modules to reinstall too (ie apt-get install webmin webmin-samba webmin-tklbam webmin-whatever). Then unless you have a need to update to v1.570, just leave it at 1.520. Any additional modules you might want can be found using apt-cache search webmin. If you do really want/need Webmin 1.570 then you'll need to manually install the TKLBAM module (assuming that you want it). To do that you'll need to manually download it, extract it (IIRC correctly debs are just tar.gz archives) and then upload the tar.gz archive you'll find inside the deb using the Webmin interface (look for something like "instal new module").

Hope that's of some help to you. Sorry i my advice has led you astray... again!

Drew Ruggles's picture

No worries

OK, no problem fumbling a bit. However, I have uninstalled and reinstalled 1.520-tkl version, but it's not displaying when I go to port 12321. Is my webmin user db hosed? Is there some other way of starting it?

Thanks,

Drew

Drew Ruggles's picture

Changed port

A little digging took me to /etc/webmin/miniserv.conf and a quick peak in vi told me that it was set to port 10000.

It's 1.520, but a lot is missing from the standard TKL version -- e.g. File Manager. When I try to install the file module, it complains I'm not running 1.570. Anyway to tell it to give me the 1.520 version?

Thanks,

Drew

Jeremy's picture

I'd uninstall and then manually delete the /etc/webmin folder

So apt-get remove --purge webmin

the --purge switch should delete the /etc folder but it obviously isn't properly. So manually get rid of the /etc/webmin folder (just rename it just in case) mv /etc/webmin /etc/webmin-old then reinstall: apt-get install webmin webmin-whatever pretty much like I said above.

Out of interest port 10000 is the default webmin port

And TBH I'm flailing on the dark here a bit. I'm only going on what I think, not what I know (I've never done any of this before - back when I first played with TKL I updated Webmin and got into all sorts of troubles and just reinstalled the appliance and have never looked back).

Also, another thought... TKL appliances all come with etckeeper installed by default. It version control softwware which leverages the git repository system to version all the settings files in /etc. So if you have a hunt around online perhaps you can work out how to restore the files in /etc/webmin back to their defaults? I reckon it'd just be with git commands (although I'm only guessing...) Sorry I can't give you anymore hints than I have cause I just don't know, but could be worth a try? Also it be great info to have (it ideally should be in the TKL docs IMO!)

Drew Ruggles's picture

Still working on it...

apt-cache search webmin

This was a nice command to come in to. I found a bunch of stuff I had loaded that I had skipped. Thanks!

The modules are installed, but not "active" in Webmin. I'm going to hunt for some info re: the etckeeper you referenced. FYI, I couldn't remove the /etc/webmin directory as it had /tklbam /grub and a couple other items that I'm forgetting at the moment. This *feels* like the right track. Thanks!

I really appreciate all the time and effort you put in to these posts. It would not be possible to do this without your contributions. If you're ever this way, and you haven't frozen to death, look me up for a beer or six.

Drew

Hello, I have configured

Hello,
I have configured hadoop and hive on ubuntu and now trying for sqoop.
But when I run bin/sqoop help command I get following errors:

hadoop@ubuntu:~/sqoop-1.3.0-

cdh3u1/bin$ ./sqoop help
Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.hadoop.conf.Configuration.getInstances(Ljava/lang/String;Ljava/lang/Class;)Ljava/util/List;
    at com.cloudera.sqoop.tool.SqoopTool.loadPlugins(SqoopTool.java:139)
    at com.cloudera.sqoop.Sqoop.runTool(Sqoop.java:209)
    at com.cloudera.sqoop.Sqoop.runTool(Sqoop.java:228)
    at com.cloudera.sqoop.Sqoop.main(Sqoop.java:237)
hadoop@ubuntu:~/sqoop-1.3.0-cdh3u1/bin$

What could be the problem? Pls suggest me solution.

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)