Page MenuHomePhorge

Setup-kolab on Debian Wheezy is crashing after setting the MySQL password
Closed, ResolvedPublic

Description

root@wheez:~# uname -a
Linux wheez 3.2.0-4-amd64 #1 SMP Debian 3.2.81-1 x86_64 GNU/Linux
root@wheez:~#

Install of packages are going smooth and with no error messages. Following:
https://docs.kolab.org/installation-guide/kolab-14/debian-7-enterprise-14.html
The installation is removing Exim4 packages and installing postfix.

FQDN is in place and working.

Running setup-kolab is also running smooth until after having confirmed the MySQL password.

It is failing at the same spot every time.

root@wheez:~# setup-kolab

Please supply a password for the LDAP administrator user 'admin', used to login
to the graphical console of 389 Directory server.

Administrator password [pGj279kPav3e3CQ]: 
Confirm Administrator password: 
Incorrect confirmation. Please try again.
Administrator password [pGj279kPav3e3CQ]: 
Confirm Administrator password: 

Please supply a password for the LDAP Directory Manager user, which is the
administrator user you will be using to at least initially log in to the Web
Admin, and that Kolab uses to perform administrative tasks.

Directory Manager password [2QD1IbjbrnvGO_i]: 
Confirm Directory Manager password: 

Please choose the system user and group the service should use to run under.
These should be existing, unprivileged, local system POSIX accounts with no
shell.

User [dirsrv]: 
Group [dirsrv]: 

This setup procedure plans to set up Kolab Groupware for the following domain
name space. This domain name is obtained from the reverse DNS entry on your
network interface. Please confirm this is the appropriate domain name space.

kolab.io [Y/n]: y

The standard root dn we composed for you follows. Please confirm this is the root
dn you wish to use.

dc=kolab,dc=io [Y/n]: y

Setup is now going to set up the 389 Directory Server. This may take a little
while (during which period there is no output and no progress indication).

[ ok ] Shutting down 389 DS instance wheez: ....
[ ok ] Starting 389 DS instance wheez: ....
update-rc.d: using dependency based boot sequencing

Please supply a Cyrus Administrator password. This password is used by Kolab to
execute administrative tasks in Cyrus IMAP. You may also need the password
yourself to troubleshoot Cyrus IMAP and/or perform other administrative tasks
against Cyrus IMAP directly.

Cyrus Administrator password [aaocjePhx553EaF]: 
Confirm Cyrus Administrator password: 

Please supply a Kolab Service account password. This account is used by various
services such as Postfix, and Roundcube, as anonymous binds to the LDAP server
will not be allowed.

Kolab Service password [_2KS6qkfpsivqXK]: 
Confirm Kolab Service password: 
update-rc.d: using dependency based boot sequencing
postmap: fatal: open /etc/postfix/main.cf: No such file or directory
[ ok ] Stopping Postfix Mail Transport Agent: postfix.
[ ok ] Starting Postfix Mail Transport Agent: postfix.
Stopping amavisd: amavisd-new.
Starting amavisd: amavisd-new.
[....] Stopping ClamAV daemon: clamdNo clamd found running; none killed.
. ok 
[ ok ] Starting ClamAV daemon: clamd .
[ ok ] Restarting The Kolab Wallace server daemon is a content filtering daemon: wallace.
update-rc.d: using dependency based boot sequencing
update-rc.d: using dependency based boot sequencing
update-rc.d: using dependency based boot sequencing
update-rc.d: using dependency based boot sequencing
[ ok ] Stopping MySQL database server: mysqld.
[ ok ] Starting MySQL database server: mysqld ..
[info] Checking for tables which need an upgrade, are corrupt or were 
not closed cleanly..
update-rc.d: using dependency based boot sequencing
What MySQL server are we setting up?
 - 1: Existing MySQL server (with root password already set).
 - 2: New MySQL server (needs to be initialized).
Choice: 2

Please supply a root password for MySQL. This password will be the administrative
user for this MySQL server, and it should be kept a secret. After this setup
process has completed, Kolab is going to discard and forget about this password,
but you will need it for administrative tasks in MySQL.

MySQL root password [01eB_hWKVSbcvCt]: 
Confirm MySQL root password: 
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

Please supply a password for the MySQL user 'kolab'. This password will be used
by Kolab services, such as the Web Administration Panel.

MySQL kolab password [M2KZ03XmJKPnfA1]: 
Confirm MySQL kolab password: 

Please supply the timezone PHP should be using. You have to use a Continent or
Country / City locality name like 'Europe/Berlin', but not just 'CEST'.

Timezone ID [UTC]: Europe/Zurich

Please supply a password for the MySQL user 'roundcube'. This password will be
used by the Roundcube webmail interface.

MySQL roundcube password [IF2pGkhooapn_eA]: 
Confirm MySQL roundcube password: 
Traceback (most recent call last):
  File "/usr/sbin/setup-kolab", line 42, in <module>
    setup.run()
  File "/usr/lib/python2.7/dist-packages/pykolab/setup/__init__.py", line 43, in run
    components.execute('_'.join(to_execute))
  File "/usr/lib/python2.7/dist-packages/pykolab/setup/components.py", line 170, in execute
    execute(component)
  File "/usr/lib/python2.7/dist-packages/pykolab/setup/components.py", line 202, in execute
    components[component_name]['function'](conf.cli_args, kw)
  File "/usr/lib/python2.7/dist-packages/pykolab/setup/setup_roundcube.py", line 252, in execute
    os.chown(os.path.join(root, filename), root_uid, webserver_gid)
UnboundLocalError: local variable 'webserver_gid' referenced before assignment
root@wheez:~#

Details

Ticket Type
Task

Revisions and Commits

rP pykolab

Event Timeline

The installation is left in a non working state and with this truncated /etc/imapd.conf (the same every time):

configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyrus
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail

sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN

tls_cert_file: /etc/ssl/private/cyrus-imapd.pem
tls_key_file: /etc/ssl/private/cyrus-imapd.pem
tls_ca_file: /etc/ssl/private/cyrus-imapd.pem

annotation_definitions: /etc/imapd.annotations.conf

hashimapspool: 1

What is the web server software that is installed (prior to setup-kolab)?

root@debian:~# dpkg -l apache*
Desired=Unknown/Install/Remove/Purge/Hold

Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
/ Name Version Architecture Description

+++-======================-================-================-=================================================
ii apache2 2.4.10-1.1 amd64 Apache HTTP Server
un apache2-api-20120211 <none> (no description available)
ii apache2-bin 2.4.10-1.1 amd64 Apache HTTP Server (binary files and modules)
ii apache2-data 2.4.10-1.1 all Apache HTTP Server (common files)
un apache2-doc <none> (no description available)
un apache2-mpm-event <none> (no description available)
un apache2-mpm-itk <none> (no description available)
ii apache2-mpm-prefork 2.4.10-1.1 amd64 transitional prefork MPM package for apache2
un apache2-mpm-worker <none> (no description available)
un apache2-suexec-custom <none> (no description available)
un apache2-suexec-pristin <none> (no description available)
un apache2-utils <none> (no description available)
un apache2.2-bin <none> (no description available)
ii apache2.2-common 2.4.10-1.1 amd64 Transitional package for apache2