FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 05-04-2012, 02:30 PM
Claudius Hubig
 
Default Safe-upgrade, My Worst Nightmare has Occurred.

Hello Martin,

Martin McCormick <martin@x.it.okstate.edu> wrote:
> Is there any way to make safe-upgrade at least attempt
> to go to the next task or at least report why it is stuck?

Your error description is a bit obscure, so I’ll have to ask for more
information:

Currently running jobs:
- What is the output of ps auxw?
- Specifically, are there any commands listed as "D"?
- If so, what files does this process try to access at the moment
(lsof -p <pid>)?
- Are there any commands listed in top/htop as pulling 100%

Logs:
- Is there anything in the output of dmesg that might point at the
problem?
- Is there anything in /var/log/{messages,syslog}?

Human error:
- Are you sure that safe-upgrade is stuck rather than simply waiting
for some input?

Best regards,

Claudius
--
Yow! I'm imagining a surfer van filled with soy sauce!
http://chubig.net telnet nightfall.org 4242
 
Old 05-04-2012, 03:14 PM
Martin McCormick
 
Default Safe-upgrade, My Worst Nightmare has Occurred.

Claudius Hubig writes:
> Your error description is a bit obscure, so I?ll have to ask for more

So far, I do not see any error yet. I will do the tests you
suggested and report back. It does act just like it is waiting
for more input. I have type y, yes and ok and do see the echo
back. I will post a message later describing the tests.

Thank you.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201205041514.q44FELEp011291@x.it.okstate.edu">http ://lists.debian.org/201205041514.q44FELEp011291@x.it.okstate.edu
 
Old 05-04-2012, 03:20 PM
Jochen Spieker
 
Default Safe-upgrade, My Worst Nightmare has Occurred.

Martin McCormick:
>
> So far, I do not see any error yet. I will do the tests you
> suggested and report back. It does act just like it is waiting
> for more input. I have type y, yes and ok and do see the echo
> back. I will post a message later describing the tests.

I would just Ctrl-c and apt-get -f install, followed by another
safe-upgrade.

And after that, check that your boot config is still fine (Grub1/2,
/etc/fstabm, initramfs).

J.
--
I want to keep my skin looking good but I believe all computers do the
same job.
[Agree] [Disagree]
<http://www.slowlydownward.com/NODATA/data_enter2.html>
 
Old 05-04-2012, 03:34 PM
Indulekha
 
Default Safe-upgrade, My Worst Nightmare has Occurred.

On Fri, May 04, 2012 at 05:20:11PM +0200, Jochen Spieker wrote:
> Martin McCormick:
> >
> > So far, I do not see any error yet. I will do the tests you
> > suggested and report back. It does act just like it is waiting
> > for more input. I have type y, yes and ok and do see the echo
> > back. I will post a message later describing the tests.
>
> I would just Ctrl-c and apt-get -f install, followed by another
> safe-upgrade.
>
> And after that, check that your boot config is still fine (Grub1/2,
> /etc/fstabm, initramfs).
>

This is exactly what I would do.

--
❤ ♫ ❤ ♫ ❤ ♫ ❤
Indulekha


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120504153447.GC8181@radhesyama">http://lists.debian.org/20120504153447.GC8181@radhesyama
 
Old 05-04-2012, 05:05 PM
Martin McCormick
 
Default Safe-upgrade, My Worst Nightmare has Occurred.

Claudius Hubig writes:
> Your error description is a bit obscure, so I?ll have to ask for more
> information:

I am sorry about that. Right now, it looks very much like it is
just waiting for input.
> Currently running jobs:
> - What is the output of ps auxw?

There are the usual low-numbered jobs which appear
normal. I have used fmt to get the output to fit. There are no
"Defunct" or zombies. Here is what appears to be related to the
upgrade attempt:


