[Kolab-devel] Status of deb installation of 3.0 on wheezy

Johannes Graumann johannes_graumann at web.de
Wed Oct 3 07:46:05 CEST 2012


Hi thanks for looking at this.

Here's a fix for the oversight causing that particular error:

diff --git a/pykolab/setup/setup_php.py b/pykolab/setup/setup_php.py
index 9baa679..2d718f5 100644
--- a/pykolab/setup/setup_php.py
+++ b/pykolab/setup/setup_php.py
@@ -69,9 +69,9 @@ def execute(*args, **kw):
 
     myaugeas = Augeas()
     
-    if os.path.isfile('/etc/php.ini/'):
+    if os.path.isfile('/etc/php.ini'):
        setting_base = '/files/etc/php.ini/'
-    elif os.path.isfile('/etc/php5/apache2/php.ini/'):
+    elif os.path.isfile('/etc/php5/apache2/php.ini'):
        setting_base = '/files/etc/php5/apache2/php.ini/'

Cheers, Joh

Mat Cantin wrote:

> Greetings,
> 
> Following the instructions below after applying the supplied patch, I
> get the following error after the MySQL root password prompt:
> 
> 2012-10-02 16:19:01,323 pykolab.setup ERROR No usable 'php.ini' found.
> 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 42, 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_php.py",
> line 76, in execute
>      setting = os.path.join(setting_base, 'Date', 'date.timezone')
> UnboundLocalError: local variable 'setting_base' referenced before
> assignment
> 
> Is there something special I should be doing for the php.ini file?
> 
> I've tried this two times on a freshly installed Debian Wheezy system
> with the same result.
> 
> Thanks.
> --
> Mat
> 
> 
> On 02/10/12 06:49 AM, Johannes Graumann wrote:
>> Dear all,
>>
>> With the use of the attached patch-set for pykolab and the following
>> incantations
>> PROMPT>  aptitude update&&  aptitude upgrade&&  aptitude install kolab
>>          libpython2.7 wallace libcalendaring libmozldap-0d
>>          python-kolabformat python-kolab
>>    - mysql-server: do NOT set root PW
>>    - postfix: No configuration
>> PROMPT>  freshclam&&  service clamav-daemon restart
>> PROMPT>  cp /usr/share/postfix/main.cf.debian /etc/postfix/main.cf
>> PROMPT>  cd /usr/share/doc/kolab-schema/&&  gunzip kolab2.ldif.gz
>> PROMPT>  cd /root&&  setup-kolab -d 9 --timezone='Asia/<IMHERE>' |tee
>> setup-
>>          kolab.log
>>
>> I'm getting quite far with putting 3.0 on wheezy using the deb
>> repository. However, the log (also attached) still displays areas of
>> shortcoming (aside from the still missing python ical, for which there is
>> a bug reported).
>>
>> I extract them below and would appreciate any further hints to clean them
>> up.
>>
>> Sincerely, Joh
>>
>> Line 42:
>>> Starting admin server . . .
>>> output: /usr/sbin/start-ds-admin: 104: /usr/sbin/start-ds-admin:
>> /usr/sbin/apache2: not found
>>> output: Server failed to start !!! Please check errors log for problems
>>> Could not start the admin server.  Error: 256
>>> Could not reconfigure the admin server.
>>> Exiting . . .
>>> Log file is '/tmp/setup6wGFDz.log'
>>
>> In /usr/sbin only 'apache2ctl', 'apache2.prefork', 'apache2.worker' and
>> 'apachectl' exist.
>> What to do about this?
>>
>> Line 796:
>>> 2012-10-02 13:00:00,241 pykolab.setup WARNING Could not find the Kolab
>> schema file
>>
>> There is indeed no single file in the filesystem that fits the
>> "filename.startswith('kolab_wap') and filename.endswith('.sql')"
>> requirements layd out in "setup_mysql.py" - where are they?
>>
>> Line 941:
>>> 2012-10-02 13:00:08,966 pykolab.setup ERROR Z-Push is not installed on
>> this system
>>
>> Hm!?
>>
>> Line 970:
>>> 2012-10-02 13:00:08,974 pykolab.setup ERROR Free/Busy is not installed
>>> on
>> this system
>>
>> Hm!?
>>
>>
>>
>> _______________________________________________
>> Kolab-devel mailing list
>> Kolab-devel at kolab.org
>> https://www.intevation.de/mailman/listinfo/kolab-devel




More information about the devel mailing list