help for distributed deployment over several machines?

Jan Kowalsky tuxus at notraces.net
Wed Oct 16 18:21:52 CEST 2013


Hi,

Am Saturday, 12. October 2013 schrieb Aleksander Machniak:
> On 10/12/2013 12:04 AM, Jan Kowalsky wrote:
> > [11-Oct-2013 15:12:56 UTC] PHP Fatal error:  Call to undefined function
> > mysql_connect() in /usr/share/kolab-webadmin/lib/SQL.php on line 149
> 
> You need php5-mysql extension.

yes, that was it.
 
> > "Could not open required defaults file: /tmp/kolab-setup-my.cnf
> > Fatal error in defaults handling. Program aborted"
> 
> I'm not sure, pykolab maybe.


thanks, I came a step forward. The Problem was that the file 

/tmp/kolab-setup-my.cnf 

ist written during "setup-kolab mysql". After finishing configuration of mysql 
the file is deleted - but the roundcube component needs the file.


And setup_mysql.py creates the file (118)
~~~~
    fp = open('/tmp/kolab-setup-my.cnf', 'w')
    os.chmod('/tmp/kolab-setup-my.cnf', 0600)
~~~~

Somewhere it seems to be deleted after finishing - don't know where.


From: /usr/lib/python2.7/dist-packages/pykolab/setup/setup_roundcube.py (163)
~~~~
  p1 = subprocess.Popen(['echo', 'create database roundcube;'], 
stdout=subprocess.PIPE)
  p2 = subprocess.Popen(['mysql', '--defaults-file=/tmp/kolab-setup-my.cnf'], 
stdin=p1.stdout)
~~~~

The solution is simple: 

Either making a copy _during_ configuration of mysql - after inserting the 
mysql-database-password but before finishing

or writing the config by yourself:

/tmp/kolab-setup-my.cnf
~~~
[mysql]
user=<DBUSER>
password=<PASSWD>
~~~

Now it's necessary to edit /etc/roundcube/kolab_auth.in.php and adjusting the 
hosts for the ldap-Directory.

Also the php5-ldap and php-net-ldap packages are not installed by package 
dependencies if you don't install the whole packages on squeeze.

There is still a problem that mailboxes are not created. I already solved it 
one - but I don't know exactly how.

I'll keep trying - if somebody has a idea: thanks.

Is there any place to write some documentation for debian wheezy? And does the 
maintainer of the debian packages read here? So it's possible to send some bug 
reports for debian-packages. Where to?

Thanks so long

Jan


More information about the users mailing list