On 09/ 8/10 10:55 AM, Shawn Walker wrote:
On 09/ 8/10 08:58 AM, Sean McGrath wrote:

Hi folks,

When I'm creating a pkg repo locally with using a filebased (on nfs
server)
repo i'm getting a 'file protocol error: code: 71' from pkg


I'm doing:

# pkg image-create -f -F -p
opensolaris.org=file:///net/$nfs_server/path/to/repo /$mntpnt

on b146.

The $nfs_server has the repo shared read-only and the pkg image-create
fails
when it tries to open a package's manifest read/write (O_RDWR):

pkg image-create: file protocol error: code: 71 reason: [Errno 13]
Permission denied:
'/net/$nfs_server/path/to/repo/trans/$path_to_manifest/manfiest'

Truss shows:

open64("/net/$nfs_server/path/to/repo/trans/$path_to_manifest/manifest",
O_RDWR) Err#13 EACCES

(I've replaced the actual paths for readability)

This can be considered a bug ?

I'm unaware of any logic that would open manifests during image creation.

I've also truss'd an image create and checked all of the open calls
during image-create.

Finally, I'm unable to reproduce this with b147 bits (with the caveat
that I'm substituting a local, read-only filesystem for an NFS share).
I'd suggest upgrading to b147 and trying again.

If it still fails, then I'll need your help debugging as I'm unable to
reproduce locally.

I just realised that one change that happened in 147 was this one:

  16558 repository class should load in-flight transactions on demand

Because the repository contains in-flight transactions (that is, someone started a package transaction with 'pkgsend open' but never did 'pkgsend close' or the like) older versions of the software would attempt to open those in-flight transactions when initially loading the repository. This was unnecessary, and in your case, wasn't right anyway.

If you move to 147, that should resolve your issue. Alternatively, if you remove the contents of the $REPO/trans/ directory that should also workaround the issue for the moment.

Cheers,
-Shawn
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to