Hi pkg folk,
I received this error message:
pkg: This is an internal error in pkg(5) version 1dc473995939. Please log a
Service Request about this issue including the information above and this
message.
So I created an SR with 'My Oracle Support'. The support consultant wants to
close the SR because he considers this user error not a bug. I am assuming you
would like to know about "internal error in pkg(5)", but if I close the SR,
will the support people pass it in to you?
The circumstances that created the error message are: I have a local soe
package that is applied during AI - it works fine. I was testing what 'pkg
verify' and 'pkg fix' would do if someone had edited /etc/passwd or /etc/shadow
by hand and a made a typo. In my experiment, a simulated fat-fingered sysadmin
had added an extra colon into one of the lines in /etc/shadow.
I was expecting that the user action password=xxx.. in the pkg manifest would
put the proper password back in the /etc/shadow file.
The full error message is below.
Action upgrade failed for 'sally' (pkg://myrepo/system/security/soe):
RuntimeError: line c788661:rJGaY9XjrJwxE:14159:15622:::::: in /etc/shadow has
10 columns
Traceback (most recent call last):
File "/usr/bin/pkg", line 5969, in handle_errors
__ret = func(*args, **kwargs)
File "/usr/bin/pkg", line 5947, in main_func
return func(api_inst, pargs)
File "/usr/bin/pkg", line 694, in fix_image
new_history_op=False)
File "/usr/lib/python2.6/vendor-packages/pkg/client/image.py", line 2247, in
repair
**kwargs)
File "/usr/lib/python2.6/vendor-packages/pkg/client/image.py", line 2329, in
__repair
ip.execute()
File "/usr/lib/python2.6/vendor-packages/pkg/client/imageplan.py", line 2963,
in execute
p.execute_update(src, dest)
File "/usr/lib/python2.6/vendor-packages/pkg/client/pkgplan.py", line 441, in
execute_update
dest.install(self, src)
File "/usr/lib/python2.6/vendor-packages/pkg/actions/user.py", line 102, in
install
self.readstate(pkgplan.image, username, lock=True)
File "/usr/lib/python2.6/vendor-packages/pkg/actions/user.py", line 68, in
readstate
pw = PasswordFile(root, lock)
File "/usr/lib/python2.6/vendor-packages/pkg/cfgfiles.py", line 218, in
__init__
self.readfile()
File "/usr/lib/python2.6/vendor-packages/pkg/cfgfiles.py", line 267, in
readfile
self.shadow_file.readfile()
File "/usr/lib/python2.6/vendor-packages/pkg/cfgfiles.py", line 91, in
readfile
cols = self.splitline(line)
File "/usr/lib/python2.6/vendor-packages/pkg/cfgfiles.py", line 64, in
splitline
(line, self.filename, len(cols))
RuntimeError: line c788661:rJGaY9XjrJwxE:14159:15622:::::: in /etc/shadow has
10 columns
pkg: This is an internal error in pkg(5) version 1dc473995939. Please log a
Service Request about this issue including the information above and this
message.
I am using Solaris 11 11/11 SRU10
Thanks,
Rick
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss