The postgresql group created is higher than 100. Shouldn't the GID be 40 like the UID?
It was attempting to add a group that already exists, and therefore failing. fixed in -6.