Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: BUILD FAILED error is killing me

  1. #1
    Join Date
    Feb 2007
    Posts
    43
    Rep Power
    8

    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

  2. #2
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    20

    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?

  3. #3
    Join Date
    Feb 2007
    Posts
    43
    Rep Power
    8

    Default

    Hi,

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



    Regards
    Hany

  4. #4
    Join Date
    Nov 2005
    Posts
    477
    Rep Power
    9

    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?

  5. #5
    Join Date
    Feb 2007
    Posts
    43
    Rep Power
    8

    Default

    Development Build

    Regards
    Hany

  6. #6
    Join Date
    Nov 2005
    Posts
    477
    Rep Power
    9

    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

  7. #7
    Join Date
    Feb 2007
    Posts
    43
    Rep Power
    8

    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

  8. #8
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    20

    Default

    which ldap version are you using?

  9. #9
    Join Date
    Nov 2005
    Posts
    477
    Rep Power
    9

    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

  10. #10
    Join Date
    Feb 2007
    Posts
    43
    Rep Power
    8

    Default

    I'm using openldap 2.3.27

    Regards
    Hany

Similar Threads

  1. Upgrade: 4.5.5 -> 4.5.6 failed, LDAP/slapd issues
    By Daimyo in forum Installation
    Replies: 7
    Last Post: 08-04-2007, 09:23 PM
  2. Spam training problem...
    By TaskMaster in forum Installation
    Replies: 2
    Last Post: 05-08-2007, 09:49 AM
  3. Lotus migration
    By babou in forum Migration
    Replies: 15
    Last Post: 03-05-2007, 09:33 PM
  4. Replies: 18
    Last Post: 03-20-2006, 01:22 PM
  5. Insallation failed (Debian server)
    By popui007 in forum Installation
    Replies: 5
    Last Post: 09-29-2005, 02:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •