After updating my system and rebooting, the boot process hang at random points. I've tried enabling interactive startup (openrc) to perform selective booting. Selecting "drop to a shell" I tried running a few commands by hand and noticed that a lot of command would hang. Using strace I found that all programs hang on "sendto(/dev/log, ...)", so I tried disabling syslog-ng and the system works OK (with the exception of the logger of course). emerge --update --deep --newuse --with-bdeps=y world has nothing to do. perl-cleaner --all has nothing to do python-updater has nothing to do revdep-rebuild has nothing to do I've tried to emerge --oneshot syslog-ng but nothing changed, as soon as I run "/etc/init.d/syslog-ng start" the system hang after a short while (I bet it's the time you need to fill the /dev/log socket with syslog-ng which is probably freezed somewhere). I would do some more debugging but I'm unsure where to go from here. Thank you in advance for your help. Reproducible: Always Steps to Reproduce: unknown (system update?) Actual Results: system hang at boot Expected Results: working system Portage 2.2.10 (default/linux/amd64/13.0/no-multilib, gcc-4.8.2, glibc-2.19, 3.14.4-gentoo-Barad-Dur x86_64) ================================================================= System uname: Linux-3.14.4-gentoo-Barad-Dur-x86_64-Intel-R-_Atom-TM-_CPU_D525_@_1.80GHz-with-gentoo-2.2 KiB Mem: 2053324 total, 1538788 free KiB Swap: 4200992 total, 4200992 free Timestamp of tree: Sun, 01 Jun 2014 11:15:01 +0000 ld GNU ld (GNU Binutils) 2.24 app-shells/bash: 4.2_p47 dev-lang/python: 2.7.6-r1, 3.3.5, 3.4.0 dev-util/cmake: 2.8.12.2-r1 dev-util/pkgconfig: 0.28-r1 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.11.6, 1.14.1 sys-devel/binutils: 2.24-r2 sys-devel/gcc: 4.8.2 sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.2-r1 sys-devel/make: 4.0-r1 sys-kernel/linux-headers: 3.14 (virtual/os-headers) sys-libs/glibc: 2.19 Repositories: gentoo x-portage ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe" 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" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://mirror.muntinternet.net/pub/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j4" 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" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://shelob/gentoo-portage" USE="X a52 aac aacplus aalib acl acpi airplay alsa amd64 amr apm apng bash-completion berkdb bluetooth bluray branding bzip2 cairo cdda cddb cdr cec cleartype cli colordiff consolekit cracklib crypt css ctype cxx dbus dga dirac dri dri3 dts dvb dvd dvdr encode fam ffmpeg firefox fontconfig fortran ftp g3dvl gd gdbm ggi gif goom gsm gtk gudev hddtemp hwdb iconv icu ipod ipv6 jack java6 jbig joystick jpeg jpeg2k libnotify libsamplerate lm_sensors logrotate lzma lzo mad matroska mercurial mmap mmx mmxext modules mp3 mp4 mpeg mpi mysql ncurses nls nptl nsplugin nss ntp ogg opengl openmp pam pcre pda pdf png policykit pvr python qt3support qt4 readline rtmp samba scanner sdl session speex sqlite sse sse2 ssl ssse3 startup-notification svg syslog tcpd theora threads tiff truetype type3 udev unicode usb vaapi vdpau vim vim-pager vim-syntax vnc vorbis vpx webserver wifi wmf wxwidgets xcb xcomposite xinetd xml xpm xrandr xulrunner xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" 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_US it" LIRC_DEVICES="devinput" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia" XFCE_PLUGINS="menu brightness" 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: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
It might be useful to attach your syslog-ng.conf here, and perhaps look at dmesg output for clues.
reopen with the config file and the output from "emerge --info syslog-ng"
dmesg shows nothing useful (last messages from loaded drivers with everything OK) My syslog-ng.conf: @version: 3.4 # $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/3.4/syslog-ng.conf.gentoo,v 1.2 2013/06/02 01:18:35 mr_bones_ Exp $ # # Syslog-ng default configuration file for Gentoo Linux # https://bugs.gentoo.org/show_bug.cgi?id=426814 @include "scl.conf" options { threaded(yes); chain_hostnames(no); # The default action of syslog-ng is to log a STATS line # to the file every 10 minutes. That's pretty ugly after a while. # Change it to every 12 hours so you get a nice daily update of # how many messages syslog-ng missed (0). stats_freq(43200); # The default action of syslog-ng is to log a MARK line # to the file every 20 minutes. That's seems high for most # people so turn it down to once an hour. Set it to zero # if you don't want the functionality at all. mark_freq(3600); }; source src { system(); internal(); }; destination messages { file("/var/log/messages"); }; # By default messages are logged to tty12... destination console_all { file("/dev/tty12"); }; # ...if you intend to use /dev/console for programs like xconsole # you can comment out the destination line above that references /dev/tty12 # and uncomment the line below. #destination console_all { file("/dev/console"); }; log { source(src); destination(messages); }; log { source(src); destination(console_all); }; ______________________________________________________________________ emerge --info syslog-ng Portage 2.2.10 (default/linux/amd64/13.0/no-multilib, gcc-4.8.2, glibc-2.19, 3.14.4-gentoo-Barad-Dur x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.14.4-gentoo-Barad-Dur-x86_64-Intel-R-_Atom-TM-_CPU_D525_@_1.80GHz-with-gentoo-2.2 KiB Mem: 2053324 total, 1529964 free KiB Swap: 4200992 total, 4200992 free Timestamp of tree: Sun, 01 Jun 2014 11:15:01 +0000 ld GNU ld (GNU Binutils) 2.24 app-shells/bash: 4.2_p47 dev-lang/python: 2.7.6-r1, 3.3.5, 3.4.0 dev-util/cmake: 2.8.12.2-r1 dev-util/pkgconfig: 0.28-r1 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.11.6, 1.14.1 sys-devel/binutils: 2.24-r2 sys-devel/gcc: 4.8.2 sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.2-r1 sys-devel/make: 4.0-r1 sys-kernel/linux-headers: 3.14 (virtual/os-headers) sys-libs/glibc: 2.19 Repositories: gentoo x-portage ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe" 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" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://mirror.muntinternet.net/pub/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j4" 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" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://shelob/gentoo-portage" USE="X a52 aac aacplus aalib acl acpi airplay alsa amd64 amr apm apng bash-completion berkdb bluetooth bluray branding bzip2 cairo cdda cddb cdr cec cleartype cli colordiff consolekit cracklib crypt css ctype cxx dbus dga dirac dri dri3 dts dvb dvd dvdr encode fam ffmpeg firefox fontconfig fortran ftp g3dvl gd gdbm ggi gif goom gsm gtk gudev hddtemp hwdb iconv icu ipod ipv6 jack java6 jbig joystick jpeg jpeg2k libnotify libsamplerate lm_sensors logrotate lzma lzo mad matroska mercurial mmap mmx mmxext modules mp3 mp4 mpeg mpi mysql ncurses nls nptl nsplugin nss ntp ogg opengl openmp pam pcre pda pdf png policykit pvr python qt3support qt4 readline rtmp samba scanner sdl session speex sqlite sse sse2 ssl ssse3 startup-notification svg syslog tcpd theora threads tiff truetype type3 udev unicode usb vaapi vdpau vim vim-pager vim-syntax vnc vorbis vpx webserver wifi wmf wxwidgets xcb xcomposite xinetd xml xpm xrandr xulrunner xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" 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_US it" LIRC_DEVICES="devinput" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia" XFCE_PLUGINS="menu brightness" 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: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON ================================================================= Package Settings ================================================================= app-admin/syslog-ng-3.4.7 was built with the following: USE="ipv6 pcre ssl tcpd -caps -dbi -geoip -json -mongodb -smtp -spoof-source -systemd"
Your config doesn't process /dev/log at all. You'd need something like: source src { unix-stream("/dev/log"); };
But maybe in your case the system() driver is failing its "automatic detection".
(In reply to Jeroen Roovers from comment #5) > But maybe in your case the system() driver is failing its "automatic > detection". Well, I'm no syslog expert, however I thought the /dev/log unix socket is created by syslog itself? If I don't start syslog-ng I can't find /dev/log listed in the /dev directory. lsof /dev/log COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME syslog-ng 8160 root 8u unix 0xffff880070134340 0t0 265496 /dev/log Furthermore I don't understand what you mean by system() auto detection. Maybe I could use a little advice in how to make further debugging? Please, note that I didn't edited the syslog-ng config file, I'm using the gentoo default when I've installed the system for the first time. Thank you.
Can you post the output of stat /dev/log please?
Also, what filesystem is /dev on? Worth trying with syslog-ng 3.4.8 and 3.5.4.1 too to see if the issue is the same.
sorry for the late reaply, it seems that putting rc_need="net.eth0" inside /etc/conf.d/syslog-ng fixed the problem, however, I really don't understand why, I'm not using network logging.
This appears to be some issue specific to your setup. Since you have it working I'm going to mark this WORKSFORME since I'm not able to tell what's going on there and things are working for me. If you're able to figure out what the root cause is, please reopen.