powered by Jive Software

Localhost and openfire

I need some help with the steps it takes to be able to get to the admin page away from the localhost:9090 way.

I have install Openfire on a Linux server because I wanted a server that I didn’t have to worry about having a monitor connected to it to be able to do the things that need to be done with it, and so far it has worked out fine, untill I wanted to start checking out openfire and it wants you to be at that computer and go to localhost:9090 to be able to configure the thing. I have done some searches in the forums about this and it seems like I am not the only one that is going through this. The steps that others have said to try didn’t work. So does anyone know how else to get to the admin page so it can be setup through the web browser. I did even try Link but from what I have read someone else trying that it doesn’t support java so that didn’t work. This Linux server is a webserver so the other things I am doing with it I can do what I want through Firefox or another browser execpt Openfire.

Any help with this would be great. Also if someone on the dev team for Openfire please fix this issure to where someone has to be at that box to get to the admin page. I do have another program that I have to say use port 1000 to get to its admin page but I can do that from where ever on my network. Just a thought for the Dev team to look into getting this snag fixed.

What exactly is your problem?

If are not able to connect locally to openfire setup, this can be done from everywhere in the Internet. Just check your firewall and open ports 9090 and 9091. The type http://yourserverdomain.com:9090 into your browser.

(I’am running an openfire server which I only can reach by an SSH connection. This is really no problem!)

Coolcat

D2, welcome to the community

Well, our days there cant be any service which cant be administrated remotely. Openfire supports it like all others do. So there is no need for devs to fix anything. We shall investigate and find the cause of your problem.

So. Is it a local network you has your server on? I think you can always reach Administration Console using IP. E.g. 192.168.12.200:9090 Of course if no firewall (e.g. iptables) is not blocking you at this server. You can also use some server name instead of numbers, but you will have to make that name recognizable in your network (DNS, hosts files).

Yes I am trying to connect to the admin page through a local area network. The internal IP of the box is 192.168.1.5 and I have tried to do 192.168.1.5:9090 and I get back page can not be found. I am running Winmin and I have to use the :10000 to get to it and it works, I don’t have to have that configured in my firewall to connect to it if I am on this side of my firewall. But I have put in the holes now for :9090 and 9091 and it still wont let me get to it, page not found. I do have dtwo.homelinux.com going to that box and if I do :9090 it says page can’t be found. If you drop the 9090 it does go to the early stages of the website, the other modules I have on there. So I am not sure what I am doing wrong. If I do ,/openfire status it does tell me that the daemon is running.

Hi Damon,

What do you get when you do this command in the server you installed Openfire:

netstat -an | grep 9090

I’m eliminating the possibility that you may have the following lines enabled in your conf/openfire.xml:

<network>
    <interface>127.0.0.1</interface>
</network>

This is what I get when I type in that command netstat -an | grep 9090

tcp6 0 0 :::9090 :::* LISTEN

I’m assuming that you’re getting 404 Not Found error.

From your remote client, can you telnet to your openfire machine port 9090 and enter exactly these two lines:

GET /notfound.html HTTP/1.1

Host: yourhost.com

Press enter twice after your’re done (it’s HTTP protocol thing).

Are you seeing something like 404 Not Found error?

If it’s not, what is the returned error?

If it is, does it contain something like “Apache/2.2.3” or “Powered by Jetty”? It has to be the later if you claim that it’s openfire fault.

I’m actually trying to make sure that you’re not running into some kind of NAT problem.

This is the error I get when I type in 192.168.1.5:9090 from my browser

The webpage cannot be displayed

I tried to telnet into 192.168.1.5:9090 using a program called PuTTY that lets me telenet and SSH into the linux box. I tried from my windows vista box go from the run command line and trype telnet 192.168.1.5:9090 and it looks like MS took that program out. I can’t even get the system to find the program when I have it look for telenet**.**

This is starting to sound like I have some really messed up systems here, or ones not really configured well. But with the Openfire and my linux server I am just using them as a learning piece. I do thank you for all of your help with this Aznidin

Ah! That windowz error!

Well, I’m not sure if this time I could help either…

It’s common thing that MS browser don’t understand the mere 192.168.1.5:9090 in the address bar. Try type in the full format including the ending front slash:

http://192.168.1.5:9090/

If I type 192.168.1.5:10000 I get to my webmin page so that part works, but not 9090. Is there some other file for Openfire I need to look at or some other command I need to run to see if Openfire is really running. I did ./openfire status and it syas that the deamon is running

Well, from where you run openfire, you could do:

ps auxw | grep openfire

and make sure that there’s only one instance of it running.

Or you could do (as root):

lsof | grep java

and see if all openfire lines are there, in particular LISTEN on port 9090.

Sorry, I can’t help you much

Ok when I run the command ps auxw | grep openfire this is what comes back

damon 23806 0.0 2.2 667036 45628 ? Sl 11:45 0:05 /usr/bin/java - server -Dinstall4j.jvmDir=/usr -Dexe4j.moduleName=/etc/init.d/openfire/bin/openf ire -classpath /etc/init.d/openfire/.install4j/i4jruntime.jar:/etc/init.d/openfi re/lib/activation.jar:/etc/init.d/openfire/lib/bouncycastle.jar:/etc/init.d/ope n fire/lib/commons-el.jar:/etc/init.d/openfire/lib/hsqldb.jar:/etc/init.d/openfir e /lib/jasper-compiler.jar:/etc/init.d/openfire/lib/jasper-runtime.jar:/etc/init. d /openfire/lib/jdic.jar:/etc/init.d/openfire/lib/jtds.jar:/etc/init.d/openfire/l i b/mail.jar:/etc/init.d/openfire/lib/mysql.jar:/etc/init.d/openfire/lib/openfire . jar:/etc/init.d/openfire/lib/postgres.jar:/etc/init.d/openfire/lib/servlet.jar: / etc/init.d/openfire/lib/startup.jar com.install4j.runtime.Launcher start org.jiv esoftware.openfire.starter.ServerStarter false false /etc/init.d/openfire/bin/… /logs/stderror.log /etc/init.d/openfire/bin/…/logs/stdoutt.log true true false true true 0 0 20 20 Arial 0,0,0 8 500 version 3.3.2 20 40 Arial 0,0,0 8 500 -1 -DopenfireHome=/etc/init.d/openfire -Dopenfire.lib.dir=/etc/init.d/openfire/lib

damon 29156 0.0 0.0 2884 764 pts/0 R+ 17:11 0:00 grep openfire

when I run the lsof | grep java as root this is what comes back

java 23806 damon cwd DIR 8,1 4096 17482970 /var/www/openfire/bin

java 23806 damon rtd DIR 8,1 4096 2 /

java 23806 damon txt REG 8,1 47116 12667604 /usr/lib/jvm/java-6-sun-1.6.0.00/jre/bin/java

java 23806 damon mem REG 8,1 7284921 12699673 /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/server/libjvm.so

java 23806 damon mem REG 0,0 0 (stat: No such file or directory)

java 23806 damon mem REG 8,1 37081 12699691 /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/libnio.so

java 23806 damon mem REG 8,1 95830 12699690 /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/libnet.so

java 23806 damon mem REG 8,1 180973 17483177 /var/www/openfire/plugins/admin/webapp/WEB-INF/lib/dwr.jar

java 23806 damon mem REG 8,1 642469 17483013 /var/www/openfire/plugins/admin/webapp/WEB-INF/lib/admin-jsp.jar

java 23806 damon mem REG 8,1 170257 12700433 /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/ext/sunjce_provider.jar

java 23806 damon mem REG 8,1 616317 12700432 /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/jsse.jar

java 23806 damon mem REG 8,1 1101621 12699734 /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/resources.jar

java 23806 damon mem REG 8,1 451545 17483021 /var/www/openfire/lib/mysql.jar

java 23806 damon mem REG 8,1 111388 17483023 /var/www/openfire/lib/commons-el.jar

