[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] Talk'n Lock'n



On Fri, Apr 29, 2011 at 9:02 AM, Ian Bull <irbull@xxxxxxxxxxxxxxxxx> wrote:
No, that argument will allow you to turn ON artifact locking in M7 -- it is now disabled by default.

In M6 there was a bug in how we computed read-only status of a directory.  This was fixed in subsequent IBuild and in M7.  

Here are a few things you can try with M6 (if you can't move right now).
 - Delete the .artifactlock directory and try again

The issue is that the .artifactlock directory never gets created.
 
 - Delete the .artifactlock directory and try making the repo read-only.

That seems to work. Because my group needs write permission to the repo to be able to maintain it going forward I need to leave it group writable, buit if I remove write permissions for myself the repo does seem to be interpreted as "read only".

btw, are you accessing this across a network file system?  

Yes, exactly. 

Also, if you do get a chance to move to M7, please let us know if things are better there.  

I will give that a try too.

Thanks, Terry 

cheers,
ian 

On Fri, Apr 29, 2011 at 8:43 AM, Terry Parker <tparker@xxxxxxxxxx> wrote:
Thanks Tom, I hadn't refined my Bugzilla search enough to see that one.

So that jvm argument will allow you to turn off artifact locking in M7, but where am I with M6?  Is there any way I can get M6 to work on my local read only repositories?

Thanks,
Terry


On Fri, Apr 29, 2011 at 5:50 AM, Thomas Watson <tjwatson@xxxxxxxxxx> wrote:

Because of these types of issues we decided to disable the artifact locking by default (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=341826). In M6 the locking was enabled by default.

Tom



Inactive hide details for Terry Parker ---04/29/2011 01:16:21 AM---I'm late to this thread, but I'm doing some work to setup a Terry Parker ---04/29/2011 01:16:21 AM---I'm late to this thread, but I'm doing some work to setup a distribution based on 3.7m6, and I'm getting lock-related errors ev


From:

Terry Parker <tparker@xxxxxxxxxx>

To:

P2 developer discussions <p2-dev@xxxxxxxxxxx>

Date:

04/29/2011 01:16 AM

Subject:

Re: [p2-dev] Talk'n Lock'n




I'm late to this thread, but I'm doing some work to setup a distribution based on 3.7m6, and I'm getting lock-related errors everywhere when I point to repos with file-based URIs.  Mainly I get errors like this:
java.io.IOException: The folder "/home/eclipse/repos/checkstyle/5.3.1/.artifactlock/.metadata" is read-only.

I'm not sure why that is, since I have write permission to that folder, but most of my users won't.  The environment here is Linux.

I suspect that I should be setting my repositories as read only but I didn't find any documentation to do that (I only ever do headless p2 operations to create repositories).

Thanks,
Terry



On Tue, Apr 5, 2011 at 6:57 AM, Oberlies, Tobias <tobias.oberlies@xxxxxxx> wrote:


    Ian Bull wrote:
    > 4. Don't use .lock files, but instead use the artifacts.jar as the lock
    > file.  This seems like the best solution and I've spent some time this
    > weekend prototyping it. There are a few challenges with this approach that
    > may be show stoppers (we allow users to change the 'shape' of the
    > repository -- from .jar to .xml.  This means that the .lock file will
    > suddenly change; how do we deal with this? Also, what comes first, the
    > repository or the lock?).

    What is the use case of changing the shape? I can't imagine why you'd want to do that. Locking is a very useful feature, and if mutable shape is blocking a good solution, just drop that "feature".

    Best regards

    Tobias

    _______________________________________________
    p2-dev mailing list

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



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



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





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


GIF image

GIF image