Announcement

Collapse
No announcement yet.

Error open-xchange-contacts-ldap

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error open-xchange-contacts-ldap

    Since the last upgrade with "apt-get -y -f upgrade" I get the error:

    Setting up open-xchange-contacts-ldap (6.12.0.0-4) ...
    /opt/open-xchange/etc/oxfunctions.sh: 486: Syntax error: "(" unexpected (expecting "}")
    dpkg: error processing open-xchange-contacts-ldap (--configure):
    subprocess post-installation script returned error exit status 2
    Errors were encountered while processing:
    open-xchange-contacts-ldap
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    This is a working installation. Now I tried to add postgrey with the result:
    Starting postfix greylisting daemon: postgrey.

    Errors were encountered while processing:
    open-xchange-contacts-ldap
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    Any hints what's wrong?

  • #2
    It is important to run apt-get dist-upgrade:



    I don't know, however, if you problem is related to that.

    Comment


    • #3
      Upgrade with sudo apt-get -y -f dist-upgrade --force-yes

      Still the same:

      Setting up linux-image-server (2.6.24.25.27) ...
      Setting up linux-server (2.6.24.25.27) ...
      Setting up open-xchange-subscribe-crawler (6.12.0.0-4) ...
      Processing triggers for libc6 ...
      ldconfig deferred processing now taking place
      Errors were encountered while processing:
      open-xchange-contacts-ldap
      E: Sub-process /usr/bin/dpkg returned an error code (1)

      Kurt

      Comment


      • #4
        hi,

        /opt/open-xchange/etc/oxfunctions.sh: 486: Syntax error: "(" unexpected (expecting "}").
        Do you have looked in the file at line 486 and tried to fix this?
        Maybe the package is just broken an nobody installs it

        On my Installation I have no ldap installed.

        Comment


        • #5
          Syntax error

          You may be right. But where is the error? The error is indicated at the bolded line.

          ox_update_config_init() {
          local cini=$1
          local cinitemplate=$2
          local bdir=$3

          test -z "$cini" && die \
          "ox_update_config_init: missing config.ini argument (arg 1)"
          test -z "$cinitemplate" && die \
          "ox_update_config_init: missing config.ini template argument (arg 2)"
          test -z "$bdir" && die \
          "ox_update_config_init: missing bundle.d argument (arg 3)"

          test -d $bdir || die "$bdir is not a directory"
          test -f $cinitemplate || die "$cinitemplate does not exist"
          test "$(echo $bdir/*.ini)" == "$bdir/*.ini" && die "$bdir is empty"

          # read all installed bundles into an array
          local dirbundles=()
          local bpath=
          for bundle in $bdir/*.ini; do
          read bpath < $bundle
          dirbundles=( ${dirbundles[*]} "reference\:file\:${bpath}" )
          done

          if [ -f $cini ]; then
          # read all bundles listed in config.ini into an array
          local configbundles=( $(sed -e \
          '/^osgi.bundles.*/Is;^osgi.bundles=\(.*\);\1;' \
          -n -e 's;,; ;gp' < $cini ) )
          fi

          cp $cinitemplate $cini
          echo "osgi.bundles=$(echo ${dirbundles[@]} | sed 's; ;,;g')" >> $cini
          }

          Comment


          • #6
            I have no idea, what's wrong with that code on your system.

            What system do you run?
            What happens when you do this in a shell (bash):

            Code:
            $ a=()

            Comment


            • #7
              Test

              That works fine.

              Comment


              • #8
                No Ideas?

                Obviously nobody has an idea how to fix this error.

                I will try to re-install OX.

                Comment


                • #9
                  Same problem with install

                  $ sudo aptitude install open-xchange open-xchange-authentication-database
                  Reading package lists... Done
                  Building dependency tree
                  Reading state information... Done
                  Reading extended state information
                  Initializing package states... Done
                  Writing extended state information... Done
                  Building tag database... Done
                  The following packages are unused and will be REMOVED:
                  libxp6
                  The following partially installed packages will be configured:
                  open-xchange-contacts-ldap
                  0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
                  Need to get 0B of archives. After unpacking 77.8kB will be freed.
                  Do you want to continue? [Y/n/?] y
                  Writing extended state information... Done
                  (Reading database ... 47916 files and directories currently installed.)
                  Removing libxp6 ...
                  Processing triggers for libc6 ...
                  ldconfig deferred processing now taking place
                  Setting up open-xchange-contacts-ldap (6.12.0.0-4) ...
                  /opt/open-xchange/etc/oxfunctions.sh: 486: Syntax error: "(" unexpected (expecting "}")
                  dpkg: error processing open-xchange-contacts-ldap (--configure):
                  subprocess post-installation script returned error exit status 2
                  Errors were encountered while processing:
                  open-xchange-contacts-ldap
                  E: Sub-process /usr/bin/dpkg returned an error code (1)
                  A package failed to install. Trying to recover:
                  Setting up open-xchange-contacts-ldap (6.12.0.0-4) ...
                  /opt/open-xchange/etc/oxfunctions.sh: 486: Syntax error: "(" unexpected (expecting "}")
                  dpkg: error processing open-xchange-contacts-ldap (--configure):
                  subprocess post-installation script returned error exit status 2
                  Errors were encountered while processing:
                  open-xchange-contacts-ldap
                  Reading package lists... Done
                  Building dependency tree
                  Reading state information... Done
                  Reading extended state information
                  Initializing package states... Done
                  Writing extended state information... Done
                  Building tag database... Done

                  Comment


                  • #10
                    New Installation

                    I solved the problem with a new installation. The new release 6.14 is much better anyhow.

                    Comment


                    • #11
                      Same problem

                      Hello,

                      I'm having the same problem. I'm currently using OX 6.14 on an Ubuntu system (9.10) . The system is up to date and everything seems ok. But when I want to install open-xchange-contacts-ldap (6.14.0.0-6) same error described before happens:

                      Setting up open-xchange-contacts-ldap (6.14.0.0-6) ...
                      /opt/open-xchange/etc/oxfunctions.sh: 486: Syntax error: "(" unexpected (expecting "}")
                      dpkg: error processing open-xchange-contacts-ldap (--configure):
                      subprocess installed post-installation script returned error exit status 2
                      Errors were encountered while processing:
                      open-xchange-contacts-ldap
                      E: Sub-process /usr/bin/dpkg returned an error code (1)

                      3 days ago I had the same problem with OX 6.14 on an Ubuntu 8.04 so I decided to install a new system from scratch, but with no success.

                      Seems like it worked for KurtS but not for me, any idea what could be the problem?

                      Thanks

                      Comment


                      • #12
                        Originally posted by KurtS View Post
                        I solved the problem with a new installation. The new release 6.14 is much better anyhow.
                        much better! there are less problems to deal with. for now at least.

                        Comment


                        • #13
                          I have a same probleme with 6.16 version.

                          show thread http://www.open-xchange.com/forum/sh...7522#post17522.

                          Comment

                          Working...
                          X