Server freeze with TooAngel's mod



  • Installed Build31 with iKlem script and with TooAngel mod that added a user. I added bot twice and got two new users, so far so good. They operated for 20-100 ticks and then server froze. Restarted server, worked for another 20-100 ticks. Restarted again and now it worked for 73 ticks. Logs are below.

     



    $ cat engine_main.log
    ...
    Main loop reset! Stage: waitForUsers

     

    $ cat engine_processor1.log
    ...
    Storage connection lost { Error: connect ECONNREFUSED 127.0.0.1:21027
        at Object.exports._errnoException (util.js:1026:11)
        at exports._exceptionWithHostPort (util.js:1049:20)
        at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1085:14)
      code: 'ECONNREFUSED',
      errno: 'ECONNREFUSED',
      syscall: 'connect',
      address: '127.0.0.1',
      port: 21027 }
    Connecting to storage

     

    $ cat engine_runner1.log
    ...
    Storage connection lost { Error: connect ECONNREFUSED 127.0.0.1:21027
        at Object.exports._errnoException (util.js:1026:11)
        at exports._exceptionWithHostPort (util.js:1049:20)
        at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1085:14)
      code: 'ECONNREFUSED',
      errno: 'ECONNREFUSED',
      syscall: 'connect',
      address: '127.0.0.1',
      port: 21027 }
    Connecting to storage

     

    $ cat storage.log
    screeps@debian-512mb-screeps001:~/iKlem_server$ cat screeps/server/logs/1478558565024/storage.log
    Loading mods from "/home/screeps/iKlem_server/screeps/server/mods/mods.json"
     - /home/screeps/iKlem_server/screeps/server/mods/bot.js
    Starting storage server
    Storage listening on 21027
    [127.0.0.1:47889] Incoming connection
    [127.0.0.1:47890] Incoming connection
    [127.0.0.1:47891] Incoming connection
    [127.0.0.1:47892] Incoming connection
    [127.0.0.1:47893] Incoming connection
    [127.0.0.1:47894] Incoming connection
    [127.0.0.1:47896] Incoming connection
    [127.0.0.1:47897] Incoming connection
    Loading mods from "/home/screeps/iKlem_server/screeps/server/mods/mods.json"
     - /home/screeps/iKlem_server/screeps/server/mods/bot.js
    Starting storage server
    Storage listening on 21027
    [127.0.0.1:47907] Incoming connection
    [127.0.0.1:47908] Incoming connection
    [127.0.0.1:47909] Incoming connection
    [127.0.0.1:47910] Incoming connection
    [127.0.0.1:47911] Incoming connection
    [127.0.0.1:47912] Incoming connection
    [127.0.0.1:47913] Incoming connection
    [127.0.0.1:47914] Incoming connection


  • Hey, thanks for testing and sorry for the inconveniences.

     

    I had something similar issue once, where no more ticks where processed (not directly related to adding a bot, but having ~5 bots running). After closing everything, screeps-server, screeps-steam-client, even steam and restart everything again it was fine.

     

    I'm not sure if and how I could have introduced the error, the mod is mostly a combination of the example-cli command, the signup and the set-spawn method from the server. Nothing fancy.



  • That's not the tooangel's mod, I have the same problem with my IA and I started a month ago so it is a little IA... I googled it, that's why I'm here.

     

    Maybe linked to swap, but I have one.

    My server worked more than 12 hours before it happens. I think it always happened while I was online but I'm not sure.

     

     

    btw, your github is very nice to read tooangel, thank you for the share.