[mod] Empyrion Web Access

Discussion in 'Empyrion API' started by ASTIC, Nov 27, 2018.

  1. Krinkle

    Krinkle Ensign

    Joined:
    Nov 17, 2020
    Messages:
    1
    Likes Received:
    0
    Hi guys, im a little stuck on getting up and running.
    I have installed into the server and renamed the xstart.txt file to start.txt.
    my appsettings.json looks like this ( Although on here it says to call it appconfig.json which i have also tried --- https://github.com/GitHub-TC/EmpyrionWebAccess)

    {
    "Kestrel": {
    "Endpoints": {
    "Http": {
    "Url": "http://176.57.153.xx:80"
    },
    "HttpsDefaultCert": {
    "Url": "https://176.57.153.xx:443"
    }
    }
    }
    }

    when trying to join either Url i just get timmed out, am i missing anything?

    thanks
     
    #41
  2. me777

    me777 Commander

    Joined:
    Aug 18, 2020
    Messages:
    384
    Likes Received:
    131
    I think it is broken... probably the new patch for empyrion.

    the mod starts the process, but does not open a port.
    also tryed enabling other port/url in appsettings.json.

    there are logfiles, maybe there is a problem.
     

    Attached Files:

    #42
  3. dusty7765

    dusty7765 Ensign

    Joined:
    Mar 22, 2020
    Messages:
    1
    Likes Received:
    0
    Hi is there anywhere i can get help to install EWA step by step and help me troubleshoot it. Im running a hosted server at nitrado with reforged eden scenario and i wanted to use ewa so i can try out some mods and stuff . Ive never used it before and im stuck on the part where i need to set up the json file i uploaded it in the correctplace and changed the xstart to start but i cant understand how to connect to the service and set up the json file correctly to be able to connect I hope someone can help me or direct me to where i can find help with EWA.
     
    #43
  4. Cechri

    Cechri Ensign

    Joined:
    Jun 21, 2020
    Messages:
    3
    Likes Received:
    0
    We're late to the party I guess, have been a fan of EGS for years but the group I now game with, Salty Zombies, just started a server and I'm one of the admins for it. Also, my first time doing anything with a server so learning as I go. We're using EAH, but would love to use EWA also in order to be able to access the server from the web. From what I've read in Discord it is possible to run both in parallel but I can't find anything about it working with a PingPerfect server. Does anyone have any guidance or answers? I spent an hour or so this morning trying to follow the install directions on page 1 without success. Just thought I'd ask before wasting any more time if it's not possible. Thank you.
     
    #44
  5. ASTIC

    ASTIC Captain

    Joined:
    Dec 11, 2016
    Messages:
    993
    Likes Received:
    707
    If the hoster allows a program to run on the server that offers a web server (and of course requires a port from which it can be reached from the outside through the firewalls), the EWA should also work.

    EWA and EAH (full) work together in parallel without problems - if it is a Windows server.
     
    #45
  6. Cechri

    Cechri Ensign

    Joined:
    Jun 21, 2020
    Messages:
    3
    Likes Received:
    0
    Thank you for the help! I'll give it a shot.
     
    #46
  7. ASTIC

    ASTIC Captain

    Joined:
    Dec 11, 2016
    Messages:
    993
    Likes Received:
    707
    1. Unzip the EWA files https://github.com/GitHub-TC/EmpyrionWebAccess/releases/download/6.1.3/EWALoader.6.1.3.zip into the EGS mod folder
    2. Start your EGS
    3. Rename the file in the EWA savegame mod folder to "start.txt"
    4. Select the web server URL in the file "appsettings.json" in the EWA mod folder
    5. Call this URL from a web browser (first local on the server - prevent the firewall) an the from outside
     
    #47
  8. ASTIC

    ASTIC Captain

    Joined:
    Dec 11, 2016
    Messages:
    993
    Likes Received:
    707
  9. ASTIC

    ASTIC Captain

    Joined:
    Dec 11, 2016
    Messages:
    993
    Likes Received:
    707
    #49
  10. ASTIC

    ASTIC Captain

    Joined:
    Dec 11, 2016
    Messages:
    993
    Likes Received:
    707
  11. Groza

    Groza Commander

    Joined:
    Apr 20, 2015
    Messages:
    46
    Likes Received:
    67
    hi, I have a question (a little dumb, but still)
    how to distribute tasks in the timetable in order to get a server restart with a message sent to the chat in advance and a backup created?
     
    #51
  12. Groza

    Groza Commander

    Joined:
    Apr 20, 2015
    Messages:
    46
    Likes Received:
    67
    I’m not sure that the translator will convey my idea correctly, so in a simplified form what I want to do:
    - automatic sending of a custom chat message (about an upcoming restart)
    - the beginning of the restart process (countdown until the server shutdown)
    - server stop
    - start creating a backup
    - finishing the backup and starting the server
    what and in what order do I need to select in the timetable section for this?
     
    #52
  13. ASTIC

    ASTIC Captain

    Joined:
    Dec 11, 2016
    Messages:
    993
    Likes Received:
    707
    [​IMG]

    and thats all ;-)

    you have to setup the start cmd for EGS like

    [​IMG]
     
    #53
    Groza likes this.
  14. Krucifix

    Krucifix Ensign

    Joined:
    Nov 22, 2019
    Messages:
    15
    Likes Received:
    10
    I cannot even get this to install in the first place, even after following the instructions EXACTLY, no "MODS" folder in the save game shows up, and keep getting an error when trying to start the server.
     
    #54
  15. ASTIC

    ASTIC Captain

    Joined:
    Dec 11, 2016
    Messages:
    993
    Likes Received:
    707
    Extract the files from the ZIP into the EGS/Content/Mods folder and at startup something should "do" something in the logs and the safegame
    https://github.com/GitHub-TC/EmpyrionWebAccess/releases/download/6.5.14/EWALoader.6.5.14.zip

    PS: You should attach the log files and a screenshot of the directory because it is pure guessing what you have installed incorrectly
     
    #55
  16. Lanthanum

    Lanthanum Ensign

    Joined:
    Nov 2, 2017
    Messages:
    12
    Likes Received:
    1
    #56
  17. ASTIC

    ASTIC Captain

    Joined:
    Dec 11, 2016
    Messages:
    993
    Likes Received:
    707
    Have you set the "appsettings.json" for your server correctly? or check the [EGS]Logs\EWA to see if there are any hints in the log files
     
    #57
  18. Lanthanum

    Lanthanum Ensign

    Joined:
    Nov 2, 2017
    Messages:
    12
    Likes Received:
    1
    ha got it, so it was windows hiding the extension for the start.txt file, I thought I had set to show known extensions but I didn't on that vm so the file was actually named start.txt.txt. It is working now. Thx for the quick response and good mods!
     
    #58
    ASTIC likes this.
  19. Caveator

    Caveator Ensign

    Joined:
    Apr 11, 2024
    Messages:
    3
    Likes Received:
    0
    Hello! We have two physical servers hosting Empyrion dedicated. We have the EWA installed on both servers. One works, one does not. For the one that does not work we see the following error in the dedicated log:

    11-14:53:57.620 10_53 -LOG- {:EWAExtenderCommunication} Try to connect ExecServerCommunication. EWAToEmpyrionPipe32142de8d8cd4dd39321950b33d54a05 Reason: System.IO.FileNotFoundException: Unable to find the specified file. at System.IO.MemoryMappedFiles.MemoryMappedFile.OpenExisting (System.String mapName) [0x00031] in <03f3355ff4214c59ae3f44587e76142b>:0 at SharedMemory.SharedBuffer.Open () [0x0017e] in <03f3355ff4214c59ae3f44587e76142b>:0 at SharedMemory.CircularBuffer..ctor (System.String name) [0x0000a] in <03f3355ff4214c59ae3f44587e76142b>:0 at EWAExtenderCommunication.ServerMessagePipe.ExecServerCommunication () [0x00014] in <0edd22ada46846e09796ddddb555cc4d>:0 at EWAExtenderCommunication.ServerMessagePipe.ServerCommunicationLoop () [0x00010] in <0edd22ada46846e09796ddddb555cc4d>:0

    Not sure what would be missing between the two. Any thoughts?

    This seems to be the place where EmpyrionModWebHost.exe would start. Is it unable to see DedicatedServer/EmpyrionDedicated.exe for some reason? Everything is running under SYSTEM.

    The EWA folder is created in the save folder, with a json file and start.txt. There is no EmpyrionModWebHost.exe process running.
     
    #59
    Last edited: Apr 11, 2024
  20. ASTIC

    ASTIC Captain

    Joined:
    Dec 11, 2016
    Messages:
    993
    Likes Received:
    707
    During the first initialization, the EWA assigns in the file [EGSServer]\Content\Mods\EWALoader\Client\Configuration.xml
    unique names for the inter-process communication pipes e.g.
    Code:
      <EmpyrionToModPipeName>EmpyrionToEWAPipedc423a62679c4280aa62d567ec44919e</EmpyrionToModPipeName>
    <ModToEmpyrionPipeName>EWAToEmpyrionPipe8a1abe7f079845a4a3eca3996271e116</ModToEmpyrionPipeName>
    
    these must be different for each EGS server.

    It is best to always install the EWA from the ZIP file for a new server or at least get this file from the ZIP archive again
     
    #60

Share This Page