Announcement

Collapse
No announcement yet.

/opt/open-xchange/sbin/registerserver doesnt work

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

  • /opt/open-xchange/sbin/registerserver doesnt work

    Hello,

    I have setup now but it stops working @
    /opt/open-xchange/sbin/registerserver -n oxserver -A oxadminmaster -P admin_master_password

    with the following message

    /opt/open-xchange/etc/admindaemon/ox-admin-scriptconf.sh: line 7: -Xmx100m: command not found
    /opt/open-xchange/etc/admindaemon/ox-admin-scriptconf.sh: line 12: -Xmx50m: command not found
    server could not be registered:
    Error: Connection refused to host: localhost; nested exception is:
    java.net.ConnectException: Connection refused

    The complete thing:

    root@server:/var/cache/debconf# /opt/open-xchange/sbin/initconfigdb --configdb-pass=db_password -a -i
    initializing configdb from scratch... done
    root@server:/var/cache/debconf# /opt/open-xchange/sbin/oxinstaller --servername=oxserver --configdb-pass=db_password \
    > --master-pass=admin_master_password --ajp-bind-port=localhost
    setting up groupware configuration /opt/open-xchange/etc/groupware
    ..................................................
    groupware daemon must now be restarted if already running
    setting up admin daemon configuration /opt/open-xchange/etc/admindaemon
    ......................
    *** RMI authentication is enabled
    using oxadminmaster as master account
    admin daemon must now be restarted if already running
    root@server:/var/cache/debconf# /etc/init.d/open-xchange-admin start
    Starting Open-Xchange Admin Daemon: open-xchange-admin.
    root@server:/var/cache/debconf# /opt/open-xchange/sbin/registerserver -n oxserver -A oxadminmaster -P admin_master_password
    /opt/open-xchange/etc/admindaemon/ox-admin-scriptconf.sh: line 7: -Xmx100m: command not found
    /opt/open-xchange/etc/admindaemon/ox-admin-scriptconf.sh: line 12: -Xmx50m: command not found
    server could not be registered:
    Error: Connection refused to host: localhost; nested exception is:
    java.net.ConnectException: Connection refused

  • #2
    Hi,

    this looks pretty strange because those scriptconf files only contain startup parameters for the ox applications. I guess you have not touched those files (please post them here) so could it be that you're using another shell than bash?

    Greetings

    Comment


    • #3
      Hi

      I have not touched those files and I use bash

      Thx Bye

      Comment


      • #4
        A I had to use " " but now

        root@server:/home/daniel/# /opt/open-xchange/sbin/registerserver -n oxserver -A oxadminmaster -P admin_master_password
        server could not be registered:
        Error: Connection refused to host: localhost; nested exception is:
        java.net.ConnectException: Connection refused

        Comment


        • #5
          works!!!!!

          Comment


          • #6
            hmm I am getting this error too.....


            -------------------------------------------------------------------------------------------------
            [root@www ~]# /opt/open-xchange/sbin/registerserver -n oxserver -A oxadminmaster -P admin_master_password
            /opt/open-xchange/etc/admindaemon/ox-admin-scriptconf.sh: line 8: -Xmx100m: command not found
            /opt/open-xchange/etc/admindaemon/ox-admin-scriptconf.sh: line 9: -Xmx50m: command not found
            server could not be registered:
            Error: Connection refused to host: localhost; nested exception is:
            java.net.ConnectException: Connection refused

            Comment


            • #7
              Thanks to danisahne... on the ox-admin-scriptconf.sh, it needed the quotes! Did the trick..

              vi ox-admin-scriptconf.sh and put in the " "
              ----------------------------------------------------------------------------------------------------------------
              JAVA_XTRAOPTS="-Xms100m -Xmx100m -XX:+UseConcMarkSweepGC -XX:NewSize=50m -XX:MaxNewSize=50m -XX:SurvivorRatio=6"
              JAVA_OXCMD_OPTS="-Xms50m -Xmx50m -XX:+UseConcMarkSweepGC -XX:NewSize=25m -XX:MaxNewSize=25m -XX:SurvivorRatio=6
              -Djava.net.preferIPv4Stack=true"
              -------------------------------------------------------------------------------------------------------------


              Now time to work on this....
              =================================
              server could not be registered:
              Error: Connection refused to host: localhost; nested exception is:
              java.net.ConnectException: Connection refused
              =================================

              Comment


              • #8
                I have the issue too. How I can solve this ? I tried to install OX on CentOS 5.4, Sun Java 1.5.0.15.

                Thanks

                Comment

                Working...
                X