May 22, 2012, 04:12:03 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Work on Kolab2/Gentoo-2.2 has stopped. The project has been deprecated (see board Kolab2/Gentoo).
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Little ka0s in my kolab server.... [ SOLVED ]  (Read 2867 times)
nulluser
Newbie
*

Karma: 0
Posts: 5


View Profile
« on: January 15, 2007, 11:02:50 AM »

I had broken my kolab configuration (stupid! stupid! stupid!). To restore my kolab system (the most important are mails, not users) I deleted openldap-data content an done kolab_bootsrap -b.

Then I created my user again. IMAP seems to works fine, and Kolab administration manager too. But I have some problems... At first;

* Some Horde missing files

Code:
main horde # kolabcheckperm
File /var/www/kolab/htdocs/horde/ingo/config/conf.php does not exist
File /var/www/kolab/htdocs/horde/turba/config/sources.php does not exist
File /var/www/kolab/htdocs/horde/turba/config/conf.php does not exist
File /var/lib/openldap-data/DB_CONFIG does not exist
File /var/www/kolab/htdocs/horde/imp/config/conf.php does not exist
File /etc/php/cgi-php5/php.ini does not exist
File /var/www/kolab/htdocs/horde/imp/config/servers.php does not exist
File /var/www/kolab/htdocs/horde/ingo/config/backends.php does not exist
File /var/www/kolab/htdocs/horde/imp/config/servers.php does not exist
File /var/www/kolab/htdocs/horde/passwd/config/conf.php does not exist
File /var/www/kolab/htdocs/horde/imp/config/conf.php does not exist
File /var/www/kolab/htdocs/horde/nag/config/conf.php does not exist
File /var/www/kolab/htdocs/horde/turba/config/conf.php does not exist
File /var/www/kolab/htdocs/horde/mnemo/config/conf.php does not exist
File /var/www/kolab/htdocs/horde/turba/config/sources.php does not exist
File /var/www/kolab/htdocs/horde/kronolith/config/conf.php does not exist

Yes, I know that there are missing pacakges, but they are masked.

Code:
main horde # emerge horde-imp-kolab
Calculating dependencies
!!! All ebuilds that could satisfy "horde-imp-kolab" have been masked.
!!! One of the following masked packages is required to complete your request:
- www-apps/horde-imp-kolab-20061120 (masked by: package.mask, missing keyword)
# The new horde packages have not yet been tested

- www-apps/horde-imp-kolab-20070104 (masked by: package.mask, missing keyword)
- www-apps/horde-imp-kolab-20070109 (masked by: package.mask, missing keyword)
- www-apps/horde-imp-kolab-20061030 (masked by: package.mask, missing keyword)
- www-apps/horde-imp-kolab-4.1.3 (masked by: missing keyword)

I can unmask It, but... why are this ebuilds masket now? Some problems with them?

* Another problem is with SMTP. I dont know why, but I cannot recive mails.
« Last Edit: January 16, 2007, 10:17:19 AM by nulluser » Logged
Gunnar Wrobel
Administrator
Sr. Member
*****

Karma: 2
Posts: 331


275141552 gunnarwrobel@yahoo.de gunnarwrobel
View Profile WWW Email
« Reply #1 on: January 15, 2007, 12:06:04 PM »

hm that looks like several things are broken at the same time. I will suggest a few actions and checks:

1) Once you run "kolabconf" check your syslog for errors. If kolabconf hits an error while writing a configuration it will abort and fail to write any subsequent configurations.

2) You definitely need to turn on "Accept mail from other domains over non-authenticated SMTP". If this is enabled but you still get a "Relay Access Denied" then the user you try to authenticate with is not recognized as being a member of the domains postfix is serving. Did you recreate the virtual domains your sever should handle after removing the LDAP db?

3) The reason why some packages are masked is because they are still under development and can break at any time. But to be honest they are probably the ones most likely to work without problems, too. The overlay structure is currently suboptimal. This should change with the Kolab-2.1 release which now is not too far off. But it would be good if I find the time to document the current overlay structure a little bit better.
Logged
nulluser
Newbie
*

Karma: 0
Posts: 5


View Profile
« Reply #2 on: January 15, 2007, 02:50:24 PM »

At first I am really surprised about your very fast response. Really really thank's. And congratule for your work with Kolab/Gentoo.

hm that looks like several things are broken at the same time. I will suggest a few actions and checks:

