[SOLVED]Receiving fatal error

15 posts / 0 new
Last post
#1 Tue, 10/28/2014 - 20:32
AzaZPPL

[SOLVED]Receiving fatal error

Wed, 10/29/2014 - 00:23
andreychek

Howdy,

Hmm, I'm not sure what would cause that error from the above output.

I'm curious what error you receive, if any, if you run this command on the command line as root:

apt-get install apache2 apache2-doc apache2-suexec-custom awstats clamav clamav-base clamav-daemon clamav-docs clamav-freshclam clamav-testfiles db-util db5.3-util libapache2-mod-fcgid libapache2-mod-php5 libapache2-mod-svn libapache2-svn libclamav6 libcrypt-ssleay-perl libdbd-pg-perl libfcgi-dev libfcgi0ldbl libltdl7 libnet-xwhois-perl libpg-perl libpq5 libruby1.9.1 libserf-1-1 libsvn1 libxml-namespacesupport-perl libxml-parser-perl libxml-sax-base-perl libxml-sax-expat-perl libxml-sax-perl libxml-simple-perl libyaml-0-2 mailman mysql-client php-pear php5 postfix-pcre postgresql postgresql-9.3 postgresql-client postgresql-client-9.3 postgresql-client-common postgresql-common procmail procmail-wrapper quota ri ri1.9.1 ruby ruby1.9.1 sasl2-bin scponly subversion unzip webalizer zip
Wed, 10/29/2014 - 00:41
andreychek

Also, one other command that might help diagnose what's going on -- what is the output of this:

free -m

Wed, 10/29/2014 - 09:56
AzaZPPL

Hello andreycheck sorry for the late reply just came from work.

I've tried running the first command you gave me and this is what the the output is:

procmail is already the newest version.
subversion is already the newest version.
apache2-suexec-custom is already the newest version.
clamav-testfiles is already the newest version.
libapache2-mod-svn is already the newest version.
libapache2-svn is already the newest version.
scponly is already the newest version.
procmail-wrapper is already the newest version.
The following packages were automatically installed and are no longer required:
  linux-headers-3.13.0-32 linux-headers-3.13.0-32-generic
  linux-image-3.13.0-32-generic linux-image-extra-3.13.0-32-generic
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up libapache2-mod-fcgid (1:2.3.9-1) ...
chown: cannot access ‘/var/lib/apache2/fcgid’: No such file or directory
dpkg: error processing package libapache2-mod-fcgid (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 libapache2-mod-fcgid
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@TJFMS:~#

Looks like something is wrong with libapache2-mod-fcgid

Running the second command gave me this:

root@TJFMS:~# free -m
             total       used       free     shared    buffers     cached
Mem:           740        657         83         15         10        280
-/+ buffers/cache:        366        374
Swap:          759         66        693
root@TJFMS:~#
Wed, 10/29/2014 - 11:03
andreychek

Howdy,

Are you by chance running the desktop version of Ubuntu? That is, is there a GUI on that system?

Your server appears to be pretty low on RAM, and it may be running into memory constraints.

Regarding that Apache issue, try running these two commands, which should correct it. You shouldn't normally need to run these though, but it should help with the issue you're currently seeing:

mkdir /var/lib/apache2/fcgid/
chown www-data /var/lib/apache2/fcgid/

Once you run those commands, try re-running the "apt-get install ..." command from above to install all those packages.

-Eric

Wed, 10/29/2014 - 11:17
AzaZPPL

Hell Eric,

Im not running the desktop version. Logging into webmin I can see what uses up all the ram. Here is a picture of what is going: http://prntscr.com/50yusz

Your solution for the Apache issue helped running the apt-get without any errors. Should I now re-run the install.sh of virtualmin? Or try to make the RAM usage lower just to make sure we can run it fine this time.

Wed, 10/29/2014 - 12:01
andreychek

Howdy,

You could try running the install.sh now -- now that all those packages are installed, it may complete the installation properly.

However, if you happen to have more RAM laying around around, putting that into your server wouldn't hurt :-)

-Eric

Wed, 10/29/2014 - 12:19 (Reply to #7)
AzaZPPL

Hello Eric,

Unfortunately after trying it again it didn't work.

INFO - 2014-10-29 17:57:05 - Started installation log in /root/virtualmin-install.log
DEBUG - 2014-10-29 17:57:05 - Install mode: full
DEBUG - 2014-10-29 17:57:05 - Product: Virtualmin GPL
DEBUG - 2014-10-29 17:57:05 - Virtualmin Meta-Package list: virtualmin-base
DEBUG - 2014-10-29 17:57:05 - install.sh version: 1.1.1
INFO - 2014-10-29 17:57:05 - Checking for fully qualified hostname...
INFO - 2014-10-29 17:57:05 - Hostname OK: fully qualified as junkfoodmountain.com
INFO - 2014-10-29 17:57:05 - Installing serial number and license key into /etc/virtualmin-license
INFO - 2014-10-29 17:57:06 - Loading OS selection library...
INFO - 2014-10-29 17:57:06 - Download of http://software.virtualmin.com/lib/oschooser.pl Succeeded.
INFO - 2014-10-29 17:57:06 - Loading OS list...
INFO - 2014-10-29 17:57:06 - Download of http://software.virtualmin.com/lib/os_list.txt Succeeded.
INFO - 2014-10-29 17:57:06 - Operating system name:    Ubuntu Linux
INFO - 2014-10-29 17:57:07 - Operating system version: 14.04.1
INFO - 2014-10-29 17:57:07 - Configuring package manager for Ubuntu Linux 14.04.1...
INFO - 2014-10-29 17:57:07 - Enabling universe repositories, if not already available...
INFO - 2014-10-29 17:57:07 - Disabling cdrom repositories...
INFO - 2014-10-29 17:57:42 - Cleaning up apt headers and packages, so we can start fresh...
INFO - 2014-10-29 17:57:42 - 
INFO - 2014-10-29 17:57:43 - Download of http://software.virtualmin.com/lib/apt.conf.noninteractive Succeeded.
INFO - 2014-10-29 17:57:43 - Installing Webmin and Virtualmin package signing keys...
INFO - 2014-10-29 17:57:43 - Download of http://software.virtualmin.com/lib/RPM-GPG-KEY-virtualmin Succeeded.
INFO - 2014-10-29 17:57:44 - Download of http://software.virtualmin.com/lib/RPM-GPG-KEY-webmin Succeeded.
INFO - 2014-10-29 17:57:44 - OK
INFO - 2014-10-29 17:57:44 - OK
INFO - 2014-10-29 17:58:16 - Ign
INFO - 2014-10-29 17:58:16 - Removing Debian standard Webmin package, if they exist...
INFO - 2014-10-29 17:58:16 - Removing Debian apache packages...
DEBUG - 2014-10-29 17:58:29 - Reading
INFO - 2014-10-29 17:58:29 - Installing dependencies using command: /usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install postfix postfix-pcre webmin usermin ruby libxml-simple-perl libcrypt-ssleay-perl unzip zip libfcgi-dev bind9 spamassassin spamc procmail procmail-wrapper 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 libapache2-mod-php5 php5-mysql
Reading package lists...
Building dependency tree...
Reading state information...
awstats is already the newest version.
bind9 is already the newest version.
iptables is already the newest version.
libdbd-mysql-perl is already the newest version.
libfcgi-dev is already the newest version.
libnet-ssleay-perl is already the newest version.
libsasl2-2 is already the newest version.
libsasl2-modules is already the newest version.
libxml-simple-perl is already the newest version.
mailman is already the newest version.
postfix is already the newest version.
postfix-pcre is already the newest version.
postgresql is already the newest version.
postgresql-client is already the newest version.
python is already the newest version.
quota is already the newest version.
ruby is already the newest version.
sasl2-bin is already the newest version.
spamassassin is already the newest version.
spamc is already the newest version.
unzip is already the newest version.
zip is already the newest version.
libapache2-mod-fcgid is already the newest version.
libcrypt-ssleay-perl is already the newest version.
libdbd-pg-perl is already the newest version.
libpg-perl is already the newest version.
proftpd-basic is already the newest version.
ri is already the newest version.
webalizer is already the newest version.
apache2-doc is already the newest version.
clamav is already the newest version.
clamav-base is already the newest version.
clamav-daemon is already the newest version.
clamav-docs is already the newest version.
clamav-freshclam is already the newest version.
dovecot-core is already the newest version.
dovecot-imapd is already the newest version.
dovecot-pop3d is already the newest version.
mysql-client is already the newest version.
mysql-common is already the newest version.
mysql-server is already the newest version.
openssl is already the newest version.
php-pear is already the newest version.
php5 is already the newest version.
php5-cgi is already the newest version.
php5-mysql is already the newest version.
procmail is already the newest version.
subversion is already the newest version.
apache2-suexec-custom is already the newest version.
clamav-testfiles is already the newest version.
libapache2-svn is already the newest version.
procmail-wrapper is already the newest version.
scponly is already the newest version.
webmin is already the newest version.
The following packages were automatically installed and are no longer required:
  linux-headers-3.13.0-32 linux-headers-3.13.0-32-generic
  linux-image-3.13.0-32-generic linux-image-extra-3.13.0-32-generic
Use 'apt-get autoremove' to remove them.
Suggested packages:
  apache2-utils
The following NEW packages will be installed:
  apache2 libapache2-mod-php5 usermin
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 11.5 MB of archives.
After this operation, 51.0 MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main apache2 i386 2.4.7-1ubuntu4.1 [87.6 kB]
Get:2 http://software.virtualmin.com/gpl/ubuntu/ virtualmin-universal/main usermin all 1.600 [9280 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libapache2-mod-php5 i386 5.5.9+dfsg-1ubuntu4.4 [2145 kB]
Fetched 11.5 MB in 5s (1955 kB/s)
(Reading database ... 174066 files and directories currently installed.)
Preparing to unpack .../archives/usermin_1.600_all.deb ...
Port 20000 is already in use
Selecting previously unselected package apache2.
Preparing to unpack .../apache2_2.4.7-1ubuntu4.1_i386.deb ...
Unpacking apache2 (2.4.7-1ubuntu4.1) ...
Selecting previously unselected package libapache2-mod-php5.
Preparing to unpack .../libapache2-mod-php5_5.5.9+dfsg-1ubuntu4.4_i386.deb ...
Unpacking libapache2-mod-php5 (5.5.9+dfsg-1ubuntu4.4) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for ufw (0.34~rc-0ubuntu2) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
FATAL - 2014-10-29 17:58:46 - Fatal Error Occurred: Something went wrong during installation: 0
FATAL - 2014-10-29 17:58:46 - Cannot continue installation.
FATAL - 2014-10-29 17:58:46 - Attempting to remove virtualmin repository configuration, so the installation can be 
FATAL - 2014-10-29 17:58:46 - re-attempted after any problems have been resolved.
FATAL - 2014-10-29 17:58:46 - Removing temporary directory and files.
FATAL - 2014-10-29 17:58:46 - If you are unsure of what went wrong, you may wish to review the log
FATAL - 2014-10-29 17:58:46 - in /root/virtualmin-install.log

I'm trying to get my hands on 512MB DDR but those are really hard to find now. As the old thing only has 2 RAM slots.

--EDIT

I just noticed something that is not in the log. This codeblock is from the console screen instead from the .log file.

INFO -
INFO - Download of http://software.virtualmin.com/lib/apt.conf.noninteractive Succeeded.
INFO - Installing Webmin and Virtualmin package signing keys...
INFO - Download of http://software.virtualmin.com/lib/RPM-GPG-KEY-virtualmin Succeeded.
INFO - Download of http://software.virtualmin.com/lib/RPM-GPG-KEY-webmin Succeeded.
INFO - OK
INFO - OK
INFO - Ign
INFO - Removing Debian standard Webmin package, if they exist...
INFO - Removing Debian apache packages...
php5_invoke prerm: Disable module gd for apache2 SAPI
php5_invoke prerm: Disable module opcache for apache2 SAPI
php5_invoke prerm: Disable module pdo for apache2 SAPI
php5_invoke prerm: Disable module mysql for apache2 SAPI
php5_invoke prerm: Disable module mysqli for apache2 SAPI
php5_invoke prerm: Disable module pdo_mysql for apache2 SAPI
php5_invoke prerm: Disable module mcrypt for apache2 SAPI
php5_invoke prerm: Disable module json for apache2 SAPI
php5_invoke prerm: Disable module readline for apache2 SAPI
apache2_invoke prerm: Disable module php5
apache2_invoke postrm: Purging state for php5
dpkg: warning: while removing apache2, directory '/var/www/html' not empty so not removed
dpkg: warning: while removing apache2, directory '/etc/apache2/sites-available' not empty so not removed
INFO - Installing dependencies using command: /usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install postfix postfix-pcre webmin usermin ruby libxml-simple-perl libcrypt-ssleay-perl unzip zip libfcgi-dev bind9 spamassassin spamc procmail procmail-wrapper 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 libapache2-mod-php5 php5-mysql
...in progress, please wait...
.........dpkg: error processing archive /var/cache/apt/archives/usermin_1.600_all.deb (--unpack):
 subprocess new pre-installation script returned error exit status 2
......Errors were encountered while processing:
 /var/cache/apt/archives/usermin_1.600_all.deb
.E: Sub-process /usr/bin/dpkg returned an error code (1)
 
/usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install postfix postfix-pcre webmin usermin ruby libxml-simple-perl libcrypt-ssleay-perl unzip zip libfcgi-dev bind9 spamassassin spamc procmail procmail-wrapper 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 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:
Get:2 http://software.virtualmin.com/gpl/ubuntu/ virtualmin-universal/main usermin all 1.600 [9280 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libapache2-mod-php5 i386 5.5.9+dfsg-1ubuntu4.4 [2145 kB]
Fetched 11.5 MB in 5s (1955 kB/s)
(Reading database ... 174066 files and directories currently installed.)
Preparing to unpack .../archives/usermin_1.600_all.deb ...
Port 20000 is already in use
Selecting previously unselected package apache2.
Preparing to unpack .../apache2_2.4.7-1ubuntu4.1_i386.deb ...
Unpacking apache2 (2.4.7-1ubuntu4.1) ...
Selecting previously unselected package libapache2-mod-php5.
Preparing to unpack .../libapache2-mod-php5_5.5.9+dfsg-1ubuntu4.4_i386.deb ...
Unpacking libapache2-mod-php5 (5.5.9+dfsg-1ubuntu4.4) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for ufw (0.34~rc-0ubuntu2) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
 
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
Wed, 10/29/2014 - 13:32
ReArmedHalo

You said you had Webmin installed on the system, I think you might have some conflicts as I see a mention of port 2000 already in use (Which is Usermin).

...
Fetched 11.5 MB in 5s (1955 kB/s)
(Reading database ... 174066 files and directories currently installed.)
Preparing to unpack .../archives/usermin_1.600_all.deb ...
Port 20000 is already in use
Selecting previously unselected package apache2.
...

I am not 100% sure but the error code 1 being returned could be because of that?

Also I saw this error a little bit above the previous mentioned message:

...
INFO - Installing dependencies using command: /usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install postfix postfix-pcre webmin usermin ruby libxml-simple-perl libcrypt-ssleay-perl unzip zip libfcgi-dev bind9 spamassassin spamc procmail procmail-wrapper 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 libapache2-mod-php5 php5-mysql
...in progress, please wait...
.........dpkg: error processing archive /var/cache/apt/archives/usermin_1.600_all.deb (--unpack):
 subprocess new pre-installation script returned error exit status 2
......Errors were encountered while processing:
 /var/cache/apt/archives/usermin_1.600_all.deb
.E: Sub-process /usr/bin/dpkg returned an error code (1)
...
Wed, 10/29/2014 - 13:46 (Reply to #9)
AzaZPPL

Hello app1egenius,

After searching the forums a little bit I found this: https://www.virtualmin.com/node/21468

By following these command I noticed that the problem is with usermin. I'm going to try and remove webmin and try reinstalling webmin without usermin.

Wed, 10/29/2014 - 13:48 (Reply to #10)
ReArmedHalo

If possible, I would just recommend removing webmin and letting the virtualmin install.sh script install it for you. It will take care of all three (Virtualmin, Webmin and Usermin).

Let us know how things work out :)

Wed, 10/29/2014 - 14:40 (Reply to #11)
AzaZPPL

Well me being such a noob I've accidentally deleted something that was important and the server broke. Guess I have to reinstall the whole server again. Just quick question. Can I install virtualmin right after I reinstalled the whole server or do I need to install LAMP and afterwards virtualmin.

Wed, 10/29/2014 - 14:49 (Reply to #12)
ReArmedHalo

You can just install Virtualmin right away. It will install BIND (DNS), Apache, MySQL, PHP and everything else it needs, including Webmin and Usermin.

Wed, 10/29/2014 - 16:58
AzaZPPL

Just reinstalled the whole server and right after that started install.sh. Works perfect at the moment.

Wed, 10/29/2014 - 18:03 (Reply to #14)
ReArmedHalo

Good to hear it! Let us know if you need any more assistance :)

-Dustin

Topic locked