Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285248 - sys-apps/openrc-0.4.3-r3: timestamp offseted by 1 day and 2 hrs
Summary: sys-apps/openrc-0.4.3-r3: timestamp offseted by 1 day and 2 hrs
Status: RESOLVED DUPLICATE of bug 142850
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Roy Marples
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-16 20:50 UTC by Martin Mokrejš
Modified: 2009-10-01 22:13 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2009-09-16 20:50:21 UTC
sys-fs/e2fsprogs-1.41.9 does not take into account TIMEZONE (am GMT+1) plus the daylight saving. I haven't seen this yet but now have upgraded a number of packages. However, for some while not baselayout nor e2fsprogs so I doubt this is related to them. But glancing over emerge.log of last two days there are still some 60 candidates ... (I suspect cups but will have to test). :( Anyway, here is what happened on startup:


* Setting system clock using the hardware clock [Local Time]...                                                                                                          [ ok ]* Autoloaded 0 module(s)
*   device-mapper uses addon code which is deprecated
*   and may not be available in the future.
* Checking local filesystems ...
/dev/sda3: Superblock last write time (Thu Sep 17 00:02:24 2009,
        now = Wed Sep 16 22:02:45 2009) is in the future.


/dev/sda3: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
        (i.e., without -a or -p options)
* Fileystem errors left uncorrected                                                                                                                                      [ !! ]* Remounting root filesystem read/write...

First of all, I did not have to touch my keyboard and the system booted up.



How this happened?

On the very previous shutdown I had to wait a loong time for some process to exit. I usually shutdown by "sync; init 0; exit". My xdm session was still up
while some processes probably got stopped by system shutdown blocked on some daemon not giving up.

I went into the virtual terminal console mode via ctrl+alt+F12 to see what is happening. Kernel reacted to SysRq magic keys, most notably emergency Sync.
Could that be that the emergency sync writes a wrong timestamp on the ext3 filesystem (with journal enabled)?

# emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.4.1, glibc-2.10.1-r0, 2.6.30.6 i686)
=================================================================
System uname: Linux-2.6.30.6-i686-Mobile_Intel-R-_Pentium-R-_4_-_M_CPU_1.80GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 15 Sep 2009 18:45:02 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     4.0_p33
dev-java/java-config: 1.3.7-r1, 2.1.9
dev-lang/python:     2.5.4-r3, 2.6.2-r1, 3.1.1
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.1
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -pipe -fno-strict-aliasing -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind /var/lib/hsqldb /var/qmail/alias /var/qmail/control /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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 /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -pipe -fno-strict-aliasing -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer nostrip parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirror.web4u.cz"
LDFLAGS="-Wl,-O1"
LINGUAS="en cs cz"
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="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/science /usr/local/portage/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip R X Xaw3d a52 aac aalib ace acl acpi alsa amr amrnb amrwb apache audacious audiofile bash-completion bcmath berkdb blas bluetooth boost branding bzip2 cairo cblas cddb cdparanoia cdr clamav cli colordiff compress cpio cracklib crypt cscope css ctype cups curl curlwrappers cxx dbi dbus dga dia directfb djbfft dri dts dv dvb dvd dvdr dvdread eds emacs emboss emf enblend encode enscript exif expat faad fam fame fat fbcon ffmpeg fftw firefox flac flash foomaticdb fortran fpx ftp gcj gd gdbm ggi gif gimp gimpprint glibc-compat20 glibc-omitfp glut gmp gnuplot gnutls gpgme gphoto2 gpm graphviz gs gsl gsm gstreamer gtk gtkhtml hal hdf hdf5 hp2xx i8x0 icc iconv icu id3 ieee1394 ifc imagemagick imlib inifile innodb isdnlog ithreads jack java javascript jbig jce jikes jpeg jpeg2k kdtree kerberos lame lapack laptop lcms leim libcaca libedit libnotify libwww live lzo lzw mad maildir matroska mhash mikmod mime ming mjpeg mmap mmx mng mod_python modperl modplug motif mozilla moznoirc mp2 mp3 mp4 mpeg mpi mpi_njtree mpich2 mplayer mudflap mule musepack mxdatetime mysql mysqli ncurses netcdf netpbm network nls nntp nptl nptlonly nsplugin ntfs numeric ogg opengl openmp openssl pam pango pcmcia pcntl pcre pdf perl plotutils plugin png pnm postproc postscript ppds pppd procmail pymol python qt3 qt3support qt4 quicktime rar raw readline recode reflection reiserfs rpm samba sasl scanner scp seamonkey server session sftp sift slp smime sndfile soap sockets spell spl sqlite srt sse sse2 ssl startup-notification subtitles subversion svg svgz sysfs sysvipc t1lib tcl tcpd tetex theora threads thunar tidy tiff tk transcode truetype unicode urandom usb userlocales utils uuencode v4l v4l2 vcd vhook vim-syntax vim-with-x vorbis wifi win32codecs wmf wxwindows x264 x86 xanim xcf xfs xft xinerama xinetd xml xorg xpm xsl xslt xulrunner xv xvid xvmc yv12 zip zlib" ALSA_CARDS="intel-8x0m" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config mem_cache mime mime_magic rewrite setenvif speling status unique_id userdir usertrack vhost_alias negotiation" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en cs cz" USERLAND="GNU" VIDEO_CARDS="radeon vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 SpanKY gentoo-dev 2009-10-01 17:26:34 UTC

