Details
-
Type:
Bug
-
Status: New
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 3.18.1, 3.28.0
-
Fix Version/s: None
-
Component/s: Support Tools
-
Labels:
-
Notability:2
Description
If there is more than one hazelcast-network.xml file in the directory structure of the install's "etc" folder:
etc/fabric/hazelcast-network.xml etc/fabric/backup/hazelcast-network.xml
It causes an error when generating a support zip that that aborts processing of the rest of the files:
Duplicate hazelcast-network.xml file causing support zip generation problems in 3.18.1
2019-10-21 15:49:44,604-0500 ERROR [qtp1103812860-67] admin org.sonatype.nexus.internal.atlas.SupportZipGeneratorImpl - Failed to create support ZIP java.util.zip.ZipException: duplicate entry: support-20191021-154943-1/install/etc/fabric/hazelcast-network.xml at java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:232) at java_util_zip_ZipOutputStream$putNextEntry.call(Unknown Source) at org.sonatype.nexus.internal.atlas.SupportZipGeneratorImpl$_createZip_closure6.doCall(SupportZipGeneratorImpl.groovy:237) at sun.reflect.GeneratedMethodAccessor177.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034)
The jmx.json and log files will never be processed and included in the support zip, even though those options are selected.
This problem also has been noticed with duplicate logback.xml files as well in version 3.3.0:
Duplicate logback.xml preventing support zip generation including log files in 3.3.0
2018-03-01 08:52:34,625-0600 ERROR [qtp1280922613-6524] OOAD org.sonatype.nexus.internal.atlas.SupportZipGeneratorImpl - Failed to create support ZIP java.util.zip.ZipException: duplicate entry: support-20180301-085234-8/install/etc/logback/logback.xml at java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:232) [na:1.8.0_102] at java_util_zip_ZipOutputStream$putNextEntry.call(Unknown Source) [na:na] at org.sonatype.nexus.internal.atlas.SupportZipGeneratorImpl$_createZip_closure6.doCall(SupportZipGeneratorImpl.groovy:204) [na:na] at sun.reflect.GeneratedMethodAccessor832.invoke(Unknown Source) [na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [na:1.8.0_102] at java.lang.reflect.Method.invoke(Method.java:498) [na:1.8.0_102] at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) [groovy-all:2.4.7] at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) [groovy-all:2.4.7] at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294) [groovy-all:2.4.7] at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024) [groovy-all:2.4.7] at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42) [groovy-all:2.4.7] at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) [groovy-all:2.4.7] at org.sonatype.nexus.internal.atlas.SupportZipGeneratorImpl$_createZip_closure9.doCall(SupportZipGeneratorImpl.groovy:272) [na:na] at sun.reflect.GeneratedMethodAccessor834.invoke(Unknown Source) [na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [na:1.8.0_102] at java.lang.reflect.Method.invoke(Method.java:498) [na:1.8.0_102] at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) [groovy-all:2.4.7] at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) [groovy-all:2.4.7] at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294) [groovy-all:2.4.7] at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024) [groovy-all:2.4.7] at groovy.lang.Closure.call(Closure.java:414) [groovy-all:2.4.7] at groovy.lang.Closure.call(Closure.java:430) [groovy-all:2.4.7]
Expected
- If there are any exceptions while trying to include parts of the support zip, this should not block attempts to include other non-related parts of the support zip.
- Duplicate named files at different paths should not prevent inclusion of an explicitly named file at an explicitly named path
Attachments
Issue Links
- is related to
-
NEXUS-20872 Incomplete support zip generated when NXRM cannot read a file
-
- Closed
-