Errors installing on Ubuntu 17.04

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Errors installing on Ubuntu 17.04

Someone
I've been struggling with this on and off for a while now.  Upon
attempting to install Dovecot on Ubuntu 17.04 I get the following errors

Selecting previously unselected package dovecot-imapd.
(Reading database ... 243684 files and directories currently installed.)
Preparing to unpack .../dovecot-imapd_1%3a2.2.27-2ubuntu2_amd64.deb ...
Unpacking dovecot-imapd (1:2.2.27-2ubuntu2) ...
Processing triggers for dovecot-core (1:2.2.27-2ubuntu2) ...
Processing triggers for ufw (0.35-4) ...
Setting up dovecot-imapd (1:2.2.27-2ubuntu2) ...
Creating config file /etc/dovecot/conf.d/20-imap.conf with new version
Processing triggers for dovecot-core (1:2.2.27-2ubuntu2) ...
Job for dovecot.service failed because the control process exited with error code.
See "systemctl status dovecot.service" and "journalctl -xe" for details.
invoke-rc.d: initscript dovecot, action "restart" failed.
  dovecot.service - Dovecot IMAP/POP3 email server
    Loaded: loaded (/lib/systemd/system/dovecot.service; enabled; vendor preset: enabled)
    Active: failed (Result: exit-code) since Thu 2017-10-05 14:08:56 BST; 17ms ago
    Docs: man:dovecot(1)
          http://wiki2.dovecot.org/
  Process: 8880 ExecStop=/usr/bin/doveadm stop (code=exited, status=0/SUCCESS)
  Process: 8885 ExecStart=/usr/sbin/dovecot (code=exited, status=89)
Main PID: 8729 (code=exited, status=0/SUCCESS)

