Announcement

Collapse
No announcement yet.

Connection refused to host

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

  • #16
    Originally posted by technomensch View Post
    Code:
    $ sudo /opt/open-xchange/sbin/registerserver -n localhost -A oxadminmaster -P <<pwd removed>>
    server could not be registered: 
    Error: Connection refused to host: localhost; nested exception is: 
    	java.net.ConnectException: Connection refused
    Code:
    $ more /etc/hosts 
    
    # The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts
    192.168.1.104 localhost <<hostname removed>>
    
    $ ifconfig
    eth1      Link encap:Ethernet  HWaddr 00:0c:76:9c:42:0f  
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
              Interrupt:19 Base address:0xc400 
    
    eth2      Link encap:Ethernet  HWaddr 00:12:17:58:fb:b9  
              inet addr:192.168.1.104  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::212:17ff:fe58:fbb9/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:150995 errors:0 dropped:0 overruns:0 frame:0
              TX packets:98794 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:189517709 (180.7 MB)  TX bytes:8199499 (7.8 MB)
              Interrupt:20 Base address:0xc000
    remove localhost from the line starting with your machines ip address in /etc/hosts and add a new line

    Code:
    127.0.0.1       localhost
    to /etc/hosts

    Comment


    • #17
      server could not be registered:
      Error: Connection refused to host: localhost; nested exception is:
      java.net.ConnectException: Connection refused
      I allso got alot of these messages, on my CentOS52 system it looks like not all the open-xchange processes are not terminated if I execute the init.d scripts or I just takes time to terminate. then a kill -9 comes handy

      Tronn

      Comment


      • #18
        RMI authentication is enabled

        Hi friends, i dont speak deutsch,neither english, but this seems quite similar to my case,because i can not register the server, could it be rmi related?

        This is the message:

        com.openexchange.admin.rmi.exceptions.PoolExceptio n: DBP-0001 Category=5 Message=Cannot get connection to config DB. exceptionID=383039001-1

        i'm using spanish translation of debian etchand the sun java sdk, becuse i use my pc to make sales presentations of the open source advantage and so on

        this is the history:
        -------------------------------------------------------------
        ccs-adsl-wlandr:~# /opt/open-xchange/sbin/oxinstaller --servername=ccs-adsl-wlandr --configdb-pass=db_password \
        > --master-pass=admin_master_password
        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
        ccs-adsl-wlandr:~# /etc/init.d/open-xchange-admin restart
        Restarting Open-Xchange Admin Daemon: open-xchange-admin.
        ccs-adsl-wlandr:~# /opt/open-xchange/sbin/registerserver -n ccs-adsl-wlandr -A oxadminmaster -P admin_master_password
        server could not be registered:
        Server response:
        com.openexchange.admin.rmi.exceptions.PoolExceptio n: DBP-0001 Category=5 Message=Cannot get connection to config DB. exceptionID=383039001-1

        my apologies in advance if this is not the correct thread

        Comment


        • #19
          The answer is most likely in the logs (/var/opt/open-xchange/open-xchange-admin.log.0)

          Comment

          Working...
          X