Jump to content

Log files


cezarica
  • Pending

I've followed the guide Dedicated Server Quick Setup Guide - Linux and to start it I use screen ~/run_dedicated_servers.sh so I can detach from the console.

With this setup I have two problems, but the most annoying one is with the logs. When I'm doing c_shutdown() it needs at least a second if not third command to actually shut down the game server. Something wrong happens cos that the chat and server log files aren't backed up properly.

Before doing the c_shutdown() I copied the server_chat_log.txt and server_log.txt from Master server to another location. Did the shutdown, started the game server with screen as mentioned above and then compared the server_chat_log.txt file that I previously saved with the file the game backed up in Master/backup/server_chat_log/server_chat_log_2016-08-18-09-06-24.txt and there's a HUGE difference. The server_chat_log_2016-08-18-09-06-24.txt has only 200 lines out of the 1834 lines the initial server_chat_log.txt file has.


Steps to Reproduce
Before backing up Master/server_chat_log.txt somewhere make sure there are over 200 lines in it then get on server console and shut it down with c_shutdown(), compare the previously saved Master/server_chat_log.txt with the last file you can find in Master/backup/server_chat_log folder. Notice the difference.



User Feedback


c_shutdown()
Caves:  [02:21:24]: ConsoleInput: "c_shutdown()"
Caves:  [02:21:24]: c_shutdown  nil
Caves:  [02:21:25]: Serializing world: session/F49B02C2FC1A75AB/0000000347
Caves:  [02:21:25]: Truncating to snapshot #347...
Caves:  [02:21:25]:  - session/F49B02C2FC1A75AB/0000000297
Caves:  [02:21:25]:  - session/F49B02C2FC1A75AB/xxx/0000000297
Caves:  [02:21:25]:  - session/F49B02C2FC1A75AB/xxx_/0000000297
Caves:  [02:21:25]:    3 file(s) removed
Caves:  Updates 0Seconds elapsed: 8485.32 fps:0
Caves:  Saving Dedicated server data...
Caves:  [02:21:25]: Serializing world: session/F49B02C2FC1A75AB/0000000348
Caves:  [02:21:26]: Truncating to snapshot #348...
Caves:  [02:21:26]:  - session/F49B02C2FC1A75AB/0000000298
Caves:  [02:21:26]:  - session/F49B02C2FC1A75AB/xxx/0000000298
Caves:  [02:21:26]:  - session/F49B02C2FC1A75AB/xxx_/0000000298
Caves:  [02:21:26]:    3 file(s) removed
Caves:  [02:21:27]: [Shard] Stopping shard mode
Master: [02:21:27]: World xxx is now disconnected
Master: [02:21:27]: Validating portal[3] <-> xxx[3] (inactive)
Master: [02:21:27]: Validating portal[1] <-> xxx[1] (inactive)
Master: [02:21:27]: Validating portal[10] <-> xxx[10] (inactive)
Master: [02:21:27]: Validating portal[2] <-> xxx[2] (inactive)
Master: [02:21:27]: Validating portal[9] <-> xxx[9] (inactive)
Master: [02:21:27]: Validating portal[5] <-> xxx[5] (inactive)
Master: [02:21:27]: Validating portal[8] <-> xxx[8] (inactive)
Master: [02:21:27]: Validating portal[7] <-> xxx[7] (inactive)
Master: [02:21:27]: Validating portal[6] <-> xxx[6] (inactive)
Master: [02:21:27]: Validating portal[4] <-> xxx[4] (inactive)
Master: [02:21:27]: [Shard] A slave has disconnected: 'Caves(xxx)'
Caves:  [02:21:27]: Collecting garbage...
Caves:  [02:21:27]: lua_gc took 0.25 seconds
Caves:  [02:21:28]: ~ShardLuaProxy()
Caves:  [02:21:28]: ~ItemServerLuaProxy()
Caves:  [02:21:28]: ~InventoryLuaProxy()
Caves:  [02:21:28]: ~NetworkLuaProxy()
Caves:  [02:21:28]: ~SimLuaProxy()
Caves:  [02:21:28]: lua_close took 0.33 seconds
Caves:  [02:21:28]:  Manager - ORPHANED UNKNOWN RESOURCES:
Caves:  [02:21:28]: shaders/ui_yuv.ksh - 1
Caves:  [02:21:28]: CurlRequestManager::ClientThread::Main() complete
Caves:  [02:21:28]: HttpClient2 discarded 0 callbacks.
Caves:  [02:21:28]: Shutting down

And hangs like this for like 2-3 minutes doing nothing.. I did another c_shutdown() and finally closed for good:

c_shutdown()
Master: [02:27:00]: ConsoleInput: "c_shutdown()"
Master: [02:27:00]: c_shutdown  nil
Master: [02:27:01]: Serializing world: session/BDE50655FC1AD031/0000000347
Master: [02:27:01]: Truncating to snapshot #347...
Master: [02:27:01]:  - session/BDE50655FC1AD031/0000000297
Master: [02:27:01]:  - session/BDE50655FC1AD031/xxx/0000000297
Master: [02:27:01]:  - session/BDE50655FC1AD031/xxx/0000000297
Master: [02:27:01]:  - session/BDE50655FC1AD031/xxx/0000000297
Master: [02:27:01]:  - session/BDE50655FC1AD031/xxx/0000000297
Master: [02:27:01]:    5 file(s) removed
Master: Updates 0Seconds elapsed: 8821.53 fps:0
Master: Saving Dedicated server data...
Master: [02:27:02]: Serializing world: session/BDE50655FC1AD031/0000000348
Master: [02:27:02]: Truncating to snapshot #348...
Master: [02:27:02]:  - session/BDE50655FC1AD031/0000000298
Master: [02:27:02]:  - session/BDE50655FC1AD031/xxx/0000000298
Master: [02:27:02]:  - session/BDE50655FC1AD031/xxx/0000000298
Master: [02:27:02]:  - session/BDE50655FC1AD031/xxx/0000000298
Master: [02:27:02]:  - session/BDE50655FC1AD031/xxx/0000000298
Master: [02:27:02]:    5 file(s) removed
Master: [02:27:03]: [Shard] Stopping shard mode

Edited by cezarica

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...