install.sh Fatal debian 6.0

17 posts / 0 new
Last post
#1 Fri, 07/01/2011 - 15:58
seemeinhi

install.sh Fatal debian 6.0

Did fresh install of Debian 6.0 amd64, installed ssh and webserver.. Need help fast :-) thanks

root@209.139.209.100's password: Linux donswebservices 2.6.32-5-amd64 #1 SMP Wed May 18 23:13:22 UTC 2011 x86_64

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

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. root@donswebservices:~# ping google.com PING google.com (74.125.127.103) 56(84) bytes of data. 64 bytes from pz-in-f103.1e100.net (74.125.127.103): icmp_req=1 ttl=52 time=11.5 ms 64 bytes from pz-in-f103.1e100.net (74.125.127.103): icmp_req=2 ttl=52 time=11.5 ms 64 bytes from pz-in-f103.1e100.net (74.125.127.103): icmp_req=3 ttl=54 time=11.5 ms ^C --- google.com ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2002ms rtt min/avg/max/mdev = 11.505/11.526/11.562/0.091 ms root@donswebservices:~# wget http://software.virtualmin.com/gpl/scripts/install.sh --2011-07-01 10:45:53-- http://software.virtualmin.com/gpl/scripts/install.sh Resolving software.virtualmin.com... 67.228.198.99 Connecting to software.virtualmin.com|67.228.198.99|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 44010 (43K) [application/x-sh] Saving to: âinstall.shâ

100%[======================================>] 44,010 --.-K/s in 0.02s

2011-07-01 10:45:54 (2.35 MB/s) - âinstall.shâ

root@donswebservices:~# ./install.sh -bash: ./install.sh: Permission denied root@donswebservices:~# chmod 755 install.sh root@donswebservices:~# ./install.sh

Welcome to the Virtualmin GPL installer, version 1.0.5

WARNING:

The installation is quite stable and functional when run on a freshly installed supported Operating System, but upgrades from existing .wbm- based systems, or systems that already have Apache VirtualHost directives or mail users, will very likely run into numerous 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 install Virtualmin, on a supported OS. If you have previously installed Virtualmin via this script or the GPL version of this script, upgrades and updates should be handled within Virtualmin itself. Once Virtualmin is installed, you never need to run this script again.

The systems currently supported by install.sh are: CentOS 4 and 5 on i386 and x86_64 Debian 5.0 and 6.0 on i386 and amd64 Ubuntu 8.04 LTS and 10.04 LTS 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:

http://www.virtualmin.com/os-support.html

