About these ads

HPOM: Flood Gate has Detected a Storm for Application

Contact Support Team or Technical Lead. Flood Gate has Detected a Storm for Application (CLONED_LINUX.SETAOFFICE.COM^:^ntpmon^:^) Logfile: None Annotations: No

Node : cloned_linux.setaoffice.com
Node Type : Intel/AMD x86(HTTPS)
Severity : major
OM Server Time: 2014-03-21 10:02:21
Message : Contact Support Team or Technical Lead. Flood Gate has Detected a Storm for Application (CLONED_LINUX.SETAOFFICE.COM^:^ntpmon^:^) Logfile: None Annotations: No
Msg Group : OS
Application : esf
Object : Event Storm
Event Type :
not_found

Instance Name :
not_found

Instruction : No

This error was appearing in my case because this server was cloned and probably it has the same certificate as the cloned machine.

I reinstalled HPOM.

About these ads

yum: No module named gzip or another library

You are troubleshooting your yum installation, getting the missing libraries

root@linux:~ # yum whatprovides
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

No module named gzip

Please install a package which provides this module, or
verify that the module is installed correctly.

It’s possible that the above module doesn’t match the
current version of Python, which is:
2.4.3 (#1, Aug 29 2011, 10:55:55)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-51)]

If you cannot solve this problem yourself, please go to
the yum faq at:

http://wiki.linux.duke.edu/YumFaq

If you see a different module, try to install all python libraries

root@linux:~ # yum repolist
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

No module named zlib

Please install a package which provides this module, or
verify that the module is installed correctly.

It’s possible that the above module doesn’t match the
current version of Python, which is:
2.4.3 (#1, Aug 29 2011, 10:55:55)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-51)]

If you cannot solve this problem yourself, please go to
the yum faq at:

http://wiki.linux.duke.edu/YumFaq

List the packages starting with python

root@linux:~ # rpm -qa –qf “%{n}-%{arch}\n” | grep ^python
python-ldap-x86_64
python-urlgrabber-noarch
python-x86_64
python-libs-x86_64
python-devel-x86_64
python-sqlite-x86_64
python-numeric-x86_64
python-iniparse-noarch
python-elementtree-x86_64
python-dmidecode-x86_64
python-devel-i386

And query each one of them to see if there is a missing file. Reinstall the packages that report missing files.

root@linux:~ # rpm -V python-devel-2.4.3-44.el5_7.1
missing /usr/lib64/python2.4/test/decimaltestdata/normalize.decTest
missing /usr/lib64/python2.4/test/decimaltestdata/quantize.decTest
missing /usr/lib64/python2.4/test/output/test_tokenize
missing /usr/lib64/python2.4/test/test_normalization.pyc
missing /usr/lib64/python2.4/test/test_normalization.pyo
missing /usr/lib64/python2.4/test/test_zipfile.py
missing /usr/lib64/python2.4/test/test_zipfile.pyc
missing /usr/lib64/python2.4/test/test_zipfile.pyo
missing /usr/lib64/python2.4/test/test_zipimport.py
missing /usr/lib64/python2.4/test/test_zipimport.pyc
missing /usr/lib64/python2.4/test/test_zipimport.pyo
missing /usr/lib/python2.4/test/decimaltestdata/normalize.decTest
missing /usr/lib/python2.4/test/decimaltestdata/quantize.decTest
missing /usr/lib/python2.4/test/output/test_tokenize
missing /usr/lib/python2.4/test/test_normalization.pyc
missing /usr/lib/python2.4/test/test_normalization.pyo
missing /usr/lib/python2.4/test/test_zipfile.py
missing /usr/lib/python2.4/test/test_zipfile.pyc
missing /usr/lib/python2.4/test/test_zipfile.pyo
missing /usr/lib/python2.4/test/test_zipimport.py
missing /usr/lib/python2.4/test/test_zipimport.pyc
missing /usr/lib/python2.4/test/test_zipimport.pyo

root@linux:~ # rpm -V python-ldap-2.2.0-2.1

root@linux:~ # rpm -V python-urlgrabber-3.1.0-6.el5

root@linux:~ # rpm -V python-devel-2.4.3-44.el5_7.1
missing /usr/lib64/python2.4/test/decimaltestdata/normalize.decTest
missing /usr/lib64/python2.4/test/decimaltestdata/quantize.decTest
missing /usr/lib64/python2.4/test/output/test_tokenize
missing /usr/lib64/python2.4/test/test_normalization.pyc
missing /usr/lib64/python2.4/test/test_normalization.pyo
missing /usr/lib64/python2.4/test/test_zipfile.py
missing /usr/lib64/python2.4/test/test_zipfile.pyc
missing /usr/lib64/python2.4/test/test_zipfile.pyo
missing /usr/lib64/python2.4/test/test_zipimport.py
missing /usr/lib64/python2.4/test/test_zipimport.pyc
missing /usr/lib64/python2.4/test/test_zipimport.pyo
missing /usr/lib/python2.4/test/decimaltestdata/normalize.decTest
missing /usr/lib/python2.4/test/decimaltestdata/quantize.decTest
missing /usr/lib/python2.4/test/output/test_tokenize
missing /usr/lib/python2.4/test/test_normalization.pyc
missing /usr/lib/python2.4/test/test_normalization.pyo
missing /usr/lib/python2.4/test/test_zipfile.py
missing /usr/lib/python2.4/test/test_zipfile.pyc
missing /usr/lib/python2.4/test/test_zipfile.pyo
missing /usr/lib/python2.4/test/test_zipimport.py
missing /usr/lib/python2.4/test/test_zipimport.pyc
missing /usr/lib/python2.4/test/test_zipimport.pyo

root@linux:~ # rpm -V python-sqlite-1.1.7-1.2.1

root@linux:~ # rpm -V python-numeric-23.7-2.2.2.el5_6.1

root@linux:~ # rpm -V python-iniparse-0.2.3-4.el5

root@linux:~ # rpm -V python-elementtree-1.2.6-5

root@linux:~ # rpm -V python-libs-2.4.3-44.el5_7.1
missing /usr/lib64/python2.4/_MozillaCookieJar.py
missing /usr/lib64/python2.4/_MozillaCookieJar.pyc
missing /usr/lib64/python2.4/_MozillaCookieJar.pyo
missing /usr/lib64/python2.4/tokenize.py
missing /usr/lib64/python2.4/tokenize.pyc
missing /usr/lib64/python2.4/tokenize.pyo
missing /usr/lib64/python2.4/tzparse.py
missing /usr/lib64/python2.4/tzparse.pyc
missing /usr/lib64/python2.4/tzparse.pyo
missing /usr/lib64/python2.4/zipfile.py
missing /usr/lib64/python2.4/zipfile.pyc
missing /usr/lib64/python2.4/zipfile.pyo

root@linux:~ # rpm -V python-dmidecode-3.10.13-1.el5_5.1

There was a problem importing one of the Python modules required to run yum

I had a problem with the server and then yum was not running

root@linux:~ # yum whatprovides libbz2.so.1
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

libbz2.so.1: cannot open shared object file: No such file or directory

Please install a package which provides this module, or
verify that the module is installed correctly.

It’s possible that the above module doesn’t match the
current version of Python, which is:
2.4.3 (#1, Aug 29 2011, 10:55:55)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-51)]

If you cannot solve this problem yourself, please go to
the yum faq at:

http://wiki.linux.duke.edu/YumFaq

I ran python manually and tried to import the module

root@linux:~ # python
Python 2.4.3 (#1, Aug 29 2011, 10:55:55)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
>>> import yum
Traceback (most recent call last):
File “”, line 1, in ?
File “/usr/lib/python2.4/site-packages/yum/__init__.py”, line 23, in ?
import rpm
File “/usr/lib64/python2.4/site-packages/rpm/__init__.py”, line 7, in ?
from _rpm import *
ImportError: libbz2.so.1: cannot open shared object file: No such file or directory

Seeing other server, I needed this two files

root@other_linux:~ # find / -name libbz2.so.1
/usr/lib/libbz2.so.1
/usr/lib64/libbz2.so.1

Which are a link

root@linux:~ # ls -l /usr/lib/libbz2.so.1
lrwxrwxrwx 1 root root 15 Mar 14 11:09 /usr/lib/libbz2.so.1 -> libbz2.so.1.0.3
root@linux:~ # ls -l /usr/lib64/libbz2.so.1
lrwxrwxrwx 1 root root 15 Mar 14 11:10 /usr/lib64/libbz2.so.1 -> libbz2.so.1.0.3

They didn’t exist in the server

root@other_linux:~ # ls -l /usr/lib/libbz2.so.1.0.3
-rwxr-xr-x 1 root root 71852 Sep 20 2010 /usr/lib/libbz2.so.1.0.3
root@other_linux:~ # ls -l /usr/lib64/libbz2.so.1.0.3
-rwxr-xr-x 1 root root 67792 Sep 20 2010 /usr/lib64/libbz2.so.1.0.3

root@linux:~ # ls -l /usr/lib/libbz2.so.1.0.3
ls: /usr/lib/libbz2.so.1.0.3: No such file or directory
root@linux:~ # ls -l /usr/lib64/libbz2.so.1.0.3
ls: /usr/lib64/libbz2.so.1.0.3: No such file or directory

The package bzip2-libs provide the files. Download it and install the package with rpm and try to run yum again

root@other_linux:~ # yum whatprovides /usr/lib/libbz2.so.1.0.3
Loaded plugins: downloadonly, rhnplugin, security
Importing additional filelist information
repository/filelists_db | 40 MB 00:04
bzip2-libs-1.0.3-3.i386 : Libraries for applications using bzip2
Repo : repository
Matched from:
Filename : /usr/lib/libbz2.so.1.0.3

bzip2-libs-1.0.3-6.el5_5.i386 : Libraries for applications using bzip2
Repo : repository
Matched from:
Filename : /usr/lib/libbz2.so.1.0.3

bzip2-libs-1.0.3-4.el5_2.i386 : Libraries for applications using bzip2
Repo : repostory
Matched from:
Filename : /usr/lib/libbz2.so.1.0.3

bzip2-libs-1.0.3-6.el5_5.i386 : Libraries for applications using bzip2
Repo : repository
Matched from:
Other : Provides-match: /usr/lib/libbz2.so.1.0.3

Symantec Enterprise Security Manager install error: 32bit libpam not detected, aborting installation

Trying to install Symantec ESM on Red Hat Enterprise Linux

root@linux:/tmp/esm100 # ./Linux18.sh esmmanager.setaoffice.com linux.setaoffice.com
Logging ESM install to /tmp/esm_install.log.30608
32bit libpam not detected, aborting installation

When installing PAM 32 bits it shows the following libraries are needed

root@linux:/tmp/esm100 # rpm -ivh pam-1.1.1-13.el6.i686.rpm
error: Failed dependencies:
libaudit.so.1 is needed by pam-1.1.1-13.el6.i686
libcrack.so.2 is needed by pam-1.1.1-13.el6.i686
libdb-4.7.so is needed by pam-1.1.1-13.el6.i686
libselinux.so.1 is needed by pam-1.1.1-13.el6.i686

Install audit-libs, cracklib, db4 and finally pam

root@linux:/tmp/esm100 # rpm -ivh audit-libs-2.2-2.el6.i686.rpm
Preparing… ########################################### [100%]
1:audit-libs ########################################### [100%]

root@linux:/tmp/esm100 # rpm -ivh cracklib-2.8.16-4.el6.i686.rpm
Preparing… ########################################### [100%]
1:cracklib ########################################### [100%]

root@linux:/tmp/esm100 # rpm -ivh db4-4.7.25-18.el6_4.i686.rpm
Preparing… ########################################### [100%]
1:db4 ########################################### [100%]

root@linux:/tmp/esm100 # rpm -ivh libselinux-2.0.94-5.3.el6_4.1.i686.rpm
Preparing… ########################################### [100%]
1:libselinux ########################################### [100%]

root@linux:/tmp/esm100 # rpm -ivh pam-1.1.1-13.el6.i686.rpm
Preparing… ########################################### [100%]
1:pam ########################################### [100%]

/sbin/ldconfig: File /usr/lib/libnoexec.so is empty, not checked.

In my case, this is not a real library, it is an empty file so I just moved the file when encountered the error.

root@linux:~ # rpm -ivh pam-1.1.1-13.el6.i686.rpm
Preparing… ########################################### [100%]
1:pam ########################################### [100%]
/sbin/ldconfig: File /usr/lib/libnoexec.so is empty, not checked.

Just type the following command to move the file

root@linux:~ # mv /usr/lib/libnoexec.so /tmp

hpiod and hpssd daemons

The daemons hpssd and hpiod belong to the HP Linux Imaging and Printing service

root@linux:~ # cat /etc/init.d/hplip
# chkconfig: 2345 50 10
# description: Start/stop script for HP Linux Imaging and Printing (HPLIP).

echo -n $”Starting hpiod: “
cd $HPIODDIR
daemon ./hpiod
RETVAL=$?
echo
[ $RETVAL = 0 ] && [ -d /var/lock/subsys ] && touch /var/lock/subsys/hpiod
echo -n $”Starting hpssd: “
cd $HPSSDDIR
daemon ./hpssd.py
RETVAL=$?

netcat on Suse Linux and Red Hat Enterprise Linux

There are two netcat application around.

Suse Linux uses netcat

root@suselinux10sp4:~ # cat /etc/*release
SUSE Linux Enterprise Server 10 (x86_64)
VERSION = 10
PATCHLEVEL = 4
LSB_VERSION=”core-2.0-noarch:core-3.0-noarch:core-2.0-x86_64:core-3.0-x86_64″

This is the package

root@suselinux10sp4:~ # rpm -qa | grep netcat
netcat-1.10-883.2

Test port this way

root@suselinux10sp4:~ # netcat -vz 172.16.4.198 21
solaris10 [172.16.4.198] 21 (ftp) open

This is the package information

root@suselinux10sp4:~ # rpm -qi netcat
Name : netcat Relocations: (not relocatable)
Version : 1.10 Vendor: SUSE LINUX Products GmbH, Nuernberg, Germany
Release : 883.2 Build Date: Fri Jun 16 11:04:19 2006
Install Date: Mon Jun 2 11:38:15 2008 Build Host: bassani.suse.de
Group : Productivity/Networking/Other Source RPM: netcat-1.10-883.2.src.rpm
Size : 130566 License: Other License(s), see package, distributable
Signature : DSA/SHA1, Fri Jun 16 11:07:49 2006, Key ID a84edae89c800aca
Packager : http://bugs.opensuse.org
Summary : A Simple But Powerful Network Tool
Description :
Netcat is a simple Unix utility that reads and writes data across
network connections using TCP or UDP protocols. It is designed to be a
reliable back-end tool that can be used directly or easily driven by
other programs and scripts. At the same time, it is a feature-rich
network debugging and exploration tool, because it can create almost
any kind of connection you may need and has several interesting
built-in capabilities.

Find the documentation in /usr/share/doc/packages/netcat/README.

Authors:
——–
hobbit@avian.org
Distribution: SUSE Linux Enterprise 10 (X86-64)

For Red Hat Linux

root@redhatenterpriselinux58:~ # cat /etc/*release
Red Hat Enterprise Linux Server release 5.8 (Tikanga)

This is the package

root@redhatenterpriselinux58:~ # rpm -qf /usr/bin/nc
nc-1.84-10.fc6

This is the package information

root@redhatenterpriselinux58:~ # rpm -qi nc
Name : nc Relocations: (not relocatable)
Version : 1.84 Vendor: Red Hat, Inc.
Release : 10.fc6 Build Date: Sun 01 Oct 2006 06:51:17 PM BRT
Install Date: Sat 16 Jul 2011 06:57:04 AM BRT Build Host: hs20-bc1-7.build.redhat.com
Group : Applications/Internet Source RPM: nc-1.84-10.fc6.src.rpm
Size : 111823 License: GPL
Signature : DSA/SHA1, Thu 18 Jan 2007 02:10:50 PM BRST, Key ID 5326810137017186
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla&gt;
URL : http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/nc/
Summary : Reads and writes data across network connections using TCP or UDP.
Description :
The nc package contains Netcat (the program is actually nc), a simple
utility for reading and writing data across network connections, using
the TCP or UDP protocols. Netcat is intended to be a reliable back-end
tool which can be used directly or easily driven by other programs and
scripts. Netcat is also a feature-rich network debugging and
exploration tool, since it can create many different connections and
has many built-in capabilities.

You may want to install the netcat package if you are administering a
network and you’d like to use its debugging and network exploration
capabilities.

This is how to test a port

root@redhatenterpriselinux58:~ # nc -vz 172.16.4.198 21
Connection to 172.16.4.198 21 port [tcp/ftp] succeeded!

error: error reading top line of /var/lib/logrotate.status

root@sles8:~ # cat /etc/*release
SuSE SLES-8 (i386)
VERSION = 8.1
UnitedLinux 1.0 (i586)
VERSION = 1.0
LSB_VERSION=”1.2″
DISTRIB_ID=”UnitedLinux”
DISTRIB_RELEASE=”1.0″
DISTRIB_DESCRIPTION=”UnitedLinux 1.0 (i586)”

I tried to start logrotate for syslog but I got an error

root@sles8:~ # logrotate -f /etc/logrotate.d/syslog
error: error reading top line of /var/lib/logrotate.status

Move the file with the error

root@sles8:~ # mv /var/lib/logrotate.status /var/lib/logrotate.status.bak

And run logrotate to verify the configuration

root@sles8:~ # logrotate -fv /etc/logrotate.conf
reading config file /etc/logrotate.conf
including /etc/logrotate.d
reading config file mon
reading config info for /var/log/downtime.log
reading config info for /var/log/mon_history.log
reading config file acct
reading config info for /var/account/pacct
reading config file uucp
reading config info for /var/log/uucp/Log /var/log/uucp/Stats
reading config info for /var/log/uucp/Debug
reading config file radiusd
reading config info for /var/log/radius/radius.log
reading config info for /var/log/radius/radwatch.log
reading config info for /var/log/radius/radwtmp
reading config file aaa_base
reading config info for /var/log/mgetty.*
reading config info for /var/log/vgetty.*
reading config info for /var/log/vbox.tty*
reading config info for /var/adm/isdn.log
reading config info for /var/lib/xdm/xdm-errors
reading config info for /var/log/debug
reading config info for /var/log/isdn
reading config info for /var/log/isdn.log
reading config info for /var/log/isdncalls
reading config info for /var/log/log.ceptd
reading config info for /var/log/samba/log.nmbd
reading config info for /var/log/samba/log.smbd
reading config info for /var/log/samba/log.winbindd
reading config info for /var/log/maillog
reading config info for /var/log/ntp
reading config info for /var/log/pop3svr.log
reading config info for /var/log/pvf.log
reading config info for /var/log/rinetd.log
reading config info for /var/log/rsyncd.log
reading config info for /var/log/wtmp
reading config info for /var/log/xdm.errors
reading config info for /var/log/xferlog
reading config info for /var/log/radius.log
reading config info for /var/log/radwatch.log
reading config info for /var/log/radwtmp
reading config file ldirectord
reading config info for /var/log/ldirectord.log
reading config file mysql
reading config info for /var/lib/mysql/mysqld.log
reading config file squid
reading config info for /var/log/squid/cache.log
reading config info for /var/log/squid/access.log
reading config info for /var/log/squid/store.log
reading config file heartbeat
reading config info for /var/log/ha-debug
reading config info for /var/log/ha-log
reading config file apache
reading config info for /var/log/httpd/access_log
reading config info for /var/log/httpd/error_log
reading config info for /var/log/httpd/suexec.log
reading config info for /var/log/httpd/ssl_request_log
reading config info for /var/log/httpd/ssl_engine_log
reading config file syslog
reading config info for /var/log/mail /var/log/warn /var/log/messages /var/log/allmessages /var /log/localmessages /var/log/firewall
reading config file fetchmail
reading config info for /var/log/fetchmail
reading config file sddsrv_log.d
reading config info for /var/log/sddsrv_bak.log
reading config info for /var/log/sdd_bak.log
reading config file postgresql
reading config info for /var/log/postgresql
Handling 50 logs
rotating pattern: /var/log/downtime.log forced from command line (4 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/downtime.log
log needs rotating
renaming /var/log/downtime.log.4 to /var/log/downtime.log.5
old log /var/log/downtime.log.4 does not exist
renaming /var/log/downtime.log.3 to /var/log/downtime.log.4
old log /var/log/downtime.log.3 does not exist
renaming /var/log/downtime.log.2 to /var/log/downtime.log.3
old log /var/log/downtime.log.2 does not exist
renaming /var/log/downtime.log.1 to /var/log/downtime.log.2
file /var/log/downtime.log.5 doesn’t exist — won’t try dispose of it
renaming /var/log/downtime.log to /var/log/downtime.log.1
creating new log mode = 0644 uid = 0 gid = 0
rotating pattern: /var/log/mon_history.log forced from command line (4 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/mon_history.log
log does not need rotating
rotating pattern: /var/account/pacct forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/account/pacct
log needs rotating
glob finding old rotated logs failed
file (null) doesn’t exist — won’t try dispose of it
renaming /var/account/pacct to /var/account/pacct-20140205
creating new log mode = 0640 uid = 0 gid = 0
running postrotate script
Reload process accountingShutting down process accounting done
Starting process accounting done
compressing new log with: /bin/gzip -9 ‘/var/account/pacct-20140205′
rotating pattern: /var/log/uucp/Log /var/log/uucp/Stats forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/uucp/Log
file /var/log/uucp/Log does not exist — skipping
rotating file /var/log/uucp/Stats
file /var/log/uucp/Stats does not exist — skipping
rotating pattern: /var/log/uucp/Debug forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/uucp/Debug
file /var/log/uucp/Debug does not exist — skipping
rotating pattern: /var/log/radius/radius.log forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/radius/radius.log
log needs rotating
glob finding old rotated logs failed
file (null) doesn’t exist — won’t try dispose of it
renaming /var/log/radius/radius.log to /var/log/radius/radius.log-20140205
creating new log mode = 0640 uid = 0 gid = 0
running postrotate script
Reload service radiusd failed
error running postrotate script
rotating pattern: /var/log/radius/radwatch.log forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/radius/radwatch.log
file /var/log/radius/radwatch.log does not exist — skipping
rotating pattern: /var/log/radius/radwtmp forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/radius/radwtmp
file /var/log/radius/radwtmp does not exist — skipping
rotating pattern: /var/log/mgetty.* forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/mgetty.*
file /var/log/mgetty.* does not exist — skipping
rotating pattern: /var/log/vgetty.* forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/vgetty.*
file /var/log/vgetty.* does not exist — skipping
rotating pattern: /var/log/vbox.tty* forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/vbox.tty*
file /var/log/vbox.tty* does not exist — skipping
rotating pattern: /var/adm/isdn.log forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/adm/isdn.log
file /var/adm/isdn.log does not exist — skipping
rotating pattern: /var/lib/xdm/xdm-errors forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/lib/xdm/xdm-errors
file /var/lib/xdm/xdm-errors does not exist — skipping
rotating pattern: /var/log/debug forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/debug
file /var/log/debug does not exist — skipping
rotating pattern: /var/log/isdn forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/isdn
file /var/log/isdn does not exist — skipping
rotating pattern: /var/log/isdn.log forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/isdn.log
file /var/log/isdn.log does not exist — skipping
rotating pattern: /var/log/isdncalls forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/isdncalls
file /var/log/isdncalls does not exist — skipping
rotating pattern: /var/log/log.ceptd forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/log.ceptd
file /var/log/log.ceptd does not exist — skipping
rotating pattern: /var/log/samba/log.nmbd forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/samba/log.nmbd
log needs rotating
glob finding old rotated logs failed
file (null) doesn’t exist — won’t try dispose of it
copying /var/log/samba/log.nmbd to /var/log/samba/log.nmbd-20140205
truncating /var/log/samba/log.nmbd
compressing new log with: /bin/gzip -9 ‘/var/log/samba/log.nmbd-20140205′
rotating pattern: /var/log/samba/log.smbd forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/samba/log.smbd
log needs rotating
glob finding old rotated logs failed
file (null) doesn’t exist — won’t try dispose of it
copying /var/log/samba/log.smbd to /var/log/samba/log.smbd-20140205
truncating /var/log/samba/log.smbd
compressing new log with: /bin/gzip -9 ‘/var/log/samba/log.smbd-20140205′
rotating pattern: /var/log/samba/log.winbindd forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/samba/log.winbindd
file /var/log/samba/log.winbindd does not exist — skipping
rotating pattern: /var/log/maillog forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/maillog
file /var/log/maillog does not exist — skipping
rotating pattern: /var/log/ntp forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/ntp
log needs rotating
glob finding old rotated logs failed
file (null) doesn’t exist — won’t try dispose of it
copying /var/log/ntp to /var/log/ntp-20140205
truncating /var/log/ntp
compressing new log with: /bin/gzip -9 ‘/var/log/ntp-20140205′
rotating pattern: /var/log/pop3svr.log forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/pop3svr.log
file /var/log/pop3svr.log does not exist — skipping
rotating pattern: /var/log/pvf.log forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/pvf.log
file /var/log/pvf.log does not exist — skipping
rotating pattern: /var/log/rinetd.log forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/rinetd.log
file /var/log/rinetd.log does not exist — skipping
rotating pattern: /var/log/rsyncd.log forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/rsyncd.log
file /var/log/rsyncd.log does not exist — skipping
rotating pattern: /var/log/wtmp forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/wtmp
log needs rotating
glob finding old rotated logs failed
file (null) doesn’t exist — won’t try dispose of it
copying /var/log/wtmp to /var/log/wtmp-20140205
truncating /var/log/wtmp
compressing new log with: /bin/gzip -9 ‘/var/log/wtmp-20140205′
rotating pattern: /var/log/xdm.errors forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/xdm.errors
log needs rotating
glob finding old rotated logs failed
file (null) doesn’t exist — won’t try dispose of it
copying /var/log/xdm.errors to /var/log/xdm.errors-20140205
truncating /var/log/xdm.errors
compressing new log with: /bin/gzip -9 ‘/var/log/xdm.errors-20140205′
rotating pattern: /var/log/xferlog forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/xferlog
file /var/log/xferlog does not exist — skipping
rotating pattern: /var/log/radius.log forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/radius.log
file /var/log/radius.log does not exist — skipping
rotating pattern: /var/log/radwatch.log forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/radwatch.log
file /var/log/radwatch.log does not exist — skipping
rotating pattern: /var/log/radwtmp forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/radwtmp
file /var/log/radwtmp does not exist — skipping
rotating pattern: /var/log/ldirectord.log forced from command line (4 rotations)
empty log files are rotated old logs are removed
rotating file /var/log/ldirectord.log
log needs rotating
renaming /var/log/ldirectord.log.4 to /var/log/ldirectord.log.5
renaming /var/log/ldirectord.log.3 to /var/log/ldirectord.log.4
renaming /var/log/ldirectord.log.2 to /var/log/ldirectord.log.3
renaming /var/log/ldirectord.log.1 to /var/log/ldirectord.log.2
renaming /var/log/ldirectord.log to /var/log/ldirectord.log.1
creating new log mode = 0644 uid = 0 gid = 0
removing old log /var/log/ldirectord.log.5
rotating pattern: /var/lib/mysql/mysqld.log forced from command line (3 rotations)
empty log files are not rotated old logs are removed
rotating file /var/lib/mysql/mysqld.log
log needs rotating
file (null) doesn’t exist — won’t try dispose of it
renaming /var/lib/mysql/mysqld.log to /var/lib/mysql/mysqld.log-20140205
creating new log mode = 0644 uid = 60 gid = 0
running postrotate script
compressing new log with: /bin/gzip -9 ‘/var/lib/mysql/mysqld.log-20140205′
rotating pattern: /var/log/squid/cache.log forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/squid/cache.log
file /var/log/squid/cache.log does not exist — skipping
rotating pattern: /var/log/squid/access.log forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/squid/access.log
file /var/log/squid/access.log does not exist — skipping
rotating pattern: /var/log/squid/store.log forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/squid/store.log
file /var/log/squid/store.log does not exist — skipping
rotating pattern: /var/log/ha-debug forced from command line (4 rotations)
empty log files are rotated old logs are removed
rotating file /var/log/ha-debug
file /var/log/ha-debug does not exist — skipping
rotating pattern: /var/log/ha-log forced from command line (4 rotations)
empty log files are rotated old logs are removed
rotating file /var/log/ha-log
file /var/log/ha-log does not exist — skipping
rotating pattern: /var/log/httpd/access_log forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/httpd/access_log
log needs rotating
glob finding old rotated logs failed
file (null) doesn’t exist — won’t try dispose of it
renaming /var/log/httpd/access_log to /var/log/httpd/access_log-20140205
creating new log mode = 0644 uid = 0 gid = 0
running postrotate script
Mailman PERL PHP4 Python Reload httpd done
compressing new log with: /bin/gzip -9 ‘/var/log/httpd/access_log-20140205′
rotating pattern: /var/log/httpd/error_log forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/httpd/error_log
log needs rotating
glob finding old rotated logs failed
file (null) doesn’t exist — won’t try dispose of it
renaming /var/log/httpd/error_log to /var/log/httpd/error_log-20140205
creating new log mode = 0644 uid = 0 gid = 0
running postrotate script
Mailman PERL PHP4 Python Reload httpd done
compressing new log with: /bin/gzip -9 ‘/var/log/httpd/error_log-20140205′
rotating pattern: /var/log/httpd/suexec.log forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/httpd/suexec.log
file /var/log/httpd/suexec.log does not exist — skipping
rotating pattern: /var/log/httpd/ssl_request_log forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/httpd/ssl_request_log
file /var/log/httpd/ssl_request_log does not exist — skipping
rotating pattern: /var/log/httpd/ssl_engine_log forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/httpd/ssl_engine_log
file /var/log/httpd/ssl_engine_log does not exist — skipping
rotating pattern: /var/log/mail /var/log/warn /var/log/messages /var/log/allmessages /var/log/localmessages /var/log/firewall forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/mail
log needs rotating
glob finding old rotated logs failed
file (null) doesn’t exist — won’t try dispose of it
renaming /var/log/mail to /var/log/mail-20140205
creating new log mode = 0644 uid = 0 gid = 0
compressing new log with: /bin/gzip -9 ‘/var/log/mail-20140205′
rotating file /var/log/warn
log needs rotating
glob finding old rotated logs failed
file (null) doesn’t exist — won’t try dispose of it
renaming /var/log/warn to /var/log/warn-20140205
creating new log mode = 0644 uid = 0 gid = 0
compressing new log with: /bin/gzip -9 ‘/var/log/warn-20140205′
rotating file /var/log/messages
log needs rotating
glob finding old rotated logs failed
file (null) doesn’t exist — won’t try dispose of it
renaming /var/log/messages to /var/log/messages-20140205
creating new log mode = 0644 uid = 0 gid = 0
compressing new log with: /bin/gzip -9 ‘/var/log/messages-20140205′
rotating file /var/log/allmessages
file /var/log/allmessages does not exist — skipping
rotating file /var/log/localmessages
log needs rotating
glob finding old rotated logs failed
file (null) doesn’t exist — won’t try dispose of it
renaming /var/log/localmessages to /var/log/localmessages-20140205
creating new log mode = 0644 uid = 0 gid = 0
compressing new log with: /bin/gzip -9 ‘/var/log/localmessages-20140205′
rotating file /var/log/firewall
file /var/log/firewall does not exist — skipping
running shared postrotate script
Reload syslog service done
rotating pattern: /var/log/fetchmail forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/fetchmail
file /var/log/fetchmail does not exist — skipping
rotating pattern: /var/log/sddsrv_bak.log forced from command line (6 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/sddsrv_bak.log
log needs rotating
renaming /var/log/sddsrv_bak.log.6.gz to /var/log/sddsrv_bak.log.7.gz
old log /var/log/sddsrv_bak.log.6.gz does not exist
renaming /var/log/sddsrv_bak.log.5.gz to /var/log/sddsrv_bak.log.6.gz
old log /var/log/sddsrv_bak.log.5.gz does not exist
renaming /var/log/sddsrv_bak.log.4.gz to /var/log/sddsrv_bak.log.5.gz
old log /var/log/sddsrv_bak.log.4.gz does not exist
renaming /var/log/sddsrv_bak.log.3.gz to /var/log/sddsrv_bak.log.4.gz
old log /var/log/sddsrv_bak.log.3.gz does not exist
renaming /var/log/sddsrv_bak.log.2.gz to /var/log/sddsrv_bak.log.3.gz
old log /var/log/sddsrv_bak.log.2.gz does not exist
renaming /var/log/sddsrv_bak.log.1.gz to /var/log/sddsrv_bak.log.2.gz
old log /var/log/sddsrv_bak.log.1.gz does not exist
file /var/log/sddsrv_bak.log.7.gz doesn’t exist — won’t try dispose of it
renaming /var/log/sddsrv_bak.log to /var/log/sddsrv_bak.log.1
creating new log mode = 0644 uid = 0 gid = 0
compressing new log with: /bin/gzip -9 ‘/var/log/sddsrv_bak.log.1′
rotating pattern: /var/log/sdd_bak.log forced from command line (6 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/sdd_bak.log
log needs rotating
renaming /var/log/sdd_bak.log.6.gz to /var/log/sdd_bak.log.7.gz
old log /var/log/sdd_bak.log.6.gz does not exist
renaming /var/log/sdd_bak.log.5.gz to /var/log/sdd_bak.log.6.gz
old log /var/log/sdd_bak.log.5.gz does not exist
renaming /var/log/sdd_bak.log.4.gz to /var/log/sdd_bak.log.5.gz
old log /var/log/sdd_bak.log.4.gz does not exist
renaming /var/log/sdd_bak.log.3.gz to /var/log/sdd_bak.log.4.gz
old log /var/log/sdd_bak.log.3.gz does not exist
renaming /var/log/sdd_bak.log.2.gz to /var/log/sdd_bak.log.3.gz
old log /var/log/sdd_bak.log.2.gz does not exist
renaming /var/log/sdd_bak.log.1.gz to /var/log/sdd_bak.log.2.gz
old log /var/log/sdd_bak.log.1.gz does not exist
file /var/log/sdd_bak.log.7.gz doesn’t exist — won’t try dispose of it
renaming /var/log/sdd_bak.log to /var/log/sdd_bak.log.1
creating new log mode = 0644 uid = 0 gid = 0
compressing new log with: /bin/gzip -9 ‘/var/log/sdd_bak.log.1′
rotating pattern: /var/log/postgresql forced from command line (99 rotations)
empty log files are not rotated old logs are removed
rotating file /var/log/postgresql
log needs rotating
glob finding old rotated logs failed
file (null) doesn’t exist — won’t try dispose of it
copying /var/log/postgresql to /var/log/postgresql-20140205
truncating /var/log/postgresql
compressing new log with: /bin/gzip -9 ‘/var/log/postgresql-20140205′

Postfix starting in Suse Linux but never really starts

Starting Postfix

root@suse11sp2:~ # /etc/init.d/postfix start
Starting mail service (Postfix) done

But checking with ps I see that no processes are running. I check /var/log/mail and see that a file is with the wrong permission

root@suse11sp2:~ # tail /var/log/mail
Jan 31 17:56:35 suse11sp2 postfix/postqueue[22058]: warning: Mail system is down — accessing queue directly
Jan 31 17:58:10 suse11sp2 postfix/postqueue[22556]: warning: Mail system is down — accessing queue directly
Jan 31 17:58:12 suse11sp2 postfix/postqueue[22567]: warning: Mail system is down — accessing queue directly
Jan 31 17:59:47 suse11sp2 postfix/postqueue[22941]: warning: Mail system is down — accessing queue directly
Jan 31 18:00:12 suse11sp2 postfix/postqueue[23245]: warning: Mail system is down — accessing queue directly
Jan 31 18:00:15 suse11sp2 postfix/postqueue[23257]: warning: Mail system is down — accessing queue directly
Jan 31 16:00:32 suse11sp2 postfix/postfix-script[23399]: warning: not owned by postfix: /var/lib/postfix/./master.lock
Jan 31 16:00:32 suse11sp2 postfix/postfix-script[23415]: starting the Postfix mail system
Jan 31 16:00:32 suse11sp2 postfix/master[23419]: fatal: open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied
Jan 31 18:01:35 suse11sp2 postfix/postqueue[23847]: fatal: Cannot flush mail queue – mail system is down

Change the permission

root@suse11sp2:~ # ls -lR /var/lib/postfix
/var/lib/postfix:
total 4
-rw——- 1 root admin 33 Feb 28 2013 master.lock

root@suse11sp2:~ # chown postfix:postfix /var/lib/postfix/master.lock

And start Postfix

root@suse11sp2:~ # /etc/init.d/postfix start
Starting mail service (Postfix) done

Postfix not starting in Suse Linux

Postfix wasn’t starting

root@suse11sp2:~ # /etc/init.d/postfix start
Starting mail service (Postfix) failed

I ran in debug mode and found out which is the line to start postfix manually. I ran and it gave me the following error

root@suse11sp2:~ # /usr/sbin/postfix start
postsuper: fatal: scan_dir_push: open directory defer: Permission denied
postfix/postfix-script: fatal: Postfix integrity check failed!

To fix this error, run the following command

root@suse11sp2:~ # postfix -c /etc/postfix set-permissions
chown: cannot access `/usr/share/doc/packages/postfix-doc/README_FILES’: No such file or directory

I’m running Suse Linux 11 SP2 on this server

root@suse11sp2:~ # cat /etc/*release
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 2
LSB_VERSION=”core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64″

It was not installed the package postfix-doc so I installed

root@suse11sp2:~ # rpm -Uvh postfix-doc-2.5.13-0.17.4.x86_64.rpm
Preparing… ########################################### [100%]
1:postfix-doc ########################################### [100%]

With the package installed, it didn’t give any error messages

root@suse11sp2:~ # postfix -c /etc/postfix set-permissions

And started successfully

root@suse11sp2:~ # /etc/init.d/postfix start
Starting mail service (Postfix) done

Follow

Get every new post delivered to your Inbox.

Join 299 other followers

%d bloggers like this: