Homepage | Products | OX Knowledge Base | Support | Try Now | Contact | Company
OX Logo
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2013
    Posts
    3

    Default Error: Connection refused to host: localhost; nested exception is: java.net.Connect

    Hallo,

    when installing on Centos 6.4 and trying:

    Code:
    /opt/open-xchange/sbin/registerserver -n oxserver -A oxadminmaster -P admin_master_password
    I get this error message:
    Code:
    Error: Connection refused to host: localhost; nested exception is: 
    	java.net.ConnectException: Connection refused
    Does anybody know how to solve this?

    Thanks.

    /var/log/open-xchange/open-xchange-console.log says:
    Code:
    java.lang.OutOfMemoryError: Java heap space
    Exception in thread "State Saver" java.lang.OutOfMemoryError: Java heap space
    ps axf | grep open-xchange
    Code:
    2669 pts/0    S+     0:00              \_ grep open-xchange

    If it is due to lack of memory, can i simply rerun:
    Code:
    $ /opt/open-xchange/sbin/oxinstaller --add-license=YOUR-OX-LICENSE-CODE \
    --servername=oxserver --configdb-pass=db_password \
    --master-pass=admin_master_password --network-listener-host=localhost --servermemory 8
    ?
    Last edited by sirop; 10-15-2013 at 02:15 PM.

  2. #2
    Join Date
    Oct 2013
    Posts
    3

    Default EDIT: now with enough RAM

    OK. I just set not enough memory,
    but now with 8192 MB
    Code:
    $ /opt/open-xchange/sbin/oxinstaller --add-license=YOUR-OX-LICENSE-CODE \
    --servername=oxserver --configdb-pass=db_password \
    --master-pass=admin_master_password --network-listener-host=localhost --servermemory 8192
    #/opt/open-xchange/sbin/registerserver -n oxserver -A oxadminmaster -P admin_master_password
    yields:
    Code:
    server could not be registered: 
    Server response:
     Exception creating connection to: 0:0:0:0:0:0:0:1; nested exception is: 
            java.net.SocketException: Protocol family unavailable
            at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:632)
            at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216)
            at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
            at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:128)
            at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:194)
            at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:148)
            at sun.proxy.$Proxy0.registerServer(Unknown Source)
            at com.openexchange.admin.console.util.server.RegisterServer.<init>(RegisterServer.java:83)
            at com.openexchange.admin.console.util.server.RegisterServer.main(RegisterServer.java:91)
    # ps axf | grep open-xchange
    Code:
    3339 pts/2    S+     0:00          \_ grep open-xchange
     2624 pts/0    S      0:00 su -s /bin/bash open-xchange -c /opt/open-xchange/sbin/open-xchange
     2628 ?        Ssl    0:12  \_ /usr/bin/java -Dsun.net.inetaddr.ttl=3600 -Dnetworkaddress.cache.ttl=3600 -Dnetworkaddress.cache.negative.ttl=10 -server -Djava.awt.headless=true -XX:MaxPermSize=256m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:NewRatio=3 -XX:+UseTLAB -XX:+DisableExplicitGC -Dosgi.compatibility.bootdelegation=false -XX:-OmitStackTraceInFastThrow -Xmx8192m -Djava.awt.headless=true -Dopenexchange.propdir=/opt/open-xchange/etc -Djava.util.logging.config.file=/opt/open-xchange/etc/file-logging.properties -jar /opt/open-xchange/bundles/org.eclipse.osgi_3.8.1.v20120830-144521.jar -configuration file:/opt/open-xchange/osgi
    # tail /var/log/open-xchange/open-xchange.log.0
    Code:
    Oct 16, 2013 9:16:48 AM com.openexchange.log.internal.callback.InfoCallback log
    INFO: Logged at: com.openexchange.http.grizzly.service.http.HttpServiceImpl.registerServlet(HttpServiceImpl.java:142)
     com.openexchange.database.schema=configdb
     
     Registering servlet: com.openexchange.ajax.ConfigJump, under: /ajax/control with context: null
    Oct 16, 2013 9:16:48 AM com.openexchange.log.internal.callback.InfoCallback log
    INFO: Logged at: com.openexchange.http.grizzly.service.http.HttpServiceImpl.registerServlet(HttpServiceImpl.java:142)
     com.openexchange.database.schema=configdb
     
     Registering servlet: com.openexchange.ajax.SyncServlet, under: /ajax/sync with context: null

  3. #3
    Join Date
    Oct 2013
    Posts
    3

    Default

    I got rid of errors.

    My /etc/hosts says now:
    Code:
    127.0.0.1   localhost localhost.localdomain
    ::1    localhost6  localhost6.localdomain6
    and i did also:
    Code:
     service iptables restart

Bookmarks

Posting Permissions

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