Continue? (y/n) y Checking for HTTP client...found /usr/bin/wget -nv Checking for perl...found /usr/bin/perl 2011-07-01 10:46:29 URL:http://software.virtualmin.com/lib/spinner [579/579] -> "spinner" [1] Loading log4sh logging library... 2011-07-01 10:46:29 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 donswebservices.com INFO - Installing serial number and license key into /etc/virtualmin-license INFO - Loading OS selection library... 2011-07-01 10:46:30 URL:http://software.virtualmin.com/lib/oschooser.pl [4461/4461] -> "oschooser.pl" [1] INFO - Download of http://software.virtualmin.com/lib/oschooser.pl Succeeded. INFO - Loading OS list... 2011-07-01 10:46:30 URL:http://software.virtualmin.com/lib/os_list.txt [3254/3254] -> "os_list.txt" [1] INFO - Download of http://software.virtualmin.com/lib/os_list.txt Succeeded. INFO - Operating system name: Debian Linux INFO - Operating system version: 6.0 INFO - Configuring package manager for Debian Linux 6.0... INFO - Enabling universe repositories, if not already available... INFO - Disabling cdrom repositories... Get:1 http://security.debian.org squeeze/updates Release.gpg [836 B] Ign http://security.debian.org/ squeeze/updates/contrib Translation-en Ign http://security.debian.org/ squeeze/updates/main Translation-en Get:2 http://security.debian.org squeeze/updates Release [38.4 kB] Get:3 http://security.debian.org squeeze/updates/main Sources [42.7 kB] Hit http://security.debian.org squeeze/updates/contrib Sources Get:4 http://security.debian.org squeeze/updates/main amd64 Packages [130 kB] Hit http://security.debian.org squeeze/updates/contrib amd64 Packages Fetched 212 kB in 1s (210 kB/s) Reading package lists... Done INFO - Cleaning up apt headers and packages, so we can start fresh... INFO - 2011-07-01 10:46:31 URL:http://software.virtualmin.com/lib/apt.conf.noninteractive [243/243] -> "apt.conf.noninteractive" [1] INFO - Download of http://software.virtualmin.com/lib/apt.conf.noninteractive Succeeded. INFO - Installing Webmin and Virtualmin package signing keys... 2011-07-01 10:46:31 URL:http://software.virtualmin.com/lib/RPM-GPG-KEY-virtualmin [1690/1690] -> "RPM-GPG-KEY-virtualmin" [1] INFO - Download of http://software.virtualmin.com/lib/RPM-GPG-KEY-virtualmin Succeeded. 2011-07-01 10:46:32 URL:http://software.virtualmin.com/lib/RPM-GPG-KEY-webmin [1320/1320] -> "RPM-GPG-KEY-webmin" [1] INFO - Download of http://software.virtualmin.com/lib/RPM-GPG-KEY-webmin Succeeded. 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 postfix postfix-pcre webmin usermin ruby libapache2-mod-ruby libxml-simple-perl libcrypt-ssleay-perl unzip zip libfcgi-dev bind9 spamassassin spamc procmail libnet-ssleay-perl libpg-perl libdbd-pg-perl libdbd-mysql-perl quota iptables openssl python mailman subversion ruby irb rdoc ri mysql-server mysql-client mysql-common postgresql postgresql-client awstats webalizer dovecot-common dovecot-imapd dovecot-pop3d proftpd libcrypt-ssleay-perl awstats clamav-base clamav-daemon clamav clamav-freshclam clamav-docs clamav-testfiles libapache2-mod-fcgid apache2-suexec-custom scponly apache2 apache2-doc libapache2-svn libsasl2-2 libsasl2-modules sasl2-bin php-pear php5 php5-cgi libgd2-xpm libapache2-mod-php5 php5-mysql ...in progress, please wait... .E: Package 'ruby' has no installation candidate E: Package 'libapache2-mod-ruby' has no installation candidate E: Package 'libxml-simple-perl' has no installation candidate E: Package 'libcrypt-ssleay-perl' has no installation candidate E: Package 'unzip' has no installation candidate E: Package 'zip' has no installation candidate E: Unable to locate package libfcgi-dev E: Package 'spamassassin' has no installation candidate E: Package 'spamc' has no installation candidate E: Package 'libnet-ssleay-perl' has no installation candidate E: Package 'libpg-perl' has no installation candidate E: Package 'libdbd-pg-perl' has no installation candidate E: Package 'libdbd-mysql-perl' has no installation candidate E: Package 'quota' has no installation candidate E: Package 'ruby' has no installation candidate E: Package 'irb' has no installation candidate E: Package 'rdoc' has no installation candidate E: Package 'ri' has no installation candidate E: Package 'mysql-server' has no installation candidate E: Package 'mysql-client' has no installation candidate E: Package 'mysql-common' has no installation candidate E: Package 'awstats' has no installation candidate E: Package 'webalizer' has no installation candidate E: Package 'libcrypt-ssleay-perl' has no installation candidate E: Package 'awstats' has no installation candidate E: Package 'clamav-base' has no installation candidate E: Package 'clamav-daemon' has no installation candidate E: Package 'clamav' has no installation candidate E: Package 'clamav-freshclam' has no installation candidate E: Package 'clamav-docs' has no installation candidate E: Package 'clamav-testfiles' has no installation candidate E: Package 'libapache2-mod-fcgid' has no installation candidate E: Package 'scponly' has no installation candidate E: Package 'sasl2-bin' has no installation candidate E: Package 'libgd2-xpm' has no installation candidate

/usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install postfix postfix-pcre webmin usermin ruby libapache2-mod-ruby libxml-simple-perl libcrypt-ssleay-perl unzip zip libfcgi-dev bind9 spamassassin spamc procmail libnet-ssleay-perl libpg-perl libdbd-pg-perl libdbd-mysql-perl quota iptables openssl python mailman subversion ruby irb rdoc ri mysql-server mysql-client mysql-common postgresql postgresql-client awstats webalizer dovecot-common dovecot-imapd dovecot-pop3d proftpd libcrypt-ssleay-perl awstats clamav-base clamav-daemon clamav clamav-freshclam clamav-docs clamav-testfiles libapache2-mod-fcgid apache2-suexec-custom scponly apache2 apache2-doc libapache2-svn libsasl2-2 libsasl2-modules sasl2-bin php-pear php5 php5-cgi libgd2-xpm libapache2-mod-php5 php5-mysql failed. Error (if any): 0

Displaying the last 15 lines of /root/virtualmin-install.log to help troubleshoot this problem: INFO - 2011-07-01 10:46:31 - INFO - 2011-07-01 10:46:31 - Download of http://software.virtualmin.com/lib/apt.conf.noninteractive Succeeded. INFO - 2011-07-01 10:46:31 - Installing Webmin and Virtualmin package signing keys... INFO - 2011-07-01 10:46:32 - Download of http://software.virtualmin.com/lib/RPM-GPG-KEY-virtualmin Succeeded. INFO - 2011-07-01 10:46:32 - Download of http://software.virtualmin.com/lib/RPM-GPG-KEY-webmin Succeeded. INFO - 2011-07-01 10:46:32 - OK INFO - 2011-07-01 10:46:32 - OK INFO - 2011-07-01 10:46:32 - Get:1 INFO - 2011-07-01 10:46:32 - Removing Debian standard Webmin package, if they exist... INFO - 2011-07-01 10:46:32 - Removing Debian apache packages... DEBUG - 2011-07-01 10:46:42 - Reading INFO - 2011-07-01 10:46:42 - Installing dependencies using command: /usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install postfix postfix-pcre webmin usermin ruby libapache2-mod-ruby libxml-simple-perl libcrypt-ssleay-perl unzip zip libfcgi-dev bind9 spamassassin spamc procmail libnet-ssleay-perl libpg-perl libdbd-pg-perl libdbd-mysql-perl quota iptables openssl python mailman subversion ruby irb rdoc ri mysql-server mysql-client mysql-common postgresql postgresql-client awstats webalizer dovecot-common dovecot-imapd dovecot-pop3d proftpd libcrypt-ssleay-perl awstats clamav-base clamav-daemon clamav clamav-freshclam clamav-docs clamav-testfiles libapache2-mod-fcgid apache2-suexec-custom scponly apache2 apache2-doc libapache2-svn libsasl2-2 libsasl2-modules sasl2-bin php-pear php5 php5-cgi libgd2-xpm libapache2-mod-php5 php5-mysql Reading package lists... Building dependency tree... Reading state information...

FATAL - Fatal Error Occurred: Something went wrong during installation: 0 FATAL - Cannot continue installation. FATAL - Attempting to remove virtualmin repository configuration, so the installation 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@donswebservices:~#

Fri, 07/01/2011 - 16:07
andreychek

Well, I don't any errors there... can you attach the virtualmin-install.log file that it mentions at the end there?

Also, are you by chance on a VPS of some sort? A common cause of issues is when using a VPS with too little RAM. What output do you see when running "free -m"?

-Eric

Fri, 07/01/2011 - 17:24
seemeinhi

root@donswebservices:~# free -m total used free shared buffers cached Mem: 1948 158 1789 0 8 74 -/+ buffers/cache: 76 1871 Swap: 3804 0 3804 root@donswebservices:~#

might have to back to umbutu... so far no one has noticed there sits down, lol.

I don't know how to copy and paste with vi. but when i read it it said the same thing.

Fri, 07/01/2011 - 17:43
seemeinhi

BTW, it was 1 partition lvm (beginner) first I had separate partitions for /home /usr /var didn't seem to mater.

