frame

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Register

[Virtualmin] unable to install regardless of what I try

FahidFahid Member
edited April 2019 in General Discussions
Hello,

I am unfortunately a customer of T4VPS who has already paid for 2 years of service and now I wish I had not, I think T4VPS is trying to teach a lesson, Greed is a Curse.

Ever Since I have joined I have never been able to get anything working except an OpenVPN server and T4VPS is not the only plate-form I am using as VPS provider.

When I say Minimal OS, that means I used a fresh OS Images provided by T4VPS and then tried to turn in into minimal OS Image using the commands given on the page below
To make an OS Image Minimal: https://community.time4vps.com/discussion/30/make-minimal-os/p1

So far I have tried to install:
1- CWP on CentOS 6
--- Minimal OS - Failed
--- Just update and install on Fresh T4VPS Image  - Failed
--- Just Install on Fresh T4VPS Image  - Failed

2- Virtualmin on Ubuntu 12, 14, 15, 16
--- Minimal OS - Failed
--- Just update and install on Fresh T4VPS Image  - Failed
--- Just Install on Fresh T4VPS Image  - Failed

3- Virtualmin on CentOS 6, 7
--- Minimal OS - Failed
--- Just update and install on Fresh T4VPS Image  - Failed
--- Just Install on Fresh T4VPS Image  - Failed

4- Virtualmin on Debian 7, 8
--- Minimal OS - Failed
--- Just update and install on Fresh T4VPS Image  - Failed
--- Just Install on Fresh T4VPS Image  - Failed

At times I have even reached my monthly limits for installing new OS, but so far never been able to get either CWP or Virtualmin working. And I must mention that I have never NEVER ever faced any such trouble setting either CWP or Virtualmin on any other VPS Service. Hell I can build a new computer part by part, install OS and get the both CWP and Virtualmin working on them and I have literally done that and am using even right now. What I am trying to say is that even though I am not Geek with Linux in particular, I know enough to get things going. But only at T4VPS, I am stuck since forever. I have asked for help on several forums and unable to find anything helpful. All the trouble relates to T4VPS. Yes I do face t´problems elsewhere as well but I can find workarounds from documentations, Youtube or support forums etc. but T4VPS is unique, I can't find anything that can help me here.

When I try contacting the support, they would rather advertise/ suggest package upgrades and tell me what more can I get if upgrade. But so far I have never get any HELP to get any of the above working. My usual ideal is Virtualmin on CentOS 7, but here I even tried compromising but to no avail.

After a quite sometime, I have had some free time today and thought to try again, after a few failed attempts I thought why not try the T4VPS forum for once, so I am here.
Tagged:

Comments

  • my latest attempt was Virtualmin on Ubuntu 16 a while ago, Failed as always of course, but below is the detail


    Using username "root".
    Welcome to Ubuntu 16.04.1 LTS (GNU/Linux 2.6.32-042stab120.6 x86_64)

     * Documentation:  https://help.ubuntu.com
     * Management:     https://landscape.canonical.com
     * Support:        https://ubuntu.com/advantage

    The programs included with the Ubuntu system are free software;
    the exact distribution terms for each program are described in the
    individual files in /usr/share/doc/*/copyright.

    Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
    applicable law.

    Last login: Wed Dec 31 19:00:10 1969
    root@SERVERX:~# apt-get update
    Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease
    Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
    Get:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
    Fetched 204 kB in 0s (304 kB/s)
    Reading package lists... Done
    root@SERVERX:~# apt-get upgrade
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Calculating upgrade... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Resolving software.virtualmin.com (software.virtualmin.com)... 108.60.199.117
    Connecting to software.virtualmin.com (software.virtualmin.com)|108.60.199.117|:                                                                                        80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 49112 (48K) [application/x-sh]
    Saving to: 'install.sh'

    install.sh          100%[===================>]  47.96K   169KB/s    in 0.3s

    2016-12-24 04:33:10 (169 KB/s) - 'install.sh' saved [49112/49112]

    root@SERVERX:~# sh install.sh
    Checking for Perl
    found Perl at /usr/bin/perl


    Welcome to the Virtualmin GPL installer, version 1.1.5

     WARNING:

     The installation is quite stable and functional when run on a freshly
     installed supported Operating System.

     If you have existing websites, email users, or if you manually installed
     Virtualmin via a Webmin 'wbm' module, you are likely to run into problems.
     Please read the Virtualmin Administrators Guide before proceeding if
     your system is not a freshly installed and supported OS.

     This script is not intended to update your system!  It should only be
     used to perform your initial Virtualmin installation.  If you have previously
     run the Virtualmin installer, you can perform upgrades and updates from within
     Virtualmin itself, or using your system's package manager. Once Virtualmin is
     installed, you never need to run this script again.

     The systems currently supported by install.sh are:
     CentOS/RHEL/Scientific Linux 7 on x86_64
     CentOS and RHEL 5-6 on i386 and x86_64
     Scientific Linux 6 on i386 and x86_64
     Debian 6, 7, and 8 on i386 and amd64
     Ubuntu 12.04 LTS, 14.04, and 16.04 LTS on i386 and amd64
     FreeBSD 7.0 and 8 on i386 and amd64

     If your OS is not listed above, this script will fail.  More details
     about the systems supported by the script can be found here:


     Continue? (y/n) y
    Checking for HTTP client...found /usr/bin/wget -nv
    Checking for perl...found /usr/bin/perl
    2016-12-24 04:33:22 URL:http://software.virtualmin.com/lib/spinner [579/579] ->                                                                                         "spinner" [1]
    Loading log4sh logging library...
    2016-12-24 04:33:22 URL:http://software.virtualmin.com/lib/log4sh [21395/21395]                                                                                         -> "log4sh" [1]
    INFO - Started installation log in /root/virtualmin-install.log
    INFO - Checking for fully qualified hostname...
    INFO - Hostname OK: fully qualified as SERVERX.s.t4vps.eu
    INFO - Installing serial number and license key into /etc/virtualmin-license
    INFO - Loading OS selection library...
    2016-12-24 04:33:23 URL:http://software.virtualmin.com/lib/oschooser.pl [4461/44                                                                                        61] -> "oschooser.pl" [1]
    INFO - Loading OS list...
    2016-12-24 04:33:23 URL:http://software.virtualmin.com/lib/os_list.txt [4006/400                                                                                        6] -> "os_list.txt" [1]
    INFO - Operating system name:    Ubuntu Linux
    INFO - Operating system version: 16.04.1
    INFO - Configuring package manager for Ubuntu Linux 16.04.1...
    INFO - Enabling universe repositories, if not already available...
    INFO - Disabling cdrom repositories...
    Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
    Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
    Get:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
    Fetched 204 kB in 0s (287 kB/s)
    Reading package lists... Done
    INFO - Cleaning up apt headers and packages, so we can start fresh...
    INFO -
    2016-12-24 04:33:26 URL:http://software.virtualmin.com/lib/apt.conf.noninteracti                                                                                        ve [243/243] -> "apt.conf.noninteractive" [1]
    INFO - Download of http://software.virtualmin.com/lib/apt.conf.noninteractive Su                                                                                        cceeded.
    INFO - Installing Webmin and Virtualmin package signing keys...
    2016-12-24 04:33:27 URL:http://software.virtualmin.com/lib/RPM-GPG-KEY-virtualmi                                                                                        n [1690/1690] -> "RPM-GPG-KEY-virtualmin" [1]
    INFO - Download of http://software.virtualmin.com/lib/RPM-GPG-KEY-virtualmin Suc                                                                                        ceeded.
    2016-12-24 04:33:27 URL:http://software.virtualmin.com/lib/RPM-GPG-KEY-webmin [1                                                                                        320/1320] -> "RPM-GPG-KEY-webmin" [1]
    INFO - Download of http://software.virtualmin.com/lib/RPM-GPG-KEY-webmin Succeed                                                                                        ed.
    INFO - OK
    INFO - OK
    INFO - Get:1
    INFO - Removing Debian standard Webmin package, if they exist...
    INFO - Removing Debian apache packages...
    INFO - Installing dependencies using command: /usr/bin/apt-get --config-file apt                                                                                        .conf.noninteractive -y --force-yes install bsdutils postfix postfix-pcre webmin                                                                                         usermin ruby libxml-simple-perl libcrypt-ssleay-perl unzip zip libfcgi-dev bind                                                                                        9 spamassassin spamc procmail procmail-wrapper libnet-ssleay-perl libpg-perl lib                                                                                        dbd-pg-perl libdbd-mysql-perl quota iptables openssl python mailman subversion r                                                                                        uby irb rdoc ri mysql-server mysql-client mysql-common postgresql postgresql-cli                                                                                        ent awstats webalizer dovecot-common dovecot-imapd dovecot-pop3d proftpd libcryp                                                                                        t-ssleay-perl awstats clamav-base clamav-daemon clamav clamav-freshclam clamav-d                                                                                        ocs clamav-testfiles libapache2-mod-fcgid apache2-suexec-custom scponly apache2                                                                                         apache2-doc libapache2-svn libsasl2-2 libsasl2-modules sasl2-bin php-pear php ph                                                                                        p-cgi libapache2-mod-php php-mysql ntpdate
    ...in progress, please wait...
    Extracting templates from packages: 100%............................
    Extracting templates from packages: 100%
    ................................................................................                                                                                        ................................................................................                                                                                        ................................................................................                                                                                        ................................................................................                                                                                        ...............................................................W: --force-yes is                                                                                         deprecated, use one of the options starting with --allow instead.
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    /usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install bs                                                                                        dutils postfix postfix-pcre webmin usermin ruby libxml-simple-perl libcrypt-ssle                                                                                        ay-perl unzip zip libfcgi-dev bind9 spamassassin spamc procmail procmail-wrapper                                                                                         libnet-ssleay-perl libpg-perl libdbd-pg-perl libdbd-mysql-perl quota iptables o                                                                                        penssl python mailman subversion ruby irb rdoc ri mysql-server mysql-client mysq                                                                                        l-common postgresql postgresql-client awstats webalizer dovecot-common dovecot-i                                                                                        mapd dovecot-pop3d proftpd libcrypt-ssleay-perl awstats clamav-base clamav-daemo                                                                                        n clamav clamav-freshclam clamav-docs clamav-testfiles libapache2-mod-fcgid apac                                                                                        he2-suexec-custom scponly apache2 apache2-doc libapache2-svn libsasl2-2 libsasl2                                                                                        -modules sasl2-bin php-pear php php-cgi libapache2-mod-php php-mysql ntpdate fai                                                                                        led.  Error (if any): 0

    Displaying the last 15 lines of /root/virtualmin-install.log to help troubleshoo                                                                                        t this problem:
    Setting up sa-compile (3.4.1-3) ...

    Configuration file '/etc/spamassassin/sa-compile.pre', does not exist on system.
    Installing new config file as you requested.
    Running sa-compile (may take a long time)
    Processing triggers for libc-bin (2.23-0ubuntu5) ...
    Processing triggers for systemd (229-4ubuntu13) ...
    Processing triggers for dovecot-core (1:2.2.22-1ubuntu2.2) ...
    Job for dovecot.service failed because the control process exited with error cod                                                                                        e. See "systemctl status dovecot.service" and "journalctl -xe" for details.
    invoke-rc.d: initscript dovecot, action "restart" failed.
    dpkg: error processing package dovecot-core (--configure):
     subprocess installed post-installation script returned error exit status 1
    Processing triggers for libapache2-mod-php7.0 (7.0.8-0ubuntu0.16.04.3) ...
    Errors were encountered while processing:
     dovecot-core

    FATAL - Fatal Error Occurred: Something went wrong during installation: 0
    FATAL - Cannot continue installation.
    FATAL - Attempting to remove virtualmin repository configuration, so the install                                                                                        ation can be
    FATAL - re-attempted after any problems have been resolved.
    FATAL - Removing temporary directory and files.
    FATAL - If you are unsure of what went wrong, you may wish to review the log
    FATAL - in /root/virtualmin-install.log
    root@SERVERX:~#

  • virtualmin-install.log
    http://pastebin.com/r23qFr0c

  • Hi! 

    I wanted to install virtualmin on Ubuntu 16.04; I met same issues (as in your log); the error is quite cryptic and unexpected; also in my case virtualmin setup worked flawlessly in other vps. 

    A particular thing of time4vps is that ipv6 is not supported, as far as I know; this is a weird thing in my opinion; modern software kind of expects to use ipv6. Working on this I made virtualmin work as expected, with the following steps: 

    - fresh install of Ubuntu 16.04
    - I did not make the OS minimal; I tried it once following that guide, https://community.time4vps.com/discussion/30/make-minimal-os/p1 and it worked, but also ssh was removed and to log-in I had to use the shell provided in the control panel; I decided to keep the full OS for the moment
    - during previous installation of virtualmin I had issues with locale; solved those like this: 
    sudo locale-gen en_US en_US.UTF-8
    sudo dpkg-reconfigure locales (graphical interface; I chose en_US.UTF-8)
    - apt-get install dovecot-common dovecot-imapd dovecot-pop3d
    (these packages are the part related to dovecot for Ubuntu, taken from virtualmin install.sh)
    Then edited: /etc/dovecot/dovecot.conf file.. uncommenting the line "listen = *, ::" and setting it to "listen = *" (listen just to ipv4 instead of also ipv6)
    - then again "apt-get install dovecot-common dovecot-imapd dovecot-pop3d"
    - install virtualmin: "/bin/sh install.sh"
    - service apache2 restart
    - In /etc/hosts comment the rows related to ipv6 (those with ::)
    - remove the "ipv6=1" line from /etc/webmin/miniserv.conf
    /etc/init.d/webmin restart (now webmin should be up and working at https://yourip:10000)

    Happy new year!
    Andrea
  • I have the same problem as you guys. I tried to do what Andrea suggested, running the command in freshly installed Ubuntu:
    apt-get install dovecot-common dovecot-imapd dovecot-pop3d

    But got the following error:

    Setting up dovecot-pop3d (1:2.2.22-1ubuntu2.2) ...
    
    Creating config file /etc/dovecot/conf.d/20-pop3.conf with new version
    Processing triggers for libc-bin (2.23-0ubuntu5) ...
    Processing triggers for systemd (229-4ubuntu13) ...
    Processing triggers for dovecot-core (1:2.2.22-1ubuntu2.2) ...
    Job for dovecot.service failed because the control process exited with error code. See "systemctl status dovecot.service" and "journalctl -xe" for details.
    invoke-rc.d: initscript dovecot, action "restart" failed.
    dpkg: error processing package dovecot-core (--configure):
     subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
     dovecot-core
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    I tried before to just install dovecot-common and it was successful. Do you know what could be wrong?

  • tadasb said:
    I have the same problem as you guys. I tried to do what Andrea suggested, running the command in freshly installed Ubuntu:
    apt-get install dovecot-common dovecot-imapd dovecot-pop3d

    But got the following error:

    Setting up dovecot-pop3d (1:2.2.22-1ubuntu2.2) ...
    
    Creating config file /etc/dovecot/conf.d/20-pop3.conf with new version
    Processing triggers for libc-bin (2.23-0ubuntu5) ...
    Processing triggers for systemd (229-4ubuntu13) ...
    Processing triggers for dovecot-core (1:2.2.22-1ubuntu2.2) ...
    Job for dovecot.service failed because the control process exited with error code. See "systemctl status dovecot.service" and "journalctl -xe" for details.
    invoke-rc.d: initscript dovecot, action "restart" failed.
    dpkg: error processing package dovecot-core (--configure):
     subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
     dovecot-core
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    I tried before to just install dovecot-common and it was successful. Do you know what could be wrong?

    Hi! Sorry for not specifying it; it is normal to have that error; I had that too. Actually that is the piece of Virtualmin install script that was causing the installation to break; I suggested to execute that command because in that way, even if you get the error, you will have the /etc/dovecot/dovecot.conf file that you can then modify (I do not think it was available before); after editing that file and proceeding as per listed steps, things should work fine
Sign In or Register to comment.

Time4VPS

Learn how to install a web and database server, email, FTP client or other applications. Discover and share information on server security or optimization recommendations.
Feel free to join our constantly expanding community, participate in discussions, strengthen your knowledge on Linux and Windows server management!
© 2013 - 2024 Time4VPS. All rights reserved.

Get In Touch