*** This bug has been marked as a duplicate of bug 142850 ***
Comment 2 Martin Mokrejš 2009-10-01 19:05:56 UTC
# cat /etc/conf.d/clock
cat: /etc/conf.d/clock: No such file or directory
# 

I think this file went away with migration from baselayout-1 to -2.


# emerge -pv e2fsprogs

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-fs/e2fsprogs-1.41.9  USE="nls" 0 kB
[cut]
# cat /etc/e2fsck.conf
cat: /etc/e2fsck.conf: No such file or directory
#


I will play more with this and report back.
Comment 3 Martin Mokrejš 2009-10-01 20:09:14 UTC
>>> Emerging (4 of 20) dev-python/setuptools-0.6.3-r2
 * distribute-0.6.3.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                                              [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                                                                    [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                                                   [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                                                  [ ok ]
 * 
 * ERROR: dev-python/setuptools-0.6.3-r2 failed.
 * Call stack:
 *                    ebuild.sh, line   49:  Called pkg_setup
 *   setuptools-0.6.3-r2.ebuild, line   30:  Called die
 * The specific snippet of code:
 *              die "<dev-python/setuptools-0.6.3-r2 must be uninstalled before installation of newer versions to avoid silent errors"
 *  The die message:
 *   <dev-python/setuptools-0.6.3-r2 must be uninstalled before installation of newer versions to avoid silent errors
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-python/setuptools-0.6.3-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/setuptools-0.6.3-r2/temp/die.env'.
 * 

>>> Failed to emerge dev-python/setuptools-0.6.3-r2, Log file:

>>>  '/var/tmp/portage/dev-python/setuptools-0.6.3-r2/temp/build.log'

 * Messages for package sys-libs/timezone-data-2009n:

 * You do not have TIMEZONE set in /etc/timezone.
 * Skipping auto-update of /etc/localtime.

 * Messages for package dev-python/setuptools-0.6.3-r2:

 * 
 * ERROR: dev-python/setuptools-0.6.3-r2 failed.
 * Call stack:
 *                    ebuild.sh, line   49:  Called pkg_setup
 *   setuptools-0.6.3-r2.ebuild, line   30:  Called die
 * The specific snippet of code:
 *              die "<dev-python/setuptools-0.6.3-r2 must be uninstalled before installation of newer versions to avoid silent errors"
 *  The die message:
 *   <dev-python/setuptools-0.6.3-r2 must be uninstalled before installation of newer versions to avoid silent errors
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-python/setuptools-0.6.3-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/setuptools-0.6.3-r2/temp/die.env'.
 * 


[cut]

# ls -la /etc/timezone
ls: cannot access /etc/timezone: No such file or directory
# strings /etc/localtime
TZif2
MEST
TZif2
MEST
MET-1MEST,M3.5.0,M10.5.0/3
#

If I have a misconfigured system my apologies then. Maybe some while ago I failed to upgrade from baselayout-1? I would vote for more sanity checks in init scripts, there will be more users like I have then.
Comment 4 SpanKY gentoo-dev 2009-10-01 21:41:42 UTC
setuptools failing is unrelated to this bug report

if you upgraded baselayout early, you probably missed out on some of the automatic translations.  you probably want to review the guide:
http://www.gentoo.org/doc/en/openrc-migration.xml
Comment 5 Martin Mokrejš 2009-10-01 22:13:18 UTC
(In reply to comment #4)
> setuptools failing is unrelated to this bug report

Sorry, realized that too late in the submission process. ;)

> if you upgraded baselayout early, you probably missed out on some of the

I think really a long while ago, yes.

> automatic translations.  you probably want to review the guide:
> http://www.gentoo.org/doc/en/openrc-migration.xml

Yes, I just did. Will see if I get this again. Definitely am voting for more sanity checks in init scripts, something the timezone-data ebuild does for example?