Announcement

Collapse
No announcement yet.

Raspberry 3, RMIServer stub: javax.naming.ServiceUnavailableException

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

  • Raspberry 3, RMIServer stub: javax.naming.ServiceUnavailableException

    Hello all

    Installing OX on a Raspberry 3, following this manual


    After the work is done, no website shows up. Log below.

    Main issue:
    RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost;

    (While installing OX I also encountered this RMIServer stub, and managed to overcome this by installing Java 8 (Java 9 standard on raspberry 3))

    However while running the finalized system this error shows up again
    Any ideas ?
    Thanks in advance

    John

    SystemLog

    Jan 13 19:04:49 raspberrypi shutdown[7562]: com.openexchange.control.consoleold.ConsoleExcepti on: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011java.net.ConnectException: Connection refused]
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011at com.openexchange.control.console.AbstractConsoleHa ndler.init(AbstractConsoleHandler.java:113)
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011at com.openexchange.control.console.ShutDown.<init>(S hutDown.java:76)
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011at com.openexchange.control.console.ShutDown.main(Shu tDown.java:178)
    Jan 13 19:04:49 raspberrypi shutdown[7562]: Caused by: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011java.net.ConnectException: Connection refused]
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011at javax.management.remote.rmi.RMIConnector.connect(R MIConnector.java:369)
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011at javax.management.remote.JMXConnectorFactory.connec t(JMXConnectorFactory.java:270)
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011at com.openexchange.control.consoleold.AbstractJMXHan dler.initJMX(AbstractJMXHandler.java:189)
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011at com.openexchange.control.console.AbstractConsoleHa ndler.init(AbstractConsoleHandler.java:111)
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011... 2 more
    Jan 13 19:04:49 raspberrypi shutdown[7562]: Caused by: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011java.net.ConnectException: Connection refused]
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011at com.sun.jndi.rmi.registry.RegistryContext.lookup(R egistryContext.java:122)
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011at com.sun.jndi.toolkit.url.GenericURLContext.lookup( GenericURLContext.java:205)
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011at javax.naming.InitialContext.lookup(InitialContext. java:417)
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011at javax.management.remote.rmi.RMIConnector.findRMISe rverJNDI(RMIConnector.java:1957)
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011at javax.management.remote.rmi.RMIConnector.findRMISe rver(RMIConnector.java:1924)
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011at javax.management.remote.rmi.RMIConnector.connect(R MIConnector.java:287)
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011... 5 more
    Jan 13 19:04:49 raspberrypi shutdown[7562]: Caused by: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011java.net.ConnectException: Connection refused
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEnd point.java:619)
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011at sun.rmi.transport.tcp.TCPChannel.createConnection( TCPChannel.java:216)
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011at sun.rmi.transport.tcp.TCPChannel.newConnection(TCP Channel.java:202)
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011at sun.rmi.server.UnicastRef.newCall(UnicastRef.java: 342)
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011at com.sun.jndi.rmi.registry.RegistryContext.lookup(R egistryContext.java:118)
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011... 10 more
    Jan 13 19:04:49 raspberrypi shutdown[7562]: Caused by: java.net.ConnectException: Connection refused
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011at java.net.PlainSocketImpl.socketConnect(Native Method)
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011at java.net.AbstractPlainSocketImpl.doConnect(Abstrac tPlainSocketImpl.java:350)
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011at java.net.AbstractPlainSocketImpl.connectToAddress( AbstractPlainSocketImpl.java:206)
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011at java.net.AbstractPlainSocketImpl.connect(AbstractP lainSocketImpl.java:188)
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011at java.net.SocksSocketImpl.connect(SocksSocketImpl.j ava:392)
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011at java.net.Socket.connect(Socket.java:589)
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011at java.net.Socket.connect(Socket.java:538)
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011at java.net.Socket.<init>(Socket.java:434)
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011at java.net.Socket.<init>(Socket.java:211)
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011at sun.rmi.transport.proxy.RMIDirectSocketFactory.cre ateSocket(RMIDirectSocketFactory.java:40)
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011at sun.rmi.transport.proxy.RMIMasterSocketFactory.cre ateSocket(RMIMasterSocketFactory.java:148)
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEnd point.java:613)
    Jan 13 19:04:49 raspberrypi shutdown[7562]: #011... 15 more
    Jan 13 19:04:49 raspberrypi systemd[1]: open-xchange.service: Control process exited, code=exited status=1
    Jan 13 19:04:51 raspberrypi systemd[1]: open-xchange.service: Main process exited, code=exited, status=143/n/a
    Jan 13 19:04:51 raspberrypi systemd[1]: Stopped open-xchange.service.
    Jan 13 19:04:51 raspberrypi systemd[1]: open-xchange.service: Unit entered failed state.
    Jan 13 19:04:51 raspberrypi systemd[1]: open-xchange.service: Failed with result 'exit-code'.
    Jan 13 19:04:51 raspberrypi systemd[1]: Starting open-xchange.service...
    Jan 13 19:04:51 raspberrypi systemd[1]: Started open-xchange.service.

  • #2
    [Resolved]

    Reinstalled form scratch

    1: Change Hostfile
    127.0.0.1 localhost
    192.168.0.xxx raspberrypi.lan raspberrypi

    2: While registering add:1066
    sudo /opt/open-xchange/sbin/registerserver -n raspberrypi:1066 -A oxadminmaster -P oxadminmaster_password

    Comment

    Working...
    X