> Looks like the cron job hangs, and I have not seen that on any live
> system I've used.
>
> Any change you have corruped memory or something?
Hi Christian,
I have see this problem in more machine.
..Corruped memory.. absolutely not!
>> Here crontab that run swup from Jul 27
>>
>> [EMAIL PROTECTED] ~# ps fax | grep swup
>> 3312 ? S 0:00 \_ /bin/bash /etc/cron.daily/swup.cron
>> 3313 ? S 2:08 \_ /usr/bin/python
>> /usr/bin/swup --upgrade --quiet
>
> You can strace the processes, but they don't seem to do anything useful,
> so I guess you won't get anything useful output:
> strace -p 3312 or strace -p 3313
>
Sorry, but I have killed it :(
>
> Killing the 3312 process or restarting fcron is probably what you need
> to do to fix it manually this time.
Yes, this it my procedure for resume normal upgrade.
>
> Then you really need to have a look at your hardware. This is not
> typical behaviour, actually your're the first one to report this since
> swup was introduced back in 2001 (If memory serves me right).
>
> I'm guessing corrupt memory as swup uses a lot of it during large
> upgrades.
>
Now i'm cheking all other machine:
Another system:
# tail -f /var/log/swup/info
Jul 15 05:19:39 lan swup[2866]: Upgraded php4-test.
Jul 15 05:19:40 lan swup[2866]: Upgraded php4-cli.
Jul 15 05:19:41 lan swup[2866]: Upgraded php4-ldap.
Jul 15 05:47:35 lan swup[2866]: Upgraded samba-common.
Jul 15 05:47:37 lan swup[2866]: Upgraded kerberos5-libs.
Jul 15 05:47:40 lan swup[2866]: Upgraded kerberos5-devel.
Jul 15 05:48:12 lan swup[2866]: Upgraded samba.
Jul 15 05:48:19 lan swup[2866]: Upgraded kerberos5.
Jul 15 05:48:21 lan swup[2866]: Upgraded samba-mysql.
Jul 15 05:48:25 lan swup[2866]: Upgraded samba-client.
# ps fax | grep swup
#
Here there isn't pending process, but upgrade is stopped to Jul15.
Now I run upgrade manually:
# swup --upgrade
Fetching upgrade info for site: Trustix Contrib
Fetching upgrade info for site: Trustix Official http
Fetching upgrade info for site: Trustix Official ftp
Downloading latest.rdf.gz - done
Parsing file: latest.rdf - done
Fetching resource info for site: Trustix Official ftp
Downloading resources.rdf.gz - done
Parsing file: resources.rdf - done
Fetching resource info for site: Trustix Official http
Downloading resources.rdf.gz - done
Parsing file: resources.rdf - done
Fetching resource info for site: Trustix Contrib
Downloading resources.rdf.gz - done
Parsing file: resources.rdf - done
Verifying packages.
Done verifying packages.
Checking conflicts - done.
Packages to install/upgrade:
upgrade: swup, version 2.7.13 release 2tr
upgrade: swup-conf, version 2.7.13 release 2tr
Downloading swup - done
Upgrading swup - done
Downloading swup-conf - done
Upgrading swup-conf - done
#
Mmm.. truly strange, but this is another machine with swup problem
---------------------------------
Here another system
# tail -f /var/log/swup/info
Aug 3 00:37:42 server swup[6144]: Upgraded php4-pgsql.
Aug 3 00:37:43 server swup[6144]: Upgraded php-ldap.
Aug 3 00:37:44 server swup[6144]: Upgraded php4-ldap.
Aug 3 00:37:45 server swup[6144]: Upgraded php4-exif.
Aug 3 00:37:48 server swup[6144]: Upgraded php4-test.
Aug 3 00:38:05 server swup[6144]: Upgraded postfix.
Aug 3 00:38:10 server swup[6144]: Upgraded php-cli.
Aug 3 00:38:11 server swup[6144]: Upgraded php-pgsql.
Aug 3 00:38:12 server swup[6144]: Upgraded php-exif.
Aug 3 00:38:36 server swup[6144]: Upgraded anaconda-runtime.
# ps fax | grep swup
#
# ls -l /etc/cron.daily/
-rwxr-xr-x 1 root root 66 Apr 19 14:35 amavisd
-rwxr-xr-x 1 root root 180 Oct 19 2004 logrotate
-rwxr-xr-x 1 root root 402 Oct 19 2004 makewhatis.cron
-rwxr-xr-x 1 root root 104 Nov 25 2004 rpm
-rwxr-xr-x 1 root root 142 Oct 19 2004 slocate
-rwxr-xr-x 1 root root 140 Jul 21 11:02 swup.cron
-rwxr-xr-x 1 root root 138 Oct 19 2004 tmpwatch
#
# cat /etc/cron.daily/swup.cron
#!/bin/bash
if [ -x /usr/bin/swup ]; then
/usr/bin/swup --upgrade --quiet
exit $?
else
echo "Could not find swup binary"
exit 1
fi
# swup --upgrade
Fetching upgrade info for site: Trustix Contrib
Downloading latest.rdf.gz - done
Parsing file: latest.rdf - done
Fetching upgrade info for site: Trustix Official http
Downloading latest.rdf.gz - done
Parsing file: latest.rdf - done
Fetching upgrade info for site: Trustix Official ftp
Downloading latest.rdf.gz - done
Parsing file: latest.rdf - done
Fetching resource info for site: Trustix Official ftp
Downloading resources.rdf.gz - done
Parsing file: resources.rdf - done
Fetching resource info for site: Trustix Official http
Downloading resources.rdf.gz - done
Parsing file: resources.rdf - done
Fetching resource info for site: Trustix Contrib
Downloading resources.rdf.gz - done
Parsing file: resources.rdf - done
Verifying packages.
Done verifying packages.
Checking conflicts - done.
Packages to install/upgrade:
upgrade: swup, version 2.7.13 release 2tr
upgrade: swup-conf, version 2.7.13 release 2tr
Downloading swup - done
Upgrading swup - done
Downloading swup-conf - done
Upgrading swup-conf - done
-----------------------------------------------------
Another new system
# tail -f /var/log/swup/info
Jul 27 15:32:59 backup swup[20046]: Fetching upgrade info for site:
Trustix Official ftp
Jul 27 15:33:03 backup swup[20046]: Fetching resource info for site:
Trustix Official ftp
Jul 27 15:33:14 backup swup[20046]: Fetching resource info for site:
Trustix Official http
Jul 27 15:33:19 backup swup[20046]: Fetching resource info for site:
Trustix Contrib
Jul 27 15:33:59 backup swup[20046]: Installed net-snmp.
Jul 27 15:34:00 backup swup[20046]: Installed net-snmp-devel.
Jul 27 15:34:00 backup swup[20046]: Installed net-snmp-utils.
Jul 27 15:56:19 backup swup[21226]: Fetching upgrade info for site:
Trustix Contrib
Jul 27 15:56:20 backup swup[21226]: Fetching upgrade info for site:
Trustix Official http
Jul 27 15:56:20 backup swup[21226]: Fetching upgrade info for site:
Trustix Official ftp
# ps fax | grep swup
13261 ? S 0:00 \_ /bin/bash /etc/cron.daily/swup.cron
13262 ? S 0:28 \_ /usr/bin/python
/usr/bin/swup --upgrade --quiet
21717 pts/0 S 0:00 \_ grep swup
Good!
Now:
# strace -p 13262
Process 13262 attached - interrupt to quit
read(14,
waiting .. and now CTRL+C
# strace -p 13262
Process 13262 attached - interrupt to quit
read(14, <unfinished ...>
Process 13262 detached
# strace -p 13261
Process 13261 attached - interrupt to quit
wait4(-1, <unfinished ...> <--- CTRL+C
Process 13261 detached
#
Thanks for support.
_______________________________________________
tsl-discuss mailing list
[email protected]
http://lists.trustix.org/mailman/listinfo/tsl-discuss