Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (494)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Java binds to serversocketchannel, but linux says  (Read 1092 times)
0 Members and 1 Guest are viewing this topic.
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Posted 2005-01-09 19:12:33 »

"no".

netstat -nl shows no servers listening on the bound port (8080). All things in netstat have been verified as being "not the JVM". HTTP connects fail (as if nothing listening).

I was making changes to a bit of user code and uploading the new JAR that handles a particular webpage when suddenly it all stopped working. I suspect this is exactly the same problem that has been plaguing the jgf.org server the past month or so, whereby it just goes "offline" for no reason, with no exceptions, no errors, nothing, and a restart some hours later of the JVM (triggers a re-bind to network interface) fixes everything.

24 hours ago (give or take 10 hours) I did install and upgrade some unrelated Debian packages, so there's a small chance that I accidentally upgraded some core packages then too - but why would it take a day or so for something to break? I'd restarted the JVM 20 times in that time.

Just to take the piss further, ICMP ping is failing (even with firewall - which doesn't block ICMP - turned to accept all protocols on all ports) and global DNS for jgf.org, which runs on this server, is not responding either. It would seem that those are problems with the network or ISP that owns the netblock, or with Agency9 who own the LAN segment, but.. the "your web server gets unbound" seems to be something unrelated.

Unless, perhaps, the ISP has some evil backdoor for de-binding port servers !?!?! I have root access, so should be able to deal with everything...if I knew what to look for.

Help! Any and all appreciated, no matter how obvious. Maybe I missed something trivial?

One other thing: I sent one email from the email server, approx an hour or so before this died. If it hadn't been dieing for no reason at all in the previous month I would think that was the culprit (something complex to do with emails - perhasps the ISP decided to attack ths erver because they don't like email) but because of the same symptoms previously I believe it is unrelated.

malloc will be first against the wall when the revolution comes...
Offline gojira

Senior Newbie




Java games rock!


« Reply #1 - Posted 2005-01-22 20:03:26 »

I have a NAT server for home that does basically the same thing.  It's based on old Red Hat 7.2, kernel 2.4.....

Maybe it's some bug in the kernel or in a daemon?  Only because I wasn't running Java or email on the NAT box.

Beats me.  Run tcpdump just to verify that you are indeed receiving a packet on 8080, then reboot I guess.  That's what did it for me.  (I think my problems were due to my ISP not renewing DHCP leases properly, but I could never prove it.)

Only other ideas: tear down apps until it starts working (PING is in the kernel I think.  It should ALWAYS work, if you are able to receive a packet at all. tcpdump should help here.)  Then start adding the apps back until it fails, then debug.
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #2 - Posted 2005-01-22 21:20:55 »

Quote
"no".
Just to take the piss further, ICMP ping is failing (even with firewall - which doesn't block ICMP - turned to accept all protocols on all ports) and global DNS for jgf.org


Turned out to be a mismatch between what the firewall used to be, what I thought it still was, and what it had actually become on a recent uncsdheculed reboot...


malloc will be first against the wall when the revolution comes...
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline gojira

Senior Newbie




Java games rock!


« Reply #3 - Posted 2005-01-22 22:33:30 »

Ah.  Well, tcpdump will find out stuff like you're not actually getting a packet you thought you were.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Dwinin (21 views)
2014-09-12 09:08:26

Norakomi (55 views)
2014-09-10 13:57:51

TehJavaDev (65 views)
2014-09-10 06:39:09

Tekkerue (32 views)
2014-09-09 02:24:56

mitcheeb (54 views)
2014-09-08 06:06:29

BurntPizza (38 views)
2014-09-07 01:13:42

Longarmx (24 views)
2014-09-07 01:12:14

Longarmx (30 views)
2014-09-07 01:11:22

Longarmx (28 views)
2014-09-07 01:10:19

mitcheeb (36 views)
2014-09-04 23:08:59
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!