HOW TO: Upgrade Openfire to 3.6.4 on Elastix 2.0

Discussion in 'General' started by williamfay, Sep 18, 2010.

  1. williamfay

    Joined:
    Sep 12, 2010
    Messages:
    13
    Likes Received:
    0
    As many of you have noticed, if you upgrade your Openfire to 3.6.4 you get "popped" out of the Elastix Admin Console. This is because in the newer versions Openfire has put a frame buster on the login.jsp page. Below is the fix and the upgrade instructions.

    First Let's get the Openfire 3.6.4 rpm. putty to the server or use the command prompt to type:

    /etc/init.d/openfire stop

    wget download.igniterealtime.org/openfire/openfire-3.6.4-1.i386.rpm

    rpm -Uvh openfire-3.6.4-1.i386.rpm

    Now we have to get some files moved around. I'll let you pick the best method to do this. I personally use FTP because I hate the command line method. If you have questions on how to FTP to your server just ask and I'll show the settings I use.

    Navigate to opt\openfire\plugins\admin\webapp\WEB-INF\lib\
    Inside this folder is a file called admin-jsp.jar
    Make a backup of it.
    Replace it with this file.
    http://www.ur-biz.net/openfire/admin-jsp.jar

    Go back to the command prompt or putty and type:

    /etc/init.d/openfire start

    Done ---- BIG THANK YOU to LG (An Openfire Contributor) for removing the code and compiling the .jar file for me.

    Link to the original conversation:
    http://community.igniterealtime.org/message/206362
     
  2. williamfay

    Joined:
    Sep 12, 2010
    Messages:
    13
    Likes Received:
    0
    Has anyone else been able to do this? If you install the fix and it works please post here too. Let's try and get Openfire 3.6.4 added to the official 2.0 release
     
  3. williamfay

    Joined:
    Sep 12, 2010
    Messages:
    13
    Likes Received:
    0
    Found a bug and seeing if I can't get anything worked out with LG. I'll let you guys know where it goes. But something in the new file produces errors when trying to access the create new user screen, create new room, or edit room settings. Everything else seems to be working fine. Will keep everyone posted!

    Sorry for any pre-emptive excitement on a FIX! Had tested most of it and went to add a user today to see errors.

    Replaced with my backup and everything works again after I restart Openfire (except the frame buster is back in place obviously). Will work hard to see a resolution to this.
     
  4. williamfay

    Joined:
    Sep 12, 2010
    Messages:
    13
    Likes Received:
    0
    Fixed. The file had been compiled with some beta code. It has been fixed by just updating the one file that needed edited. (login_jsp.class) Have fun! The links above now point to the working admin-jsp.jar file you need to get 3.6.4 to work in Elastix 2.0...

    Also, these instructions could probably be used for previous versions however I have not tested it on other versions.
     
  5. Oosthuizen

    Joined:
    Jun 22, 2010
    Messages:
    59
    Likes Received:
    0
    hello William
    I'm afraid it still does not work i get a JAva exception error
    what did you do to get it to work
     
  6. williamfay

    Joined:
    Sep 12, 2010
    Messages:
    13
    Likes Received:
    0
    How about you tell me the step by step process you did and I can see where you went wrong if at all. All the steps I took are listed in the first post aside from the actual moving, copying, and pasting of files. That's mainly because I don't know the commands some would use to do them, because I used Dreamweaver to FTP to my Elastix Server
     
  7. Oosthuizen

    Joined:
    Jun 22, 2010
    Messages:
    59
    Likes Received:
    0
    Thank you
    i will give at another try, and make sure i do it as you discribed
     
  8. epritchett

    Joined:
    Aug 13, 2010
    Messages:
    3
    Likes Received:
    0
    This worked for me. Thanks.
     
  9. dgolubev

    Joined:
    Nov 25, 2010
    Messages:
    2
    Likes Received:
    0
    Link "wget download.igniterealtime.org/openfire/openfire-3.6.4-1.i386.rpm"

    is not corrent (unable to resolve host download.igniterealtime.org)
     
  10. Oosthuizen

    Joined:
    Jun 22, 2010
    Messages:
    59
    Likes Received:
    0
    Hello William

    Thank you for all your help so far we really appreciate it
    i tried your download link but it did not work
    i did some debugging and found the correct link

    your link
    wget download.igniterealtime.org/openfire/openfire-3.6.4-1.i386.rpm

    link that i downloaded from
    wget igniterealtime.org/downloadServlet?filename=openfire/openfire-3.6.4-1.i386.rpm

    regards
    kobus
     
  11. williamfay

    Joined:
    Sep 12, 2010
    Messages:
    13
    Likes Received:
    0
    That link will work as well but keep in mind that since it has parameters in it that the file name will usually now show up exactly as the rest of the directions assume it will.. Genereally you get part of the parameter added to the name. That's why I had hunted out that other download link. Let me know how it works or any extra steps needed using that url and I'll update the post
     
  12. Hammad

    Joined:
    May 19, 2009
    Messages:
    9
    Likes Received:
    0
    It worked for me and here what I did exactly:

    Download the latest openfire rpm package
    #wget http://www.igniterealtime.org/downloadS ... 1.i386.rpm

    rename the downloaded package
    #mv downloadServlet?filename=openfire/openfire-3.6.4-1.i386.rpm openfire-3.6.4-1.i386.rpm

    upgrade openfire
    #rpm -Uvh openfire-3.6.4-1.i386.rpm

    downloaded the java files
    #wget http://www.igniterealtime.org/downloadS ... 6_4.tar.gz

    untar
    #tar -xzvf openfire_3_6_4.tar.gz

    rename the old openfire folder
    #mv /opt/openfire /opt/openfireBackup

    move the new openfire folder
    #mv openfire /opt

    I used WinSCP to change the permission and ownership for all this folder and all sub folders/files to 0644 and daemon

    now stop openfire and put www.ur-biz.net/openfire/admin-jsp.jar file in opt\openfire\plugins\admin\webapp\WEB-INF\lib\ by using WinSCP or command
    #/etc/init.d/openfire stop
    #cd /opt/openfire/plugins/admin/webapp/WEB-INF/lib/
    #mv admin-jsp.jar admin-jspBackup.jar
    #wget www.ur-biz.net/openfire/admin-jsp.jar
    #chmod 0644 admin-jsp.jar
    #chown admin-jsp.jar daemon
    #/etc/init.d/openfire start

    If you login to openfire for the first time and setup new username and password but you can't login (receiving username and password is not correct) just restart openfire
    #/etc/init.d/openfire stop
    #/etc/init.d/openfire start
    and try again.


    If you need any further assistance check openfire website, it's very helpful.


    thanks,
     
  13. jessie

    Joined:
    Sep 17, 2008
    Messages:
    124
    Likes Received:
    0
    Hi Hammad,

    Step by step, i carefully followed your procedure. Unfortunately i didn't get the same result. After the upgrade, i can't access the openfire on or off the elastix, i.e. http://my.ip:9090/index.jsp, so I tried to restart the openfire with:
    #/etc/init.d/openfire stop
    #/etc/init.d/openfire start

    What I am getting is shown below:

    ls: /usr/java/j*: No such file or directory
    Error: JAVA_HOME is not defined correctly.
    Can not sure execute /bin/java.

    And since I am not very good in these part, can you help me or share some idea how to fix this?


    Best regards,

    Jessie
     
  14. JeckFS

    Joined:
    Aug 6, 2010
    Messages:
    68
    Likes Received:
    0
    in target directory i see jar.pack files what does it mean? and what i have to do to update openfire?
     
  15. JeckFS

    Joined:
    Aug 6, 2010
    Messages:
    68
    Likes Received:
    0
    Starting openfire: sh: /opt/openfire/logs/nohup.out: Permission denied
     
  16. jessie

    Joined:
    Sep 17, 2008
    Messages:
    124
    Likes Received:
    0
    Hi JeckFS,

    Let me share here the procedure i'd done. This is from Elastix 2.0.3 and the Elastix 2.0.4 beta. It works very well in my side.

    Download the latest openfire rpm package
    #wget http://www.igniterealtime.org/downloadS ... 1.i386.rpm

    rename the downloaded package
    #mv downloadServlet?filename=openfire/openfire-3.7.0-1.i386.rpm openfire-3.7.0-1.i386.rpm

    rename the old openfire folder
    #mv /opt/openfire /opt/openfireBackup

    upgrade openfire
    #rpm -Uvh openfire-3.7.0-1.i386.rpm

    move the new openfire folder
    #mv openfire /opt

    I used WinSCP to change the permission and ownership for all this folder and all sub folders/files to 0644 and daemon

    now stop openfire and put http://www.ur-biz.net/openfire/admin-jsp.jar file in opt/openfire/plugins/admin/webapp/WEB-INF/lib/ by using WinSCP or command
    #/etc/init.d/openfire stop
    #cd /opt/openfire/plugins/admin/webapp/WEB-INF/lib/
    #mv admin-jsp.jar admin-jspBackup.jar
    #wget http://www.ur-biz.net/openfire/admin-jsp.jar
    #chmod 0644 admin-jsp.jar
    #chown daemon:daemon admin-jsp.jar
    #/etc/init.d/openfire restart

    Let me know if you got any trouble with your Openfire.


    Cheers!
     
  17. JeckFS

    Joined:
    Aug 6, 2010
    Messages:
    68
    Likes Received:
    0
    Thanks, we did it! But, in my case we have issue with version 3.7.0, it is a bug with Russian language messages, so we turn to 3.6.4
     
  18. dguinn

    Joined:
    Jan 14, 2011
    Messages:
    9
    Likes Received:
    0
    I had to install java (yum install java), and then modify the startup script in /etc/init.d (remark out all the JAVA_HOME if statement, and just code JAVA_HOME="/usr")

    the JRE that came with the RPM showed as a non-elf package on mine, with two different downloads.
     
  19. Oosthuizen

    Joined:
    Jun 22, 2010
    Messages:
    59
    Likes Received:
    0
    thank you friend
    i will give it a try
     
  20. fmvillares

    Joined:
    Sep 8, 2007
    Messages:
    1,785
    Likes Received:
    0
    Re: Re:HOW TO: Upgrade Openfire to 3.6.4 on Elastix 2.0

    ..join the new list asterisk-biz-hands-on in google groups where all the gurus here are going after dickos departure...
     

Share This Page