-
lundman
Going from r151038ax to r151046(LTS) we get "ActionExecutionError: Requested operation failed for package pkg://omnios/package/pkg⊙0,5.11-151046.0:20231010T121712Z : pkg5srv is an unknown or invalid group" - is this a known issue?
-
andyf
I don't think so, I haven't seen that before.
-
andyf
The package in r46 looks ok in that it does contain the pkg5srv group and user.
-
lundman
I missed "Action upgrade failed for 'pkg5srv'"
-
lundman
so presumably there is a pkg5srv pkg?
-
andyf
No, but there are two actions in the `pkg` package - one for the group and one for the user.
-
andyf
group gid=97 groupname=pkg5srv
-
andyf
user gcos-field="pkg(7) server UID" group=pkg5srv password=NP uid=97 username=pkg5srv
-
andyf
I assume the action upgrade failure message relates to one of those
-
lundman
ahh 97?
-
lundman
hmm no i thought maybe we had that but we dont
-
lundman
only hits are in /etc/user_attr:pkg5srv
-
andyf
That isn't new so the entries should be in /etc/group, /etc/passwd and /etc/shadow.
-
andyf
I suspect it's trying to replace the gecos because pkg(5) has become pkg(7) and not finding the old entry. I'm checking the code.
-
lundman
but surely 46 is trying to run "name group pkg5srv pkg:/package/pkg⊙0" to add them, it isn't expecting them to be there already?
-
andyf
The group should be there in r38 but pkg is usually good about doing whatever is necessary to get to the target state.
-
andyf
This isn't a bit of pkg I'm very familiar with though (user/group management) so it could be getting confused if something has removed the group under its feet.
-
lundman
we do replace passwd/group from our own db, which could be the fault
-
andyf
I would try adding the group/user back and hopefully that will work.
-
andyf
Does `pkg verify pkg` show them as missing?
-
andyf
If so, a `pkg fix pkg` should add them for you.
-
lundman
ERROR: uid: '<missing>' should be '97'
-
lundman
yep
-
lundman
i think you solved it, thanks
-
andyf
I think what happened is that the package planner spotted that there was no change to the "group" action between r38 and r46, so nothing to do there, then spotted there was a change needed to the "user" (gecos field) so tried to update the user, notices it was missing and tried to create it but got the "pkg5srv is an unknown or invalid group" error from `useradd`
-
lundman
yeah, that seems logical