Errors and Storage Connections
-
Basically, I can place a spawn, but then nothing happens (the spawn doesn't appear). I can add some code, but the code doesn't do anything. If I exit the application and restart the server and client, all progress is lost.
Errors that I can follow
invalid room
Unhandled rejection: Error: Can't set headers after they are sent.
at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:344:11)
at ServerResponse.header (/home/coteyr/.local/share/Steam/steamapps/common/Screeps/server/modules/backend/node_modules/express/lib/response.js:719:10)
at ServerResponse.json (/home/coteyr/.local/share/Steam/steamapps/common/Screeps/server/modules/backend/node_modules/express/lib/response.js:247:10)
at /home/coteyr/.local/share/Steam/steamapps/common/Screeps/server/modules/backend/node_modules/q-json-response/q-json-response.js:17:14
at _rejected (/home/coteyr/.local/share/Steam/steamapps/common/Screeps/server/modules/backend/node_modules/q/q.js:844:24)
at /home/coteyr/.local/share/Steam/steamapps/common/Screeps/server/modules/backend/node_modules/q/q.js:870:30
at Promise.when (/home/coteyr/.local/share/Steam/steamapps/common/Screeps/server/modules/backend/node_modules/q/q.js:1122:31)
at Promise.promise.promiseDispatch (/home/coteyr/.local/share/Steam/steamapps/common/Screeps/server/modules/backend/node_modules/q/q.js:788:41)
at /home/coteyr/.local/share/Steam/steamapps/common/Screeps/server/modules/backend/node_modules/q/q.js:604:44
at runSingle (/home/coteyr/.local/share/Steam/steamapps/common/Screeps/server/modules/backend/node_modules/q/q.js:137:13)engine_main
======
Loading mods in 'mods'
Connecting to storage
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:1081:14)
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 21027 }
Connecting to storageengine_runner2
====
Loading mods in 'mods'
Connecting to storage
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:1081:14)
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 21027 }
Connecting to storagestorage
======
Loading mods in 'mods'
Starting storage server
Storage listening on 21027
[127.0.0.1:37786] Incoming connection
[127.0.0.1:37788] Incoming connection
[127.0.0.1:37790] Incoming connection
[127.0.0.1:37798] Incoming connection
[127.0.0.1:37804] Incoming connection
[127.0.0.1:37806] Incoming connection
-
With a third start this seems to be working fine.