java 23806 damon mem REG 8,1 632354 17483022 /var/www/openfire/lib/hsqldb.jar

java 23806 damon mem REG 8,1 137214 17483015 /var/www/openfire/lib/servlet.jar

java 23806 damon mem REG 8,1 4626650 17483014 /var/www/openfire/lib/openfire.jar

java 23806 damon mem REG 8,1 54829 17483011 /var/www/openfire/lib/activation.jar

java 23806 damon mem REG 8,1 1269446 17483012 /var/www/openfire/lib/bouncycastle.jar

java 23806 damon mem REG 8,1 397448 17483016 /var/www/openfire/lib/postgres.jar

java 23806 damon mem REG 8,1 282625 17482965 /var/www/openfire/lib/jtds.jar

java 23806 damon mem REG 8,1 404880 17483020 /var/www/openfire/lib/jasper-compiler.jar

java 23806 damon mem REG 8,1 77034 17483018 /var/www/openfire/lib/jasper-runtime.jar

java 23806 damon mem REG 8,1 356519 17483019 /var/www/openfire/lib/mail.jar

java 23806 damon mem REG 8,1 74639 17483017 /var/www/openfire/lib/jdic.jar

java 23806 damon mem REG 8,1 70095 17483024 /var/www/openfire/lib/startup.jar

java 23806 damon mem REG 8,1 721603 17482967 /var/www/openfire/.install4j/i4jruntime.jar

java 23806 damon mem REG 8,1 25460 12208142 /usr/lib/gconv/gconv-modules.cache

java 23806 damon mem REG 8,1 238336 12241232 /usr/lib/locale/en_US.utf8/LC_CTYPE

java 23806 damon mem REG 8,1 48111152 12699895 /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/rt.jar

java 23806 damon mem REG 8,1 76152 12699686 /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/libzip.so

java 23806 damon mem REG 8,1 188962 12699683 /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/libjava.so

java 23806 damon mem REG 8,1 56701 12699682 /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/libverify.so

java 23806 damon mem REG 8,1 38416 3850402 /lib/tls/i686/cmov/libnss_files-2.5.so

java 23806 damon mem REG 8,1 34352 3850405 /lib/tls/i686/cmov/libnss_nis-2.5.so

java 23806 damon mem REG 8,1 30436 3850400 /lib/tls/i686/cmov/libnss_compat-2.5.so

java 23806 damon mem REG 8,1 79596 3850399 /lib/tls/i686/cmov/libnsl-2.5.so

java 23806 damon mem REG 8,1 32768 16007213 /tmp/hsperfdata_damon/23806

java 23806 damon mem REG 8,1 30624 3850413 /lib/tls/i686/cmov/librt-2.5.so

java 23806 damon mem REG 8,1 153424 3850397 /lib/tls/i686/cmov/libm-2.5.so

java 23806 damon mem REG 8,1 1307104 3850392 /lib/tls/i686/cmov/libc-2.5.so

java 23806 damon mem REG 8,1 9684 3850396 /lib/tls/i686/cmov/libdl-2.5.so

java 23806 damon mem REG 8,1 38270 12699685 /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/jli/libjli.so

java 23806 damon mem REG 8,1 112362 3850410 /lib/tls/i686/cmov/libpthread-2.5.so

java 23806 damon mem REG 8,1 38694 12699671 /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/native_threads/libhpi.so

java 23806 damon mem REG 8,1 109268 3850255 /lib/ld-2.5.so

java 23806 damon 0r CHR 1,3 7907 /dev/null

java 23806 damon 1w REG 8,1 192 17483330 /var/www/openfire/bin/nohup.out

java 23806 damon 2w REG 8,1 192 17483330 /var/www/openfire/bin/nohup.out

java 23806 damon 3r REG 8,1 48111152 12699895 /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/rt.jar

java 23806 damon 4r REG 8,1 721603 17482967 /var/www/openfire/.install4j/i4jruntime.jar

java 23806 damon 5r CHR 1,8 3745 /dev/random

java 23806 damon 6r CHR 1,9 3749 /dev/urandom

java 23806 damon 7r REG 8,1 54829 17483011 /var/www/openfire/lib/activation.jar

java 23806 damon 8r REG 8,1 1269446 17483012 /var/www/openfire/lib/bouncycastle.jar

java 23806 damon 9r REG 8,1 111388 17483023 /var/www/openfire/lib/commons-el.jar

java 23806 damon 10r REG 8,1 632354 17483022 /var/www/openfire/lib/hsqldb.jar

java 23806 damon 11r REG 8,1 404880 17483020 /var/www/openfire/lib/jasper-compiler.jar

java 23806 damon 12r REG 8,1 77034 17483018 /var/www/openfire/lib/jasper-runtime.jar

java 23806 damon 13r REG 8,1 74639 17483017 /var/www/openfire/lib/jdic.jar

java 23806 damon 14r REG 8,1 282625 17482965 /var/www/openfire/lib/jtds.jar

java 23806 damon 15r REG 8,1 356519 17483019 /var/www/openfire/lib/mail.jar

java 23806 damon 16r REG 8,1 451545 17483021 /var/www/openfire/lib/mysql.jar

java 23806 damon 17r REG 8,1 4626650 17483014 /var/www/openfire/lib/openfire.jar

java 23806 damon 18r REG 8,1 397448 17483016 /var/www/openfire/lib/postgres.jar

java 23806 damon 19r REG 8,1 137214 17483015 /var/www/openfire/lib/servlet.jar

java 23806 damon 20r REG 8,1 70095 17483024 /var/www/openfire/lib/startup.jar

java 23806 damon 21w REG 8,1 0 17483332 /var/www/openfire/logs/debug.log

java 23806 damon 22r REG 8,1 70095 17483024 /var/www/openfire/lib/startup.jar

java 23806 damon 23r REG 8,1 74639 17483017 /var/www/openfire/lib/jdic.jar

java 23806 damon 24r REG 8,1 356519 17483019 /var/www/openfire/lib/mail.jar

java 23806 damon 25r REG 8,1 77034 17483018 /var/www/openfire/lib/jasper-runtime.jar

java 23806 damon 26r REG 8,1 404880 17483020 /var/www/openfire/lib/jasper-compiler.jar

java 23806 damon 27r REG 8,1 282625 17482965 /var/www/openfire/lib/jtds.jar

java 23806 damon 28r REG 8,1 397448 17483016 /var/www/openfire/lib/postgres.jar

java 23806 damon 29r REG 8,1 1269446 17483012 /var/www/openfire/lib/bouncycastle.jar

java 23806 damon 30r REG 8,1 54829 17483011 /var/www/openfire/lib/activation.jar

java 23806 damon 31r REG 8,1 4626650 17483014 /var/www/openfire/lib/openfire.jar

java 23806 damon 32r REG 8,1 137214 17483015 /var/www/openfire/lib/servlet.jar

java 23806 damon 33r REG 8,1 632354 17483022 /var/www/openfire/lib/hsqldb.jar

java 23806 damon 34r REG 8,1 111388 17483023 /var/www/openfire/lib/commons-el.jar

java 23806 damon 35r REG 8,1 451545 17483021 /var/www/openfire/lib/mysql.jar

java 23806 damon 36r REG 8,1 1101621 12699734 /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/resources.jar

java 23806 damon 37w REG 8,1 260 17483333 /var/www/openfire/logs/info.log

java 23806 damon 38w REG 8,1 0 17483334 /var/www/openfire/logs/warn.log

java 23806 damon 39w REG 8,1 0 17483335 /var/www/openfire/logs/error.log

java 23806 damon 40w REG 8,1 90 17483331 /var/www/openfire/logs/stdoutt.log

java 23806 damon 41r REG 8,1 616317 12700432 /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/jsse.jar

java 23806 damon 42r REG 8,1 170257 12700433 /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/ext/sunjce_provider.jar

java 23806 damon 43r FIFO 0,6 29246 pipe

java 23806 damon 44w FIFO 0,6 29246 pipe

