[Bug 1562918] Re: cloud-init does not create defined users
Please ignore my last comment (#4). When specifying an explicit primary-group it should of course already exist, before useradd can create the user. When removing the primary-group statement from the user definition the user is created just fine (including it's primary group with the same name as the user). For me this has fixed the issue I've reported. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1562918 Title: cloud-init does not create defined users To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1562918/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1562918] Re: cloud-init does not create defined users
Please ignore my last comment (#4). When specifying an explicit primary-group it should of course already exist, before useradd can create the user. When removing the primary-group statement from the user definition the user is created just fine (including it's primary group with the same name as the user). For me this has fixed the issue I've reported. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to cloud-init in Ubuntu. https://bugs.launchpad.net/bugs/1562918 Title: cloud-init does not create defined users To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1562918/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1562918] Re: cloud-init does not create defined users
When I remove the groups: part I get the following errors in the /var/log/cloud-init.log: Mar 31 22:35:45 test [CLOUDINIT] stages.py[DEBUG]: Running module users-groups () with frequency once-per-instance Mar 31 22:35:45 test [CLOUDINIT] handlers.py[DEBUG]: start: init-network/config-users-groups: running config-users-groups with frequency once-per-instance Mar 31 22:35:45 test [CLOUDINIT] util.py[DEBUG]: Writing to /var/lib/cloud/instances/nocloud/sem/config_users_groups - wb: [420] 24 bytes Mar 31 22:35:45 test [CLOUDINIT] helpers.py[DEBUG]: Running config-users-groups using lock () Mar 31 22:35:45 test [CLOUDINIT] __init__.py[DEBUG]: Adding user ansible Mar 31 22:35:45 test [CLOUDINIT] util.py[DEBUG]: Running hidden command to protect sensitive input/output logstring: ['useradd', 'ansible', '--shell', '/bin/bash', '--gid', 'ansible', '--comment', 'Ansible', '--groups', 'sudo', '-m'] Mar 31 22:35:45 test [CLOUDINIT] util.py[WARNING]: Failed to create user ansible Mar 31 22:35:46 test [CLOUDINIT] util.py[DEBUG]: Failed to create user ansible#012Traceback (most recent call last):#012 File "/usr/lib/python3/dist-packages/cloudinit/distros/__init__.py", line 406, in add_user#012util.subp(adduser_cmd, logstring=log_adduser_cmd)#012 File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 1704, in subp#012 cmd=args)#012cloudinit.util.ProcessExecutionError: Unexpected error while running command.#012Command: ['useradd', 'ansible', '--shell', '/bin/bash', '--gid', 'ansible', '--comment', 'Ansible', '--groups', 'sudo', '-m']#012Exit code: 6#012Reason: -#012Stdout: ''#012Stderr: "useradd: group 'ansible' does not exist\n" Mar 31 22:35:46 test [CLOUDINIT] handlers.py[DEBUG]: finish: init-network/config-users-groups: FAIL: running config-users-groups with frequency once-per-instance Mar 31 22:35:46 test [CLOUDINIT] util.py[WARNING]: Running module users-groups () failed Mar 31 22:35:46 test [CLOUDINIT] util.py[DEBUG]: Running module users-groups () failed#012Traceback (most recent call last):#012 File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 735, in _run_modules#012freq=freq)#012 File "/usr/lib/python3/dist-packages/cloudinit/cloud.py", line 70, in run#012 return self._runners.run(name, functor, args, freq, clear_on_fail)#012 File "/usr/lib/python3/dist-packages/cloudinit/helpers.py", line 199, in run#012 results = functor(*args)#012 File "/usr/lib/python3/dist-packages/cloudinit/config/cc_users_groups.py", line 34, in handle#012cloud.distro.create_user(user, **config)#012 File "/usr/lib/python3/dist-packages/cloudinit/distros/__init__.py", line 419, in create_user#012self.add_user(name, **kwargs)#012 File "/usr/lib/python3/dist-packages/cloudinit/distros/__init__.py", line 409, in add_user#01 2raise e#012 File "/usr/lib/python3/dist-packages/cloudinit/distros/__init__.py", line 406, in add_user#012util.subp(adduser_cmd, logstring=log_adduser_cmd)#012 File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 1704, in subp#012 cmd=args)#012cloudinit.util.ProcessExecutionError: Unexpected error while running command.#012Command: ['useradd', 'ansible', '--shell', '/bin/bash', '--gid', 'ansible', '--comment', 'Ansible', '--groups', 'sudo', '-m']#012Exit code: 6#012Reason: -#012Stdout: ''#012Stderr: "useradd: group 'ansible' does not exist\n" Mar 31 22:35:46 test [CLOUDINIT] stages.py[DEBUG]: Running module ssh () with frequency once-per-instance -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to cloud-init in Ubuntu. https://bugs.launchpad.net/bugs/1562918 Title: cloud-init does not create defined users To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1562918/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1562918] Re: cloud-init does not create defined users
When I remove the groups: part I get the following errors in the /var/log/cloud-init.log: Mar 31 22:35:45 test [CLOUDINIT] stages.py[DEBUG]: Running module users-groups () with frequency once-per-instance Mar 31 22:35:45 test [CLOUDINIT] handlers.py[DEBUG]: start: init-network/config-users-groups: running config-users-groups with frequency once-per-instance Mar 31 22:35:45 test [CLOUDINIT] util.py[DEBUG]: Writing to /var/lib/cloud/instances/nocloud/sem/config_users_groups - wb: [420] 24 bytes Mar 31 22:35:45 test [CLOUDINIT] helpers.py[DEBUG]: Running config-users-groups using lock () Mar 31 22:35:45 test [CLOUDINIT] __init__.py[DEBUG]: Adding user ansible Mar 31 22:35:45 test [CLOUDINIT] util.py[DEBUG]: Running hidden command to protect sensitive input/output logstring: ['useradd', 'ansible', '--shell', '/bin/bash', '--gid', 'ansible', '--comment', 'Ansible', '--groups', 'sudo', '-m'] Mar 31 22:35:45 test [CLOUDINIT] util.py[WARNING]: Failed to create user ansible Mar 31 22:35:46 test [CLOUDINIT] util.py[DEBUG]: Failed to create user ansible#012Traceback (most recent call last):#012 File "/usr/lib/python3/dist-packages/cloudinit/distros/__init__.py", line 406, in add_user#012util.subp(adduser_cmd, logstring=log_adduser_cmd)#012 File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 1704, in subp#012 cmd=args)#012cloudinit.util.ProcessExecutionError: Unexpected error while running command.#012Command: ['useradd', 'ansible', '--shell', '/bin/bash', '--gid', 'ansible', '--comment', 'Ansible', '--groups', 'sudo', '-m']#012Exit code: 6#012Reason: -#012Stdout: ''#012Stderr: "useradd: group 'ansible' does not exist\n" Mar 31 22:35:46 test [CLOUDINIT] handlers.py[DEBUG]: finish: init-network/config-users-groups: FAIL: running config-users-groups with frequency once-per-instance Mar 31 22:35:46 test [CLOUDINIT] util.py[WARNING]: Running module users-groups () failed Mar 31 22:35:46 test [CLOUDINIT] util.py[DEBUG]: Running module users-groups () failed#012Traceback (most recent call last):#012 File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 735, in _run_modules#012freq=freq)#012 File "/usr/lib/python3/dist-packages/cloudinit/cloud.py", line 70, in run#012 return self._runners.run(name, functor, args, freq, clear_on_fail)#012 File "/usr/lib/python3/dist-packages/cloudinit/helpers.py", line 199, in run#012 results = functor(*args)#012 File "/usr/lib/python3/dist-packages/cloudinit/config/cc_users_groups.py", line 34, in handle#012cloud.distro.create_user(user, **config)#012 File "/usr/lib/python3/dist-packages/cloudinit/distros/__init__.py", line 419, in create_user#012self.add_user(name, **kwargs)#012 File "/usr/lib/python3/dist-packages/cloudinit/distros/__init__.py", line 409, in add_user#01 2raise e#012 File "/usr/lib/python3/dist-packages/cloudinit/distros/__init__.py", line 406, in add_user#012util.subp(adduser_cmd, logstring=log_adduser_cmd)#012 File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 1704, in subp#012 cmd=args)#012cloudinit.util.ProcessExecutionError: Unexpected error while running command.#012Command: ['useradd', 'ansible', '--shell', '/bin/bash', '--gid', 'ansible', '--comment', 'Ansible', '--groups', 'sudo', '-m']#012Exit code: 6#012Reason: -#012Stdout: ''#012Stderr: "useradd: group 'ansible' does not exist\n" Mar 31 22:35:46 test [CLOUDINIT] stages.py[DEBUG]: Running module ssh () with frequency once-per-instance -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1562918 Title: cloud-init does not create defined users To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1562918/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1562918] Re: cloud-init does not create defined users
I've applied the diff. The defined users are now being created, but only when their primary group is created first using the groups statement. The users are also correctly added to the specified additionals groups. I've pasted my userdata below: #cloud-config groups: - ansible - sysop users: - name: sysop gecos: "System Operator" primary-group: sysop groups: "sudo,adm" shell: /bin/bash lock-passwd: false passwd: - name: ansible gecos: Ansible primary-group: ansible groups: sudo shell: /bin/bash -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1562918 Title: cloud-init does not create defined users To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1562918/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1562918] Re: cloud-init does not create defined users
I've applied the diff. The defined users are now being created, but only when their primary group is created first using the groups statement. The users are also correctly added to the specified additionals groups. I've pasted my userdata below: #cloud-config groups: - ansible - sysop users: - name: sysop gecos: "System Operator" primary-group: sysop groups: "sudo,adm" shell: /bin/bash lock-passwd: false passwd: - name: ansible gecos: Ansible primary-group: ansible groups: sudo shell: /bin/bash -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to cloud-init in Ubuntu. https://bugs.launchpad.net/bugs/1562918 Title: cloud-init does not create defined users To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1562918/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1562918] [NEW] cloud-init does not create defined users
Public bug reported: When cloud-init tries to create the defined user a python error occurs: # /var/log/cloud-init.log Mar 28 17:27:25 ubuntu [CLOUDINIT] helpers.py[DEBUG]: Running config-users-groups using lock () Mar 28 17:27:25 ubuntu [CLOUDINIT] util.py[DEBUG]: Running command ['groupadd', 'sysop'] with allowed return codes [0] (shell=False, capture=True) Mar 28 17:27:25 ubuntu [CLOUDINIT] __init__.py[INFO]: Created new group sysop Mar 28 17:27:25 ubuntu [CLOUDINIT] util.py[DEBUG]: Running command ['groupadd', 'ansible'] with allowed return codes [0] (shell=False, capture=True) Mar 28 17:27:25 ubuntu [CLOUDINIT] __init__.py[INFO]: Created new group ansible Mar 28 17:27:25 ubuntu [CLOUDINIT] handlers.py[DEBUG]: finish: init-network/config-users-groups: FAIL: running config-users-groups with frequency once-per-instance Mar 28 17:27:25 ubuntu [CLOUDINIT] util.py[WARNING]: Running module users-groups () failed Mar 28 17:27:25 ubuntu [CLOUDINIT] util.py[DEBUG]: Running module users-groups () failed#012Traceback (most recent call last):#012 File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 729, in _run_modules#012freq=freq)#012 File "/usr/lib/python3/dist-packages/cloudinit/cloud.py", line 70, in run#012 return self._runners.run(name, functor, args, freq, clear_on_fail)#012 File "/usr/lib/python3/dist-packages/cloudinit/helpers.py", line 199, in run#012 results = functor(*args)#012 File "/usr/lib/python3/dist-packages/cloudinit/config/cc_users_groups.py", line 34, in handle#012cloud.distro.create_user(user, **config)#012 File "/usr/lib/python3/dist-packages/cloudinit/distros/__init__.py", line 419, in create_user#012self.add_user(name, **kwargs)#012 File "/usr/lib/python3/dist-packages/cloudinit/distros/__init__.py", line 373, in add_user# 012for group in kwargs.get('groups').split(","):#012AttributeError: 'NoneType' object has no attribute 'split' #cloud-config groups: - sysop - ansible users: - name: sysop gecos: System Operator shell: /bin/bash lock-passwd: false sudo: ALL=(ALL) NOPASSWD:ALL passwd: $6$rounds=4096$y8sPi6ZhIVRN$bxASp.uEcBf3JjJvrYOZrU1hUHJrdlkdJCX9W0.fkNKi.i/qy6iTqmlcnr5s8VOwOomddbXIXVKkQ9C3wTzSr/ # lsb_release -rd Description:Ubuntu Xenial Xerus (development branch) Release:16.04 # apt-cache policy cloud-init cloud-init: Installed: 0.7.7~bzr1189-0ubuntu1 Candidate: 0.7.7~bzr1189-0ubuntu1 Version table: *** 0.7.7~bzr1189-0ubuntu1 500 500 http://nl.archive.ubuntu.com/ubuntu xenial/main amd64 Packages 500 http://nl.archive.ubuntu.com/ubuntu xenial/main i386 Packages 100 /var/lib/dpkg/status ** Affects: cloud-init (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to cloud-init in Ubuntu. https://bugs.launchpad.net/bugs/1562918 Title: cloud-init does not create defined users To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1562918/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1562918] [NEW] cloud-init does not create defined users
Public bug reported: When cloud-init tries to create the defined user a python error occurs: # /var/log/cloud-init.log Mar 28 17:27:25 ubuntu [CLOUDINIT] helpers.py[DEBUG]: Running config-users-groups using lock () Mar 28 17:27:25 ubuntu [CLOUDINIT] util.py[DEBUG]: Running command ['groupadd', 'sysop'] with allowed return codes [0] (shell=False, capture=True) Mar 28 17:27:25 ubuntu [CLOUDINIT] __init__.py[INFO]: Created new group sysop Mar 28 17:27:25 ubuntu [CLOUDINIT] util.py[DEBUG]: Running command ['groupadd', 'ansible'] with allowed return codes [0] (shell=False, capture=True) Mar 28 17:27:25 ubuntu [CLOUDINIT] __init__.py[INFO]: Created new group ansible Mar 28 17:27:25 ubuntu [CLOUDINIT] handlers.py[DEBUG]: finish: init-network/config-users-groups: FAIL: running config-users-groups with frequency once-per-instance Mar 28 17:27:25 ubuntu [CLOUDINIT] util.py[WARNING]: Running module users-groups () failed Mar 28 17:27:25 ubuntu [CLOUDINIT] util.py[DEBUG]: Running module users-groups () failed#012Traceback (most recent call last):#012 File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 729, in _run_modules#012freq=freq)#012 File "/usr/lib/python3/dist-packages/cloudinit/cloud.py", line 70, in run#012 return self._runners.run(name, functor, args, freq, clear_on_fail)#012 File "/usr/lib/python3/dist-packages/cloudinit/helpers.py", line 199, in run#012 results = functor(*args)#012 File "/usr/lib/python3/dist-packages/cloudinit/config/cc_users_groups.py", line 34, in handle#012cloud.distro.create_user(user, **config)#012 File "/usr/lib/python3/dist-packages/cloudinit/distros/__init__.py", line 419, in create_user#012self.add_user(name, **kwargs)#012 File "/usr/lib/python3/dist-packages/cloudinit/distros/__init__.py", line 373, in add_user# 012for group in kwargs.get('groups').split(","):#012AttributeError: 'NoneType' object has no attribute 'split' #cloud-config groups: - sysop - ansible users: - name: sysop gecos: System Operator shell: /bin/bash lock-passwd: false sudo: ALL=(ALL) NOPASSWD:ALL passwd: $6$rounds=4096$y8sPi6ZhIVRN$bxASp.uEcBf3JjJvrYOZrU1hUHJrdlkdJCX9W0.fkNKi.i/qy6iTqmlcnr5s8VOwOomddbXIXVKkQ9C3wTzSr/ # lsb_release -rd Description:Ubuntu Xenial Xerus (development branch) Release:16.04 # apt-cache policy cloud-init cloud-init: Installed: 0.7.7~bzr1189-0ubuntu1 Candidate: 0.7.7~bzr1189-0ubuntu1 Version table: *** 0.7.7~bzr1189-0ubuntu1 500 500 http://nl.archive.ubuntu.com/ubuntu xenial/main amd64 Packages 500 http://nl.archive.ubuntu.com/ubuntu xenial/main i386 Packages 100 /var/lib/dpkg/status ** Affects: cloud-init (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1562918 Title: cloud-init does not create defined users To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1562918/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1552295] Re: Postfix 3 supports SMTPUTF8 but not enabled
** Also affects: postfix (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to postfix in Ubuntu. https://bugs.launchpad.net/bugs/1552295 Title: Postfix 3 supports SMTPUTF8 but not enabled To manage notifications about this bug go to: https://bugs.launchpad.net/postfix/+bug/1552295/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1552295] Re: Postfix 3 supports SMTPUTF8 but not enabled
** Also affects: postfix (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1552295 Title: Postfix 3 supports SMTPUTF8 but not enabled To manage notifications about this bug go to: https://bugs.launchpad.net/postfix/+bug/1552295/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 700741] Re: dovecot won't start during boot
Yes, when I (re)start it after boot it starts successfully. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to dovecot in ubuntu. https://bugs.launchpad.net/bugs/700741 Title: dovecot won't start during boot -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 700741] Re: dovecot won't start during boot
Yes, when I (re)start it after boot it starts successfully. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/700741 Title: dovecot won't start during boot -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 700741] Re: dovecot won't start during boot
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 94.142.x.x netmask 255.255.255.240 network 94.142.x.0 broadcast 94.142.x.x gateway 94.142.x.1 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 94.142.x.1 dns-search slaco.net iface eth0 inet6 static address 2a02:898:x::x:0 netmask 64 gateway 2a02:898:x::1 # The private network interface auto eth1 iface eth1 inet static address 192.168.x.x netmask 255.255.255.0 network 192.168.x.0 broadcast 192.168.x.255 iface eth1 inet6 static address 2a02:898:x:::x:0 netmask 64 -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to dovecot in ubuntu. https://bugs.launchpad.net/bugs/700741 Title: dovecot won't start during boot -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 700741] Re: dovecot won't start during boot
sudo find /etc/rc* -name '*networking*' /etc/rc0.d/S35networking /etc/rc6.d/S35networking sudo find /etc/rc* -name '*dovecot*' no matches, as dovecot is started by upstart -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to dovecot in ubuntu. https://bugs.launchpad.net/bugs/700741 Title: dovecot won't start during boot -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 700741] Re: dovecot won't start during boot
I've tried your suggestion, but that doesn't seem to help. Dovecot is not started during boot and I see the same failed: Cannot assign requested address messages in mail.log I've pasted part of the /etc/init/dovecot.conf # dovecot - pop3/imap mail server # # Dovecot is a mail server whose major goals are security and extreme reliabilit y. description dovecot - pop3/imap mail server #start on started rc-sysinit start on (started rc-sysinit and net-device-up IFACE=eth0) stop on runlevel [!2345] pre-start script test -x /usr/sbin/dovecot || { stop ; exit 0; } test -r /etc/dovecot/dovecot.conf || { stop ; exit 0; } snip -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to dovecot in ubuntu. https://bugs.launchpad.net/bugs/700741 Title: dovecot won't start during boot -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 700741] [NEW] dovecot won't start during boot
Public bug reported: Dovecot won't automatically start during boot. In /var/log/mail.log the following messages are logged: Jan 9 17:46:40 njord dovecot: bind(ip address, 993) failed: Cannot assign requested address Jan 9 17:46:40 njord dovecot: Fatal: listen(ip address, 993) failed: Cannot assign requested address I think this issue is related to the fact that I've specified specific interfaces on which dovecot should listen in /etc/dovecot/dovecot.conf: protocol imap { listen = 94.142.x.x:143, 192.168.x.x:143 ssl_listen = 94.142.x.x:993,[2a02:898:x::x:0]:993, 192.168.x.x:993 } ** Affects: ubuntu Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/700741 Title: dovecot won't start during boot -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 700741] Re: dovecot won't start during boot
Ubuntu release is Maverick Dovecot version is 1:1.2.12-1ubuntu8 ** Description changed: Dovecot won't automatically start during boot. In /var/log/mail.log the following messages are logged: Jan 9 17:46:40 njord dovecot: bind(ip address, 993) failed: Cannot assign requested address Jan 9 17:46:40 njord dovecot: Fatal: listen(ip address, 993) failed: Cannot assign requested address I think this issue is related to the fact that I've specified specific interfaces on which dovecot should listen in /etc/dovecot/dovecot.conf: protocol imap { -listen = 94.142.x.x:143, 192.168.x.x:143 -ssl_listen = 94.142.x.x:993,[2a02:898:x::x:0]:993, 192.168.x.x:993 + listen = 94.142.x.x:143, 192.168.x.x:143 + ssl_listen = 94.142.x.x:993,[2a02:898:x::x:0]:993, 192.168.x.x:993 } -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/700741 Title: dovecot won't start during boot -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 700741] Re: dovecot won't start during boot
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 94.142.x.x netmask 255.255.255.240 network 94.142.x.0 broadcast 94.142.x.x gateway 94.142.x.1 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 94.142.x.1 dns-search slaco.net iface eth0 inet6 static address 2a02:898:x::x:0 netmask 64 gateway 2a02:898:x::1 # The private network interface auto eth1 iface eth1 inet static address 192.168.x.x netmask 255.255.255.0 network 192.168.x.0 broadcast 192.168.x.255 iface eth1 inet6 static address 2a02:898:x:::x:0 netmask 64 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/700741 Title: dovecot won't start during boot -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 700741] Re: dovecot won't start during boot
sudo find /etc/rc* -name '*networking*' /etc/rc0.d/S35networking /etc/rc6.d/S35networking sudo find /etc/rc* -name '*dovecot*' no matches, as dovecot is started by upstart -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/700741 Title: dovecot won't start during boot -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 700741] Re: dovecot won't start during boot
I've tried your suggestion, but that doesn't seem to help. Dovecot is not started during boot and I see the same failed: Cannot assign requested address messages in mail.log I've pasted part of the /etc/init/dovecot.conf # dovecot - pop3/imap mail server # # Dovecot is a mail server whose major goals are security and extreme reliabilit y. description dovecot - pop3/imap mail server #start on started rc-sysinit start on (started rc-sysinit and net-device-up IFACE=eth0) stop on runlevel [!2345] pre-start script test -x /usr/sbin/dovecot || { stop ; exit 0; } test -r /etc/dovecot/dovecot.conf || { stop ; exit 0; } snip -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/700741 Title: dovecot won't start during boot -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs