Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 506244 - sys-apps/systemd-212 - hostnamed and localed fail to start: "timeout"
Summary: sys-apps/systemd-212 - hostnamed and localed fail to start: "timeout"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-30 14:34 UTC by Alexander Bartha
Modified: 2014-03-31 19:01 UTC (History)
0 users

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


Attachments
journalctl -b (journalctl_b,194.83 KB, text/plain)
2014-03-30 18:15 UTC, Alexander Bartha
Details
smaller journal (journalctl_b2,178.94 KB, text/plain)
2014-03-30 20:14 UTC, Alexander Bartha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Bartha 2014-03-30 14:34:08 UTC
Hello

when using sys-apps/systemd-212 two services failed:

systemd-localed and systemd-hostnamed

sudo hostnamectl status ... does not list hostname .... timeout
sudo localectl status ... does not list locales ... timeout



Reproducible: Always

Steps to Reproduce:
1.sudo hostnamectl status 
2.
3.
Actual Results:  
timeout

Expected Results:  
list locales or hostname info

here from logfile when i do sudo localectl status:

Mär 30 16:14:21 hostname dbus[242]: [system] Activating via systemd: service name='org.freedesktop.locale1' unit='dbus-org.freedesktop.locale1.service'
Mär 30 16:14:21 hostname systemd[1]: Starting Locale Service...
Mär 30 16:14:21 hostname systemd[788]: Failed at step NETWORK spawning /usr/lib/systemd/systemd-localed: Invalid argument
Mär 30 16:14:21 hostname systemd[1]: systemd-localed.service: main process exited, code=exited, status=225/NETWORK
Mär 30 16:14:21 hostname systemd[1]: Failed to start Locale Service.
Mär 30 16:14:21 hostname systemd[1]: Unit systemd-localed.service entered failed state.
Mär 30 16:14:46 tux-tp dbus[242]: [system] Failed to activate service 'org.freedesktop.locale1': timed out
Mär 30 16:14:46 tux-tp sudo[786]: pam_unix(sudo:session): session closed for user root


emerge --info:

Portage 2.2.10 (default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.8.2, glibc-2.19, 3.13.7-gentoo x86_64)
=================================================================
System uname: Linux-3.13.7-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T8100_@_2.10GHz-with-gentoo-2.2
KiB Mem:     4035664 total,   2650964 free
KiB Swap:    8293284 total,   8293284 free
Timestamp of tree: Sun, 30 Mar 2014 10:30:01 +0000
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p45-r1
dev-java/java-config:     2.2.0
dev-lang/python:          2.6.9, 2.7.6, 3.2.5-r3, 3.3.5
dev-util/cmake:           2.8.12.2
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
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19
Repositories: gentoo x11 gnome-next Mein_Lokales_Overlay
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n"
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://distfiles.gentoo.org"
LANG="en_US.utf8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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="/var/lib/layman/x11 /var/lib/layman/gnome-next /usr/local/portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli colord cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv introspection ipv6 jpeg lcms ldap libnotify libsecret mad mmx mng modules mp3 mp4 mpeg multilib nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4 readline sdl session socialweb spell sse sse2 ssl ssse3 startup-notification svg systemd tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xv 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" DVB_CARDS="usb-dib0700" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de" 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="intel" 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, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Mike Gilbert gentoo-dev 2014-03-30 15:02:52 UTC
Can you attach a full journal from your last boot (journalctl -b)?
Comment 2 Alexander Bartha 2014-03-30 18:15:38 UTC
Created attachment 373914 [details]
journalctl -b
Comment 3 Alexander Bartha 2014-03-30 19:21:41 UTC
with sys-apps/systemd-211 i have no problem with hostnamectl or localectl
Comment 4 Alexander Bartha 2014-03-30 20:14:39 UTC
Created attachment 373926 [details]
smaller journal
Comment 5 Mike Gilbert gentoo-dev 2014-03-31 15:19:08 UTC
Is CONFIG_NET_NS enabled in your kernel?

http://cgit.freedesktop.org/systemd/systemd/commit/?id=f21a71a907a1b1289faec94559f4a1c111ea1d13
Comment 6 Alexander Bartha 2014-03-31 18:19:19 UTC
CONFIG_NET_NS was not set in kernel

so i enabled Net_ns and localectl and hostnamectl works fine.

thanks Mike
Comment 7 Mike Gilbert gentoo-dev 2014-03-31 18:22:22 UTC
We should add a kernel check to the ebuild since systemd now ships units which utilize the CONFIG_NET_NS option.
Comment 8 Mike Gilbert gentoo-dev 2014-03-31 19:01:36 UTC
+  31 Mar 2014; Mike Gilbert <floppym@gentoo.org> systemd-212.ebuild,
+  systemd-9999.ebuild:
+  Check for CONFIG_NET_NS, bug 506244 by Alexander Bartha.