View Full Version : IM Server Down Problem
ChangeUserNamePlease 07-23-2004, 03:37 PM Hello WWC / Others:
I have all of your scripts and I'm currently trying to install the WWIM. I downloaded the Java application from SUN (j2re1.4.2_05) and installed it in my root directory below the "public_html" folder where it is not accessible. When I use the shell application, I get a nohup message stating that the server is running at port 5192 so all appears to be functioning with java. However, no matter what I do, I still get a "IM server down" message. I see from reading the other posts that other users have had this problem but the solutions for them don't work for me.
My client is set up properly with my IM server set to "mydomain.com" and the port at 5192. I don't know what else to try. I thought maybe the server was going back down shortly after I activated it, however, it appears to still be running.
1. Is the Java application in the right location (just below the public_html folder)?
2. I have set up a cron job at "/home/mydomain/wwim.sh>/dev/null>&1" and my wwim.sh file as: #!/bin/sh
cd /home/mydomain
/usr/bin/j2re1.4.2_05/bin/java -Xmx48M -jar jwwim_server2.jar 5192.
Is the above correct?
I need some help please !
Thanks
In your shell call, what is this part doing there?:
/usr/bin/j2re1.4.2_05/bin/java -Xmx48M -jar jwwim_server2.jar 5192
Second, I would try it without the nohup command to see if it produces an error.
ChangeUserNamePlease 07-23-2004, 06:02 PM JAFO
Thanks for such a quick response. I am still getting the IM Server Down message even though the server seems to be running. I had the Cron application send me email results. They are listed below. I did not get the "address already in use" message when I first started the server. It only appeared in this Cron message after the first startup. So, I assume I'm getting the "address in use" message because the server is, in fact, running when the Cron executes the script again.
------------------------
Instant Message Server 2.0 started on port 5192
Logging is not enabled
Maximum simultanious user limit is Unlimited
To upgrade your license, please visit www.worldwidecreations.com
Exception in thread "main" java.net.BindException: Address already in
use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at wwim_server.main(wwim_server.java)
Any thoughts about the problem coming from my PHP scripts?
Thanks!
No, it should not be anything in the scripts, that error comes when the client cannot find the server.
A few things to check.
Double check you compile settings and make sure you have the correct port setup, and make sure the IP or domain to the server is correct.
Once you rule those out, here is something I always try.
Using a telnet application, try to log into the server on the WWIM port, I guess 5192 and see if it can connect. If it can connect, then at least you know your server is not blocking the application.
If it cannot, then see if your server has a firewall configured and if so, you may have to open the port in the firewall.
Make sure the firewall on your PC is not affecting the connection. A good way to test this is to use a different computer or a friends computer and see if they can get the client or a telnet application to connect to the server.
If you can connect to the server with the telnet application, but not with the client then the problem is definitely in the compile settings of the client.
ChangeUserNamePlease 07-23-2004, 07:48 PM Hey... thanks once again for the quick responses. Except for trying the client on another computer, all else that you suggested seems to be in order.
I will point out one other thing. The client is delivering the banners I loaded perfectly. Does the banner delivery mean that the client has successfully accessed the server and it is running properly? If so, then I only have to figure out why I can't register or log-in. I've checked everything from permissions to paths, and my client TCP setting are absolutely correct.
Thanks again!
The banner loading just means the scripts are working, does not mean anything about the server (sorry).
However, you did say that you could telnet in? Ok, that helps actually.
I need to see what you have for your compile settings here.
If you don't want to post them here, you can go to the contact page on the main site and send them along so I can see.
Ok, your first pic, the one with the Telnet client is not correct. You logged in via the telnet port, when you needed 5192. You won't get any prompt when you connect but your client should tell you if you are connected or not.
I tried to connect to the server with my telnet client and could not connect, is the server running?
mavoric 09-26-2004, 01:47 PM when i try and log in to the IM, it says im already logged in, when im not, i went into phpmyadmin, and it said i wasn't logged in, however this is just me, my brother can log into it, and on his list it shows me logged in, is there a way of manually logging a user out?
|
|