1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Solved massive players logged out due to timeout

Discussion in 'Help' started by TeraCube, Jun 16, 2018.

  1. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    hi,

    my server is running fine but sometimes all players are deconnected at same time : logged out due to timeout
    the server don't crash but all players are deconnected

    how to find the problem ?

    sorry for my bad english
     
  2. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
    I might be wrong, but that sounds like a network problem to me. Are you running the server locally or on a remote server? On Linux you can run tools such as nload to monitor bandwidth usage.
     
    corytortoise and TeraCube like this.
  3. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    @Awzaw

    is this setup pocketmine.yml correct ?
    server memory-limit=4024M for 50 players max

    Code:
    memory:
     #Global soft memory limit in megabytes. Set to 0 to disable
     #This will trigger low-memory-triggers and fire an event to free memory when the usage goes over this
     global-limit: 0
    
     #Main thread soft memory limit in megabytes. Set to 0 to disable
     #This will trigger low-memory-triggers and fire an event to free memory when the usage goes over this
     main-limit: 0
    
     #Main thread hard memory limit in megabytes. Set to 0 to disable
     #This will stop the server when the limit is surpassed
     main-hard-limit: 0
    
     #AsyncWorker threads' hard memory limit in megabytes. Set to 0 to disable
     #This will crash the task currently executing on the worker if the task exceeds the limit
     #NOTE: THIS LIMIT APPLIES PER WORKER, NOT TO THE WHOLE PROCESS.
     async-worker-hard-limit: 256
    
    
     
  4. Khome

    Khome Spider Jockey

    Messages:
    44
    This has happened to my server since 2016. Sudden mass timeouts however, it can't be a network problem. Because for me not everyone disconnects. About 70% of players disconnect while the others remain unaffected.
     
  5. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    do you solve that and how ?

    can this be probems of, plugins, config pmmp, php version, wrong setupon config.yml ?

    thanks
     
  6. Khome

    Khome Spider Jockey

    Messages:
    44
    Haven’t yet found a solution. It _might_ be a plugin issue because im sure it would have been fixed by now if it was a core issue or atleast this problem would be occurring to everyone but I can’t be sure. I don’t think its a php version or config related issue
     
    TeraCube likes this.
  7. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    As @Awzaw asked, are you running the server on a local device, or a remote server?
     
  8. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    I’m running thé server on a remote server. server is hosted .
     
  9. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
    If not everyone disconnects it could still be a network issue, or simply insufficient server resources. Which host are you using and what are the specs - including bandwidth? Also worth considering are that you could be undergoing DDOS attacks with no hardware DDOS protection. How many players are connected when it happens and is there a pattern? Do you have root ssh access and can you run a tool such as nload while it happens?
     
    Last edited: Jul 23, 2018
  10. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    @Awzaw

    My server is hosted in france (hostmyservers in france and host-mcpe.us in US)
    server have a DDOS protection and ping is good < to 10 ms in Europe
    it happens randomly average 3 to 20 players
    i think it's a plugin issue (25 plugins) or a corrupted map
    i don't know to reproduce the issue
    server don't crash just all players are logged out due to timeout

    sorry for my bad english
     
  11. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    Can you send a list of plugins?
     
  12. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    34 plugins and not 25 ; - )

    Code:
    Plugins (34): essentialsTP v1.2.1, CustomAlerts v2, PurePerms v1.4.2, CombatLogger v0.0.5, MysteryCrate v6.2.0, AntiSpamPro v1.4.1, BestCasino v2.1.1, MCPEToDiscord v1.3.2, KitUI v1.3.0, Slapper v1.4.0, DevTools v1.13.0, LiveXYZ v0.7.0, Worlds v2.0.3, PiggyCustomEnchants v1.2.0, TimeRanks v2.1.1, TempBanUI v1.5, VanillaEnchantments v3.1.0_ALPHA, RealTime v2.1.3, AlwaysSpawn v2.2.4, WorldBorder v1.1, iProtector v3.1.1, EconomyAPI v5.7.2, MagicWE2 v5.7.2, FormAPI v1.2.0, Swim v1.0.0, BanItem v2.3.3, AutoClearLagg v2.0.0, VoteReward v3.0.3, VPNGuard v1.0.7, EconomyShop v2.0.9, EconomySell v2.0.8, FactionsPro v1.3.12, GrabBag v2.4.4, PureChat v1.4.11
    thanks
     
  13. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    Can you try running the server without MCPEToDiscord and/or VPNGuard? They're both more network-related than other plugins.
     
    TeraCube likes this.
  14. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
    Looking at your plugin versions, some of them (e.g CombatLogger 0.0.5) shouldn't be able to run on the same version of pocketmine as other plugins... Have you changed API versions in plugin.yml to force them to load?
     
    TeraCube likes this.
  15. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    @Awzaw
    yes.. i changed API versions in plugin.yml in some of them
    for CombatLogger API 3.0.0 i use this branch
    https://github.com/RumBenCraftPE/PocketMine-Plugins-1/tree/master/CombatLogger

    But i have same issue "massive logged out due to timeout" if i use latest stable version of PMMP and all plugin in API 3.0.0
    https://jenkins.pmmp.io/job/PocketMine-MP/1269/

    sorry for my bad english
    thanks
     
  16. Destroyer57

    Destroyer57 Zombie

    Messages:
    275
    This can be because youre using an outdated build
     
  17. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
  18. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    i try running server without MCPEToDiscord and/or VPNGuard
    same errors for all players at same time : logged out due to timeout
    sometimes there is this error just before
    RakLibServer thread/NOTICE]: Blocked ip xx.xx.xx.xxx for 300 seconds
     
  19. Destroyer57

    Destroyer57 Zombie

    Messages:
    275
    TeraCube likes this.
  20. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    then in the day, on average 6 disconnection
    i did that but no success.
    for about an hour after restarting the server i have many massive all players logged out due to timeout and/or RakLibServer Blocked ip xx.xx.xx.xxx for 300 seconds
    then in the day, on average 6/10 disconnections all players logged out due to timeout but 0 RakLibServer error Blocked ip xx.xx.xx.xxx for 300 seconds
    I removed one by one all the plugins not necessary but without success
    My server config :
    PocketMine-MP version 1269
    uname -a: Linux g1 4.5.0-0.bpo.2-amd64 #1 SMP Debian 4.5.4-1~bpo8+1 (2016-05-13) x86_64
    PHP Version: 7.2.7
    Zend version: 3.2.0
    OS : Linux

    do you think a corrupted map can cause timout error ?

    thanks
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.