I have been using virtualmin for quite a few years, and started using the install.sh last year. It has always worked fine... This is the first time I've used debian???

Fri, 07/01/2011 - 18:43
andreychek

Howdy,

Well, both Debian and Ubuntu should work fine. The installer certainly shouldn't bail out there.

As far as the install log goes -- rather than copying and pasting it, you could just attach the entire file to this post.

However, before you do that -- one thing you could try is to manually run the command that failed, and see if you can coax an error message out of it.

Try running this command as root:

apt-get install postfix postfix-pcre webmin usermin ruby libapache2-mod-ruby libxml-simple-perl libcrypt-ssleay-perl unzip zip libfcgi-dev bind9 spamassassin spamc procmail libnet-ssleay-perl libpg-perl libdbd-pg-perl libdbd-mysql-perl quota iptables openssl python mailman subversion ruby irb rdoc ri mysql-server mysql-client mysql-common postgresql postgresql-client awstats webalizer dovecot-common dovecot-imapd dovecot-pop3d proftpd libcrypt-ssleay-perl awstats clamav-base clamav-daemon clamav clamav-freshclam clamav-docs clamav-testfiles libapache2-mod-fcgid apache2-suexec-custom scponly apache2 apache2-doc libapache2-svn libsasl2-2 libsasl2-modules sasl2-bin php-pear php5 php5-cgi libgd2-xpm libapache2-mod-php5 php5-mysql

Does that work? if not, what error does it give you?

-Eric

Fri, 07/01/2011 - 20:45
seemeinhi

Sorry, thought it might be too late for you. I am in Hawaii. I have a couple of people who would complain...

I installed Ubuntu (dedicated server), and it seems to be installing...

Worked!

I would still like to reinstall Debian, but have to know what happened... If you have any clues, let me know.

Thank you for your time.

Fri, 07/01/2011 - 20:52
andreychek

Howdy,

Well, next time that you're able to try the install on Debian -- try the troubleshooting step I mentioned above if you run into that problem again, and we can work from there :-)

I'm glad you got it working on Ubuntu though!

-Eric

Sat, 07/02/2011 - 09:18
seemeinhi

It works but the most important backup would not restore

Don

Warning - the following features were enabled in one or more of the domains in the backup, but are not enabled on this system : Plugin virtualmin-google-analytics

This backup cannot be restored without breaking the configuration of this system.

Sat, 07/02/2011 - 09:33
andreychek

You would get that if the backup depends on a given feature that was installed and enabled on your old server, but isn't configured on your new server.

Try installing the virtualmin-google-analytics plugin. You can do that by running:

apt-get install webmin-virtualmin-google-analytics

Then, go into System Settings -> Features and Plugins, and make sure it's enabled. Once you do that, your restore should work.

-Eric

Sat, 07/02/2011 - 09:54
seemeinhi

That did it. Thanks a lot!

I might try debian next weekend. I should have came to you way earlier, but thought it was something I did, so I kept reinstalling... till I was brain dead LOL I have used this script a few times and it always worked good.

Thank You again Don

Sat, 07/02/2011 - 13:00
seemeinhi

Hi Eric,

I can send mail out, and there is email in inbox, but when I check it dovecot sees an empty folder.

I have been through this before, but can't remember (getting old sucks :-) Any ideas?

from /var/log/mail.info

Jul 2 07:46:40 donswebservices dovecot: pop3-login: Login: user=<don.my-hi>, method=PLAIN, rip=209.183.55.47, lip=209.139.209.213 Jul 2 07:46:42 donswebservices dovecot: POP3(don.my-hi): Disconnected: Logged out top=0/0, retr=0/0, del=0/8, size=51987 Jul 2 07:46:54 donswebservices dovecot: pop3-login: Login: user=<don.hdc>, method=PLAIN, rip=209.183.55.47, lip=209.139.209.100 Jul 2 07:46:54 donswebservices dovecot: POP3(don.hdc): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0 Jul 2 07:47:07 donswebservices dovecot: pop3-login: Disconnected (auth failed, 1 attempts): user=, method=PLAIN, rip=209.183.55.47, lip=209.139.209.100 Jul 2 07:47:14 donswebservices dovecot: pop3-login: Login: user=, method=PLAIN, rip=209.183.55.47, lip=209.139.209.213 Jul 2 07:47:16 donswebservices dovecot: POP3(my-hi): Disconnected: Logged out top=0/0, retr=0/0, del=0/1, size=7530 Jul 2 07:50:01 donswebservices postfix/pickup[6613]: AA34E661FB1: uid=1016 from= Jul 2 07:50:01 donswebservices postfix/cleanup[7616]: AA34E661FB1: message-id=20110702175001.AA34E661FB1@donswebservices.com Jul 2 07:50:01 donswebservices postfix/qmgr[6612]: AA34E661FB1: from=qb@donswebservices.com, size=656, nrcpt=1 (queue active) Jul 2 07:50:01 donswebservices spamd[1053]: spamd: connection from localhost [127.0.0.1] at port 47404 Jul 2 07:50:01 donswebservices spamd[1053]: spamd: setuid to qb succeeded Jul 2 07:50:01 donswebservices spamd[1053]: spamd: processing message 20110702175001.AA34E661FB1@donswebservices.com for qb:1016 Jul 2 07:50:02 donswebservices spamd[1053]: spamd: clean message (-0.0/5.0) for qb:1016 in 0.2 seconds, 790 bytes. Jul 2 07:50:02 donswebservices spamd[1053]: spamd: result: . 0 - NO_RELAYS scantime=0.2,size=790,user=qb,uid=1016,required_score=5.0,rhost=localhost,raddr=127.0.0.1,rport=47404,mid=20110702175001.AA34E661FB1@donswebservices.com,autolearn=ham Jul 2 07:50:02 donswebservices postfix/local[7622]: AA34E661FB1: to=qb@donswebservices.com, orig_to=, relay=local, delay=0.59, delays=0.25/0.01/0/0.34, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME) Jul 2 07:50:02 donswebservices postfix/qmgr[6612]: AA34E661FB1: removed Jul 2 07:50:02 donswebservices spamd[1052]: prefork: child states: II Jul 2 07:50:41 donswebservices dovecot: pop3-login: Login: user=, method=PLAIN, rip=209.183.55.47, lip=209.139.209.100 Jul 2 07:50:42 donswebservices dovecot: POP3(donsws): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0

Sat, 07/02/2011 - 13:06
andreychek

If the message was received by the server -- the next step is to look in the procmail logs, and see where it delivered it. You can see those in /var/log/procmail.log. You should be able to determine what user and folder it was delivered to.

-Eric

Sat, 07/02/2011 - 13:36
seemeinhi

It was delivered to the right place...

To:my-hi@my-hi.com User:my-hi Size:8452 Dest:/home/my-hi/Maildir/new/1309630757.9082_0.donswebservices Mode:None

Inbox and folders in ~/Maildir is checked in dovecot

Sat, 07/02/2011 - 15:38
andreychek

So that looks like it was delivered to the "my-hi" account -- is that who you were logging in as?

You might try a different email client, just to rule it out as a possibility. Usermin would be a good test. If you access port 20000 on your server, and log in as my-hi, do you see the email then?

-Eric

Sat, 07/02/2011 - 15:51
seemeinhi

Yes there is mail there

Sat, 07/02/2011 - 16:32
seemeinhi

I use outlook for my wife's email and it worked. I use a china program called foxmail. It has always worked before. Getting closer :-) The first time I did all this, was with webmin first. Took me 5 or 6 days... But, I 'used to' like that sort of thing...

Could it be the "type of connection" that is my problem?

Sat, 07/02/2011 - 19:15
andreychek

Well, I'm not familiar with Foxmail... though if it works on a different client, than Dovecot is working correctly. That means there's likely some kind of setting in your mail client causing the problems.

You could always take a look at /var/log/mail.log when you check your mail on Foxmail to make sure you see the incoming connection, and that there aren't any errors.

Also, if Foxmail has a spam folder, you may want to check that, just to be sure that the email wasn't classified as spam.

-Eric