PID TTY STAT TIME COMMAND
aptitude -q9 safe-upgrade
13526 ? Ss 0:00 /usr/sbin/cupsd 25243 pts/2 Ss+ 0:00
/usr/bin/dpkg --status-fd 18 --configure locales libc6-i686
libc-dev-bin binutils linux-libc-dev libc6-dev bzip2 texinfo
libperl5.10 libfreetype6 liblcms1 libpng12-0 libxml2 libpoppler5
poppler-utils xpdf-utils tcl8.5 expect ncurses-term adduser cron
tasksel tasksel-data makedev libavahi-common-data libavahi-common3
libdbus-1-3 libavahi-client3 libexif12 libhal1 libgphoto2-port0
libgphoto2-2 libieee1284-3 libtiff4 libv4l-0 libsane-extras libudev0
udev libsane module-init-tools libuuid-perl linux-base libklibc
klibc-utils cpio initramfs-tools linux-image-2.6.32-5-686
linux-image-2.6-686 mawk console-data console-common kbd sgml-data
docbook-xml ucf foomatic-filters dictionaries-common libstlport4.6ldbl
uno-libs3 ure openoffice.org-style-tango openoffice.org-style-andromeda
openoffice.org-common ttf-opensymbol libgpg-error0 libgcrypt11
libtasn1-3 libgnutls26 libkeyutils1 libkrb5support0 libk5crypto3
libkrb5-3 libgssapi-krb5-2 libidn11 libsasl2-2 libldap-2.4-2
libssl0.9.8 openssl ca-certificates libcurl3-gnutls libexpat1
libpcre3 libglib2.0-0 libgraphite3 libgstreamer0.10-0 iso-codes
libgstreamer-plugins-base0.10-0 libhunspell-1.2-0 libhyphen0 libice6
libicu44 libmythes-1.2-0 libneon27-gnutls libnspr4-0d libnss3-1d
libsm6 libxext6 libxt6 libxmu6 libxpm4 libxaw7 libxinerama1 libxrender1
libxrandr2 libxslt1.1 libraptor1 libgmp3c2 librasqal2 librdf0
fontconfig openoffice.org-core openoffice.org-base-core libservlet2.5-java
libhsqldb-java openoffice.org-java-common openoffice.org-base
openoffice.org-report-builder-bin libcolamd2.7.1 lp-solve
openoffice.org-calc libwpg-0.1-1 openoffice.org-draw openoffice.org-impress
openoffice.org-evolution libatk1.0-0 libdbus-glib-1-2 openoffice.org-gtk
libmpfr4 cpp-4.4 cpp libidl0 liborbit2 dbus gconf2-common libgconf2-4
psmisc dbus-x11 gconf2 libavahi-glib1 libfam0 libhal-storage1
shared-mime-info libgnomevfs2-common libgnomevfs2-0 openoffice.org-gnome
openoffice.org-officebean openoffice.org-writer myspell-en-us
openoffice.org-thesaurus-en-us openoffice.org-math
openoffice.org-writer2latex openoffice.org-help-en-us libgcj-common
gcj-4.4-base libgcj10 libgcj-bc libhsqldb-java-gcj libjline-java
bsh bsh-gcj openoffice.org-gcj ttf-dejavu-core ttf-dejavu-extra
ttf-dejavu ttf-sil-gentium-basic openoffice.org-filter-mobiledev
liblucene2-java openoffice.org libbonobo2-common libbonobo2-0
libsasl2-modules libkrb53 libcap2 libtalloc2 libwbclient0 libsmbclient
libgnomevfs2-extra libcdparanoia0 libgudev-1.0-0 libogg0 libtheora0
libvisual-0.4-0 libvorbis0a libvorbisenc2 libxv1 gstreamer0.10-plugins-base
openssl-blacklist libxfixes3 libxcursor1 libxft2 libxkbfile1 libxmuu1
x11-apps x11-session-utils libfontenc1 libxcb-atom1 libxtst6
libxxf86dga1 libxxf86vm1 x11-utils libfs6 x11-xfs-utils x11-xkb-utils
ckermit libgfortran3 cpp-4.3 gcc-4.3 g++-4.3 libstdc++6-4.3-dev
bsdmainutils dmidecode groff-base net-tools ifupdown info iproute
libnfnetlink0 iptables iputils-ping resolvconf isc-dhcp-common
isc-dhcp-client libsigc++-2.0-0c2a libcwidget3 libnewt0.52 libpopt0
anacron logrotate man-db manpages nano netbase procps rsyslog
traceroute vim-common vim-tiny wget whiptail at bash-completion bc
libgeoip1 libisc62 libdns69 libisccc60 libisccfg62 libbind9-60
liblwres60 bind9-host liblockfile1 exim4-config exim4-base
exim4-daemon-light bsd-mailx dc debian-faq dnsutils doc-debian exim4
libmagic1 file ftp gettext-base less libdb4.6 libbsd0 libedit2
libevent-1.4-2 libgc1c2 libgpm2 libgssglue1 libnfsidmap2 libpci3
pciutils librpcsecgss3 libtokyocabinet8 lsof m4 mime-support mlocate
libpth20 libgpgme11 mutt libwrap0 portmap nfs-common openssh-client
openssh-server patch procmail python-reportbug python2.6-minimal
python2.6 reportbug tcpd time w3m wamerican whois libpaper1 psutils
a2ps acpid acpi-support-base linux-sound-base alsa-base alsa-oss
alsa-utils app-install-data autoconf autotools-dev automake
libavahi-core7 libdaemon0 avahi-daemon beep gcc-4.4 gcc g++-4.4
libstdc++6-4.4-dev g++ make build-essential busybox cddb cdparanoia
libck-connector0 libeggdbus-1-0 libpolkit-gobject-1-0 consolekit
libcpufreq0 cpufrequtils cu 25838 ? Ss 0:00 /usr/sbin/cron
25900 ? S<s 0:00 udevd --daemon 25919 pts/2 S+ 0:01
/usr/bin/perl -w /usr/share/debconf/frontend
/var/lib/dpkg/info/linux-base.postinst configure 25925 pts/2 S+
0:00 /usr/bin/perl /var/lib/dpkg/info/linux-base.postinst configure
25951 pts/2 S+ 0:00 whiptail --backtitle Package configuration
--title Configuring linux-base --output-fd 11 --nocancel --msgbox
These devices will be assigned UUIDs or labels:??/dev/hda5:
UUID=f148e250-746d-4c8e-a840-228ae3caa1bf??These configuration files
will be updated:??/etc/fstab, /boot/grub/menu.lst,
?/etc/udev/rules.d/70-persistent-cd.rules,
?/etc/initramfs-tools/conf.d/resume??The device IDs will be changed
as follows:??/dev/sda1:
UUID=f39d1d00-89fc-41f2-a445-51ece1c53213?/dev/hda1:
UUID=defdfcfb-ade5-4045-82a5-d2708a21acd2?/dev/sdb1:
UUID=edc8ce83-e323-4912-8ddd-9897493cbb18?/dev/hda5:
UUID=f148e250-746d-4c8e-a840-228ae3caa1bf?/dev/hdb1:
UUID=75873040-6936-40ec-aad1-1e5748446c54?/dev/hdd: /dev/cdrom?+
PATH=pci-0000:00:07.1-scsi-1:0:1:0?+ PATH=pci-0000:00:07.1-scsi-1:0:0:0
--scrolltext 21 57 25953 ? Ss 0:00 sshd: martin [priv]
25955 ? S 0:00 sshd: martin@pts/1 25956 pts/1 Ss+
0:00 -bash 25974 ? S< 0:00 udevd --daemon 25976 ? S<
0:00 udevd --daemon

