Connection issues on private server.
Posted: Sat Sep 15, 2018 2:46 pm
Hello, I have set up a private server on a Linux VPS. I have run into some problems both with the VPS and local.
I added BIND_NAME and BIND_IP in config.h and compiled tomenet.server. I then copy the binary back and run the sever directly, or use ./runserv{1,2,3}. }What happens is, everything works as expected for a while. Then the server stops accepting connections. The server has not crashed (usually), the network is fine, ports are still open, iptables is happy. I also tried changing ports in case digitalocean was getting mad for whatever reason. The is no core dumped or error message in the server. I did get this once:
EXPORT_PLAYER_STORE_OFFERS: o_list export completed.
07 Sep (Fri) 23:00:06_CRON1H_23:0:6
07 Sep (Fri) 23:00:06 EVENT_CREATE: #7 of type 5 parms='>'
07 Sep (Fri) 23:30:06 EVENT_NOPLAYERS: 7 (Dungeon Keeper) has only 0/1 participants.
07 Sep (Fri) 23:30:06 EVENT_END: 7 - 'Dungeon Keeper'.
free(): invalid next size (fast)
Received signal 6.
corrupted size vs. prev_size
Aborted (core dumped)
But I was unable to find a core file. I also added a fuser -k <port>/tcp for the game/console ports into runserv to clean them out after any crashes. Everything works perfectly for a few hours or so, then no connections accepted. The client says to check on the hostname. I have noticed that the server does mention the "Dungeon Keeper" event before it stops accepting connections, in case that is related.
tomenet.eu is apparently a Debian server. I am running Fedora 28 on the VPS and locally. I have not tried running on a Debian machine/chroot. I will try this next to see if that could be related, although, I think it is more likely I am missing something with my config.h. The only changes I made were to remove the #if 0/#endif around BIND_IP and BIND_NAME and to set them to the ip and domain of the server.
Thanks in advance for any help. I and several other people are excited to try tomenet, but would like to play with some custom rules privately before we jump on the main server as well.
I added BIND_NAME and BIND_IP in config.h and compiled tomenet.server. I then copy the binary back and run the sever directly, or use ./runserv{1,2,3}. }What happens is, everything works as expected for a while. Then the server stops accepting connections. The server has not crashed (usually), the network is fine, ports are still open, iptables is happy. I also tried changing ports in case digitalocean was getting mad for whatever reason. The is no core dumped or error message in the server. I did get this once:
EXPORT_PLAYER_STORE_OFFERS: o_list export completed.
07 Sep (Fri) 23:00:06_CRON1H_23:0:6
07 Sep (Fri) 23:00:06 EVENT_CREATE: #7 of type 5 parms='>'
07 Sep (Fri) 23:30:06 EVENT_NOPLAYERS: 7 (Dungeon Keeper) has only 0/1 participants.
07 Sep (Fri) 23:30:06 EVENT_END: 7 - 'Dungeon Keeper'.
free(): invalid next size (fast)
Received signal 6.
corrupted size vs. prev_size
Aborted (core dumped)
But I was unable to find a core file. I also added a fuser -k <port>/tcp for the game/console ports into runserv to clean them out after any crashes. Everything works perfectly for a few hours or so, then no connections accepted. The client says to check on the hostname. I have noticed that the server does mention the "Dungeon Keeper" event before it stops accepting connections, in case that is related.
tomenet.eu is apparently a Debian server. I am running Fedora 28 on the VPS and locally. I have not tried running on a Debian machine/chroot. I will try this next to see if that could be related, although, I think it is more likely I am missing something with my config.h. The only changes I made were to remove the #if 0/#endif around BIND_IP and BIND_NAME and to set them to the ip and domain of the server.
Thanks in advance for any help. I and several other people are excited to try tomenet, but would like to play with some custom rules privately before we jump on the main server as well.