DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 18th December 2013
bsdperson bsdperson is offline
Port Guard
 
Join Date: May 2008
Posts: 37
Question dovecot2 install failure

Freebsd 9.2-Release
Code:
$ sudo portmaster mail/dovecot2

===>>> Port directory: /usr/ports/mail/dovecot2

===>>> Gathering distinfo list for installed ports

===>>> Launching 'make checksum' for mail/dovecot2 in background
===>>> Gathering dependency list for mail/dovecot2 from ports
===>>> Initial dependency check complete for mail/dovecot2


===>>> Starting build for mail/dovecot2 <<<===

===>>> All dependencies are up to date

===>  Cleaning for dovecot-2.2.4
===>  License LGPL21 MIT accepted by the user
===>  Found saved configuration for dovecot-2.2.4
===>   dovecot-2.2.4 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by dovecot-2.2.4 for building
===>  Extracting for dovecot-2.2.4
=> SHA256 Checksum OK for dovecot-2.2.4.tar.gz.


...[snip]...

/bin/sh ./sed.sh . /var/run/dovecot /usr/local/etc/dovecot  < dovecot.1.in > dovecot.1
/bin/sh ./sed.sh . /var/run/dovecot /usr/local/etc/dovecot  < dovecot-lda.1.in > dovecot-lda.1
/bin/sh ./sed.sh . /var/run/dovecot /usr/local/etc/dovecot  < dsync.1.in > dsync.1
===>  Installing for dovecot-2.2.4
===>   Generating temporary packing list
===>  Checking if mail/dovecot2 already installed
===> Creating users and/or groups.
Using existing group `dovecot'.
Using existing group `dovenull'.
Creating user `dovecot' with uid `143'.
pw: user 'dovecot' already exists
*** [create-users-groups] Error code 74

Stop in /usr/ports/mail/dovecot2.
*** [install] Error code 1

Stop in /usr/ports/mail/dovecot2.

===>>> Installation of dovecot-2.2.4 (mail/dovecot2) failed
===>>> Aborting update

===>>> Killing background jobs
Terminated

===>>> You can restart from the point of failure with this command line:
       portmaster <flags> mail/dovecot2

===>>> Exiting
[1]    41941 exit 1     sudo portmaster mail/dovecot2
sudo portmaster mail/dovecot2  273.29s user 74.77s system 93% cpu 6:11.98 total
$
Huh? What's up with this? How do I install dovecot using ports?

Last edited by ocicat; 18th December 2013 at 02:52 PM. Reason: Please use [code] & [/code] tags when posting text output.
Reply With Quote
  #2   (View Single Post)  
Old 18th December 2013
bsdperson bsdperson is offline
Port Guard
 
Join Date: May 2008
Posts: 37
Default

Code:
$ cd /usr/ports/mail/dovecot2
$ make
...
$ sudo make install
===>  Installing for dovecot-2.2.4
===>   dovecot-2.2.4 depends on shared library: iconv.3 - found
===>   Generating temporary packing list
===>  Checking if mail/dovecot2 already installed
===> Creating users and/or groups.
Creating group `dovecot' with gid `143'.
Creating group `dovenull' with gid `144'.
Creating user `dovecot' with uid `143'.
pw: user 'dovecot' already exists
*** [create-users-groups] Error code 74

Stop in /usr/ports/mail/dovecot2.
*** [install] Error code 1

Stop in /usr/ports/mail/dovecot2.
[1]    4728 exit 1     sudo make install
$
Reply With Quote
  #3   (View Single Post)  
Old 19th December 2013
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin Tournoij
Tcpdump Spy
 
Join Date: Apr 2008
Location: Ireland
Posts: 2,245
Default

The problem is:

Code:
Creating user `dovecot' with uid `143'.
pw: user 'dovecot' already exists
The error is self-explanatory. It's a bit disappointing the port fails on something like this...

Try removing the dovecot user & group with:
Code:
$ pw group del dovecot
$ pw user del dovecot
And install again ...
Reply With Quote
  #4   (View Single Post)  
Old 19th December 2013
bsdperson bsdperson is offline
Port Guard
 
Join Date: May 2008
Posts: 37
Default

It is self explanatory, if there had been a user dovecot, but there wasn't. After the install fails there is a user dovecot but no group.

Code:
$ pw show user -a | grep dove
[1]    13303 done       pw show user -a |
       13304 exit 1     egrep --colour=auto dove
$ pw show group -a | grep dove
[1]    13305 done       pw show group -a |
       13306 exit 1     egrep --colour=auto dove
$ sudo portmaster mail/dovecot2
...
...
===>  Installing for dovecot-2.2.4
===>   Generating temporary packing list
===>  Checking if mail/dovecot2 already installed
===> Creating users and/or groups.
Creating group `dovecot' with gid `143'.
Creating group `dovenull' with gid `144'.
Creating user `dovecot' with uid `143'.
pw: user 'dovecot' already exists
*** [create-users-groups] Error code 74

Stop in /usr/ports/mail/dovecot2.
*** [install] Error code 1

Stop in /usr/ports/mail/dovecot2.

===>>> Installation of dovecot-2.2.4 (mail/dovecot2) failed
===>>> Aborting update

===>>> Killing background jobs
Terminated

===>>> You can restart from the point of failure with this command line:
       portmaster <flags> mail/dovecot2

===>>> Exiting
[1]    13964 exit 1     sudo portmaster mail/dovecot2
sudo portmaster mail/dovecot2  291.95s user 78.22s system 83% cpu 7:25.25 total
$
Reply With Quote
  #5   (View Single Post)  
Old 19th December 2013
bsdperson bsdperson is offline
Port Guard
 
Join Date: May 2008
Posts: 37
Default

I was wrong, after the install fails there's:

Code:
$ pw show group -a | grep dove
dovecot:*:143:
dovenull:*:144:
$ pw show user -a | grep dove
[1]    45160 done       pw show user -a |
       45161 exit 1     egrep --colour=auto dove
$
I thought that a failed install didn't leave anything behind?
Reply With Quote
Reply

Tags
dovecot, fail, ports

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Failure of the GPL vermaden Off-Topic 9 6th September 2009 05:11 PM
Make world failure disappearedng FreeBSD General 1 16th January 2009 12:04 PM
A failure in password security TerryP Off-Topic 3 25th September 2008 03:19 AM
Libpurple 2.4.2 config failure. KernelPanic FreeBSD Ports and Packages 3 23rd May 2008 06:19 PM
BitchX build failure mahoney FreeBSD Ports and Packages 1 8th May 2008 07:48 AM


All times are GMT. The time now is 04:07 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick