On our Linux build servers, we have chown/chgrp'd the .X11-unix directory in /tmp to the user that runs our builds (build, imaginatively). This allows the builds to run successfully. This may only be an option if the servers in question do not ever have graphical session users (ours don't; X is not even really installed, since the servers are purely for building).
On Tue, Aug 31, 2010 at 3:15 PM, Jonathan Erlich <[email protected]>wrote: > I'm reviewing the code of that class and I found that it's doing the > following: > 143 try > 144 { > 145 FileUtils.forceDelete( "/tmp/.X11-unix" ); > 146 } > 147 catch ( IOException e ) > 148 { > 149 getLogger().error( "Failed to delete Xvfb locking > files, does the current user has access?", e ); > 150 } > > Why is it trying to remove all X11 folders?? > > On 31 ago, 18:10, Jonathan Erlich <[email protected]> wrote: > > I'm trying to run the FlexUnit test cases in a headless unix, after > > been able to run them on Windows. > > I did all the steps you recommended in the "Running unit test" > > document in docs.sonatype. But I get the following error: > > java.io.IOException: File /tmp/.X11-unix/X24 unable to be deleted. > > at org.codehaus.plexus.util.FileUtils.forceDelete(FileUtils.java: > > 1095) > > at > org.codehaus.plexus.util.FileUtils.cleanDirectory(FileUtils.java: > > 1268) > > at > org.codehaus.plexus.util.FileUtils.deleteDirectory(FileUtils.java: > > 1224) > > at org.codehaus.plexus.util.FileUtils.forceDelete(FileUtils.java: > > 1087) > > at org.codehaus.plexus.util.FileUtils.forceDelete(FileUtils.java: > > 1071) > > at > > > org.sonatype.flexmojos.test.launcher.AsVmLauncher.runFlashplayerHeadless(As > VmLauncher.java: > > 145) > > at > > > org.sonatype.flexmojos.test.launcher.AsVmLauncher.start(AsVmLauncher.java: > > 98) > > at > > org.sonatype.flexmojos.test.DefaultTestRunner.run(DefaultTestRunner.java: > > 75) > > at > org.sonatype.flexmojos.test.FlexUnitMojo.run(FlexUnitMojo.java: > > 279) > > at > org.sonatype.flexmojos.test.FlexUnitMojo.execute(FlexUnitMojo.java: > > 164) > > > > It seems to be trying to delete all the X11 folders while some are > > being used by other users. Any idea? > > -- > You received this message because you are subscribed to the Google > Groups "Flex Mojos" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<flex-mojos%[email protected]> > For more options, visit this group at > http://groups.google.com/group/flex-mojos > > http://flexmojos.sonatype.org/ > -- You received this message because you are subscribed to the Google Groups "Flex Mojos" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex-mojos http://flexmojos.sonatype.org/
