Bob Doolittle wrote:
Hi,

On snv_123 (OpenSolaris):
I have a quite simple SVR4 package that I'm trying to publish by doing a 'pkgsend import'. Although it seems to have been published properly, when I try to install it 'pkg install' blows up. My guess is that I'm missing a step in the import process, and that pkg isn't resilient against it. I've attached the initial SVR4 pkgmap and the resultant manifest from the repository website.

I'm importing the package very simply via:
# eval `pkgsend open [email protected],5.8-4`
# pkgsend add set name=pkg.summary value="Sun Ray Service Tags Infrastructure Package"
# pkgsend import SUNWutsvt
# pkgsend close
PUBLISHED
pkg:/[email protected],5.8-4:20090916T193420Z

Then, on another snv_123 machine:
# pkg install SUNWutsvt
DOWNLOAD                                  PKGS       FILES    XFER (MB)
Completed                                  1/1         5/5      0.0/0.0

Action install failed for 'etc' (pkg://srss-repo/SUNWutsvt):
 ValueError: invalid literal for int(): ?
The Boot Environment snv_123 failed to be updated. A snapshot was taken before the failed attempt and is mounted here /tmp/tmpcMWSJ4. Use 'beadm unmount snv_123-1' and then 'beadm activate snv_123-1' if you wish to boot to this BE. pkg: An unexpected error happened during install: invalid literal for int(): ?
Traceback (most recent call last):
 File "/usr/bin/pkg", line 2619, in handle_errors
   __ret = func(*args, **kwargs)
 File "/usr/bin/pkg", line 2557, in main_func
   return install(mydir, pargs)
 File "/usr/bin/pkg", line 881, in install
   raise_ActionExecutionError=False):
 File "/usr/bin/pkg", line 546, in __api_execute_plan
   api.execute_plan()
File "/usr/lib/python2.4/vendor-packages/pkg/client/api.py", line 597, in execute_plan
   self.__img.imageplan.execute()
File "/usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py", line 754, in execute
   p.execute_install(src, dest)
File "/usr/lib/python2.4/vendor-packages/pkg/client/pkgplan.py", line 267, in execute_install
   dest.install(self, src)
File "/usr/lib/python2.4/vendor-packages/pkg/actions/directory.py", line 65, in install
   mode = int(self.attrs["mode"], 8)
ValueError: invalid literal for int(): ?


pkg: This is an internal error.  Please let the developers know about this
problem by filing a bug at http://defect.opensolaris.org and including the
above traceback and this message.  The version of pkg(5) is '77e92d348aaf'.

-----------

I'm happy to file the bug, but this is so simple I must be overlooking something obvious so I thought I'd ask here first. Any ideas? I've attached the manifest as reported by the repository website.

Did you check the mode= attributes of your file actions in the manifest for SUNWutsvt? They're very likely wrong. By the looks of it you have '?' which isn't supported.

See also:

9123 client traceback during install for bad file mode

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

Reply via email to