1 2 Previous Next 16 Replies Latest reply on May 11, 2009 3:29 PM by 807574

    Convergence - IM - Offline

    807574
      Hi guys...

      I have installed convergence JCS 6 UPDATE 1...all my components are working great except for the IM for convergence !!!

      when I login to convergence the IM goes to "available" status...so far so good....but after a certain period off time (random) it goes "Offline" , the email, calendar, address book etc..keep continue working as normal

      so i have to put back the IM to available again....so then after a random period goes Offline again !!

      do you know what can cause this problem ?
      the logs does not indicate anything, and the random time can go from 10 sec to hours.....


      thanks a lot guys !!
        • 1. Re: Convergence - IM - Offline
          807574
          KenGra wrote:
          when I login to convergence the IM goes to "available" status...so far so good....but after a certain period off time (random) it goes "Offline" , the email, calendar, address book etc..keep continue working as normal
          Are you using port 5269 for Convergence httpbind => IM XMPP access. You can verify this by checking the "default.hosts" option in the "/opt/sun/comms/iwc/config/httpbind.conf" configuration file.

          If you are already using port 5269, another option would be to upgrade to the latest Convergence release (patch -07) and see if that helps. You can upgrade by downloading Communication Suite 6 update 2 and running the "commpkg upgrade" command:

          http://wikis.sun.com/display/CommSuite6U2/Get+the+Software

          Regards,

          Shane.
          • 2. Re: Convergence - IM - Offline
            807574
            ok...I am installing the new version, I'll update you when done !!

            thanks lot
            • 3. Re: Convergence - IM - Offline
              807574
              I finished installing the new update..."update 2"

              so far i dont see any change in the IM behavior, keep going offline after a random period of time...

              after the installation, I noticed that all my customization (layout, colors, etc..) for convergence are gone so i need to implement them again together with the configuration...

              this suppose to be a patch (fix) and we should NOT have to re-configure the components again, i dont see myself doing this once the system is in production,

              is it this re-configuration normal after and update release, or i am doing something wrong ?
              • 4. Re: Convergence - IM - Offline
                807574
                KenGra wrote:
                so far i dont see any change in the IM behavior, keep going offline after a random period of time...
                Excellent. This is a good start.
                after the installation, I noticed that all my customization (layout, colors, etc..) for convergence are gone so i need to implement them again together with the configuration...
                Did you install (commpkg install) or upgrade (commpkg upgrade)? Also were the lost changes just for the login page itself or also for the actual interface?
                this suppose to be a patch (fix) and we should NOT have to re-configure the components again, i dont see myself doing this once the system is in production,
                Patching Convergence doesn't change the <app-server base>/docroot/iwc_static/c11n/ directory. Are all your customizations located under that directory or have you manually modified any of the files in <app-server base>/docroot/iwc_static/layout or <app-server base>/docroot/iwc_static/js ??
                is it this re-configuration normal after and update release, or i am doing something wrong ?
                I've patched on several occasions and not hit this problem. Did you see any error messages or problems in the commpkg logs?

                Are you sure the "c11n" service is enabled -- you can see a list of services that are enabled in the URL path when you access the Convergence login page e.g.
                http://server.aus.sun.com/iwc_static/layout/login.html?lang=en&7.01_131001&svcs=abs,im,mail,calendar,c11n?

                Regards,

                Shane.
                • 5. Re: Convergence - IM - Offline
                  807574
                  hi Shane

                  I used "*commpkg upgrade*" to upgrade Convergence & IM

                  the the lost changes were for login page (since i have 2 domains and each has a different look and feel)...also the changes in the interface, we modified the interface so the user can only choose between 2 colors :)

                  the URL of my login page is:

                  login_company.html?lang=en-us&7.01_125300&svcs=im,calendar,mail,abs,c11n

                  some of the changes that were lost, were the settings of convergence to take the domain from the URL and based on that choose the "iwc_static/layout/login.htm" page

                  I saw that IM client is depreciated in this version....do you know where is SUN going w this ? we'are thinking about using Pidgin as IM client

                  what about the IM behavior, keep going offline after a random period of time, any idea ?...we'are using the port 5269 (the default one)

                  the IM client seems to be stable


                  thanks a lot for your time and sharing knowledge.
                  • 6. Re: Convergence - IM - Offline
                    807574
                    KenGra wrote:
                    the the lost changes were for login page (since i have 2 domains and each has a different look and feel)...
                    I suspected this was the case. In early versions of Convergence there was no way to customise the login page and not lose those customisations post-upgrade which is why I added "Modifications to the login page will be overwritten when a patch or update is applied in the future. Any changes should be therefore be recorded so they can be re-applied if required" to the following example:

                    http://wikis.sun.com/display/CommSuite/Modifying+Login+Page+Welcome+Message

                    As part of addressing RFE #6743365 - "Provide mechanism to allow for per-domain customized login pages based on login URL" additional parameters were added to Convergence.

                    Default login page location: iwcadmin -w <pwd> -o client.loginpage -v "/iwc_static/layout/login.html"
                    Per-domain login page location: iwcadmin -w <pwd> -o client.{mydomain.com}.loginpage -v "<location>"

                    So if you wanted to have a custom login page for http://something.mydomain.com/iwc/ you could copy the <app_server_base>/iwc_static/layout/login.html to <app_server_base>/layout/login-mydomain.html and set:

                    iwcadmin -w <pwd> -o client.{mydomain.com}.loginpage -v "/iwc_static/layout/login-mydomain.html"
                    also the changes in the interface, we modified the interface so the user can only choose between 2 colors :)
                    Which file(s) did you modify to make this change and were they under the c11n directory? The steps to customize a theme are discussed here:

                    http://wikis.sun.com/display/CommSuite/Customizing+the+Convergence+Theme

                    As per one of the comments, to remove a theme:
                    <snip>
                    add
                    iwc.api.removeTheme("theme name to be remoed"); to the
                    <appserverDocRoot>/iwc_static/c11n/allDomain/js/widget/Banner.js
                    just below the text
                    this.themeColor"theme name" = "#FF00FF";
                    </snip>
                    the URL of my login page is:

                    login_company.html?lang=en-us&7.01_125300&svcs=im,calendar,mail,abs,c11n

                    some of the changes that were lost, were the settings of convergence to take the domain from the URL and based on that choose the "iwc_static/layout/login.htm" page
                    As mentioned earlier, this functionality is now built-into Convergence.
                    I saw that IM client is depreciated in this version....do you know where is SUN going w this ? we'are thinking about using Pidgin as IM client
                    Pidgin is used extensively within Sun... that is all I can say on this subject.
                    what about the IM behavior, keep going offline after a random period of time, any idea ?...we'are using the port 5269 (the default one)
                    Are you by chance using any kind of http proxy between your browser and the app-server?

                    I have just seen another report of this particular behaviour so this is going to require some more research.

                    Regards,

                    Shane.
                    • 7. Re: Convergence - IM - Offline
                      807574
                      Hi Shane,

                      I have documented all the modification we did to the interface, so we can apply them again without problem, it's just that when we'll be in production, making these changes after every patch it is not the most desirable situation since the windows time for service unavailability is limited...

                      about the proxy, yes I recently installed a proxy dedicated to convergence since we needed

                      1. URL rewriting (from http://company.com/  to http://company.com/iwc)
                      2. 2 SSL certificates (one per domain) using name-based virtual host to detect the domain and present the right SSL certificate
                      3. we needed to redirect user from port 80 to 443
                      4. to protect access to /amserver, /amconsole, /da etc... from the outsite...the proxy will rewrite those URL to /iwc
                      5. proxy is apache 2,

                      the proxy is apache 2 and it is NOT busy at all, since i am the only one making the test right now....

                      I am not 100% sure, but I think I see this behavior before installing the proxy...


                      do you think the proxy has something to do w this?

                      let me know how can i help you in your research !!

                      thanks a lot again !!
                      • 8. Re: Convergence - IM - Offline
                        807574
                        KenGra wrote:
                        I am not 100% sure, but I think I see this behavior before installing the proxy...
                        The only way to make sure would be to access Convergence without the proxy (i.e. direct) and see if the problem persists.

                        The IM Convergence client relies on "long-lived" http posts to achieve the "always-connected" functionality. I'm not sure how well the apache proxy will handle this.

                        You could try increasing/decreasing the time of these posts to see whether that helps by editing the /opt/sun/comms/iwc/config/httpbind.conf file and modifying the "httpbind.wait_time" parameter (40 seconds is the default).

                        The settings are discussed here:

                        http://wikis.sun.com/display/CommSuite/Instant+Messaging+XMPP+And+HTTP+Gateway+Configuration+Parameters+in+httpbind.conf

                        NB: Convergence uses the HTTP gateway provided by the IM team.

                        Regards,

                        Shane.
                        • 9. Re: Convergence - IM - Offline
                          807574
                          Hi Shane..

                          this is an update about the IM offline status....for what i see in the log of the proxy...every time the IM Convergence pass from "Available" to "Offline" without reason I see the following log in the our proxy

                          [Fri May 08 12:15:37 2009] [error] [client 192.168.2.1] (70014)End of file found: proxy: error reading status line from remote server webmail2.domain.com, referer: https://webmail2.domain.com/iwc_static/layout/main.html?lang=en&7.01_125300&

                          [Fri May 08 12:15:37 2009] [error] [client 192.168.2.1] proxy: Error reading from remote server returned by _/iwc/svc/xmpp_, referer: https://webmail2.domain.com/iwc_static/layout/main.html?lang=en&7.01_125300&

                          similar errors are seen in the IM logs

                          # tail -f /var/svc/log/application-sunim:default.log
                          *[Fatal Error] :1:1: Premature end of file.*


                          have you found similar behavior with other users ?

                          thanks a lot
                          • 10. Re: Convergence - IM - Offline
                            808160
                            Hi,
                            Could you also please check for any errors in the httpbind.log and post the same.You can find httpbind.log in /var/opt/sun/comms/iwc/logs directory

                            Regards,
                            Swetha
                            • 11. Re: Convergence - IM - Offline
                              807574
                              there is not logs around that time in httpbind.log or iwc.log........can it be something that the browser does not understand in the protocole xmpp at some point?
                              • 12. Re: Convergence - IM - Offline
                                808160
                                It's strange,i guess it shouldn't be a browser issue.However did you try connecting to Convergence directly(without proxy) as Shane suggested ?
                                Do you see the same behaviour in that case ?
                                Also please see if there are any errors/exceptions in Appserver logs and post if any.

                                Thanks,
                                Swetha
                                • 13. Re: Convergence - IM - Offline
                                  807574
                                  OK...I'll try to get the log of the app server !! I will post them ASAP

                                  for the proxy...unfortunately the proxy is something that we must implement to resolve other issues like

                                  1. URL rewriting (from http://company.com/ to http://company.com/iwc)
                                  2. 2 SSL certificates (one per domain) using name-based virtual host to detect the domain and present the right SSL certificate
                                  3. we needed to redirect user from port 80 to 443
                                  4. to protect access to /amserver, /amconsole, /da etc... from the outsite...the proxy will rewrite those URL to /iwc


                                  I changed the keepalive timeout of the proxy to 8 hours :) it works fine....after 8 hours will finish the IM Convergence and it will log it properly

                                  [Fri May 08 00:41:44 2009] [error] [client 192.168.2.1] (70007)*The timeout specified has expired:* proxy: error reading status line from remote server webmail2.domain.com, referer: https://webmail2.domain.com/iwc_static/layout/main.html?lang=en-us&7.01_125300&

                                  I'll update this post as soon as i have the logs

                                  thanks guys
                                  • 14. Re: Convergence - IM - Offline
                                    807574
                                    KenGra wrote:
                                    OK...I'll try to get the log of the app server !! I will post them ASAP
                                    Please also increase the logging level for the httpbind gateway by editing the /opt/sun/comms/iwc/config/httpbind_log4j.conf configuration file and setting the following:
                                    log4j.rootLogger=ON
                                    log4j.logger.httpbind=DEBUG, A7
                                    You will need to restart the App-Server process for the change to be activated.
                                    for the proxy...unfortunately the proxy is something that we must implement to resolve other issues like
                                    This may be so but we still need to know whether the problem is reproducible without the proxy.
                                    I'll update this post as soon as i have the logs
                                    There is a known issue that you may be hitting:

                                    bug #6820150 - "IM Client stops polling after server sends Syntax Error".

                                    After enabling DEBUG logging, see notice an error such as the following in your httpbind.log file:
                                    <body type='terminate' condition='undefined-condition' xmlns='http://jabber.org/protocol/httpbind'>Syntax Error</body>,
                                    error : <body type='terminate' condition='undefined-condition' xmlns='http://jabber.org/protocol/httpbind'>Syntax 
                                    Error</body>
                                    Regards,

                                    Shane.
                                    1 2 Previous Next