Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
syslog-ng hangs infinitely on boot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
BlueFusion
Guru
Guru


Joined: 08 Mar 2006
Posts: 371

PostPosted: Tue Nov 03, 2015 6:19 am    Post subject: syslog-ng hangs infinitely on boot Reply with quote

I've been changing my Gentoo desktop alot lately in terms of networking, hostnames, and adding new a new SATA HBA and the latest problem I have encountered that I can't figure out is syslog-ng always hanging on boot.

I get...
Quote:
* Checking your configfile (/etc/syslog-ng/syslog-ng.conf) ...

...on boot and it hangs there indefinitely. No errors up to that point in the boot process. All mountpoints are mounted, hostname is set (home router DHCP adds the domain).

The only way I found around it is to CTRL+ALT+DELETE reboot the system, boot into single-user mode, remove syslog-ng from the default runlevel and reboot normally. When I start syslog-ng from the live system, I get no problems.

Ideas?
_________________
i7-940 2.93Ghz | ASUS P6T Deluxe (v.1) | 24GB Triple Channel RAM | nVidia GTX660
4x 4TB Seagate NAS HDD (Btrfs raid5) | 2x 120GB Samsung 850 EVO SSD (Btrfs raid1)
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7072

PostPosted: Tue Nov 03, 2015 10:10 am    Post subject: Reply with quote

https://bugs.gentoo.org/show_bug.cgi?id=228973#c34

if you need better, than gives better, "that thing is not working" is not helping.
Back to top
View user's profile Send private message
BlueFusion
Guru
Guru


Joined: 08 Mar 2006
Posts: 371

PostPosted: Tue Nov 03, 2015 6:54 pm    Post subject: Reply with quote

That bug doesn't seem to be related.

I don't know what other information to give other than syslog-ng boots fine on multiple VMs on this same host and on other bare metal PCs and a laptop. They are all up to date as of last night.

Here's some system information. Again, the system will hang indefinitely if syslog-ng attempts to start at boot time. I had to remove it from the default runlevel to boot.

Quote:
area51 ~ # cat /etc/conf.d/net
config_eth0="null"
config_eth1="null"
slaves_bond0="eth0 eth1"
mode_bond0="802.3ad"
config_bond0="dhcp"

area51 ~ # ifconfig bond0
bond0: flags=5187<UP,BROADCAST,RUNNING,MASTER,MULTICAST> mtu 1500
inet 10.2.1.10 netmask 255.255.255.0 broadcast 10.2.1.255
inet6 <removed> prefixlen 64 scopeid 0x0<global>
inet6 fe80::9b2:2b3b:fe5d:bb63 prefixlen 64 scopeid 0x20<link>
ether 00:24:8c:0a:b4:b4 txqueuelen 0 (Ethernet)
RX packets 453727 bytes 583990585 (556.9 MiB)
RX errors 0 dropped 1 overruns 0 frame 0
TX packets 278585 bytes 37658030 (35.9 MiB)
TX errors 0 dropped 8 overruns 0 carrier 0 collisions 0

area51 ~ # rc-update show
acpid | default
alsasound | default
anacron | default
binfmt | boot
bootmisc | boot
consolefont | boot
consolekit | default
dbus | default
devfs | sysinit
dmesg | sysinit
fsck | boot
hddtemp | default
hostname | boot
hwclock | boot
ip6tables | default
iptables | default
keymaps | boot
killprocs | shutdown
kmod-static-nodes | sysinit
libvirtd | default
local | default nonetwork
localmount | boot
loopback | boot
microcode_ctl | default
modules | boot
mount-portage-tmp | default
mount-ro | shutdown
mtab | boot
mysql | default
net.bond0 | default
net.lo | boot
nfsclient | default
ntpd | default
procfs | boot
psd | default
root | boot
rsyncd | default
savecache | shutdown
snmpd | default
sshd | default
swap | boot
swapfiles | boot
sysctl | boot
sysfs | sysinit
termencoding | boot
tmpfiles.dev | sysinit
tmpfiles.setup | boot
udev | sysinit
upsd | default
upsdrv | default
upsmon | default
urandom | boot
vixie-cron | default
xdm | default


Quote:
area51 ~ # emerge --info
Portage 2.2.20.1 (python 3.4.3-final-0, hardened/linux/amd64/no-multilib, gcc-4.9.3, glibc-2.21-r1, 4.1.7-hardened-r1 x86_64)
=================================================================
System uname: Linux-4.1.7-hardened-r1-x86_64-Intel-R-_Core-TM-_i7_CPU_940_@_2.93GHz-with-gentoo-2.2
KiB Mem: 24631976 total, 1114772 free
KiB Swap: 0 total, 0 free
Timestamp of repository gentoo: Tue, 03 Nov 2015 04:30:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash: 4.3_p39::gentoo
dev-java/java-config: 2.2.0::gentoo
dev-lang/perl: 5.20.2::gentoo
dev-lang/python: 2.7.10::gentoo, 3.4.3::gentoo
dev-util/cmake: 3.3.1-r1::gentoo
dev-util/pkgconfig: 0.28-r2::gentoo
sys-apps/baselayout: 2.2::gentoo
sys-apps/openrc: 0.17::gentoo
sys-apps/sandbox: 2.6-r1::gentoo
sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo
sys-devel/automake: 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils: 2.25.1-r1::gentoo
sys-devel/gcc: 4.9.3::gentoo
sys-devel/gcc-config: 1.7.3::gentoo
sys-devel/libtool: 2.4.6::gentoo
sys-devel/make: 4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc: 2.21-r1::gentoo
Repositories:

gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://supernova/gentoo-portage
priority: -1000

palemoon
location: /var/lib/layman/palemoon
masters: gentoo
priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=corei7 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=corei7 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="64bit X a52 aac acl acpi aim alsa amarok amd64 apng asf berkdb btrfs bzip2 cairo cdr cli consolekit cracklib crypt cryptsetup cups cxx dbus dhcpclient divx dri dts dvd dvdr dvdread encode esd fam ffmpeg firefox flac gdbm gif glitz gnutls gstreamer gtk gtk3 hardened hddtemp iconv iptables ipv6 java javascript jpeg justify kde lame libnotify lm_sensors logitech-mouse lzo mad matroska minizip mmap mmx mmxext modules mp3 mpeg mplayer ncurses nls nptl nsplugin ntfs ntp offensive ogg openal opengl openmp pam passwordsave pax_kernel pcre pdf phonon pie plasma pm-utils png ppds qemu qt3support qt4 rdesktop readline real samba sdk sdl seccomp session smp spell spice sse sse2 ssl ssp startup-notification svg symlink system-cairo tcpd threads tiff truetype truetype-fonts type1-fonts udev unicode urandom usb vdpau vnc x264 xattr xine xinerama xpm xtpax xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

_________________
i7-940 2.93Ghz | ASUS P6T Deluxe (v.1) | 24GB Triple Channel RAM | nVidia GTX660
4x 4TB Seagate NAS HDD (Btrfs raid5) | 2x 120GB Samsung 850 EVO SSD (Btrfs raid1)
Back to top
View user's profile Send private message
BlueFusion
Guru
Guru


Joined: 08 Mar 2006
Posts: 371

PostPosted: Tue Nov 03, 2015 6:55 pm    Post subject: Reply with quote

More info

Quote:
area51 ~ # equery list syslog-ng
* Searching for syslog-ng ...
[IP-] [ ] app-admin/syslog-ng-3.7.1:0
area51 ~ # equery u syslog-ng
[ Legend : U - final flag setting for installation]
[ : I - package is installed with flag ]
[ Colors : set, unset ]
* Found these USE flags for app-admin/syslog-ng-3.7.1:
U I
- - amqp : Enable support for AMQP destinations
- - caps : Use Linux capabilities library to control privilege
- - dbi : Enable dev-db/libdbi (database-independent abstraction layer) support
- - geoip : Add geoip support for country and city lookup based on IPs
+ + ipv6 : Add support for IP version 6
- - json : Enable support for JSON template formatting via dev-libs/json-c
- - mongodb : Enable support for mongodb destinations
- - pacct : Enable support for reading Process Accounting files (EXPERIMENTAL, Linux only)
- - python : Add optional support/bindings for the Python language
- - redis : Enable support for Redis destinations
- - smtp : Enable support for SMTP destinations
- - spoof-source : Enable support for spoofed source addresses
- - systemd : Enable use of systemd-specific libraries and features like socket activation or session tracking
+ + tcpd : Add support for TCP wrappers

_________________
i7-940 2.93Ghz | ASUS P6T Deluxe (v.1) | 24GB Triple Channel RAM | nVidia GTX660
4x 4TB Seagate NAS HDD (Btrfs raid5) | 2x 120GB Samsung 850 EVO SSD (Btrfs raid1)
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1699

PostPosted: Tue Nov 03, 2015 10:00 pm    Post subject: Reply with quote

have you tried starting syslog after the system is started up, and see what messages is gives?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Wed Nov 04, 2015 1:41 am    Post subject: Reply with quote

BlueFusion ...

I suspect your '@version' (in syslog-ng.conf) doesn't match the installed version ... possibly due to you not having merged the config after updating the package.

Code:
# eix --format '<installedversions:NAMEVERSION>' app-admin/syslog-ng
app-admin/syslog-ng-3.7.1
# head -n 1 /etc/syslog-ng/syslog-ng.conf
@version: 3.7

HTH & best ... khay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum