Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cross-project-issues-dev] org.eclipse.equinox.p2 Permission denied

There may be several problems preventing your access, but the usual advise is to put "tmp" in your ${WORKSPACE} ... that is the Hudson workspace ... so that way, it is "yours" to cleanup, etc., as you like.

You do have to create the directory first before Java will use it, perhaps even as a separate build step (depending on how you do your build) ... mkdir -p ${WORKSPACE}/tmp

And then, everywhere that Java might be invoked, use -Djava.io.tmpdir=${WORKSPACE}/tmp ... that'd be for direct calls to Java, of course, but also Ant, Maven, and/or Eclipse itself, as they will eventually call Java.

HTH





From:        Yue <yue.ma@xxxxxxxxxx>
To:        cross-project-issues-dev@xxxxxxxxxxx,
Cc:        Stephan Eberle <stephan.eberle@xxxxxxxxxx>
Date:        09/16/2014 06:21 PM
Subject:        [cross-project-issues-dev] org.eclipse.equinox.p2 Permission denied
Sent by:        cross-project-issues-dev-bounces@xxxxxxxxxxx




Dear all,

I've created a new Mars build job (eatop-0.5-mars) for EATOP project on hudson server (
https://hudson.eclipse.org/eatop/) recently, and I got the following errors (https://hudson.eclipse.org/eatop/job/eatop-0.5-mars/lastBuild/console) while building:

!ENTRY org.eclipse.equinox.preferences 4 4 2014-09-12 19:10:46.197
!MESSAGE Exception saving preferences to: /tmp/p2/org.eclipse.equinox.p2.engine/.settings/org.eclipse.equinox.p2.metadata.repository.prefs.
!STACK 0
java.io.FileNotFoundException: /tmp/p2/org.eclipse.equinox.p2.engine/.settings/org.eclipse.equinox.p2.metadata.repository.prefs.bak (Permission denied)


It appears that /tmp/p2(and it's children) is owned by a different hipp user and group(Modeling ECP), so when my job runs (as the EATOP user) it's unable to write in that directory.  
Does anyone know how to specify a different directory (e.g., /tmp/eatop/p2) that will probably get things rolling? Thanks for any help in advance,

Best regards,

--
Dr. Yue Ma
Senior Software Architect

Phone: +33 (0)9 83 25 77 12
Fax: +33 (0)9 83 56 77 12

Web:
http://www.itemis.de
Mail:
yue.ma@xxxxxxxxxx
LinkedIn:
http://fr.linkedin.com/in/yuema_______________________________________________
cross-project-issues-dev mailing list
cross-project-issues-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cross-project-issues-dev

Back to the top