suriyun-production / mmorpg-kit-docs

This is document for MMORPG KIT project (https://www.assetstore.unity3d.com/#!/content/110188?aid=1100lGeN)
https://suriyun-production.github.io/mmorpg-kit-docs
49 stars 10 forks source link

ERROR DatabaseNetworkManager [2023-04-08 02:12:34] - Cannot UpdateUserCount status: Timeout #2007

Closed sdk2016 closed 1 year ago

sdk2016 commented 1 year ago

I want to know what is causing this. Is this because there are no users online? Thank You.

Specification: Databases: MySQL Number of Maps: 2 RAM: 8GB Kits Version 1.82b (2023-04-06)

insthync commented 1 year ago

Please attach full error log files

sdk2016 commented 1 year ago

here is attached the requested log file.

Log_Map(MapTown) Instance().err.log Log_Map(MapFarm) Instance().warn.log Log_Map(MapFarm) Instance().info.log Log_Map(MapFarm) Instance().err.log Log_Database_Central_MapSpawn.warn.log Log_Database_Central_MapSpawn.err.log Log_Database_Central_MapSpawn.info.log Log_Map(MapTown) Instance().warn.log Log_Map(MapTown) Instance().info.log

insthync commented 1 year ago

I want to see your serverConfig.json

insthync commented 1 year ago

I saw a lot of connection timed out, not only for the database.

sdk2016 commented 1 year ago

Here is my serverConfig.json and Linux Command Line to start the server:

-----------------serverConfig.json------------------------- { "databaseOptionIndex": 1, "databaseDisableCacheReading": false, "useWebSocket": false, "webSocketSecure": false, "webSocketCertPath": "", "webSocketCertPassword": "", "centralAddress": "127.0.0.1", "centralPort": 7000, "centralMaxConnections": 1100, "clusterPort": 6010, "machineAddress": "127.0.0.1", "mapSpawnPort": 6001, "spawnExePath": "C:\Unity\URP MMORPG Lowpoly_builds\win\server\URP MMORPG Lowpoly.exe", "notSpawnInBatchMode": false, "spawnStartPort": 8000, "spawnMaps": ["MapFarm", "MapTown"], "mapPort": 7770, "mapMaxConnections": 1100, "databaseManagerAddress": "127.0.0.1", "databaseManagerPort": 6100 }

-----------Linux Command Line--------------- nohup ./urp_mmorpg.x86_64 -startMapSpawnServer -spawnExePath /home/urp-mmorpg/game-server/urp-mmorpg/urp_mmorpg.x86_64 -startCentralServer -startDatabaseServer -machineAddress xxx.xxx.xxx.xxx[hiden-public-IP] &

insthync commented 1 year ago

Hmm.. it's all looks good, how about CPU and RAM usage while servers are running?

sdk2016 commented 1 year ago

Server resource is fine. I thought maybe this has nothing to do with MMORPG Kit. I have to identify the problem further. Thank you for your help. :)

Screenshot 2023-04-08 134907

Screenshot 2023-04-08 135103