Your message dated Sun, 22 Jan 2017 19:11:16 -0500
with message-id <[email protected]>
and subject line Re: Bug#851504: freedombox-setup: debconf prompts during 
install, and default answers lead to setup failures
has caused the Debian Bug report #851504,
regarding freedombox-setup: debconf prompts during install, and default answers 
lead to setup failures
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
851504: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=851504
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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.
[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')

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
On Tue, 17 Jan 2017 06:54:49 -0500 James Valleroy
<[email protected]> wrote:
> Just to mention, an alternative to the patches I proposed:
> 
> We could move the LDAP setup (admin setup and creating organizational
> units) from setup to first-run. This would only require some changes in
> the plinth package.
> 
> This would also fix the CI issue (first-run isn't tested by CI). And
> should also fix the issue that Sunil saw when building arm images.
> 

This is implemented for now, in plinth 0.13.1. Closing this bug.

In the longer term, we will want to eliminate the extra reboot required
after setup. That is tracked in this upstream plinth issue:
https://github.com/freedombox/Plinth/issues/711

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---

Reply via email to