Oct 05 14:08:56 ash systemd[1]: Starting Dovecot IMAP/POP3 email server...
Oct 05 14:08:56 ash dovecot[8885]: Error: socket() failed: Address family n…ocol
Oct 05 14:08:56 ash dovecot[8885]: Error: service(imap-login): listen(::, 1…ocol
Oct 05 14:08:56 ash dovecot[8885]: master: Error: socket() failed: Address …ocol
Oct 05 14:08:56 ash dovecot[8885]: Fatal: Failed to start listeners
Oct 05 14:08:56 ash systemd[1]: dovecot.service: Control process exited, co…s=89
Oct 05 14:08:56 ash systemd[1]: Failed to start Dovecot IMAP/POP3 email server.
Oct 05 14:08:56 ash systemd[1]: dovecot.service: Unit entered failed state.
Oct 05 14:08:56 ash systemd[1]: dovecot.service: Failed with result 'exit-code'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package dovecot-core (--configure):
subprocess installed post-installation script returned error exit status 1
(and more)

Apologies for any wrapping due to long lines in the above output.
Reply | Threaded
Open this post in threaded view
|

Re: Errors installing on Ubuntu 17.04

Jeff Kletsky-4
On 11/20/17 1:58 PM, Someone wrote:

> I've been struggling with this on and off for a while now.  Upon
> attempting to install Dovecot on Ubuntu 17.04 I get the following errors
>
> Selecting previously unselected package dovecot-imapd.
> (Reading database ... 243684 files and directories currently installed.)
> Preparing to unpack .../dovecot-imapd_1%3a2.2.27-2ubuntu2_amd64.deb ...
> Unpacking dovecot-imapd (1:2.2.27-2ubuntu2) ...
> Processing triggers for dovecot-core (1:2.2.27-2ubuntu2) ...
> Processing triggers for ufw (0.35-4) ...
> Setting up dovecot-imapd (1:2.2.27-2ubuntu2) ...
> Creating config file /etc/dovecot/conf.d/20-imap.conf with new version
> Processing triggers for dovecot-core (1:2.2.27-2ubuntu2) ...
> Job for dovecot.service failed because the control process exited with error code.
> See "systemctl status dovecot.service" and "journalctl -xe" for details.
> invoke-rc.d: initscript dovecot, action "restart" failed.
>    dovecot.service - Dovecot IMAP/POP3 email server
>      Loaded: loaded (/lib/systemd/system/dovecot.service; enabled; vendor preset: enabled)
>      Active: failed (Result: exit-code) since Thu 2017-10-05 14:08:56 BST; 17ms ago
>      Docs: man:dovecot(1)
>            http://wiki2.dovecot.org/
>    Process: 8880 ExecStop=/usr/bin/doveadm stop (code=exited, status=0/SUCCESS)
>    Process: 8885 ExecStart=/usr/sbin/dovecot (code=exited, status=89)
> Main PID: 8729 (code=exited, status=0/SUCCESS)
>
> Oct 05 14:08:56 ash systemd[1]: Starting Dovecot IMAP/POP3 email server...
> Oct 05 14:08:56 ash dovecot[8885]: Error: socket() failed: Address family n…ocol
> Oct 05 14:08:56 ash dovecot[8885]: Error: service(imap-login): listen(::, 1…ocol
> Oct 05 14:08:56 ash dovecot[8885]: master: Error: socket() failed: Address …ocol
> Oct 05 14:08:56 ash dovecot[8885]: Fatal: Failed to start listeners
> Oct 05 14:08:56 ash systemd[1]: dovecot.service: Control process exited, co…s=89
> Oct 05 14:08:56 ash systemd[1]: Failed to start Dovecot IMAP/POP3 email server.
> Oct 05 14:08:56 ash systemd[1]: dovecot.service: Unit entered failed state.
> Oct 05 14:08:56 ash systemd[1]: dovecot.service: Failed with result 'exit-code'.
> Hint: Some lines were ellipsized, use -l to show in full.
> dpkg: error processing package dovecot-core (--configure):
> subprocess installed post-installation script returned error exit status 1
> (and more)
>
> Apologies for any wrapping due to long lines in the above output.
"Hint: Some lines were ellipsized, use -l to show in full."

Without seeing the full messages, my guess is that you've got problems
with your IPv6
configuration or connectivity.  It's a long shot, but might save you a
round-trip
on the mailing list.

Jeff
Reply | Threaded
Open this post in threaded view
|

Re: Errors installing on Ubuntu 17.04

Someone
In reply to this post by Someone
On Tue, 21/11/17, Jeff Kletsky <[hidden email]> wrote:
> On 11/20/17 1:58 PM, Someone wrote:
>
>  > I've been

struggling with this on and off for a while now.  Upon

> > attempting to install Dovecot on Ubuntu

17.04 I get the following errors



[...]

> "Hint: Some lines were ellipsized, use -l
to show in full."

I'm aware of that, yes.  Unfortunately I don't know how to tell any of
the myriad of package installers to "do the right thing" in such cases,

and, as stated, this is happening during installation.


>  Without seeing the full messages, my guess is that you've got problems with your IPv6 configuration or connectivity.

Entirely possible, since I don't have IPv6 and have completely disabled
it as a result.  Even were I to re-enable it, I don't see it would help
if problems with IPv6 connectivity would also be a problem (because I
don't have it).
Reply | Threaded
Open this post in threaded view
|

Re: Errors installing on Ubuntu 17.04

Jeff Kletsky-4
On 11/21/17 5:20 AM, Someone wrote:

> On Tue, 21/11/17, Jeff Kletsky <[hidden email]> wrote:
>> On 11/20/17 1:58 PM, Someone wrote:
>>
>>   > I've been
> struggling with this on and off for a while now.  Upon
>
>>> attempting to install Dovecot on Ubuntu
> 17.04 I get the following errors
>
>
>
> [...]
>
>> "Hint: Some lines were ellipsized, use -l
> to show in full."
>
> I'm aware of that, yes.  Unfortunately I don't know how to tell any of
> the myriad of package installers to "do the right thing" in such cases,
>
> and, as stated, this is happening during installation.
>
>
>>   Without seeing the full messages, my guess is that you've got problems with your IPv6 configuration or connectivity.
> Entirely possible, since I don't have IPv6 and have completely disabled
> it as a result.  Even were I to re-enable it, I don't see it would help
> if problems with IPv6 connectivity would also be a problem (because I
> don't have it).
Without the log information, you've made it nearly impossible to help
you. The problem looks to be occurring in the execution of dovecot, not
the install process.

While you may not have IPv6 connectivity, with the little information
you've provided:

Oct 05 14:08:56 ash dovecot[8885]: Error: socket() failed: Address family n…ocol
Oct 05 14:08:56 ash dovecot[8885]: Error: service(imap-login): listen(::, 1…ocol
Oct 05 14:08:56 ash dovecot[8885]: master: Error: socket() failed: Address …ocol
Oct 05 14:08:56 ash dovecot[8885]: Fatal: Failed to start listeners

it is possible that dovecot is expecting to be able to connect over IPv6 and is unable to do so.
"socket() failed: Address family" and "listen(::, " are strong hints of that.

If you have successfully disabled IPv6 (which, I believe, Ubuntu enables by default) and dovecot is trying to listen on an IPv6 address, it is not surprising that errors occur.

The output of 'ip addr' and 'sysctl -a | fgrep net.ipv6' would be helpful, as would you examining the output of 'doveconf' to see if dovecot is trying to listen on IPv6 addresses.



Jeff