That's where it stands now.

> - Specifically, are there any commands listed as "D"?

No and top confirms this.

> - Are there any commands listed in top/htop as pulling 100%

Not a one and the system right now even reports 0.00
load.

> Logs:
> - Is there anything in the output of dmesg that might point at the
> problem?

I don't have dmesg output handy

> - Is there anything in /var/log/{messages,syslog}?

Yes.

The time stamp here occurs when I was going through the
questions which I simply defaulted and hit enter or y when
asked:

May 4 06:21:29
wb5agz kernel: [410550.564743] udev[25900]: starting version 164
May 4 06:57:00 wb5agz kernel: [412680.899917] usb 1-3: USB disconnect,
address 2 May 4 07:35:05 wb5agz rsyslogd: [origin software="rsyslogd"
swVersion="3.18.6" x-pid="2475" x-info="http://www.rsyslog.com"]
restart
May 4 06:21:29 wb5agz kernel: [410550.564743] udev[25900]: starting version 164
May 4 06:57:00 wb5agz kernel: [412680.899917] usb 1-3: USB disconnect, address 2
May 4 07:35:05 wb5agz rsyslogd: [origin software="rsyslogd" swVersion="3.18.6" x-pid="2475" x-info="http://www.rsyslog.com"] restart
>
> Human error:
> - Are you sure that safe-upgrade is stuck rather than simply waiting
> for some input?

I am not 100% sure of anything right now except that syslog
tried to restart and shows the following error:

May 4 07:35:05 wb5agz rsyslogd: [origin software="rsyslogd" swVersion="3.18.6" x-pid="2475" x-info="http://www.rsyslog.com"] restart
May 4 07:35:05 wb5agz rsyslogd: could not load module '/usr/lib/rsyslog/imuxsock.so', rsyslog error -3003
May 4 07:35:05 wb5agz rsyslogd: the last error occured in /etc/rsyslog.conf, line 11
May 4 07:35:05 wb5agz rsyslogd: could not load module '/usr/lib/rsyslog/imklog.so', dlopen: /usr/lib/rsyslog/imklog.so: undefined symbol: MsgSetRcvFromIP
May 4 07:35:05 wb5agz rsyslogd: the last error occured in /etc/rsyslog.conf, line 12


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201205041705.q44H550Q011819@x.it.okstate.edu">http ://lists.debian.org/201205041705.q44H550Q011819@x.it.okstate.edu
 
Old 05-04-2012, 05:26 PM
Claudius Hubig
 
Default Safe-upgrade, My Worst Nightmare has Occurred.

Hello Martin,

It is usually appreciated not to format copied content at all (i. e.
the output of dpkg etc.), since most people can do that themselves
when necessary and forcibly formatting it might lead to even uglier
things than lines longer than 80 characters

Martin McCormick <martin@x.it.okstate.edu> wrote:
> PID TTY STAT TIME COMMAND
> aptitude -q9 safe-upgrade
> 5243 pts/2 Ss+ 0:00 /usr/bin/dpkg --status-fd 18
> [...]
> libcpufreq0 cpufrequtils cu

The above is dpkg.

> 25838 ? Ss 0:00 /usr/sbin/cron

Some random cronjob.

> 25900 ? S<s 0:00 udevd --daemon

udev

> 25919 pts/2 S+ 0:01 /usr/bin/perl -w /usr/share/debconf/frontend /var/lib/dpkg/info/linux-base.postinst configure > 25925 pts/2 S+ 0:00 /usr/bin/perl /var/lib/dpkg/info/linux-base.postinst configure
> 25951 pts/2 S+ 0:00 whiptail --backtitle Package configuration --title Configuring linux-base --output-fd 11 --nocancel --msgbox These devices will be assigned UUIDs or labels:??/dev/hda5:UUID=f148e250-746d-4c8e-a840-228ae3caa1bf??These configuration files will be updated:??/etc/fstab, /boot/grub/menu.lst, ?/etc/udev/rules.d/70-persistent-cd.rules, ?/etc/initramfs-tools/conf.d/resume??The device IDs will be changed as follows:??/dev/sda1: UUID=f39d1d00-89fc-41f2-a445-51ece1c53213?/dev/hda1: UUID=defdfcfb-ade5-4045-82a5-d2708a21acd2?/dev/sdb1: UUID=edc8ce83e323-4912-8ddd-9897493cbb18?/dev/hda5: UUID=f148e250-746d-4c8e-a840-228ae3caa1bf?/dev/hdb1: UUID=75873040-6936-40ec-aad1-1e5748446c54?/dev/hdd: /devcdrom?+PATH=pci-0000:00:07.1-scsi-1:0:1:0?+ PATH=pci-0000:00:07.1-scsi-1:0:0:0 --scrolltext 21 57

This appears to be the debconf query dialog.

>25953 ? Ss 0:00 sshd: martin [priv]
> 25955 ? S 0:00 sshd: martin@pts/1 25956 pts/1 Ss+
> 0:00 -bash 25974 ? S< 0:00 udevd --daemon 25976 ? S<
> 0:00 udevd --daemon

SSH and udev again.

> That's where it stands now.

> May 4 06:21:29
> wb5agz kernel: [410550.564743] udev[25900]: starting version 164
> May 4 06:57:00 wb5agz kernel: [412680.899917] usb 1-3: USB disconnect,
> address 2 May 4 07:35:05 wb5agz rsyslogd: [origin software="rsyslogd"
> swVersion="3.18.6" x-pid="2475" x-info="http://www.rsyslog.com"]
> restart
> May 4 06:21:29 wb5agz kernel: [410550.564743] udev[25900]: starting version 164
> May 4 06:57:00 wb5agz kernel: [412680.899917] usb 1-3: USB disconnect, address 2
> May 4 07:35:05 wb5agz rsyslogd: [origin software="rsyslogd" swVersion="3.18.6" x-pid="2475" x-info="http://www.rsyslog.com"] restart

Looks good.

> >
> > Human error:
> > - Are you sure that safe-upgrade is stuck rather than simply waiting
> > for some input?
>
> I am not 100% sure of anything right now except that syslog
> tried to restart and shows the following error:
>
> May 4 07:35:05 wb5agz rsyslogd: [origin software="rsyslogd" swVersion="3.18.6" x-pid="2475" x-info="http://www.rsyslog.com"] restart
> May 4 07:35:05 wb5agz rsyslogd: could not load module '/usr/lib/rsyslog/imuxsock.so', rsyslog error -3003
> May 4 07:35:05 wb5agz rsyslogd: the last error occured in /etc/rsyslog.conf, line 11
> May 4 07:35:05 wb5agz rsyslogd: could not load module '/usr/lib/rsyslog/imklog.so', dlopen: /usr/lib/rsyslog/imklog.so: undefined symbol: MsgSetRcvFromIP
> May 4 07:35:05 wb5agz rsyslogd: the last error occured in /etc/rsyslog.conf, line 12

This may well be due to the pending upgrade.

The problem indeed appears to be whiptail waiting for input. As
whiptail is called with the "nocancel" option, it is unlikely that
its return value is checked, which then means that simply killing it
should continue the upgrade.

Best regards,

Claudius
--
NOTICE:
Anyone seen smoking will be assumed to be on fire and will
be summarily put out.
http://chubig.net telnet nightfall.org 4242
 
Old 05-04-2012, 06:26 PM
Martin McCormick
 
Default Safe-upgrade, My Worst Nightmare has Occurred.

Jochen Spieker writes:
> I would just Ctrl-c and apt-get -f install, followed by another
> safe-upgrade.

You don't know how close I have come to doing that. If
it can safely figure out where to resume, it is sure worth a
try.

I have been using Linux for about ten years and this is
the first time I have had an upgrade stall out like that.

Many thanks and, if it is truly a goner, I'm glad I have
backups.:-)

Martin McCormick


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201205041826.q44IQYW5012279@x.it.okstate.edu">http ://lists.debian.org/201205041826.q44IQYW5012279@x.it.okstate.edu
 
Old 05-04-2012, 06:43 PM
Martin McCormick
 
Default Safe-upgrade, My Worst Nightmare has Occurred.

Claudius Hubig writes:

Much appreciated information not quoted, here,

> This may well be due to the pending upgrade.
>
> The problem indeed appears to be whiptail waiting for input. As
> whiptail is called with the "nocancel" option, it is unlikely that
> its return value is checked, which then means that simply killing it
> should continue the upgrade.

A thousand thanks. The system is at my house and I am at work so
I won't get to play any more with it until later today but this
has been a good training exercise.

Martin McCormick WB5AGZ


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201205041843.q44Ihsew012398@x.it.okstate.edu">http ://lists.debian.org/201205041843.q44Ihsew012398@x.it.okstate.edu
 

Thread Tools




All times are GMT. The time now is 07:11 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org