Linux build throwing steamworks errors


  • Culture

    Found the log files, 

    Loading mods in 'mods'
    Connecting to storage
    Starting CLI server
    Connecting to local Steam client failed: Steam is not running
    Using Steam Web API authentication instead
    Error: STEAM_KEY environment variable is not set!
    at Object.startServer (/home/adam/.local/share/Steam/steamapps/common/Screeps/server/modules/backend/lib/game/server.js:89:19)
    at common.storage._connect.then.then (/home/adam/.local/share/Steam/steamapps/common/Screeps/server/modules/backend/lib/index.js:16:28)
    at _fulfilled (/home/adam/.local/share/Steam/steamapps/common/Screeps/server/modules/common/node_modules/q/q.js:834:54)
    at self.promiseDispatch.done (/home/adam/.local/share/Steam/steamapps/common/Screeps/server/modules/common/node_modules/q/q.js:863:30)
    at Promise.promise.promiseDispatch (/home/adam/.local/share/Steam/steamapps/common/Screeps/server/modules/common/node_modules/q/q.js:796:13)
    at /home/adam/.local/share/Steam/steamapps/common/Screeps/server/modules/common/node_modules/q/q.js:604:44
    at runSingle (/home/adam/.local/share/Steam/steamapps/common/Screeps/server/modules/common/node_modules/q/q.js:137:13)
    at flush (/home/adam/.local/share/Steam/steamapps/common/Screeps/server/modules/common/node_modules/q/q.js:125:13)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)

  • Dev Team

    Screeps is using a custom version of greenworks, the prebuilt version from their github will not work. We're looking for a solution right now.

    As to STEAM_KEY error, check the Authentication section in README.html.


  • Culture

    Ok, after configuring .screepsrc, it works (With the replaced greenworks-linux64.node) 


  • Dev Team

    Yes, but keep in mind you won't be able to use native Steam authentication this way, i.e. an internet connection for the server and all clients is required.


  • Dev Team

    Alright, this has been fixed by greenworks developer. Please update your server and tell us if it works for you.



  • This seems to be resolved, but I have new errors now. I will start a new thread.



  • Just updated screeps in steam and I still receive the same error, but elsewhere.

    ELECTRON_ASAR.js:178
            return old.apply(this, arguments)
                       ^

    Error: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/kalvis/.local/share/Steam/steamapps/common/Screeps/server/modules/driver/native/build/Release/native.node)
        at Error (native)
        at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:178:20)
        at Object.Module._extensions..node (module.js:583:18)
        at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:178:20)
        at Module.load (module.js:473:32)
        at tryModuleLoad (module.js:432:12)
        at Function.Module._load (module.js:424:3)
        at Module.require (module.js:483:17)
        at require (internal/module.js:20:19)
        at Object.<anonymous> (/home/kalvis/.local/share/Steam/steamapps/common/Screeps/server/modules/driver/lib/index.js:876:18)
    ELECTRON_ASAR.js:178
            return old.apply(this, arguments)

  • Dev Team

    Please try this:

    sudo apt-get install libstdc++6


  • Seems that I already have it.

    libstdc++6 is already the newest version.


  • The problem is yours is a different version then was built against. 

    There are "ways" around this but the best for screeps is to rebuild 



  • I too already have libstdc++6 and am getting said error. How do I rebuild to fix it?



  • It's not that the library can't be found it's that a different version of the library is found. Probably because it was compiled with a different version of GCC. Remember that if you launch through steam you are launching in a static environment based on Ubuntu 12.04. If your launching via command line your using your (usually newer) version of libraries.

     

    Ahem G++



  • I'm right-clicking and launching through steam. Do I need to use the CLI?



  • Well, I tried the CLI, and got an entirely different error. Yay?

    Error: Module version mismatch. Expected 46, got 50.
        at Error (native)
        at Object.Module._extensions..node (module.js:435:18)
        at Module.load (module.js:344:32)
        at Function.Module._load (module.js:301:12)
        at Module.require (module.js:354:17)
        at require (internal/module.js:12:17)
        at Object.<anonymous> (/home/angle/.steam/steamapps/common/Screeps/server/modules/backend/greenworks/greenworks.js:22:18)
        at Module._compile (module.js:410:26)
        at Object.Module._extensions..js (module.js:417:10)
        at Module.load (module.js:344:32)



  • All i can tell you Angle is that I got these exact same errors too, and you need to rebuild the project. 

     

    http://screeps.com/forum/topic/523/Dedicated-Server

     

    That's what I did to get  up and running. ags131 helped alot