Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-dev] surefire plug-in "chmod" issue on Solaris 10

Thanks Jan for helping me get to the core of this one! :)
The -X output is 6 Megs in size, but I think the final debug output(1) is what you're looking for, right?

What puzzles me is that Linux and Windows don't fail under the same conditions, and that a plain "chmod versiontest-1@2^3_1-noarch.rpm" also does the job on solaris,
it's only happening inside tycho I see any difficulty with the "^" character..

Helmut

[1] = excerpt from debug log:
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:0.17.0:test (default-test) on tests.update: Execution default-test of goal org.eclipse.tycho:tycho-surefire-plugin:0.17.0:test failed: Unable to unpack jar <path>/tests-1.0.0-SNAPSHOT.jar: chmod exit code was: 1 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:0.17.0:test (default-test) on project com.windriver.p2.installer.tests.update: Execution default-test of goal org.eclipse.tycho:tycho-surefire-plugin:0.17.0:test failed: Unable to unpack jar <path>/tests-1.0.0-SNAPSHOT.jar
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-test of goal org.eclipse.tycho:tycho-surefire-plugin:0.17.0:test failed: Unable to unpack jar <path>/ tests-1.0.0-SNAPSHOT.jar
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
	... 19 more
Caused by: java.lang.RuntimeException: Unable to unpack jar <path>/tests-2.6.0-SNAPSHOT.jar
	at org.eclipse.sisu.equinox.launching.internal.DefaultEquinoxInstallationFactory.unpack(DefaultEquinoxInstallationFactory.java:186)
	at org.eclipse.sisu.equinox.launching.internal.DefaultEquinoxInstallationFactory.createInstallation(DefaultEquinoxInstallationFactory.java:76)
	at org.eclipse.tycho.surefire.TestMojo.createEclipseInstallation(TestMojo.java:656)
	at org.eclipse.tycho.surefire.TestMojo.execute(TestMojo.java:559)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
	... 20 more
Caused by: org.codehaus.plexus.archiver.ArchiverException: chmod exit code was: 1
	at org.codehaus.plexus.archiver.util.ArchiveEntryUtils.chmod(ArchiveEntryUtils.java:106)
	at org.codehaus.plexus.archiver.zip.AbstractZipUnArchiver.extractFile(AbstractZipUnArchiver.java:238)
	at org.codehaus.plexus.archiver.zip.AbstractZipUnArchiver.extractFileIfIncluded(AbstractZipUnArchiver.java:185)
	at org.codehaus.plexus.archiver.zip.AbstractZipUnArchiver.execute(AbstractZipUnArchiver.java:149)
	at org.codehaus.plexus.archiver.AbstractUnArchiver.extract(AbstractUnArchiver.java:119)
	at org.eclipse.sisu.equinox.launching.internal.DefaultEquinoxInstallationFactory.unpack(DefaultEquinoxInstallationFactory.java:184)
	... 24 more
[ERROR] 
[ERROR]

-----Original Message-----
From: tycho-dev-bounces@xxxxxxxxxxx [mailto:tycho-dev-bounces@xxxxxxxxxxx] On Behalf Of Sievers, Jan
Sent: Tuesday, November 19, 2013 5:45 PM
To: Tycho developers list
Subject: Re: [tycho-dev] surefire plug-in "chmod" issue on Solaris 10

we would need the full stacktrace (using -X) and better yet a small standalone example to demonstrate the issue and steps to reproduce.

from the log snippet looks to me that this is happening in [1]

We are using the plexus unarchiver component to unpack bundle jars with BundleShape: dir.
AFAIK the plexus unarchiver tries to preserve/restore unix file permissions.
So this may be a plexus unarchiver issue.

I'm just guessing but if it does this by forking a shell process with chmod, it may be that the arguments of this forked process got mangled by the special characters.
file name "versiontest-1@2^3_1.noarch.rpm" 

and error

"/bin/sh: 3_1.noarch.rpm: not found"

seem to indicate the arguments are split at "^".

Regards,
Jan

[1] http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/tree/sisu-equinox/sisu-equinox-launching/src/main/java/org/eclipse/sisu/equinox/launching/internal/DefaultEquinoxInstallationFactory.java#n173 

From: tycho-dev-bounces@xxxxxxxxxxx [mailto:tycho-dev-bounces@xxxxxxxxxxx] On Behalf Of Haigermoser, Helmut
Sent: Dienstag, 19. November 2013 16:05
To: tycho-dev@xxxxxxxxxxx
Subject: [tycho-dev] surefire plug-in "chmod" issue on Solaris 10

Hi All ☺
I’m using tycho for some time as our plug-in build and release mechanism, let me start by thinking you guys for a great release tool! ☺

Recently though I’m running into issues on Solaris. Looks like the surefire plug-in is running into “chmod” issues while trying to extract a plug-in, the exact same build works fine on windows and Solaris, which makes me classify this as an OS issue. 

One of my tests had me swich from 0.17 to 0.19, but that did not change the result.

The file causing trouble contains special characters, “versiontest-1@2^3_1.noarch.rpm”, the “^” character seems to cause the ruckus.
A simple “chmod” using the Solaris version works fine, so I assume tycho uses some java reimplementation?

Here is the details:

[INFO] --- tycho-surefire-plugin:0.17.0:test (default-test) @ tests.update --- [WARNING] ------------------------------- [WARNING] Standard error:
[WARNING] ------------------------------- [WARNING] [WARNING] ------------------------------- [WARNING] Standard output:
[WARNING] ------------------------------- [WARNING] /bin/sh: 3_1.noarch.rpm: not found
chmod: WARNING: can't access /path/versiontest-1@2

[WARNING] ------------------------------- [INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] testserver ............. SUCCESS [14.412s] [INFO] tests .................. SUCCESS [1:21:04.527s] [INFO] tests.update ........... FAILURE [11:58.042s] [INFO] tests.regression ....... SKIPPED [INFO] ui.tests ............... SKIPPED [INFO] target ................. SKIPPED [INFO] aggregator.tests ....... SKIPPED [INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:33:55.620s
[INFO] Finished at: Tue Nov 12 01:53:57 CET 2013 [INFO] Final Memory: 21M/82M [INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:0.17.0:test (default-test) on project tests.update: Execution default-test of goal org.eclipse.tycho:tycho-surefire-plugin:0.17.0:test failed: Unable to unpack jar /path/ tests-1.0.0-SNAPSHOT.jar: chmod exit code was: 1 -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command [ERROR]   mvn <goals> -rf : tests.update Build step 'Invoke top-level Maven targets' marked build as failure

TIA,
Ciao, hh 

_______________________________________________
tycho-dev mailing list
tycho-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-dev

Back to the top