Announcement

Collapse
No announcement yet.

Ubuntu install: 503 error

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

  • Ubuntu install: 503 error

    Attempted to follow the tutorial for Ubuntu 8.04 here and am experiencing the 503 "Temporarily Unavailable" error.

    When attempting to run 'listbundles' I get a java exception error, which I assume is related to this issue.

    Thanks in advance for any guidance.

    JM


    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

    Server: Ubuntu hardy

    #java -version
    java version "1.6.0_0"
    OpenJDK Runtime Environment (build 1.6.0_0-b11)
    OpenJDK Client VM (build 1.6.0_0-b11, mixed mode, sharing)

    # dpkg -l | grep open-xchange
    ii open-xchange 6.16.1.0-3
    ii open-xchange-activation 1.1.1-25
    ii open-xchange-admin 6.16.1.0-3
    ii open-xchange-admin-client 6.16.1.0-3
    ii open-xchange-admin-doc 6.16.1.0-3
    ii open-xchange-admin-lib 6.16.1.0-3
    ii open-xchange-admin-plugin-hosting 6.16.1.0-3
    ii open-xchange-admin-plugin-hosting-client 6.16.1.0-3
    ii open-xchange-admin-plugin-hosting-doc 6.16.1.0-3
    ii open-xchange-admin-plugin-hosting-lib 6.16.1.0-3
    ii open-xchange-authentication-database 6.16.1.0-3
    ii open-xchange-cache 6.16.1.0-3
    ii open-xchange-calendar 6.16.1.0-3
    ii open-xchange-calendar-printing 6.16.1.0-3
    ii open-xchange-charset 6.16.1.0-3
    ii open-xchange-common 6.16.1.0-3
    ii open-xchange-configread 6.16.1.0-3
    ii open-xchange-contactcollector 6.16.1.0-3
    ii open-xchange-control 6.16.1.0-3
    ii open-xchange-conversion 6.16.1.0-3
    ii open-xchange-conversion-engine 6.16.1.0-3
    ii open-xchange-conversion-servlet 6.16.1.0-3
    ii open-xchange-crypto 6.16.1.0-3
    ii open-xchange-data-conversion-ical4j 6.16.1.0-3
    ii open-xchange-dataretention 6.16.1.0-3
    ii open-xchange-genconf 6.16.1.0-3
    ii open-xchange-genconf-mysql 6.16.1.0-3
    ii open-xchange-global 6.16.1.0-3
    ii open-xchange-group-managerequest 6.16.1.0-3
    ii open-xchange-gui 6.16.1.0-3
    ii open-xchange-gui-themes-default 6.16.1.0-3
    ii open-xchange-gui-wizard-plugin 6.16.1.0-3
    ii open-xchange-gui-wizard-plugin-gui 6.16.1.0-3
    ii open-xchange-i18n 6.16.1.0-3
    ii open-xchange-imap 6.16.1.0-3
    ii open-xchange-jcharset 1.3.0-63
    ii open-xchange-mailfilter 6.16.1.0-3
    ii open-xchange-management 6.16.1.0-3
    ii open-xchange-messaging 6.16.1.0-3
    ii open-xchange-messaging-facebook 6.16.1.0-3
    ii open-xchange-messaging-generic 6.16.1.0-3
    ii open-xchange-messaging-json 6.16.1.0-3
    ii open-xchange-messaging-rss 6.16.1.0-3
    ii open-xchange-messaging-twitter 6.16.1.0-3
    ii open-xchange-meta-admin 6.16.1.0-3
    ii open-xchange-meta-gui 6.16.1.0-3
    ii open-xchange-meta-messaging 6.16.1.0-3
    ii open-xchange-meta-pubsub 6.16.1.0-3
    ii open-xchange-meta-server 6.16.1.0-3
    ii open-xchange-meta-singleserver 6.16.1.0-3
    ii open-xchange-monitoring 6.16.1.0-3
    ii open-xchange-online-help-de 6.16.1.0-3
    ii open-xchange-online-help-en 6.16.1.0-3
    ii open-xchange-online-help-fr 6.16.1.0-3
    ii open-xchange-passwordchange-database 6.16.1.0-3
    ii open-xchange-passwordchange-servlet 6.16.1.0-3
    ii open-xchange-pop3 6.16.1.0-3
    ii open-xchange-publish 6.16.1.0-3
    ii open-xchange-publish-basic 6.16.1.0-3
    ii open-xchange-publish-infostore-online 6.16.1.0-3
    ii open-xchange-publish-json 6.16.1.0-3
    ii open-xchange-publish-microformats 6.16.1.0-3
    ii open-xchange-push 6.16.1.0-3
    ii open-xchange-push-udp 6.16.1.0-3
    ii open-xchange-report-client 6.16.1.0-3
    ii open-xchange-resource-managerequest 6.16.1.0-3
    ii open-xchange-server 6.16.1.0-3
    ii open-xchange-sessiond 6.16.1.0-3
    ii open-xchange-settings-extensions 6.16.1.0-3
    ii open-xchange-smtp 6.16.1.0-3
    ii open-xchange-spamhandler-default 6.16.1.0-3
    ii open-xchange-sql 6.16.1.0-3
    ii open-xchange-subscribe 6.16.1.0-3
    ii open-xchange-subscribe-crawler 6.16.1.0-3
    ii open-xchange-subscribe-json 6.16.1.0-3
    ii open-xchange-subscribe-microformats 6.16.1.0-3
    ii open-xchange-templating 6.16.1.0-3
    ii open-xchange-themes-default 6.16.1.0-3
    ii open-xchange-threadpool 6.16.1.0-3
    ii open-xchange-twitter 6.16.1.0-3
    ii open-xchange-unifiedinbox 6.16.1.0-3
    ii open-xchange-user-json 6.16.1.0-3
    ii open-xchange-xerces-sun 6.16.1.0-3
    ii open-xchange-xml 6.16.1.0-3



    # /opt/open-xchange/sbin/listbundles
    com.openexchange.control.console.internal.ConsoleE xception: 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:
    java.net.ConnectException: Connection refused]
    at com.openexchange.control.console.AbstractConsoleHa ndler.init(AbstractConsoleHandler.java:112)
    at com.openexchange.control.console.ListBundles.<init >(ListBundles.java:74)
    at com.openexchange.control.console.ListBundles.main( ListBundles.java:112)
    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:
    java.net.ConnectException: Connection refused]
    at javax.management.remote.rmi.RMIConnector.connect(R MIConnector.java:342)
    at javax.management.remote.JMXConnectorFactory.connec t(JMXConnectorFactory.java:267)
    at com.openexchange.control.console.AbstractJMXHandle r.initJMX(AbstractJMXHandler.java:151)
    at com.openexchange.control.console.AbstractConsoleHa ndler.init(AbstractConsoleHandler.java:110)
    ... 2 more
    Caused by: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
    java.net.ConnectException: Connection refused]
    at com.sun.jndi.rmi.registry.RegistryContext.lookup(R egistryContext.java:118)
    at com.sun.jndi.toolkit.url.GenericURLContext.lookup( GenericURLContext.java:203)
    at javax.naming.InitialContext.lookup(InitialContext. java:409)
    at javax.management.remote.rmi.RMIConnector.findRMISe rverJNDI(RMIConnector.java:1902)
    at javax.management.remote.rmi.RMIConnector.findRMISe rver(RMIConnector.java:1871)
    at javax.management.remote.rmi.RMIConnector.connect(R MIConnector.java:276)
    ... 5 more
    Caused by: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
    java.net.ConnectException: Connection refused
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEnd point.java:619)
    at sun.rmi.transport.tcp.TCPChannel.createConnection( TCPChannel.java:216)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCP Channel.java:202)
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java: 340)
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    at com.sun.jndi.rmi.registry.RegistryContext.lookup(R egistryContext.java:114)
    ... 10 more
    Caused by: java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(Abstrac tPlainSocketImpl.java:310)
    at java.net.AbstractPlainSocketImpl.connectToAddress( AbstractPlainSocketImpl.java:176)
    at java.net.AbstractPlainSocketImpl.connect(AbstractP lainSocketImpl.java:163)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.j ava:381)
    at java.net.Socket.connect(Socket.java:541)
    at java.net.Socket.connect(Socket.java:490)
    at java.net.Socket.<init>(Socket.java:387)
    at java.net.Socket.<init>(Socket.java:201)
    at sun.rmi.transport.proxy.RMIDirectSocketFactory.cre ateSocket(RMIDirectSocketFactory.java:40)
    at sun.rmi.transport.proxy.RMIMasterSocketFactory.cre ateSocket(RMIMasterSocketFactory.java:146)
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEnd point.java:613)
    ... 15 more


    # ps axf | grep open-xchange
    22586 pts/0 S+ 0:00 \_ grep open-xchange
    10322 ? Sl 0:04 /usr/bin/java -Xms100m -Xmx100m -XX:+UseConcMarkSweepGC -XX:NewSize=50m -XX:MaxNewSize=50m -XX:SurvivorRatio=6 -Djava.net.preferIPv4Stack=true -Dopenexchange.propdir=/opt/open-xchange/etc/admindaemon -Dopenexchange.propdir2=/opt/open-xchange/etc/common -Dconfigdir=/opt/open-xchange/etc/admindaemon -Djava.util.logging.config.file=/opt/open-xchange/etc/admindaemon/file-logging.properties -Duser.timezone=GMT -Dlibdir=/opt/open-xchange/bundles/com.openexchange.common/lib -jar /opt/open-xchange/bundles/org.eclipse.osgi_3.3.0.v20070530.jar -configuration file:/opt/open-xchange/etc/admindaemon/osgi/
    Last edited by jmoseby; 05-07-2010, 04:58 PM.

  • #2
    would like to add that updating a installed OX to ubuntu 10.4 LTS also results in this error.

    Comment


    • #3
      Bump

      Sorry for bumping this. Doesn't anyone have any advice with regards to this error?

      JM

      Comment


      • #4
        Hi,

        can you please check the logfiles of open-xchange-admin and open-xchange-groupware after starting them? You could post relevant sections for debugging.

        Thanks

        Comment


        • #5
          Hi Martin - thanks for the reply.

          Find attached the open-xchange-admin logfile. It is the only logfile in /var/log/open-xchange that is not 0 bytes.

          Code:
          # ls /var/log/open-xchange/ -l
          total 12
          -rw------- 1 root root     0 2010-05-12 08:29 open-xchange-admin-console.log
          -rw------- 1 root root 10725 2010-05-12 08:29 open-xchange-admin.log.0
          -rw------- 1 root root     0 2010-05-12 08:29 open-xchange-admin.log.0.lck
          Attempting to start open-xchange-groupware seems to go well, but it doesn't really start.

          Code:
          # /etc/init.d/open-xchange-groupware start
          Starting Open-Xchange Groupware: open-xchange-groupware.
          #
          Thanks again for your help.

          JM
          Attached Files

          Comment


          • #6
            Hi,

            admindaemon starts up fine, but the groupware does not. Are there any other log files?

            e.h. open-xchange.log.0, open-xchange-console.log, osgi.log etc.

            It's normal that the initscript just returns the startup info and returns to the shell. We don't log anything to the console, all to log files.

            By the way, please use SUN or IBM Java 1.5 or 1.6, OpenJDK is *not* supported.

            Greetings
            Last edited by Martin Heiland; 05-12-2010, 04:37 PM.

            Comment


            • #7
              Originally posted by Martin Braun View Post
              Hi,

              admindaemon starts up fine, but the groupware does not. Are there any other log files?

              e.h. open-xchange.log.0, open-xchange-console.log, osgi.log etc.
              The only logfiles are those listed above. There is a console log, but it is 0 bytes.


              Originally posted by Martin Braun View Post
              By the way, please use SUN or IBM Java 1.5 or 1.6, OpenJDK is *not* supported.
              I have made the change:
              Code:
              # java -version
              java version "1.6.0_20"
              Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
              Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)
              ...but still no change in result. listbundles still crashes with the above exception.

              Thanks!
              Jim

              Comment


              • #8
                Well obviously listbundles cannot work since the groupware process has not been started. Make sure user "open-xchange" has proper access permissions to the log directory and /opt/open-xchange. Without any logfiles regarding the groupware daemon, there is not much debugging i can help with.

                Comment


                • #9
                  Originally posted by Martin Braun View Post
                  Well obviously listbundles cannot work since the groupware process has not been started.
                  There cannot be enough said for meaningful error messages. For instance, instead of listbundles crashing in a fiery display of java-exception meltdown, a message like: "Could not contact the open-xchange-groupware process, is it running?" would be more helpful.

                  Originally posted by Martin Braun View Post
                  Make sure user "open-xchange" has proper access permissions to the log directory and /opt/open-xchange. Without any logfiles regarding the groupware daemon, there is not much debugging i can help with.
                  The log directory:
                  Code:
                  drwxr-x--- 2 open-xchange open-xchange    4096 2010-05-12 08:38 open-xchange
                  The /opt/open-xchange/ directory:
                  Code:
                  # ls -l /opt/open-xchange/
                  total 28
                  drwxr-xr-x 8 open-xchange open-xchange 4096 2010-05-12 08:29 bundles
                  drwxr-xr-x 5 open-xchange open-xchange 4096 2010-05-07 09:23 etc
                  drwxr-xr-x 2 open-xchange open-xchange 4096 2010-05-07 09:23 i18n
                  drwxr-xr-x 2 open-xchange open-xchange 4096 2010-05-07 09:23 importCSV
                  drwxr-xr-x 2 open-xchange open-xchange 4096 2010-05-07 09:23 lib
                  drwxr-xr-x 2 open-xchange open-xchange 4096 2010-05-07 09:23 sbin
                  drwxr-xr-x 2 open-xchange open-xchange 4096 2010-05-07 09:23 templates
                  Thanks again for all your help. I am trying to evaluate whether OX is a viable candidate to replace Novell Groupwise in my company.

                  Jim

                  Comment


                  • #10
                    I agree that meaningful error messages are more helpful. But "raw" error messages can usually help finding the issue easier in many cases, especially if they occur on system administrator level.

                    However, the root cause is that the groupware is not starting, lets focus on this. Is there any hsperf* file/directory at /tmp? Seems like the JVM cannot be initialized at all, maybe crashes before starting any logging service.

                    Probably an issue with the start script, Ubuntu is not officially supported yet. Mybulk's post indicates that this *might* be an incompatibility with current Ubuntu version or OX packages. If you want to use it in production i highly advise using Debian, SLES or RHEL.

                    Gonna forward this thread to some other people who might know better about the startup scripts and OS/shell compatibility.

                    Comment


                    • #11
                      Originally posted by Martin Braun View Post
                      However, the root cause is that the groupware is not starting, lets focus on this. Is there any hsperf* file/directory at /tmp? Seems like the JVM cannot be initialized at all, maybe crashes before starting any logging service.
                      Yes, there is:
                      Code:
                      drwx--x--x 2 root    root    4096 2010-05-13 08:40 hsperfdata_root
                      Originally posted by Martin Braun View Post
                      Probably an issue with the start script, Ubuntu is not officially supported yet. Mybulk's post indicates that this *might* be an incompatibility with current Ubuntu version or OX packages. If you want to use it in production i highly advise using Debian, SLES or RHEL.
                      OK - I may be able to set up a Debian test box to get on with my evaluation. If you are interested in continuing to troubleshoot this issue for the sake of other Ubuntu users, I'll be happy to help. I would think that officially supporting Ubuntu would be high on the list for OX, since Ubuntu seems to be the favorite linux flavor these days.

                      Originally posted by Martin Braun View Post
                      Gonna forward this thread to some other people who might know better about the startup scripts and OS/shell compatibility.
                      Great. Thanks again.

                      Jim

                      Comment


                      • #12
                        please add

                        Code:
                        -Djava.net.preferIPv4Stack=true
                        to the parameters of JAVA_XTRAOPTS in

                        Code:
                        /opt/open-xchange/etc/groupware/ox-scriptconf.sh
                        E.g.:

                        Code:
                        JAVA_XTRAOPTS="-Xms512m -Xmx512m -XX:+UseConcMarkSweepGC -XX:NewSize=256m -XX:MaxNewSize=256m -XX:SurvivorRatio=6 -Djava.net.preferIPv4Stack=true"
                        and try again

                        Comment

                        Working...
                        X