Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
 
Go Back   Zimbra - Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra - Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-10-2007, 09:09 AM
Active Member
 
Posts: 43
Default BUILD FAILED error is killing me

Hi,

I'm trying to build the opensource edition from the source code on eclipse but I'm having the following error while building the zimbraServer :

------
[echo] Loading /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/openldap/etc/openldap/zimbra.ldif
[exec] ldap_bind: Invalid credentials (49)

BUILD FAILED
/home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build.xml:579: The following error occurred while executing this line:
-----

I looked at this line in the build.xml file and found that it tries to add users to the openldap but I didn't know why did it fail.

I'm using eclipse 3.3 + WebTools plugin on linux (openSUSE 10.2).

Another thing : before building I have installed openldap2-2.3.27-25 and mysql server 5 and tomcat 5.5 also I had to change the paths of these programs in the build.xml in order to show the zimbraServer their paths.

I don't know now where is the problem.

and if you are interested here is the output of the building :

------------------------------------------------------------------------------------------------------------------
Buildfile: /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build.xml
clean:
[delete] Deleting directory /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build
build-init:
[mkdir] Created dir: /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/classes
[mkdir] Created dir: /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/generated/src/java
[mkdir] Created dir: /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/wiki
[mkdir] Created dir: /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/data
make-dirs:
[echo] Creating dirs under /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist
[mkdir] Created dir: /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/conf
[mkdir] Created dir: /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/openldap/etc/openldap/schema
[mkdir] Created dir: /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/bin
[mkdir] Created dir: /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/conf/msgs
[mkdir] Created dir: /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/db
[mkdir] Created dir: /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/lib/ext
[mkdir] Created dir: /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/lib/jars
[mkdir] Created dir: /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/libexec
[mkdir] Created dir: /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/tomcat/common/endorsed
[mkdir] Created dir: /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/tomcat/common/lib
[mkdir] Created dir: /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/tomcat/conf
[mkdir] Created dir: /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/tomcat/webapps
[mkdir] Created dir: /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/wiki
compile:
build-init:
compile:
jar:
build-init:
compile:
jar:
[javac] Compiling 1039 source files to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/classes
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
set-buildinfo-vars:
[echo] Version: 4.5
generate-buildinfo:
[mkdir] Created dir: /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/buildinfo
[javac] Compiling 1 source file to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/classes
jar:
[echo] Hostname: hanysys
[jar] Building jar: /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/zimbrastore.jar
set-buildinfo-vars:
[echo] Version: 4.5
generate-ldap-config:
[mkdir] Created dir: /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/attrs
[copy] Copying 2 files to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/attrs
[mkdir] Created dir: /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/ldap-config
[copy] Copying 1 file to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/ldap-config
[copy] Copying 1 file to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/ldap-config
[copy] Copying 1 file to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/ldap-config
stop-tomcat-windows:
stop-tomcat-unix:
[exec] Result: 255
stop-tomcat:
stop-ldap-windows:
stop-ldap-unix:
[exec] Shutting down ldap-server..done
stop-ldap:
stop-servers:
choose-db-schema:
[echo] Using database schema in src/db
db-init:
[sql] Executing file: /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/src/db/dropdb.sql
[sql] 201 of 201 SQL statements executed successfully
[sql] Executing file: /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/src/db/db.sql
[sql] 23 of 23 SQL statements executed successfully
[sql] Executing file: /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/versions-init.sql
[sql] 3 of 3 SQL statements executed successfully
dir-init:
[echo] If the following deletes fail, wait for your tomcat
[echo] to stop (or stop your tomcat as the case may be)
[echo] and try again later.
[delete] Deleting 5 files from /opt/zimbra/db
[delete] Deleting directory /opt/zimbra/store
[delete] Deleting directory /opt/zimbra/index
[delete] Deleting directory /opt/zimbra/redolog
[delete] Deleting directory /opt/zimbra/backup
[delete] Deleting directory /opt/zimbra/lib/ext
[delete] Deleting directory /opt/zimbra/conf/msgs
[delete] Deleting: /opt/zimbra/tomcat/webapps/service.war
[delete] Deleting directory /opt/zimbra/openldap/var/openldap-data
[mkdir] Created dir: /opt/zimbra/openldap/var/openldap-data
[mkdir] Created dir: /opt/zimbra/store
[mkdir] Created dir: /opt/zimbra/index
[mkdir] Created dir: /opt/zimbra/redolog
[mkdir] Created dir: /opt/zimbra/redolog/archive
[mkdir] Created dir: /opt/zimbra/backup
make-dirs:
[echo] Creating dirs under /opt/zimbra
[mkdir] Created dir: /opt/zimbra/conf/msgs
[mkdir] Created dir: /opt/zimbra/lib/ext
war:
[echo] war.exclude=ical4j-0.9.16-patched.jar,servlet-api.jar,jsp-api.jar,mail.jar,activation.jar,zimbra-native.jar,KeyView.jar
[war] Building war: /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/service.war
dev-dist-unix:
[copy] Copying 1 file to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/lib
[copy] Copying /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/lib/libzimbra-native.so.Linux.i386 to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/lib/libzimbra-native.so
dev-dist:
[copy] Copying 55 files to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/bin
[copy] Copying 41 files to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/libexec
[copy] Copying 1 file to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/bin
[copy] Copying 1 file to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/bin
[copy] Copying 1 file to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/conf
[copy] Copying 1 file to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/conf
[copy] Copying 1 file to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/conf
[copy] Copying 1 file to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/conf
[copy] Copying 2 files to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/conf/msgs
[copy] Copying 2 files to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/conf/attrs
[copy] Copying 35 files to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/lib/jars
[copy] Copying 1 file to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/lib/jars
[copy] Copying 1 file to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/lib/jars
[copy] Copying 1 file to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/lib/jars
[copy] Copying 1 file to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/lib/jars
[copy] Copying 1 file to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/tomcat/webapps
[copy] Copying 1 file to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/tomcat/conf
[copy] Copying 1 file to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/tomcat/conf
[copy] Copying 1 file to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/tomcat/conf
[copy] Copying 1 file to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/tomcat/conf
[copy] Copying 4 files to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/tomcat/common/lib
[copy] Copying 1 file to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/tomcat/common/endorsed
[copy] Copying 1 file to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/conf
[copy] Copying 4 files to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/openldap/etc/openldap
[copy] Copying 2 files to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/openldap/etc/openldap/schema
[copy] Copying 2 files to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/db
[copy] Copying 2 files to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/db
[copy] Copying 1 file to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/db
[copy] Copying 14 files to /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/wiki
localhost-ssl-cert:
[delete] Deleting 1 files from /opt/zimbra/tomcat/conf
[genkey] Generating Key for tomcat
[genkey] Generating Key for tomcat-dsa
init-opt-zimbra:
[copy] Copying 180 files to /opt/zimbra
start-ldap-windows:
start-ldap-unix:
[exec] Starting ldap-server..done
start-ldap:
zmprov-commands:
ldap-load:
ldap-add:
[echo] Loading /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/openldap/etc/openldap/zimbra.ldif
[exec] ldap_bind: Invalid credentials (49)

BUILD FAILED
/home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build.xml:579: The following error occurred while executing this line:
-------------------------------------------------------------------------------------------------------------------------------

sorry for long mail.

Regards
Hany
Reply With Quote
  #2 (permalink)  
Old 05-10-2007, 10:10 AM
Zimbra-Yahoo Consultant
 
Posts: 5,608
Default

Code:
[echo] Loading /home/Hany/ZCS/zimbra/trunk/branches/FRANK/ZimbraServer/build/dist/openldap/etc/openldap/zimbra.ldif
     [exec] ldap_bind: Invalid credentials (49)
Looks to me like LDAP can't bind because the password is wrong.
Did you initially set up a zimbra password?
Reply With Quote
  #3 (permalink)  
Old 05-10-2007, 10:13 AM
Active Member
 
Posts: 43
Default

Hi,

no I didn't set a zimbra password ... could you tell how to do this



Regards
Hany
Reply With Quote
  #4 (permalink)  
Old 05-10-2007, 11:24 AM
Zimlet Guru & Moderator
 
Posts: 431
Default

Quote:
Originally Posted by hanysys View Post
Hi,

no I didn't set a zimbra password ... could you tell how to do this



Regards
Hany
Are you doing a development build, or a production build?
Reply With Quote
  #5 (permalink)  
Old 05-10-2007, 01:37 PM
Active Member
 
Posts: 43
Default

Development Build

Regards
Hany
Reply With Quote
  #6 (permalink)  
Old 05-10-2007, 03:41 PM
Zimlet Guru & Moderator
 
Posts: 431
Default

Quote:
Originally Posted by hanysys View Post
Development Build

Regards
Hany
This usually means that you didn't copy the LDAP configuration files over into /opt/zimbra/openldap
Reply With Quote
  #7 (permalink)  
Old 05-10-2007, 04:26 PM
Active Member
 
Posts: 43
Default

Hi,

If you mean the *.conf files in the /../FRANK/zimbraServer/conf/ldap/ I already copied them to /opt/zimbra/openldap and the error message turned from:

ldap_bind: Invalid credentials (49)

to:

ldap_bind : can't contact ldap server (-1)

and no thing else changed (still BUILD FAILED)

any help here

Regards
Hany
Reply With Quote
  #8 (permalink)  
Old 05-10-2007, 08:46 PM
Zimbra-Yahoo Consultant
 
Posts: 5,608
Default

which ldap version are you using?
Reply With Quote
  #9 (permalink)  
Old 05-10-2007, 09:45 PM
Zimlet Guru & Moderator
 
Posts: 431
Default

Quote:
Originally Posted by hanysys View Post
Hi,

If you mean the *.conf files in the /../FRANK/zimbraServer/conf/ldap/ I already copied them to /opt/zimbra/openldap and the error message turned from:

ldap_bind: Invalid credentials (49)

to:

ldap_bind : can't contact ldap server (-1)

and no thing else changed (still BUILD FAILED)

any help here

Regards
Hany
Okay, now try ant reset-the-world-stage1
Reply With Quote
  #10 (permalink)  
Old 05-11-2007, 03:49 AM
Active Member
 
Posts: 43
Default

I'm using openldap 2.3.27

Regards
Hany
Reply With Quote
Reply


Thread Tools
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0