java 23806 damon 45r REG 8,1 642469 17483013 /var/www/openfire/plugins/admin/webapp/WEB-INF/lib/admin-jsp.jar

java 23806 damon 46r REG 8,1 180973 17483177 /var/www/openfire/plugins/admin/webapp/WEB-INF/lib/dwr.jar

java 23806 damon 47r CHR 1,8 3745 /dev/random

java 23806 damon 48r 0000 0,10 0 29247 eventpoll

java 23806 damon 49u IPv6 29248 TCP *:9090 (LISTEN)

java 23806 damon 51u sock 0,5 29250 can’t identify protocol

java 23806 damon 52u unix 0xf60e7680 31619 socket

does this tell you anything?

Yep, it all looks wierd to me. Not that I know that you’ll ever need Install4j to run Openfire! As far as I could tell, it’s not Openfire you’re running, but Install4j, and I have no idea how it binds to 9090. Also, I don’t know for what reason you’ll ever need to install openfire in /var/www, and why there is an openfire directory (or link) in /etc/init.d where you should only have an executable script by the name of openfire and of cource other applications’ scripts.

If I were you, I’d (as root):

  • Stop or kill the running Install4j process and make sure that nothing appears when you do netstat -an | grep 9090

  • Delete (back up if necessary) all occurances of openfire (file/directory/link) in /etc/init.d

  • Grab a new Openfire RPM

  • Do rpm -Uvh openfire-3.3.2-1.i386.rpm. Openfire will be installed in /opt/openfire

  • Start the new openfire by running /etc/init.d/openfire start.

  • Then try to connect to the openfire server port 9090 once again.

Well since yesterday, I did move the the Openfire directory from /etc/init.d/ folder (I thought I read somewhere that is where it needed to be I now know that is where openfired is wanting to be) to where it is now at /opt/openfire (I saw that is where the Openfired file looks for the files in that place or another one) With it being also so in my /var/www directory I downloaded Openfire from my Windowz box and extracted it (I am so very new to linux but trying to learn it) I thought I could get the thing going if I just copied the program there, but it will be deleted here soon because my main backup for Openfire is still on my Windowz box.

I am not sure what that Install4j is for, never heard of it and if it is really using port 9090. I would have no idea why unless another program I have is needing that port. I will have to look into it.

Now that Openfire is at /opt/openfire and running I still can’t get to the admin page but I will have to see what that Install4j is and see if that is why it is blocking it. I am not sure how to stop that prosses from running so Openfire can have full access to that port.

Just wondering when that netstat -an | grep 9090 is run, what would a typical responce look like, because mine still shows the tcp6 0 0 :::9090 :::* Listen on it

When I try to get openfire to start from the /etc/init.d directory by typing sudo ./openfired start I get back

./openfired: 50: Syntax error: “(” unexpected

is this a common error for this because I don’t think Openfire is running now with that error.

If I am at /opt/openfire and type in ./openfire then it says it is starting. I am guessing from what I read that if the openfired file is in the /etc/init.d directory then it will start as a service when the system is restarted and that is good unless that error stops it from loading.

Just as a side note I thought I would do the netstart -an | grep 9090 without Openfire running and nothing comes back

If you are having issues with the installer version, you could always download the unix archive version (tar.gz). This does not conatin a JRE and will allow you to use your native Linux JRE that you have installed on your system. Install4j isn’t contained in the archive file version.

Yep! Either the tar.gz or RPM (with its own JRE), because those are built for *nix. And NEVER install distribution for Windows or MAC on *nix platform! It may be tempting for you to do so knowing the general understanding that JAVA is portable across platform. In real situation, you’ll be wasting your time making it work. You’ll be better of scraping whatever you’ve done and instal the *nix distribution. If you’re concern about your database data in your windows, just do the migration later because it can be done independantly.

D2 wrote:

./openfired: 50: Syntax error: “(” unexpected

this looks like an error in openfired itself

what about trying to connect/register with some client when you think server is running?

Yes, i’m using tar.gz version myself, but with custom openfired. Original openfired didnt work for me.