[opensuse] zypper up of tomcat 6 fails
I regularly patch my 11.1 o/s via "zypper ref -b" followed by "zypper up". Usually everything goes fine. However, last night tomcat6 was one of the proposed upgrades, and it failed. This morning I repeated my usual procedure, and only tomcat6 was proposed. When it ran, it failed with the message below. Any ideas about how to proceed (info to gather, is it a config problem on my end, etc.)? Here is the dialog produced: The following package is going to be upgraded: tomcat6 Overall download size: 74.0 K. No additional space will be used or freed after the operation. Continue? [YES/no]: y Retrieving package tomcat6-6.0.18-16.2.1.noarch (1/1), 74.0 K (176.0 K unpacked) Retrieving delta: ./rpm/noarch/tomcat6-6.0.18-16.1.1_16.2.1.noarch.delta.rpm, 26.0 K Retrieving: tomcat6-6.0.18-16.1.1_16.2.1.noarch.delta.rpm [done] Applying delta: ./tomcat6-6.0.18-16.1.1_16.2.1.noarch.delta.rpm [done] Installing: tomcat6-6.0.18-16.2.1 [error] Installation of tomcat6-6.0.18-16.2.1 failed: (with --nodeps --force) Error: Subprocess failed. Error: RPM failed: error: unpacking of archive failed on file /etc/tomcat6/Catalina: cpio: rename failed - Is a directory Abort, retry, ignore? [A/r/i]: Here is the state of files Cat* in /etc/tomcat: crustacean:/etc/tomcat6 # ls -lad Cat* drwxr-xr-x 3 tomcat tomcat 80 May 13 08:43 Catalina lrwxrwxrwx 1 root root 27 Jun 30 11:05 Catalina;4a4a29a1 -> /var/cache/tomcat6/Catalina lrwxrwxrwx 1 root root 27 Jun 30 16:55 Catalina;4a4a7bc6 -> /var/cache/tomcat6/Catalina lrwxrwxrwx 1 root root 27 Jun 30 16:55 Catalina;4a4a7bdb -> /var/cache/tomcat6/Catalina lrwxrwxrwx 1 root root 27 Jul 1 10:36 Catalina;4a4b7455 -> /var/cache/tomcat6/Catalina Here is what is at /var/cache/tomcat6: crustacean:/var/cache/tomcat6 # ls -lad . drwxrwxr-x 3 root tomcat 72 May 10 13:21 . crustacean:/var/cache/tomcat6 # ls -lad * drwxrwxr-x 2 root tomcat 48 Feb 10 09:24 temp The directory /var/cat/tomcat6/temp is empty. Here is what I have installed relative to tomcat: crustacean:/ # rpm -qa | grep -i tomcat jakarta-commons-collections-tomcat5-3.2-88.13 tomcat6-docs-webapp-6.0.18-16.2.1 jakarta-commons-dbcp-tomcat5-1.2.2-88.17 struts-webapps-tomcat6-1.2.9-162.163.2 tomcat6-javadoc-6.0.18-16.2.1 tomcat6-lib-6.0.18-16.2.1 tomcat6-servlet-2_5-api-6.0.18-16.2.1 tomcat6-webapps-6.0.18-16.2.1 jakarta-commons-pool-tomcat5-1.3-1.108 tomcat6-jsp-2_1-api-6.0.18-16.2.1 tomcat6-6.0.18-16.1.1 tomcat6-admin-webapps-6.0.18-16.2.1 Hope this is the correct level of detail to include. Any help/guidance will be appreciated. Dan G. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 01 July 2009 16:50:25 Dan Goodman wrote:
I regularly patch my 11.1 o/s via "zypper ref -b" followed by "zypper up".
Usually everything goes fine. However, last night tomcat6 was one of the proposed upgrades, and it failed.
This morning I repeated my usual procedure, and only tomcat6 was proposed.
When it ran, it failed with the message below.
Any ideas about how to proceed (info to gather, is it a config problem on my end, etc.)?
Here is the dialog produced:
The following package is going to be upgraded: tomcat6
Overall download size: 74.0 K. No additional space will be used or freed after the operation. Continue? [YES/no]: y Retrieving package tomcat6-6.0.18-16.2.1.noarch (1/1), 74.0 K (176.0 K unpacked) Retrieving delta: ./rpm/noarch/tomcat6-6.0.18-16.1.1_16.2.1.noarch.delta.rpm, 26.0 K Retrieving: tomcat6-6.0.18-16.1.1_16.2.1.noarch.delta.rpm [done] Applying delta: ./tomcat6-6.0.18-16.1.1_16.2.1.noarch.delta.rpm [done] Installing: tomcat6-6.0.18-16.2.1 [error] Installation of tomcat6-6.0.18-16.2.1 failed: (with --nodeps --force) Error: Subprocess failed. Error: RPM failed: error: unpacking of archive failed on file /etc/tomcat6/Catalina: cpio: rename failed - Is a directory
Abort, retry, ignore? [A/r/i]:
Here is the state of files Cat* in /etc/tomcat:
crustacean:/etc/tomcat6 # ls -lad Cat* drwxr-xr-x 3 tomcat tomcat 80 May 13 08:43 Catalina lrwxrwxrwx 1 root root 27 Jun 30 11:05 Catalina;4a4a29a1 -> /var/cache/tomcat6/Catalina lrwxrwxrwx 1 root root 27 Jun 30 16:55 Catalina;4a4a7bc6 -> /var/cache/tomcat6/Catalina lrwxrwxrwx 1 root root 27 Jun 30 16:55 Catalina;4a4a7bdb -> /var/cache/tomcat6/Catalina lrwxrwxrwx 1 root root 27 Jul 1 10:36 Catalina;4a4b7455 -> /var/cache/tomcat6/Catalina
Here is what is at /var/cache/tomcat6: crustacean:/var/cache/tomcat6 # ls -lad . drwxrwxr-x 3 root tomcat 72 May 10 13:21 . crustacean:/var/cache/tomcat6 # ls -lad * drwxrwxr-x 2 root tomcat 48 Feb 10 09:24 temp
The directory /var/cat/tomcat6/temp is empty.
Here is what I have installed relative to tomcat:
crustacean:/ # rpm -qa | grep -i tomcat jakarta-commons-collections-tomcat5-3.2-88.13 tomcat6-docs-webapp-6.0.18-16.2.1 jakarta-commons-dbcp-tomcat5-1.2.2-88.17 struts-webapps-tomcat6-1.2.9-162.163.2 tomcat6-javadoc-6.0.18-16.2.1 tomcat6-lib-6.0.18-16.2.1 tomcat6-servlet-2_5-api-6.0.18-16.2.1 tomcat6-webapps-6.0.18-16.2.1 jakarta-commons-pool-tomcat5-1.3-1.108 tomcat6-jsp-2_1-api-6.0.18-16.2.1 tomcat6-6.0.18-16.1.1 tomcat6-admin-webapps-6.0.18-16.2.1
Hope this is the correct level of detail to include.
Any help/guidance will be appreciated.
Please open a bug report following the instructions given at bugs.opensuse.org, Thanks, Andreas -- Andreas Jaeger, Director openSUSE, aj@{novell.com,opensuse.org} SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Maxfeldstr. 5, 90409 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
On Wed, Jul 01, 2009 at 04:58:45PM +0200, Andreas Jaeger wrote:
Please open a bug report following the instructions given at bugs.opensuse.org,
I've just reopened bnc#424675. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Michael Schroeder wrote:
On Wed, Jul 01, 2009 at 04:58:45PM +0200, Andreas Jaeger wrote:
Please open a bug report following the instructions given at bugs.opensuse.org,
I've just reopened bnc#424675.
Cheers, Michael.
Is that sufficient, so that I don't need to open a new bug report, or
would you gentlemen still like a bug report on my experience?
I also noted that that bug contains the following comment:
--- Comment #12 from Michael Schröder
Andreas Jaeger wrote:
On Wednesday 01 July 2009 16:50:25 Dan Goodman wrote:
I regularly patch my 11.1 o/s via "zypper ref -b" followed by "zypper up".
Usually everything goes fine. However, last night tomcat6 was one of the proposed upgrades, and it failed.
...
Please open a bug report following the instructions given at bugs.opensuse.org,
Thanks, Andreas
Thank you, Andreas. Will do so first chance I get, probably a bit later today. After my initial post, it occurred to me to look at the susebugs list, where I saw a number of recent (last couple of days) entries re: tomcat6. However, my problem seems to be a bit different, so I will take your advice in order to help resolve this issue. Dan G. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, Jul 01, 2009 at 10:50:25AM -0400, Dan Goodman wrote:
I regularly patch my 11.1 o/s via "zypper ref -b" followed by "zypper up".
Usually everything goes fine. However, last night tomcat6 was one of the proposed upgrades, and it failed.
This morning I repeated my usual procedure, and only tomcat6 was proposed.
When it ran, it failed with the message below.
Any ideas about how to proceed (info to gather, is it a config problem on my end, etc.)?
The update is broken, it tries to replace a directory with a symlink. Unfortunately that's an operation that rpm doesn't support. zypper rm tomcat6 zypper in tomcat6 should do the trick. (But save your tomcat configuration changes first.) Anyway, I've re-opened bnc#424675. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, Jul 01, 2009 at 05:04:00PM +0200, Michael Schroeder wrote:
On Wed, Jul 01, 2009 at 10:50:25AM -0400, Dan Goodman wrote:
I regularly patch my 11.1 o/s via "zypper ref -b" followed by "zypper up".
Usually everything goes fine. However, last night tomcat6 was one of the proposed upgrades, and it failed.
This morning I repeated my usual procedure, and only tomcat6 was proposed.
When it ran, it failed with the message below.
Any ideas about how to proceed (info to gather, is it a config problem on my end, etc.)?
The update is broken, it tries to replace a directory with a symlink. Unfortunately that's an operation that rpm doesn't support.
zypper rm tomcat6 zypper in tomcat6
should do the trick. (But save your tomcat configuration changes first.)
Sorry, bad advice. That deletes too many packages. It should read rpm -e --nodeps tomcat6 zypper in tomcat6 Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Michael Schroeder wrote:
On Wed, Jul 01, 2009 at 05:04:00PM +0200, Michael Schroeder wrote:
On Wed, Jul 01, 2009 at 10:50:25AM -0400, Dan Goodman wrote:
I regularly patch my 11.1 o/s via "zypper ref -b" followed by "zypper up".
Usually everything goes fine. However, last night tomcat6 was one of the proposed upgrades, and it failed.
This morning I repeated my usual procedure, and only tomcat6 was proposed.
When it ran, it failed with the message below.
Any ideas about how to proceed (info to gather, is it a config problem on my end, etc.)?
The update is broken, it tries to replace a directory with a symlink. Unfortunately that's an operation that rpm doesn't support.
zypper rm tomcat6 zypper in tomcat6
should do the trick. (But save your tomcat configuration changes first.)
Sorry, bad advice. That deletes too many packages. It should read
rpm -e --nodeps tomcat6 zypper in tomcat6
Cheers, Michael.
Will do this in a bit, after I give people bit more time to look at this. I have not made any tomcat config changes yet, but just for drill, where are they stored? Is the following what I should be saving off, then restoring? crustacean:/etc/tomcat6 # ls -la total 107 drwxr-xr-x 3 root root 536 Jul 1 11:11 . drwxr-xr-x 192 root root 14984 Jul 1 10:03 .. drwxr-xr-x 3 tomcat tomcat 80 May 13 08:43 Catalina lrwxrwxrwx 1 root root 27 Jun 30 11:05 Catalina;4a4a29a1 -> /var/cache/tomcat6/Catalina lrwxrwxrwx 1 root root 27 Jun 30 16:55 Catalina;4a4a7bc6 -> /var/cache/tomcat6/Catalina lrwxrwxrwx 1 root root 27 Jun 30 16:55 Catalina;4a4a7bdb -> /var/cache/tomcat6/Catalina lrwxrwxrwx 1 root root 27 Jul 1 10:36 Catalina;4a4b7455 -> /var/cache/tomcat6/Catalina lrwxrwxrwx 1 root root 27 Jul 1 11:11 Catalina;4a4b7cb8 -> /var/cache/tomcat6/Catalina -rw-r--r-- 1 root root 8690 Feb 10 09:23 catalina.policy -rw-r--r-- 1 root root 3665 Feb 10 09:23 catalina.properties -rw-r--r-- 1 root root 1396 Feb 10 09:23 context.xml -rw-r--r-- 1 root root 3664 Feb 10 09:23 logging.properties -rw-r--r-- 1 root root 6460 Feb 10 09:23 server.xml -rw-rw---- 1 root tomcat 1107 Feb 10 09:23 tomcat-users.xml -rw-r--r-- 1 root root 1457 Feb 10 09:24 tomcat6.conf -rw-r--r-- 1 root root 50106 Feb 10 09:23 web.xml And should I manually remove the symlinks and not restore them, as I suspect? Also, the subdir Catalina appears to contain only package supplied files. I am correct that the local configs are confined to /etc/tomcat6 itself, with none in /etc/tomcat6/Catalina (assuming I had made any local configs)? crustacean:/etc/tomcat6/Catalina # ls -la * total 20 drwxr-xr-x 2 tomcat tomcat 248 May 13 08:43 . drwxr-xr-x 3 tomcat tomcat 80 May 13 08:43 .. -rw-r--r-- 1 tomcat tomcat 362 Jan 7 15:51 struts-blank.xml -rw-r--r-- 1 tomcat tomcat 378 Jan 7 15:51 struts-documentation.xml -rw-r--r-- 1 tomcat tomcat 366 Jan 7 15:51 struts-example.xml -rw-r--r-- 1 tomcat tomcat 368 Jan 7 15:51 struts-examples.xml -rw-r--r-- 1 tomcat tomcat 390 Jan 7 15:51 struts-tiles-documentation.xml And lastly, I have been replying only to the list. If anyone wants me to include them with direct replies, please let me know and I will do so. Dan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Michael Schroeder wrote:
On Wed, Jul 01, 2009 at 05:04:00PM +0200, Michael Schroeder wrote:
On Wed, Jul 01, 2009 at 10:50:25AM -0400, Dan Goodman wrote:
I regularly patch my 11.1 o/s via "zypper ref -b" followed by "zypper up".
Usually everything goes fine. However, last night tomcat6 was one of the proposed upgrades, and it failed.
This morning I repeated my usual procedure, and only tomcat6 was proposed.
When it ran, it failed with the message below.
Any ideas about how to proceed (info to gather, is it a config problem on my end, etc.)?
The update is broken, it tries to replace a directory with a symlink. Unfortunately that's an operation that rpm doesn't support.
zypper rm tomcat6 zypper in tomcat6
should do the trick. (But save your tomcat configuration changes first.)
Sorry, bad advice. That deletes too many packages. It should read
rpm -e --nodeps tomcat6 zypper in tomcat6
Cheers, Michael.
Tried that. 2nd step fails with: The following NEW package is going to be installed: tomcat6 Overall download size: 74.0 K. After the operation, additional 176.0 K will be used. Continue? [YES/no]: y Retrieving package tomcat6-6.0.18-16.2.1.noarch (1/1), 74.0 K (176.0 K unpacked) Retrieving: tomcat6-6.0.18-16.2.1.noarch.rpm [done] Installing: tomcat6-6.0.18-16.2.1 [error] Installation of tomcat6-6.0.18-16.2.1 failed: (with --nodeps --force) Error: Subprocess failed. Error: RPM failed: error: unpacking of archive failed on file /etc/tomcat6/Catalina: cpio: rename failed - Is a directory Abort, retry, ignore? [A/r/i]: A Problem occured during or after installation or removal of packages: Installation aborted by user Please see the above error message for a hint. Looks like I still have remnants of the failed upgrade that are in the way. When time permits again, I will try removing all the symbolic links, then repeat, unless someone says I should do something else. Also, I'm still unclear as to whether or not the reopening of the bug as mentioned earlier takes away the need for a bug report from me, or if you'd still like one. Dan G. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, Jul 01, 2009 at 02:39:09PM -0400, Dan Goodman wrote:
Looks like I still have remnants of the failed upgrade that are in the way.
That's because it's not tomcat6 that created the directory, but the "struts-webapps-tomcat6" package. So my advise should have been: rpm -e --nodeps struts-webapps-tomcat6 zypper in tomcat6 zypper in struts-webapps-tomcat6 M. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Andreas Jaeger
-
Dan Goodman
-
Michael Schroeder