Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 401501 - app-admin/sysklogd-1.5-r2: syslogd: /var/log/news/news.crit: No such file or directory
Summary: app-admin/sysklogd-1.5-r2: syslogd: /var/log/news/news.crit: No such file or ...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-30 13:10 UTC by Martin Mokrejš
Modified: 2020-04-03 22:23 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/etc/syslog.conf (syslog.conf,1.58 KB, text/plain)
2012-01-30 22:04 UTC, Martin Mokrejš
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2012-01-30 13:10:34 UTC
During bootup of an ~amd64 computer I get:

INIT: Entering runlevel: 3
 * sysklogd -> start: syslogd ...
  syslogd: /var/log/news/news.crit: No such file or directory
  syslogd: /var/log/news/news.err: No such file or directory
  syslogd: /var/log/news/news.notice: No such file or directory
  syslogd: /dev/xconsole: No such file or directory                         [ ok ]
 * sysklogd -> start: klogd ...                                             [ ok ]

vostro ~ # ls -laR /var/log/news/
ls: cannot access /var/log/news/: No such file or directory
vostro ~ # ls -la /dev/*console*
crw------- 1 mmokrejs root 5, 1 Jan 30 13:52 /dev/console
vostro ~ # 

The /dev/console was created for me through xdm I guess:
# emerge -pv xdm
Calculating dependencies... done!
[ebuild   R    ] x11-apps/xdm-1.1.11  USE="ipv6 pam" 0 kB


Maybe it is not expected that one has newsyslog installed instead of syslong-ng?
# emerge -pv app-admin/newsyslog
Calculating dependencies... done!
[ebuild   R    ] app-admin/newsyslog-1.1  0 kB
Comment 1 Jeroen Roovers gentoo-dev 2012-01-30 20:08:12 UTC
Er, so is it sysklogd or newsyslog that should be mentioned in the Summary?
Comment 2 Martin Mokrejš 2012-01-30 20:14:15 UTC
(In reply to comment #1)
> Er, so is it sysklogd or newsyslog that should be mentioned in the Summary?

Neither. ;) But, sysklogd startup script output said:

syslogd: /var/log/news/news.crit: No such file or directory

so from that I infer it probably reads some config file of that daemon and does not expect newsyslogd installed. I just a quick look into sysklogd manpage and such impression. But I did not bother to study this in more detail, sorry. I just did not like syslog-ng so thought newsyslogd will make me more happy. ;-)
Comment 3 Ben Kohler gentoo-dev 2012-01-30 21:40:29 UTC
I can't figure out what debug/verbose output you have turned on for syslogd, mine (of the same version) just silently proceeds after failing to open these files.  And I can see yours proceeds and starts, just not silently.

Looks to me like the default syslog.conf expects /var/log/news to exist, so the ebuild should "dodir /var/log/news" in src_install.

But the /dev/xconsole can probably just be ignored.
Comment 4 Martin Mokrejš 2012-01-30 22:04:18 UTC
I do not know what debug I turned on ... :(

# emerge --info app-admin/sysklogd 
Portage 2.1.10.44 (!../usr/portage/profiles/default/linux/amd64/10.0, gcc-4.5.3, glibc-2.14.1-r2, 3.2.2-default x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.2.2-default-x86_64-Intel-R-_Core-TM-_i7-2640M_CPU_@_2.80GHz-with-gentoo-2.1
Timestamp of tree: Fri, 27 Jan 2012 15:15:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/cmake:           2.8.7-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.8.2
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.2-r1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.2.4-r1, 4.3.6-r1, 4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo science x-portage x-layman
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm Oracle-BCLA-JavaSE skype-eula Nero-EULA-US"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/mnt/external/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news nostrip parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en cs cz"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/mnt/external/usr/portage"
PORTDIR_OVERLAY="/home/mmokrejs/proj/sci /usr/local/portage /var/lib/layman"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa amd64 amr apache apache2 berkdb bzip2 cairo cgi cli cracklib crypt cups cxx dbus device-mapper dhcp dri encode ffmpeg flac fontconfig fortran gd gdbm gnome gnutls gpm hal iconv id3tag innodb ipv6 java jce jpeg jpg ladspa laptop mad mmx modules mpi mpich2 multilib mysql ncurses nfs nls nptl nptlonly nsplugin ogg opengl openmp openssl pam pcre perl php png policykit pppd python qt3support qt4 readline server session sndfile sse sse2 sse3 ssl suexec svg sysfs syslog tcpd threads tiff truetype unicode usb wavpack xml xorg zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 stage tables krita karbon braindump" 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 ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en cs cz" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa intel vmware fbdev" 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

=================================================================
                        Package Settings
=================================================================

app-admin/sysklogd-1.5-r2 was built with the following:
USE="(multilib)"

#

The xconsole is probably explained in the syslog.conf file itself. Will attach it. Looks ebuild should have called the xconsole utility on my behalf.
Comment 5 Martin Mokrejš 2012-01-30 22:04:39 UTC
Created attachment 300477 [details]
/etc/syslog.conf
Comment 6 Martin Mokrejš 2012-01-30 22:08:02 UTC
Regarding what I have installed here:

# equery files newsyslog
 * Searching for newsyslog ...
 * Contents of app-admin/newsyslog-1.1:
/usr
/usr/bin
/usr/bin/newsyslog
/usr/share
/usr/share/doc
/usr/share/doc/newsyslog-1.1
/usr/share/doc/newsyslog-1.1/AUTHORS.bz2
/usr/share/doc/newsyslog-1.1/ChangeLog.bz2
/usr/share/doc/newsyslog-1.1/INSTALL.bz2
/usr/share/doc/newsyslog-1.1/NEWS.bz2
/usr/share/doc/newsyslog-1.1/README.developers.bz2
/usr/share/doc/newsyslog-1.1/ToDo.bz2
/usr/share/doc/newsyslog-1.1/newsyslog.conf.bz2
/usr/share/man
/usr/share/man/man5
/usr/share/man/man5/newsyslog.conf.5.bz2
/usr/share/man/man8
/usr/share/man/man8/newsyslog.8.bz2
# equery belongs /usr/sbin/syslogd
 * Searching for /usr/sbin/syslogd ... 
app-admin/sysklogd-1.5-r2 (/usr/sbin/syslogd)
^C
#
Comment 7 Fabio Rossi 2013-12-17 09:05:59 UTC
I got the same errors on a freshly installed amd64 system
Comment 8 Lars Wendler (Polynomial-C) gentoo-dev 2013-12-17 09:45:53 UTC
I suppose the following lines from /etc/syslog.conf should be commented by default:


  news.crit                   /var/log/news/news.crit
  news.err                    /var/log/news/news.err
  news.notice                 -/var/log/news/news.notice


They seem to be the source of the error messages.
Comment 9 Fabio Rossi 2013-12-17 13:35:11 UTC
(In reply to Lars Wendler (Polynomial-C) from comment #8)
> I suppose the following lines from /etc/syslog.conf should be commented by
> default:
> 
> 
>   news.crit                   /var/log/news/news.crit
>   news.err                    /var/log/news/news.err
>   news.notice                 -/var/log/news/news.notice
> 
> 
> They seem to be the source of the error messages.

For some reasons in the past /var/log/news was present in the default installation, now this is not the case. Yes, if INN is not installed it make sense to comment those lines. I tried in that way and the errors are gone.
Comment 10 Tim Bowers 2017-11-21 19:46:20 UTC
I've just hit this same bug on an install today. I'm happy to try and write a patch/new syslog.conf however I don't know if we should be creating the missing directories, or not trying to read/write them?
Comment 11 jorge 2020-04-03 22:23:12 UTC
(In reply to Ben Kohler from comment #3)
> I can't figure out what debug/verbose output you have turned on for syslogd,
> mine (of the same version) just silently proceeds after failing to open
> these files.  And I can see yours proceeds and starts, just not silently.
> 
> Looks to me like the default syslog.conf expects /var/log/news to exist, so
> the ebuild should "dodir /var/log/news" in src_install.
> 
> But the /dev/xconsole can probably just be ignored.

I think this is the solution. Got to the same bug on freshly installed gentoo. Using syklogd as logger (AMD64) with OpenRC as init.

The message appears after a shutdown or restart (but not always, maybe in 1 of 8 tries) and the system will not shutdown (or reboot). Have to force shutting down using the power button, leaving the filesystem dirty (upon restart, the filesystem is automatically repaired).