Getting Private Server Running on raspberry Pi
-
Hey there, unfortunately there seems to be no real tutorials on how to get that server going. I tried to install the server on a raspberry pi and managed to get a connection to it. Problem is, i can place a spawn in a room but cant use the console or scripts.
Here are the log files from my latest attempt:
backend log
Loading mods from "/home/pi/ScreepsWorld/mods.json" - /home/pi/ScreepsWorld/example-mods/welcome-text.js - /home/pi/ScreepsWorld/example-mods/tick-duration.js - /home/pi/ScreepsWorld/example-mods/change-constant.js - /home/pi/ScreepsWorld/example-mods/cli-method.js - /home/pi/ScreepsWorld/example-mods/cronjob.js - /home/pi/ScreepsWorld/example-mods/notifications-mailer/notifications-mailer.js - /home/pi/ScreepsWorld/example-mods/player-sandbox.js - /home/pi/ScreepsWorld/example-mods/process-object.js - /home/pi/ScreepsWorld/example-mods/room-history.js - /home/pi/ScreepsWorld/example-mods/custom-objects/simple.js - /home/pi/ScreepsWorld/example-mods/custom-objects/advanced.js - /home/pi/ScreepsWorld/example-mods/custom-objects/intent.js - /home/pi/ScreepsWorld/example-mods/custom-objects/intent-custom.js Connecting to storage Starting CLI server STEAM_KEY environment variable found, disabling native authentication Connecting to Steam Web API CLI listening on localhost:21026 Starting game server (protocol version 13) SockJS v0.3.19 bound to "/socket" Game server listening on 0.0.0.0:21025 Server password is mypass Running cronjob 'sendNotifications' Running cronjob 'roomsForceUpdate' Running cronjob 'genPowerBanks' Running cronjob 'genInvaders' Running cronjob 'purgeTransactions' Running cronjob 'recreateNpcOrders' Running cronjob 'calcMarketStats' Running cronjob 'myCronJob' 1 Running cronjob 'myCronJob' 2 Running cronjob 'myCronJob' 3 Running cronjob 'myCronJob' 4 Running cronjob 'roomsForceUpdate' Running cronjob 'myCronJob' 5 Sign in: skrat17 (7d4365e980b5381), IP=192.168.2.102, steamid=76561198024753200 GET /socket/info 9ms 200 GET /socket/983/hh6nxq6c/websocket 22ms (unfinished) Running cronjob 'myCronJob' 6 Unhandled rejection: Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client at ServerResponse.setHeader (_http_outgoing.js:471:11) at ServerResponse.header (/usr/lib/node_modules/screeps/node_modules/express/lib/response.js:767:10) at ServerResponse.send (/usr/lib/node_modules/screeps/node_modules/express/lib/response.js:170:12) at ServerResponse.json (/usr/lib/node_modules/screeps/node_modules/express/lib/response.js:267:15) at /usr/lib/node_modules/screeps/node_modules/q-json-response/q-json-response.js:17:14 at _rejected (/usr/lib/node_modules/screeps/node_modules/q/q.js:864:24) at /usr/lib/node_modules/screeps/node_modules/q/q.js:890:30 at Promise.when (/usr/lib/node_modules/screeps/node_modules/q/q.js:1142:31) at Promise.promise.promiseDispatch (/usr/lib/node_modules/screeps/node_modules/q/q.js:808:41) at /usr/lib/node_modules/screeps/node_modules/q/q.js:624:44 Unhandled rejection: Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client at ServerResponse.setHeader (_http_outgoing.js:471:11) at ServerResponse.header (/usr/lib/node_modules/screeps/node_modules/express/lib/response.js:767:10) at ServerResponse.json (/usr/lib/node_modules/screeps/node_modules/express/lib/response.js:264:10) at /usr/lib/node_modules/screeps/node_modules/q-json-response/q-json-response.js:17:14 at _rejected (/usr/lib/node_modules/screeps/node_modules/q/q.js:864:24) at /usr/lib/node_modules/screeps/node_modules/q/q.js:890:30 at Promise.when (/usr/lib/node_modules/screeps/node_modules/q/q.js:1142:31) at Promise.promise.promiseDispatch (/usr/lib/node_modules/screeps/node_modules/q/q.js:808:41) at /usr/lib/node_modules/screeps/node_modules/q/q.js:624:44 at runSingle (/usr/lib/node_modules/screeps/node_modules/q/q.js:137:13) Running cronjob 'myCronJob' 7 Running cronjob 'myCronJob' 8 Running cronjob 'roomsForceUpdate' Running cronjob 'myCronJob' 9 Running cronjob 'myCronJob' 10 Running cronjob 'myCronJob' 11 Running cronjob 'myCronJob' 12 Running cronjob 'sendNotifications' Running cronjob 'roomsForceUpdate' Running cronjob 'myCronJob'
engine_main.log
Loading mods from "/home/pi/ScreepsWorld/mods.json" - /home/pi/ScreepsWorld/example-mods/welcome-text.js - /home/pi/ScreepsWorld/example-mods/tick-duration.js - /home/pi/ScreepsWorld/example-mods/change-constant.js - /home/pi/ScreepsWorld/example-mods/cli-method.js - /home/pi/ScreepsWorld/example-mods/cronjob.js - /home/pi/ScreepsWorld/example-mods/notifications-mailer/notifications-mailer.js - /home/pi/ScreepsWorld/example-mods/player-sandbox.js - /home/pi/ScreepsWorld/example-mods/process-object.js - /home/pi/ScreepsWorld/example-mods/room-history.js - /home/pi/ScreepsWorld/example-mods/custom-objects/simple.js - /home/pi/ScreepsWorld/example-mods/custom-objects/advanced.js - /home/pi/ScreepsWorld/example-mods/custom-objects/intent.js - /home/pi/ScreepsWorld/example-mods/custom-objects/intent-custom.js Connecting to storage Main loop reset! Stage: waitForUsers Game time set to 7838 Main loop reset! Stage: waitForUsers Game time set to 7839 Main loop reset! Stage: waitForUsers Game time set to 7840 Main loop reset! Stage: waitForUsers Game time set to 7841 Main loop reset! Stage: waitForUsers Game time set to 7842 Main loop reset! Stage: waitForUsers Game time set to 7843 Main loop reset! Stage: waitForUsers Game time set to 7844 Main loop reset! Stage: waitForUsers Game time set to 7845 Main loop reset! Stage: waitForUsers Game time set to 7846 Main loop reset! Stage: waitForUsers Game time set to 7847 Main loop reset! Stage: waitForUsers Game time set to 7848 Main loop reset! Stage: waitForUsers Game time set to 7849 Main loop reset! Stage: waitForUsers Game time set to 7850 Main loop reset! Stage: waitForUsers Game time set to 7851 Main loop reset! Stage: waitForUsers Game time set to 7852 Main loop reset! Stage: waitForUsers Game time set to 7853 Main loop reset! Stage: waitForUsers Game time set to 7854 Main loop reset! Stage: waitForUsers Game time set to 7855 Main loop reset! Stage: waitForUsers Game time set to 7856 Main loop reset! Stage: waitForUsers Game time set to 7857 Main loop reset! Stage: waitForUsers Game time set to 7858 Main loop reset! Stage: waitForUsers Game time set to 7859 Main loop reset! Stage: waitForUsers Game time set to 7860 Main loop reset! Stage: waitForUsers Game time set to 7861 Main loop reset! Stage: waitForUsers Game time set to 7862 Main loop reset! Stage: waitForUsers Game time set to 7863 Main loop reset! Stage: waitForUsers Game time set to 7864 Main loop reset! Stage: waitForUsers Game time set to 7865 Main loop reset! Stage: waitForUsers Game time set to 7866 Main loop reset! Stage: waitForUsers Game time set to 7867 Main loop reset! Stage: waitForUsers Game time set to 7868 Main loop reset! Stage: waitForUsers Game time set to 7869 Main loop reset! Stage: waitForUsers Game time set to 7870 Main loop reset! Stage: waitForUsers Game time set to 7871 Main loop reset! Stage: waitForUsers Game time set to 7872 Main loop reset! Stage: waitForUsers Game time set to 7873 Main loop reset! Stage: waitForUsers Game time set to 7874 Main loop reset! Stage: waitForUsers Game time set to 7875 Main loop reset! Stage: waitForUsers Game time set to 7876 Main loop reset! Stage: waitForUsers Game time set to 7877 Main loop reset! Stage: waitForUsers Game time set to 7878 Main loop reset! Stage: waitForUsers Game time set to 7879 Main loop reset! Stage: waitForUsers Game time set to 7880 Main loop reset! Stage: waitForUsers Game time set to 7881 Main loop reset! Stage: waitForUsers Game time set to 7882 Got SIGTERM, disabling queue fetching
engine_processor1.log
Loading mods from "/home/pi/ScreepsWorld/mods.json" - /home/pi/ScreepsWorld/example-mods/welcome-text.js - /home/pi/ScreepsWorld/example-mods/tick-duration.js - /home/pi/ScreepsWorld/example-mods/change-constant.js - /home/pi/ScreepsWorld/example-mods/cli-method.js - /home/pi/ScreepsWorld/example-mods/cronjob.js - /home/pi/ScreepsWorld/example-mods/notifications-mailer/notifications-mailer.js - /home/pi/ScreepsWorld/example-mods/player-sandbox.js - /home/pi/ScreepsWorld/example-mods/process-object.js - /home/pi/ScreepsWorld/example-mods/room-history.js - /home/pi/ScreepsWorld/example-mods/custom-objects/simple.js - /home/pi/ScreepsWorld/example-mods/custom-objects/advanced.js - /home/pi/ScreepsWorld/example-mods/custom-objects/intent.js - /home/pi/ScreepsWorld/example-mods/custom-objects/intent-custom.js Connecting to storage Unhandled rejection: TypeError [ERR_INVALID_CALLBACK]: Callback must be a function at maybeCallback (fs.js:159:9) at Object.fs.writeFile (fs.js:1278:14) at EventEmitter.<anonymous> (/home/pi/ScreepsWorld/example-mods/room-history.js:28:16) at EventEmitter.emit (events.js:182:13) at env.get.then.data (/usr/lib/node_modules/screeps/node_modules/@screeps/driver/lib/history.js:39:27) at _fulfilled (/usr/lib/node_modules/screeps/node_modules/q/q.js:854:54) at /usr/lib/node_modules/screeps/node_modules/q/q.js:883:30 at Promise.promise.promiseDispatch (/usr/lib/node_modules/screeps/node_modules/q/q.js:816:13) at /usr/lib/node_modules/screeps/node_modules/q/q.js:624:44 at runSingle (/usr/lib/node_modules/screeps/node_modules/q/q.js:137:13) Unhandled rejection: TypeError [ERR_INVALID_CALLBACK]: Callback must be a function at maybeCallback (fs.js:159:9) at Object.fs.writeFile (fs.js:1278:14) at EventEmitter.<anonymous> (/home/pi/ScreepsWorld/example-mods/room-history.js:28:16) at EventEmitter.emit (events.js:182:13) at env.get.then.data (/usr/lib/node_modules/screeps/node_modules/@screeps/driver/lib/history.js:39:27) at _fulfilled (/usr/lib/node_modules/screeps/node_modules/q/q.js:854:54) at /usr/lib/node_modules/screeps/node_modules/q/q.js:883:30 at Promise.promise.promiseDispatch (/usr/lib/node_modules/screeps/node_modules/q/q.js:816:13) at /usr/lib/node_modules/screeps/node_modules/q/q.js:624:44 at runSingle (/usr/lib/node_modules/screeps/node_modules/q/q.js:137:13)
engine_processor2.log
Loading mods from "/home/pi/ScreepsWorld/mods.json" - /home/pi/ScreepsWorld/example-mods/welcome-text.js - /home/pi/ScreepsWorld/example-mods/tick-duration.js - /home/pi/ScreepsWorld/example-mods/change-constant.js - /home/pi/ScreepsWorld/example-mods/cli-method.js - /home/pi/ScreepsWorld/example-mods/cronjob.js - /home/pi/ScreepsWorld/example-mods/notifications-mailer/notifications-mailer.js - /home/pi/ScreepsWorld/example-mods/player-sandbox.js - /home/pi/ScreepsWorld/example-mods/process-object.js - /home/pi/ScreepsWorld/example-mods/room-history.js - /home/pi/ScreepsWorld/example-mods/custom-objects/simple.js - /home/pi/ScreepsWorld/example-mods/custom-objects/advanced.js - /home/pi/ScreepsWorld/example-mods/custom-objects/intent.js - /home/pi/ScreepsWorld/example-mods/custom-objects/intent-custom.js Connecting to storage Unhandled rejection: TypeError [ERR_INVALID_CALLBACK]: Callback must be a function at maybeCallback (fs.js:159:9) at Object.fs.writeFile (fs.js:1278:14) at EventEmitter.<anonymous> (/home/pi/ScreepsWorld/example-mods/room-history.js:28:16) at EventEmitter.emit (events.js:182:13) at env.get.then.data (/usr/lib/node_modules/screeps/node_modules/@screeps/driver/lib/history.js:39:27) at _fulfilled (/usr/lib/node_modules/screeps/node_modules/q/q.js:854:54) at /usr/lib/node_modules/screeps/node_modules/q/q.js:883:30 at Promise.promise.promiseDispatch (/usr/lib/node_modules/screeps/node_modules/q/q.js:816:13) at /usr/lib/node_modules/screeps/node_modules/q/q.js:624:44 at runSingle (/usr/lib/node_modules/screeps/node_modules/q/q.js:137:13)
engine_runner.log
Loading mods from "/home/pi/ScreepsWorld/mods.json" - /home/pi/ScreepsWorld/example-mods/welcome-text.js - /home/pi/ScreepsWorld/example-mods/tick-duration.js - /home/pi/ScreepsWorld/example-mods/change-constant.js - /home/pi/ScreepsWorld/example-mods/cli-method.js - /home/pi/ScreepsWorld/example-mods/cronjob.js - /home/pi/ScreepsWorld/example-mods/notifications-mailer/notifications-mailer.js - /home/pi/ScreepsWorld/example-mods/player-sandbox.js - /home/pi/ScreepsWorld/example-mods/process-object.js - /home/pi/ScreepsWorld/example-mods/room-history.js - /home/pi/ScreepsWorld/example-mods/custom-objects/simple.js - /home/pi/ScreepsWorld/example-mods/custom-objects/advanced.js - /home/pi/ScreepsWorld/example-mods/custom-objects/intent.js - /home/pi/ScreepsWorld/example-mods/custom-objects/intent-custom.js Connecting to storage Terrain shared buffer size: 357500 Loading mods from "/home/pi/ScreepsWorld/mods.json" - /home/pi/ScreepsWorld/example-mods/welcome-text.js - /home/pi/ScreepsWorld/example-mods/tick-duration.js - /home/pi/ScreepsWorld/example-mods/change-constant.js - /home/pi/ScreepsWorld/example-mods/cli-method.js - /home/pi/ScreepsWorld/example-mods/cronjob.js - /home/pi/ScreepsWorld/example-mods/notifications-mailer/notifications-mailer.js - /home/pi/ScreepsWorld/example-mods/player-sandbox.js - /home/pi/ScreepsWorld/example-mods/process-object.js - /home/pi/ScreepsWorld/example-mods/room-history.js - /home/pi/ScreepsWorld/example-mods/custom-objects/simple.js - /home/pi/ScreepsWorld/example-mods/custom-objects/advanced.js - /home/pi/ScreepsWorld/example-mods/custom-objects/intent.js - /home/pi/ScreepsWorld/example-mods/custom-objects/intent-custom.js
storage.log
Loading mods from "/home/pi/ScreepsWorld/mods.json" - /home/pi/ScreepsWorld/example-mods/welcome-text.js - /home/pi/ScreepsWorld/example-mods/tick-duration.js - /home/pi/ScreepsWorld/example-mods/change-constant.js - /home/pi/ScreepsWorld/example-mods/cli-method.js - /home/pi/ScreepsWorld/example-mods/cronjob.js - /home/pi/ScreepsWorld/example-mods/notifications-mailer/notifications-mailer.js - /home/pi/ScreepsWorld/example-mods/player-sandbox.js - /home/pi/ScreepsWorld/example-mods/process-object.js - /home/pi/ScreepsWorld/example-mods/room-history.js - /home/pi/ScreepsWorld/example-mods/custom-objects/simple.js - /home/pi/ScreepsWorld/example-mods/custom-objects/advanced.js - /home/pi/ScreepsWorld/example-mods/custom-objects/intent.js - /home/pi/ScreepsWorld/example-mods/custom-objects/intent-custom.js Starting storage server Storage listening on 21027 [127.0.0.1:39526] Incoming connection [127.0.0.1:39528] Incoming connection [127.0.0.1:39530] Incoming connection [127.0.0.1:39532] Incoming connection [127.0.0.1:39534] Incoming connection [127.0.0.1:39526] Connection closed [127.0.0.1:39538] Incoming connection [127.0.0.1:39538] Connection error: read ECONNRESET [127.0.0.1:39538] Connection closed [127.0.0.1:39540] Incoming connection [127.0.0.1:39540] Connection closed [127.0.0.1:39542] Incoming connection [127.0.0.1:39542] Connection closed [127.0.0.1:39544] Incoming connection [127.0.0.1:39544] Connection closed [127.0.0.1:39546] Incoming connection [127.0.0.1:39546] Connection closed [127.0.0.1:39548] Incoming connection [127.0.0.1:39548] Connection error: write EPIPE [127.0.0.1:39548] Connection closed [127.0.0.1:39552] Incoming connection [127.0.0.1:39552] Connection closed [127.0.0.1:39554] Incoming connection [127.0.0.1:39554] Connection closed [127.0.0.1:39556] Incoming connection [127.0.0.1:39556] Connection closed [127.0.0.1:39558] Incoming connection [127.0.0.1:39558] Connection error: read ECONNRESET [127.0.0.1:39558] Connection closed [127.0.0.1:39560] Incoming connection [127.0.0.1:39560] Connection closed [127.0.0.1:39562] Incoming connection [127.0.0.1:39562] Connection error: read ECONNRESET [127.0.0.1:39562] Connection closed [127.0.0.1:39564] Incoming connection [127.0.0.1:39564] Connection closed [127.0.0.1:39566] Incoming connection [127.0.0.1:39566] Connection closed
thanks for any help in advance