The online racing simulator
Can't connect after /reinit
(10 posts, started )
Can't connect after /reinit
Hi all.

My question is simple. When I send /reinit command, I can't reconnect to the server anymore, this is the log:

$ cat deb.log
May 26 16:42:16 LFS DEDICATED HOST : 0.5Z13
May 26 16:42:16 ?
May 26 16:42:16 ?
May 26 16:42:16 ?
May 26 16:42:16 ?
May 26 16:42:16 ?
May 26 16:42:16 ?
May 26 16:42:16 ?
May 26 16:42:16 ?
May 26 16:42:16 ?
May 26 16:42:16 ?
May 26 16:42:16 ?
May 26 16:42:16 ?
May 26 16:42:16 load bans
May 26 16:42:16 load font
May 26 16:42:16 Could not get device context of LFS window
May 26 16:42:16 create english file
May 26 16:42:16 initialisations
May 26 16:42:16 tables
May 26 16:42:16 load objects
May 26 16:42:16 start intro
May 26 16:42:16 Kyoto Ring
May 26 16:42:16 end of initialisation
May 26 16:42:17 Track loaded
May 26 16:42:24 Send Track : 212.163.4.98
May 26 16:42:24 Send Track : 212.163.4.98
May 26 16:42:24 Connect : 212.163.4.98
May 26 16:42:24 A new guest is connecting
May 26 16:42:25 [MCH]BrEaThE^L connected (BriZz^L)
May 26 16:42:29 Host will restart in 3 seconds
May 26 16:42:32 TCP Socket : bind failed
May 26 16:42:32
May 26 16:42:32 Track loaded

As you can see, there is a "TCP Socket : bind failed" at the end. This message appears 3 second after the /reinit command, as log says.

What is the problem? How can I fix it? Am I doing something wrong?

What I want to do is just to restart the server (via InSim), but I got the same issue when I send it ingame as Admin.

The only way to connect again is a hard-restart of the process, killing it... (linux host).

Software version: LFS_S2_DEDI_Z13

ty!
its trying to reinit with a port that is already in use. Try changing the host port from 63392 (or whatever the default is) to something else and make sure to set up any forwarding as required.

Are you having any problems with your insim program? Its possible you are trying to connect to the server with the hosts port instead of the insim port. Which is what would stop it from starting up again.
No, forget the insim.

If I send the /reinit via ingame, without any more player, and without insim programs, it fails. I can't re-connect after send /reinit command and I have to kill the process LFS if I want someone can connect again to the server.
Assuming you're not just using cygwin (or something similar), there was an issue many moons ago with reinit'ing a server under wine where the socket wasn't being "released" (very high level view of the problem). It had disappeared with newer versions of wine, when I was still hosting servers, but I'd be willing to bet that it's this that's affecting you now. The only advice I can offer right now is to kill the server and restart it rather than using /reinit Alternatively it might be worth looking at the version of wine you're running and any available updates/bugfixes for it, especially if you're running an older version.
mmm ok, I'll try to update the wine version that I'm using now.
don't bother... it's easier to stop lfs for 5 minutes and start it back up again... it's a pain, but it's the only way i could get the ports to open properly again.

i tested 15 versions of wine and didn't notice a single difference between them.
I've updated my wine and there aren't changes with my problem.

wine 1.1.12, you can't connect after /reinit

grrrr... there are no solution under unix?
i gave you one, albeit crappy...

Quote : it's easier to stop lfs for 5 minutes and start it back up again

When you have a huge number of servers... this isn't the best solution... :/ And not the best practice.

Well, I'll think in it.

ty!

Can't connect after /reinit
(10 posts, started )
FGED GREDG RDFGDR GSFDG