1) Once you run "kolabconf" check your syslog for errors. If kolabconf hits an error while writing a configuration it will abort and fail to write any subsequent configurations.

Done, the only two messages given into /var/log/everything/current (metalog) are:

Code:
Jan 15 15:30:32 [kolabconf] T Error: Error moving configfile to /var/www/kolab/htdocs/horde/ingo/config/conf.php, error: No such file or directory_
Jan 15 15:30:32 [kolabconf] T Error: Unable to change permissions of `/var/www/kolab/htdocs/horde/ingo/config/conf.php' to 0600_

Seems to be a missing file, probably because the package is masked at this time.

No more errors... running kolabconf using debug mode (kolabconf -d) shows me that. The passwords and the domain are hidden.

Code:
apache-allow-unauthenticated-fb : FALSE
apache-http : TRUE
base_dn : dc=domain,dc=org
bind_dn : cn=manager,cn=internal,dc=domain,dc=org
bind_pw : HIDDEN
bind_pw_hash : {SSHA}HIDDEN
calendar_dn : cn=calendar,cn=internal,dc=domain,dc=org
calendar_pw : HIDDEN
conn_refresh_period : 60
cyrus-admins : manager
cyrus-autocreatequota : 100000
cyrus-imap : TRUE
cyrus-imaps : TRUE
cyrus-pop3 : FALSE
cyrus-pop3s : TRUE
cyrus-quotawarn : 80
cyrus-sieve : TRUE
cyrus_admin : manager
cyrus_admin_pw : HIDDEN
directory_mode : slurpd
dirserv_home_server : main
dirserv_mailbox_password :
dirserv_mailbox_server :
dirserv_mailbox_user :
dirserv_poll_period : 120
fqdn : main
fqdnhostname : domain.org
group_bind_dn : cn=manager,cn=internal,dc=domain,dc=org
group_bind_pw : HIDDEN
group_directory_mode : slurpd
group_dn_list : dc=domain,dc=org
group_field_deleted : kolabdeleteflag
group_field_guid : entryUUID
group_field_modified : modifytimestamp
group_ldap_ip : 127.0.0.1
group_ldap_port : 389
group_ldap_uri : ldap://127.0.0.1:389
group_object_class : kolabgroupofnames
gyard_deletion_period : 10080
is_master : true
k : kolab
kolab_dn : k=kolab,dc=domain,dc=org
kolab_gid : 442
kolab_n_gid : 444
kolab_n_uid : 106
kolab_r_gid : 443
kolab_r_uid : 105
kolab_uid : 104
kolabhost : domain.org
ldap_ip : 127.0.0.1
ldap_master_uri : ldap://127.0.0.1:389
ldap_port : 389
ldap_uri : ldap://127.0.0.1:389
log_level : 2
maildefer_header :
maildefer_listen : 127.0.0.1:10024
maildefer_size :
maildefer_talk : 127.0.0.1:10025
objectclass : top, kolab
php_dn : cn=nobody,cn=internal,dc=domain,dc=org
php_pw : HIDDEN
postfix-allow-unauthenticated : TRUE
postfix-enable-virus-scan : TRUE
postfix-mydestination : domain.org
postfix-mydomain : domain.org
postfix-mynetworks : 127.0.0.0/8
prefix : /
proftpd-ftp : FALSE
proftpd-userPassword :
sf_bind_dn : cn=manager,cn=internal,dc=domain,dc=org
sf_bind_pw : HIDDEN
sf_directory_mode : slurpd
sf_dn_list : dc=domain,dc=org
sf_field_deleted : kolabdeleteflag
sf_field_guid : entryUUID
sf_field_modified : modifytimestamp
sf_field_quota : cyrus-userquota
sf_ldap_ip : 127.0.0.1
sf_ldap_port : 389
sf_ldap_uri : ldap://127.0.0.1:389
sf_object_class : kolabsharedfolder
slurpd_accept_addr : 127.0.0.1
slurpd_addr : 127.0.0.1
slurpd_port : 9999
uid : freebusy
userPassword : freebusy
user_bind_dn : cn=manager,cn=internal,dc=domain,dc=org
user_bind_pw : HIDDEN
user_directory_mode : slurpd
user_dn_list : dc=domain,dc=org
user_field_deleted : kolabdeleteflag
user_field_guid : entryUUID
user_field_modified : modifytimestamp
user_field_quota : cyrus-userquota
user_ldap_ip : 127.0.0.1
user_ldap_port : 389
user_ldap_uri : ldap://127.0.0.1:389
user_object_class : inetOrgPerson
userpassword : freebusy

Excuse the long paste...


2) You definitely need to turn on "Accept mail from other domains over non-authenticated SMTP". If this is enabled but you still get a "Relay Access Denied" then the user you try to authenticate with is not recognized as being a member of the domains postfix is serving. Did you recreate the virtual domains your sever should handle after removing the LDAP db?

I have this option turned on, but I'm not sure if its aplied into prostfix configuration (I supos that kolabconf do that). However the user and mail accoun seems to exists into database as can be checked using testsaslauth:

Code:
main ~ # testsaslauthd -u nulluser@domain.org -p HIDDEN
0: OK "Success."

main ~ # testsaslauthd -u unexist@domain.org -p HIDDEN
0: NO "authentication failed"

I have created the user using web interface :/

Btw, look at this from postfix configuration...

Code:
main ~ # cat /etc/postfix/main.cf | grep sasl

main ~ # cat /etc/kolab/templates/main.cf.template | grep sasl
                               permit_sasl_authenticated,
smtpd_sasl_auth_enable = yes
#smtpd_sasl_local_domain = $myhostname
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes

As you can see the template has info about sasl, but not the real configuration file. kolabconf seem to ignore it :-?

In using mail-mta/postfix 2.2.10-r20 with that flags; USE="ipv6 kolab ldap mailwrapper mysql pam sasl ssl -hardened -mbox -nis -postgres (-selinux) -vda"

3) The reason why some packages are masked is because they are still under development and can break at any time. But to be honest they are probably the ones most likely to work without problems, too. The overlay structure is currently suboptimal. This should change with the Kolab-2.1 release which now is not too far off. But it would be good if I find the time to document the current overlay structure a little bit better.

I'll try to use masked pakages when Kolab base works fine and will tell you my feedback Smiley  We are waiting for Kolab-2.1, I can try to help the project testing pakages If you need it (im using kolab for my friend's group, not into a company or critical systems).

Logged
nulluser
Newbie
*

Karma: 0
Posts: 5


View Profile
« Reply #3 on: January 16, 2007, 10:16:56 AM »

This 'feature' must be probably documented.... :-)


When kolabconf fails on __one__ file next files are not processed, so Kolab is broken at this time, cause there are soma packages masked. This situation creates missing files that creates kolabconf problems.

The best way to use Kolabconf, in my opinion...

1 - First use kolabcheckperm.
2 - Solve de problem (emerging masked packages or creating fake files).
3 - Run kolabconf.
4 - At this time you need to modify apache configuration... because It seems to be broken.


Some personal ideas...

Use etc-update system (or similar) instead kolabconf. With a diff between old and new file that allow you to apply or ignore the update. That's useful, because I must to re-configure some stuff everytime I do kolabconf.



Thaks guys.
Logged
Gunnar Wrobel
Administrator
Sr. Member
*****

Karma: 2
Posts: 331


275141552 gunnarwrobel@yahoo.de gunnarwrobel
View Profile WWW Email
« Reply #4 on: January 16, 2007, 12:02:58 PM »

Quote
This 'feature' must be probably documented.... :-)

Countless items still missing in the documentation Smiley

Quote
When kolabconf fails on __one__ file next files are not processed, so Kolab is broken at this time, cause there are soma packages masked. This situation creates missing files that creates kolabconf problems.

Right. That is what I tried to mention above but I do sometimes have a habit of not explaining too well Wink

Quote
Use etc-update system (or similar) instead kolabconf. With a diff between old and new file that allow you to apply or ignore the update. That's useful, because I must to re-configure some stuff everytime I do kolabconf.

I am not certain I understand you correctly here. The templates for the configuration files are in /etc/kolab/templates. Never edit configuration files like /etc/postfix/main.cf directly! Only modify the templates. This is a central Kolab mechanism. See http://doc.pardus.de/EnglishSysAdmin/Introduction/KolabConfigurationConcept
Logged
nulluser
Newbie
*

Karma: 0
Posts: 5


View Profile
« Reply #5 on: January 16, 2007, 02:50:43 PM »

I am not certain I understand you correctly here. The templates for the configuration files are in /etc/kolab/templates. Never edit configuration files like /etc/postfix/main.cf directly! Only modify the templates. This is a central Kolab mechanism. See http://doc.pardus.de/EnglishSysAdmin/Introduction/KolabConfigurationConcept

Oh! Sure... sorry, I'm stupid   Embarrassed

One more question. The last one, I hope. It's about PHP, because It seems to be broken.

At this time the last versión of php avaliable in my system (that has recently synced) is 5.1.6-r6. This versión is OUT of overlay kolab2, so doing emerge -upv world that's the version installed. Concequently Apache does not work alright. It shows:

Code:
Not Found
The requested URL /php5-cgi/index.php was not found on this server.

mod_php5.conf from kolab has this line  "ScriptAlias /php5-cgi /usr/lib/php5/bin/php-cgi", but this file does not exists. So I suposed that this path is only avaliable using php provided by kolab2 overlay. Listing my unavaliable (masked) php versions i see an only one from the overlay; the version 5.1.6-r20.

I decided to install this version, but I does not compile alright anyway. The problem seems to be in patching phase.

Code:
main apache2 # ebuild /usr/portage/local/layman/kolab2/dev-lang/php/php-5.1.6-r20.ebuild merge
Disabling noauto in features... merge disables it. (qmerge doesn't)
 * php-patchset-5.1.6-r4.tar.bz2 MD5 ;-) ...                                                                  [ ok ]
 * php-patchset-5.1.6-r4.tar.bz2 RMD160 ;-) ...                                                               [ ok ]
 * php-patchset-5.1.6-r4.tar.bz2 SHA1 ;-) ...                                                                 [ ok ]
 * php-patchset-5.1.6-r4.tar.bz2 SHA256 ;-) ...                                                               [ ok ]
 * php-patchset-5.1.6-r4.tar.bz2 size ;-) ...                                                                 [ ok ]
 * php-5.1.6.tar.bz2 MD5 ;-) ...                                                                              [ ok ]
 * php-5.1.6.tar.bz2 RMD160 ;-) ...                                                                           [ ok ]
 * php-5.1.6.tar.bz2 SHA1 ;-) ...                                                                             [ ok ]
 * php-5.1.6.tar.bz2 SHA256 ;-) ...                                                                           [ ok ]
 * php-5.1.6.tar.bz2 size ;-) ...                                                                             [ ok ]
 * checking ebuild checksums ;-) ...                                                                          [ ok ]
 * checking auxfile checksums ;-) ...                                                                         [ ok ]
 * checking miscfile checksums ;-) ...                                                                        [ ok ]
 * checking php-5.1.6.tar.bz2 ;-) ...                                                                         [ ok ]
 * checking php-patchset-5.1.6-r4.tar.bz2 ;-) ...                                                             [ ok ]
 * Determining SAPI(s) to build
 *   Enabled  SAPI: cli
 *   Disabled SAPI: cgi
 *   Disabled SAPI: apache
 *   Enabled  SAPI: apache2
*
 * If this package fails with a fatal error about Apache2 not having
 * been compiled with a compatible MPM, this is normally because you
 * need to toggle the 'threads' USE flag.
 *
 * If 'threads' is off, try switching it on.
 * If 'threads' is on, try switching it off.
 *
>>> Checking php-5.1.6.tar.bz2's mtime...
>>> Checking php-patchset-5.1.6-r4.tar.bz2's mtime...
>>> Checking hardening-patch-5.1.6-0.4.15-gentoo-r1.patch.gz's mtime...
>>> Not marked as unpacked; recreating WORKDIR...
>>> Unpacking source...
>>> Unpacking php-5.1.6.tar.bz2 to /var/tmp/portage/php-5.1.6-r20/work
>>> Unpacking php-patchset-5.1.6-r4.tar.bz2 to /var/tmp/portage/php-5.1.6-r20/work         

!!! ERROR: dev-lang/php-5.1.6-r20 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_unpack
  ebuild.sh, line 708:   Called src_unpack
  php-5.1.6-r20.ebuild, line 137:   Called die

!!! Patching for kolab failed!
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! This ebuild is from an overlay: '/usr/portage/local/layman/kolab2'

And there is not more php versions overlayed....

Code:
main apache2 # ls -l /usr/portage/local/layman/kolab2/dev-lang/php/*.ebuild
-rw-r--r-- 1 root root 15431 Nov 22 14:43 /usr/portage/local/layman/kolab2/dev-lang/php/php-5.1.6-r20.ebuild

At this moment I have disabled PHP5CGI from /etc/conf.d/apache2 and seems to work. But I'm not sure it must be enabled for some Kolab functions.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!