[Dovecot] wrong dovecot GID while upgrading
Hello,
I tried to upgrade dovecot from 1.0.rc7 to rc22 but I got this error at the end of the upgrade process:
Dovecot has reserved the groupname 'dovecot' and gid '143':
ERROR: groupname 'dovecot' already in use by gid '1003'
Please resolve these issues and try again:
Either remove the conflicting group or if you wish to continue using a
legacy gr
oup override DOVECOT_GID.
*** Error code 1
Stop in /usr/ports/mail/dovecot.
So I went to /usr/ports/mail/dovecot and edited the Makefile to change the GID into:
DOVECOT_UID?= 1003
DOVECOT_GID?= 1003
SCRIPT_ENV+= DOVECOT_UID=${DOVECOT_UID}
DOVECOT_GID=${DOVECOT_GID}
I saved the makefile and ran portupgrade again but I got stopped by exactly the same error. I'd appreciate suggestions how to resolve this.
Thank you!
-- Zbigniew Szalbot
Zbigniew Szalbot a écrit :
Hello,
I tried to upgrade dovecot from 1.0.rc7 to rc22 but I got this error at the end of the upgrade process:
Dovecot has reserved the groupname 'dovecot' and gid '143': ERROR: groupname 'dovecot' already in use by gid '1003' Please resolve these issues and try again: Either remove the conflicting group or if you wish to continue using a legacy gr
oup override DOVECOT_GID. *** Error code 1Stop in /usr/ports/mail/dovecot.
So I went to /usr/ports/mail/dovecot and edited the Makefile to change the GID into:
DOVECOT_UID?= 1003 DOVECOT_GID?= 1003 SCRIPT_ENV+= DOVECOT_UID=${DOVECOT_UID}
DOVECOT_GID=${DOVECOT_GID}I saved the makefile and ran portupgrade again but I got stopped by exactly the same error. I'd appreciate suggestions how to resolve this.
Thank you!
I saw this, and I think it's a freebsd-port problem...
I solved this by changing dovecot's uid and gid to 143, I think the startup script will fix permissions... (except /var/run/dovecot/login/ssl-parameters.dat or /var/lib/dovecot/ssl-parameters.dat, I don't remember...)
Otherwise it should work with: # portupgrade -M"DOVECOT_UID=1003 DOVECOT_GID=1003" dovecot
HTH
___________________________________________________________
/ Geoffroy DESVERNAY | \
/\ `Service info` | Tel: (+33|0)4 91 05 45 24 /\
\/ Ecole Centrale de Marseille | Fax: (+33|0)4 91 05 45 98 \/
\ (ex-EGIM) | Mail: dgeo@ec-marseille.fr /
-----------------------------------------------------------
On Sunday February 18, 2007 at 03:43:36 (PM) Geoffroy DESVERNAY wrote:
I saw this, and I think it's a freebsd-port problem...
I solved this by changing dovecot's uid and gid to 143, I think the startup script will fix permissions... (except /var/run/dovecot/login/ssl-parameters.dat or /var/lib/dovecot/ssl-parameters.dat, I don't remember...)
There was a notice regarding this is the /usr/ports/UPDATING file awhile back.
To keep things copacetic, in the /usr/ports/mail/dovecot port, do this:
make && make deinstall && make reinstall
That should take care of the problem. I have heard of a rare instance where you the required to remove the dovecot user and group prior to running reinstall. You can use 'pw' to handle that chore.
Surprisingly enough, this problem only seems to surface this one time. I would definitely NOT recommend changing the UID and GID numbers. It could very well come back to bite you in the ass later.
Just my 2¢.
-- Gerard
participants (3)
-
Geoffroy DESVERNAY
-
Gerard
-
Zbigniew Szalbot