[Freedombox-pkg-team] Bug#851504: freedombox-setup: debconf prompts during install, and default answers lead to setup failures
James Valleroy
jvalleroy at mailbox.org
Sun Jan 15 17:43:29 UTC 2017
Package: freedombox-setup
Severity: important
I tested install/setup of freedombox-setup on a fresh Debian install. I
used Stretch RC1 installer and selected XFCE desktop during the install.
When I install freedombox-setup, I get several debconf prompts (default
values listed in parens):
* slapd: Administrator password (blank)
* nslcd:
* LDAP server URI: (ldap://record/)
* LDAP server search base: (dc=att,dc=net)
* macchanger: Change MAC automatically? (No)
* libnss-ldapd: Name services to configure: (none checked)
I left the default values. Later when I run /usr/lib/freedombox/setup, I
get errors during the LDAP setup (see attached log). This looks similar
to errors in Debian CI log since 0.9.3:
https://ci.debian.net/data/packages/unstable/amd64/f/freedombox-setup/20170114_192735.autopkgtest.log.gz
I get the same result using testing with freedombox-setup 0.9.3, or
upgrading first to sid and installing 0.10.
I haven't seen this issue in recent builds using freedom-maker.
-------------- next part --------------
[2017-01-15 12:06:32,250] plinth.actions INFO Executing command - ['sudo', '-n', '/usr/share/plinth/actions/users', 'setup']
[2017-01-15 12:06:33,494] plinth.actions ERROR Error executing command - ['sudo', '-n', '/usr/share/plinth/actions/users', 'setup'], , Use of uninitialized value $item in hash element at /usr/share/perl5/Debconf/DbDriver/File.pm line 85, <__ANONIO__> chunk 1.
invoke-rc.d: policy-rc.d denied execution of stop.
Moving old database directory to /var/backups:
- directory unknown... done.
Creating initial configuration... done.
Creating LDAP directory... done.
invoke-rc.d: policy-rc.d denied execution of start.
debconf: DbDriver "_ENV_stack": unable to save changes to: slapd/domain
Use of uninitialized value $item in hash element at /usr/share/perl5/Debconf/DbDriver/File.pm line 85, <__ANONIO__> chunk 1.
Use of uninitialized value $item in hash element at /usr/share/perl5/Debconf/DbDriver/File.pm line 85, <__ANONIO__> chunk 1.
invoke-rc.d: policy-rc.d denied execution of restart.
debconf: DbDriver "_ENV_stack": unable to save changes to: nslcd/ldap-uris nslcd/ldap-base nslcd/ldap-auth-type
Use of uninitialized value $item in hash element at /usr/share/perl5/Debconf/DbDriver/File.pm line 85, <__ANONIO__> chunk 1.
/etc/nsswitch.conf: enable LDAP lookups for group
/etc/nsswitch.conf: enable LDAP lookups for passwd
/etc/nsswitch.conf: enable LDAP lookups for shadow
ldap_add: Server is unwilling to perform (53)
additional info: no global superior knowledge
Traceback (most recent call last):
File "/usr/share/plinth/actions/users", line 84, in create_organizational_unit
stdout=subprocess.DEVNULL, check=True)
File "/usr/lib/python3.5/subprocess.py", line 398, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ldapsearch', '-Q', '-Y', 'EXTERNAL', '-H', 'ldapi:///', '-s', 'base', '-b', 'ou=users,dc=thisbox', '(objectclass=*)']' returned non-zero exit status 32
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/plinth/actions/users", line 159, in <module>
main()
File "/usr/share/plinth/actions/users", line 155, in main
subcommand_method(arguments)
File "/usr/share/plinth/actions/users", line 51, in subcommand_setup
configure_slapd()
File "/usr/share/plinth/actions/users", line 70, in configure_slapd
create_organizational_unit('users')
File "/usr/share/plinth/actions/users", line 94, in create_organizational_unit
check=True)
File "/usr/lib/python3.5/subprocess.py", line 398, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ldapadd', '-Q', '-Y', 'EXTERNAL', '-H', 'ldapi:///']' returned non-zero exit status 53
[2017-01-15 12:06:33,494] plinth.setup ERROR Error running setup - ('users', '', 'Use of uninitialized value $item in hash element at /usr/share/perl5/Debconf/DbDriver/File.pm line 85, <__ANONIO__> chunk 1.\ninvoke-rc.d: policy-rc.d denied execution of stop.\n Moving old database directory to /var/backups:\n - directory unknown... done.\n Creating initial configuration... done.\n Creating LDAP directory... done.\ninvoke-rc.d: policy-rc.d denied execution of start.\ndebconf: DbDriver "_ENV_stack": unable to save changes to: slapd/domain\nUse of uninitialized value $item in hash element at /usr/share/perl5/Debconf/DbDriver/File.pm line 85, <__ANONIO__> chunk 1.\nUse of uninitialized value $item in hash element at /usr/share/perl5/Debconf/DbDriver/File.pm line 85, <__ANONIO__> chunk 1.\ninvoke-rc.d: policy-rc.d denied execution of restart.\ndebconf: DbDriver "_ENV_stack": unable to save changes to: nslcd/ldap-uris nslcd/ldap-base nslcd/ldap-auth-type\nUse of uninitialized value $item in hash element at /usr/share/perl5/Debconf/DbDriver/File.pm line 85, <__ANONIO__> chunk 1.\n/etc/nsswitch.conf: enable LDAP lookups for group\n/etc/nsswitch.conf: enable LDAP lookups for passwd\n/etc/nsswitch.conf: enable LDAP lookups for shadow\nldap_add: Server is unwilling to perform (53)\n\tadditional info: no global superior knowledge\nTraceback (most recent call last):\n File "/usr/share/plinth/actions/users", line 84, in create_organizational_unit\n stdout=subprocess.DEVNULL, check=True)\n File "/usr/lib/python3.5/subprocess.py", line 398, in run\n output=stdout, stderr=stderr)\nsubprocess.CalledProcessError: Command \'[\'ldapsearch\', \'-Q\', \'-Y\', \'EXTERNAL\', \'-H\', \'ldapi:///\', \'-s\', \'base\', \'-b\', \'ou=users,dc=thisbox\', \'(objectclass=*)\']\' returned non-zero exit status 32\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/usr/share/plinth/actions/users", line 159, in <module>\n main()\n File "/usr/share/plinth/actions/users", line 155, in main\n subcommand_method(arguments)\n File "/usr/share/plinth/actions/users", line 51, in subcommand_setup\n configure_slapd()\n File "/usr/share/plinth/actions/users", line 70, in configure_slapd\n create_organizational_unit(\'users\')\n File "/usr/share/plinth/actions/users", line 94, in create_organizational_unit\n check=True)\n File "/usr/lib/python3.5/subprocess.py", line 398, in run\n output=stdout, stderr=stderr)\nsubprocess.CalledProcessError: Command \'[\'ldapadd\', \'-Q\', \'-Y\', \'EXTERNAL\', \'-H\', \'ldapi:///\']\' returned non-zero exit status 53\n')
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/plinth/setup.py", line 81, in run
self.module.setup(self, old_version=current_version)
File "/usr/lib/python3/dist-packages/plinth/modules/users/__init__.py", line 58, in setup
helper.call('post', actions.superuser_run, 'users', ['setup'])
File "/usr/lib/python3/dist-packages/plinth/setup.py", line 120, in call
return method(*args, **kwargs)
File "/usr/lib/python3/dist-packages/plinth/actions.py", line 118, in superuser_run
return _run(action, options, input, async, True)
File "/usr/lib/python3/dist-packages/plinth/actions.py", line 180, in _run
raise ActionError(action, output, error)
plinth.errors.ActionError: ('users', '', 'Use of uninitialized value $item in hash element at /usr/share/perl5/Debconf/DbDriver/File.pm line 85, <__ANONIO__> chunk 1.\ninvoke-rc.d: policy-rc.d denied execution of stop.\n Moving old database directory to /var/backups:\n - directory unknown... done.\n Creating initial configuration... done.\n Creating LDAP directory... done.\ninvoke-rc.d: policy-rc.d denied execution of start.\ndebconf: DbDriver "_ENV_stack": unable to save changes to: slapd/domain\nUse of uninitialized value $item in hash element at /usr/share/perl5/Debconf/DbDriver/File.pm line 85, <__ANONIO__> chunk 1.\nUse of uninitialized value $item in hash element at /usr/share/perl5/Debconf/DbDriver/File.pm line 85, <__ANONIO__> chunk 1.\ninvoke-rc.d: policy-rc.d denied execution of restart.\ndebconf: DbDriver "_ENV_stack": unable to save changes to: nslcd/ldap-uris nslcd/ldap-base nslcd/ldap-auth-type\nUse of uninitialized value $item in hash element at /usr/share/perl5/Debconf/DbDriver/File.pm line 85, <__ANONIO__> chunk 1.\n/etc/nsswitch.conf: enable LDAP lookups for group\n/etc/nsswitch.conf: enable LDAP lookups for passwd\n/etc/nsswitch.conf: enable LDAP lookups for shadow\nldap_add: Server is unwilling to perform (53)\n\tadditional info: no global superior knowledge\nTraceback (most recent call last):\n File "/usr/share/plinth/actions/users", line 84, in create_organizational_unit\n stdout=subprocess.DEVNULL, check=True)\n File "/usr/lib/python3.5/subprocess.py", line 398, in run\n output=stdout, stderr=stderr)\nsubprocess.CalledProcessError: Command \'[\'ldapsearch\', \'-Q\', \'-Y\', \'EXTERNAL\', \'-H\', \'ldapi:///\', \'-s\', \'base\', \'-b\', \'ou=users,dc=thisbox\', \'(objectclass=*)\']\' returned non-zero exit status 32\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/usr/share/plinth/actions/users", line 159, in <module>\n main()\n File "/usr/share/plinth/actions/users", line 155, in main\n subcommand_method(arguments)\n File "/usr/share/plinth/actions/users", line 51, in subcommand_setup\n configure_slapd()\n File "/usr/share/plinth/actions/users", line 70, in configure_slapd\n create_organizational_unit(\'users\')\n File "/usr/share/plinth/actions/users", line 94, in create_organizational_unit\n check=True)\n File "/usr/lib/python3.5/subprocess.py", line 398, in run\n output=stdout, stderr=stderr)\nsubprocess.CalledProcessError: Command \'[\'ldapadd\', \'-Q\', \'-Y\', \'EXTERNAL\', \'-H\', \'ldapi:///\']\' returned non-zero exit status 53\n')
[2017-01-15 12:06:33,495] plinth.__main__ ERROR Error running setup - ('users', '', 'Use of uninitialized value $item in hash element at /usr/share/perl5/Debconf/DbDriver/File.pm line 85, <__ANONIO__> chunk 1.\ninvoke-rc.d: policy-rc.d denied execution of stop.\n Moving old database directory to /var/backups:\n - directory unknown... done.\n Creating initial configuration... done.\n Creating LDAP directory... done.\ninvoke-rc.d: policy-rc.d denied execution of start.\ndebconf: DbDriver "_ENV_stack": unable to save changes to: slapd/domain\nUse of uninitialized value $item in hash element at /usr/share/perl5/Debconf/DbDriver/File.pm line 85, <__ANONIO__> chunk 1.\nUse of uninitialized value $item in hash element at /usr/share/perl5/Debconf/DbDriver/File.pm line 85, <__ANONIO__> chunk 1.\ninvoke-rc.d: policy-rc.d denied execution of restart.\ndebconf: DbDriver "_ENV_stack": unable to save changes to: nslcd/ldap-uris nslcd/ldap-base nslcd/ldap-auth-type\nUse of uninitialized value $item in hash element at /usr/share/perl5/Debconf/DbDriver/File.pm line 85, <__ANONIO__> chunk 1.\n/etc/nsswitch.conf: enable LDAP lookups for group\n/etc/nsswitch.conf: enable LDAP lookups for passwd\n/etc/nsswitch.conf: enable LDAP lookups for shadow\nldap_add: Server is unwilling to perform (53)\n\tadditional info: no global superior knowledge\nTraceback (most recent call last):\n File "/usr/share/plinth/actions/users", line 84, in create_organizational_unit\n stdout=subprocess.DEVNULL, check=True)\n File "/usr/lib/python3.5/subprocess.py", line 398, in run\n output=stdout, stderr=stderr)\nsubprocess.CalledProcessError: Command \'[\'ldapsearch\', \'-Q\', \'-Y\', \'EXTERNAL\', \'-H\', \'ldapi:///\', \'-s\', \'base\', \'-b\', \'ou=users,dc=thisbox\', \'(objectclass=*)\']\' returned non-zero exit status 32\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/usr/share/plinth/actions/users", line 159, in <module>\n main()\n File "/usr/share/plinth/actions/users", line 155, in main\n subcommand_method(arguments)\n File "/usr/share/plinth/actions/users", line 51, in subcommand_setup\n configure_slapd()\n File "/usr/share/plinth/actions/users", line 70, in configure_slapd\n create_organizational_unit(\'users\')\n File "/usr/share/plinth/actions/users", line 94, in create_organizational_unit\n check=True)\n File "/usr/lib/python3.5/subprocess.py", line 398, in run\n output=stdout, stderr=stderr)\nsubprocess.CalledProcessError: Command \'[\'ldapadd\', \'-Q\', \'-Y\', \'EXTERNAL\', \'-H\', \'ldapi:///\']\' returned non-zero exit status 53\n')
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 866 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/freedombox-pkg-team/attachments/20170115/11099c02/attachment.sig>
More information about the Freedombox-pkg-team
mailing list