[mod] Empyrion Web Access

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

  1. Deathstroke_BR®

    Deathstroke_BR® Ensign

    Joined:
    Jan 23, 2016
    Messages:
    7
    Likes Received:
    0
    did this mod works with the coop game? i am perfoming some tests before placing this at the main server... if it do work, i was trying to access the EWA from my coop game,but wasn't able to connect it aswell....
     
    #21
  2. ASTIC

    ASTIC Rear Admiral

    Joined:
    Dec 11, 2016
    Messages:
    1,085
    Likes Received:
    731
    The EWA is for a dedicated server .... you can host the EmpyrionDedicatedServer on your machine parallel if you have enought cpu and ram
     
    #22
    Ephoie and Deathstroke_BR® like this.
  3. Deathstroke_BR®

    Deathstroke_BR® Ensign

    Joined:
    Jan 23, 2016
    Messages:
    7
    Likes Received:
    0
    all ready ! thx for the fast reply buddy :D
     
    #23
  4. Deathstroke_BR®

    Deathstroke_BR® Ensign

    Joined:
    Jan 23, 2016
    Messages:
    7
    Likes Received:
    0
    i got a question... if i lost my password there is a way to recover it ?
     
    #24
  5. ASTIC

    ASTIC Rear Admiral

    Joined:
    Dec 11, 2016
    Messages:
    1,085
    Likes Received:
    731
    Nop.
    - if you are the only user you can delete the user DB "[savegame]\Mods\EWA\DB\Users.db" so the first login is for free and creates a new user with that password
    - otherwise another admin have to delete your EWA user
     
    #25
    Ephoie likes this.
  6. [TKC]olT3lo

    [TKC]olT3lo Lieutenant

    Joined:
    Oct 12, 2019
    Messages:
    35
    Likes Received:
    28
    Has anyone successfully gotten this running with Nitrado? They are telling me they can't allow a web server to serve the mod. Does that mean they are blocking it from starting?
     
    #26
    Last edited: Oct 25, 2019
  7. ASTIC

    ASTIC Rear Admiral

    Joined:
    Dec 11, 2016
    Messages:
    1,085
    Likes Received:
    731
    Does Nitrado allow MOD DLLs at all? Many hosters block the uploading of DLLs .-(
    Allow a port for a web server - is their hell scenario - :-((

    So usually only a dedicated server remains as a solution for more than 4 players usually anyway the better choice.
     
    #27
    Ephoie likes this.
  8. [TKC]olT3lo

    [TKC]olT3lo Lieutenant

    Joined:
    Oct 12, 2019
    Messages:
    35
    Likes Received:
    28
    I left Nitrado for Low.MS and was able to get everything installed. Thanks.
     
    #28
    Kassonnade likes this.
  9. Maxi

    Maxi Ensign

    Joined:
    Dec 22, 2019
    Messages:
    1
    Likes Received:
    0
    ich hoffe es kommt auch in Deutsch an :)
    ich versuch seit Tagen den EWA zu instalieren, und habe jetzt auf einer Seite endekt das es eine SystemConfig gibt, die bei meinem Ordner fehlt.
    icht sie entfernt worden oder muss sie erstellt werden? ich finde nirgens etwas darüber.


    EWA.PNG EWA2.PNG
     
    #29
  10. ASTIC

    ASTIC Rear Admiral

    Joined:
    Dec 11, 2016
    Messages:
    1,085
    Likes Received:
    731
    Als nächstes musst du in der appsettings.json dich für ein URL Paar entscheiden - zum Test kannst du das mit localhost nehmen, dann ist der EWA zunächst nur auf einem Browser auf dem Server erreichbar aber das kann man nachher ja noch ändern.
    Dann sollteest du das über localhost:5000 aufrufen können.
    Andernfalls schau mal in die LOG Dateien EGS\logs\EWA bzw in die dedicated ob da Hinweise sind was schief läuft
     
    #30
  11. visualcubb

    visualcubb Ensign

    Joined:
    May 28, 2020
    Messages:
    2
    Likes Received:
    0
    Hi Astic,

    I followed the steps to install this mod but I get this error and the mod never loads:


    28-19:18:50.441 15_18 -LOG- Uptime=00h18m heap= 349MB fps= 39 players= 0 pfs=r0/i1/a0 nwqueue=0
    28-19:19:04.440 15_19 -EXC- System.InvalidCastException: Specified cast is not valid.
    at System.Data.SQLite.SQLiteDataReader.VerifyType (System.Int32 i, System.Data.DbType typ) [0x000d1] in <d52f09e2aa2f4a7593c588778ba249ea>:0
    at System.Data.SQLite.SQLiteDataReader.GetInt32 (System.Int32 i) [0x00089] in <d52f09e2aa2f4a7593c588778ba249ea>:0
    at Assembly-CSharp.StubToken+ImageProvider.EnableBitmap (System.Data.IDataReader ) [0x00160] in <44f72d4bf709405ca9b60ce2c4c5ee15>:0
    at Assembly-CSharp.ActivatorScope+NodeQueue.EnableBitmap (Assembly-CSharp.WindowScope+IconFactory ) [0x000cb] in <44f72d4bf709405ca9b60ce2c4c5ee15>:0
    at Assembly-CSharp.WindowScope.PrintToolbox (System.Object ) [0x000f4] in <44f72d4bf709405ca9b60ce2c4c5ee15>:0

    This is the last version on https://github.com/GitHub-TC/EmpyrionWebAccess/releases
    Also I'm runnong A12.

    Thanks
     
    #31
  12. ASTIC

    ASTIC Rear Admiral

    Joined:
    Dec 11, 2016
    Messages:
    1,085
    Likes Received:
    731
    This are "normal" Empyrion errors ;-)
    In SinglePlayer you have to deactivate the EAC and then you see something like that

    28-11:04:08.858 13_04 -LOG- Loaded Mod 'EmpyrionScripting': "EmpyrionScripting" (Version: 5.0.0) from folder EmpyrionScripting
    28-11:04:09.095 13_04 -LOG- {EmpyrionScripting} EmpyrionScripting Mod started: IModApi
    28-11:04:09.287 13_04 -LOG- {EmpyrionScripting} EmpyrionScripting Config_Example.ecf: #2359
    28-11:04:09.288 13_04 -LOG- {EmpyrionScripting} EmpyrionScripting Config.ecf: #11
    28-11:04:09.353 13_04 -LOG- {EmpyrionScripting} EmpyrionScripting Configuration_Ecf: #2359 BlockById: #1624 BlockByName: #1624
     
    #32
  13. visualcubb

    visualcubb Ensign

    Joined:
    May 28, 2020
    Messages:
    2
    Likes Received:
    0
    Thank you for your answer, ASTIC. I'm running this in a dedicated server and it seems is not working. The EAW log file shows nothing.

    Also, I tried your EmpyrionBackpackExtender mod but every time I use \vb the server shows me the message "Connection lost" and I can no longer connect back. I have to restart the server to be able to log in again. Do you have a guess what could it be the problem?
     
    #33
  14. Gotteshand

    Gotteshand Ensign

    Joined:
    Jan 12, 2018
    Messages:
    5
    Likes Received:
    2
    HI.

    Ich versuche auch wieder diesen MOD zu nutzen nur leider finde ich im allgemeinen Log nur folgenden Eintrag

    24-21:25:59.177 23_25 -LOG- {:EWAExtenderCommunication} Failed ExecServerCommunication. EWAToEmpyrionPipe041c5abf8dd04a72a88c0876fe568057 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 <acae8d5ba2344c6eb41136ab9108dda1>:0
    at EWAExtenderCommunication.ServerMessagePipe.ServerCommunicationLoop () [0x0000e] in <acae8d5ba2344c6eb41136ab9108dda1>:0

    via

    https://xxxx:5001/
    http://xxxx:5001/


    Nicht erreichbar. EWA Log Ordner ist leer.

    Jason Datei ist wie folgt Editiert

    "Kestrel": {
    "Endpoints": {
    "Http": {
    //"Url": "http://WIN-MRLR755CKN3:80"
    //"Url": "http://WIN-MRLR755CKN3:5000"
    //"Url": "http://xxx:80"
    "Url": "http://xxx:5000"
    //"Url": "http://localhost:5000"
    //"Url": "http://127.0.0.1:5000"
    },
    "HttpsDefaultCert": {
    //"Url": "https://WIN-MRLR755CKN3:443"
    //"Url": "https://WIN-MRLR755CKN3:5001"
    //"Url": "https://xxxx:443"
    "Url": "https://xxxx:5001"
    //"Url": "https://localhost:5001"
    //"Url": "https://127.0.0.1:5001"
    }
    }
    }
    }

    Ist nur ein Teil der Datei und die x ersetzten die IP des Roots

    Jemand eine Idee ? Viele Grüße und Danke

    Teil Logfile des Roots:

    24-21:32:53.240 23_32 -LOG- Game dat file loaded
    24-21:32:53.640 23_32 -LOG- Loaded sector file DedicatedServer/../Saves/Games/xxxx/Sectors/Sectors.yaml with 40 playfields, needed 239ms
    24-21:32:53.903 23_32 -LOG- Generating stars=19278 took 260
    24-21:32:53.911 23_32 -LOG- Faction statistics enabled
    24-21:32:53.912 23_32 -LOG- Mode=containerAvailable, GameSeed=2309115, UniqueId=202293047, EntityId=485001
    24-21:32:53.984 23_32 -LOG- Start Game
    24-21:32:53.984 23_32 -LOG- Server started listening on port 30000
    24-21:32:54.113 23_32 -LOG- EAC: Starting server
    24-21:32:54.139 23_32 -LOG- Telnet server started on port 30004
    24-21:32:54.188 23_32 -LOG- Now listening for PfServers on port 30003
    24-21:32:54.190 23_32 -LOG- Thread 'QuoteSymbol1' ThreadId=4248 ManagedId=8
    24-21:32:54.210 23_32 -LOG- Loaded Mod 'EPM': "EPM" (Version: 1.0) from folder EPM
    24-21:32:54.212 23_32 -LOG- Loaded Mod 'EWALoader': "EWALoader" (Version: <unknown>) from folder EWALoader
    24-21:32:54.222 23_32 -LOG- {EPM} Dedi mod initialization start
    24-21:32:54.234 23_32 -LOG- {EPM} ModServer started on port: 12345
    24-21:32:54.235 23_32 -LOG- {EPM} Dedi mod initialized
    24-21:32:54.238 23_32 -LOG- {:EWALoader} LoadMod(start): Content\Mods\EWALoader\DllNames.txt
    24-21:32:54.249 23_32 -LOG- {:EWAModClient} ModClientDll: start
    24-21:32:54.694 23_32 -LOG- {:EWAModClient} ModClientDll (CurrentDir:E:\TCAFiles\Users\DRT_Support\150 Root:E:\TCAFiles\Users\DRT_Support\150): Config:Content\Mods\EWALoader\Client\Configuration.xml
    24-21:32:54.696 23_32 -LOG- {:EWAModClient} ModClientDll: started
    24-21:32:54.696 23_32 -LOG- {:EWALoader} LoadMod(finish:1): Content\Mods\EWALoader\DllNames.txt
    24-21:32:54.697 23_32 -LOG- {:EWAExtenderCommunication} Try CommunicationLoop Connect EmpyrionToEWAPipe402447b6e74d46bcb048cc0ff06156b9
    24-21:32:54.725 23_32 -LOG- {:EWAExtenderCommunication} Failed ExecServerCommunication. EWAToEmpyrionPipe041c5abf8dd04a72a88c0876fe568057 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 <acae8d5ba2344c6eb41136ab9108dda1>:0
    at EWAExtenderCommunication.ServerMessagePipe.ServerCommunicationLoop () [0x0000e] in <acae8d5ba2344c6eb41136ab9108dda1>:0
    24-21:32:57.879 23_32 -LOG- Started process 'EmpyrionPlayfieldServer.exe' (PID 3128) with args: -batchmode -nographics -logFile ../Logs/2956/Playfield_200624-233257-85.log "configFile=Maindedicated.yaml"
    24-21:33:00.868 23_33 -LOG- Started process 'EmpyrionPlayfieldServer.exe' (PID 6080) with args: -batchmode -nographics -logFile ../Logs/2956/Playfield_200624-233300-86.log "configFile=Maindedicated.yaml"
    24-21:33:02.617 23_33 -LOG- New playfield server
    24-21:33:02.619 23_33 -LOG- Thread 'Reader_127.0.0.1:56655' ThreadId=3256 ManagedId=24
    24-21:33:02.620 23_33 -LOG- Thread 'Writer_127.0.0.1:56655' ThreadId=4656 ManagedId=25
    24-21:33:03.878 23_33 -LOG- Started process 'EmpyrionPlayfieldServer.exe' (PID 900) with args: -batchmode -nographics -logFile ../Logs/2956/Playfield_200624-233303-87.log "configFile=Maindedicated.yaml"
    24-21:33:05.229 23_33 -LOG- New playfield server
    24-21:33:05.229 23_33 -LOG- Thread 'Reader_127.0.0.1:56656' ThreadId=6112 ManagedId=26
    24-21:33:05.229 23_33 -LOG- Thread 'Writer_127.0.0.1:56656' ThreadId=2292 ManagedId=27
    24-21:33:05.707 23_33 -LOG- {:EWAModClient} ModClientDll: start host 'Content\Mods\EWALoader\Client\..\EWA\EmpyrionModWebHost.exe'
    24-21:33:05.719 23_33 -LOG- {:EWAModClient} ModClientDll: host started 'Content\Mods\EWALoader\Client\..\EWA\EmpyrionModWebHost.exe/3144'
    24-21:33:08.539 23_33 -LOG- New playfield server
    24-21:33:08.539 23_33 -LOG- Thread 'Reader_127.0.0.1:56657' ThreadId=1732 ManagedId=28
    24-21:33:08.539 23_33 -LOG- Thread 'Writer_127.0.0.1:56657' ThreadId=3324 ManagedId=29
    24-21:33:08.735 23_33 -LOG- {:EWAExtenderCommunication} ServerPipe: EWAToEmpyrionPipe041c5abf8dd04a72a88c0876fe568057 connected 10485760
    24-21:33:17.788 23_33 -LOG- Booting PfServer (PID 3128) starts preparation after 20,0 seconds...
    24-21:33:19.394 23_33 -LOG- New reserve PfServer (PID 3128) ready after 21,6 seconds - count is now: 1
    24-21:33:21.141 23_33 -LOG- Booting PfServer (PID 6080) starts preparation after 20,3 seconds...
    24-21:33:22.871 23_33 -LOG- New reserve PfServer (PID 6080) ready after 22,0 seconds - count is now: 2
    24-21:33:26.355 23_33 -LOG- Booting PfServer (PID 900) starts preparation after 22,5 seconds...
    24-21:33:27.834 23_33 -LOG- New reserve PfServer (PID 900) ready after 24,0 seconds - count is now: 3
    24-21:33:54.853 23_33 -LOG- Uptime=00h01m heap= 354MB fps= 40 players= 0 pfs=r0/i3/a0 nwqueue=0
     
    #34
    Patrick.Bronke likes this.
  15. Deathstroke_BR®

    Deathstroke_BR® Ensign

    Joined:
    Jan 23, 2016
    Messages:
    7
    Likes Received:
    0
    hey buddy... after a long time i tried to use the EWA but im getting connection refused on the browser...
     
    #35
  16. ASTIC

    ASTIC Rear Admiral

    Joined:
    Dec 11, 2016
    Messages:
    1,085
    Likes Received:
    731
    #36
  17. Deathstroke_BR®

    Deathstroke_BR® Ensign

    Joined:
    Jan 23, 2016
    Messages:
    7
    Likes Received:
    0
    i tried to create certificate but it doesnt work..
    recently i gone to the log folder and i find the logs from the EWA

    20200806 0103: Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException: Acesso negado.
    at Internal.Cryptography.Pal.CertificatePal.FilterPFXStore(Byte[] rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags)
    at Internal.Cryptography.Pal.CertificatePal.FromBlobOrFile(Byte[] rawData, String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
    at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(String fileName, String password, X509KeyStorageFlags keyStorageFlags)
    at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(String fileName, String password)
    at Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader.LoadCertificate(CertificateConfig certInfo, String endpointName)
    at Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader.LoadDefaultCert(ConfigurationReader configReader)
    at Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader.Load()
    at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.ValidateOptions()
    at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken)
    at Microsoft.AspNetCore.Hosting.WebHost.StartAsync(CancellationToken cancellationToken)
    at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token, String startupMessage)
    at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token, String startupMessage)
    at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token)
    at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host)
    at EmpyrionModWebHost.Program.Main(String[] args) in T:\EWA\EmpyrionModWebHost\Program.cs:line 6520200806 0103: Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException: Acesso negado.
    at Internal.Cryptography.Pal.CertificatePal.FilterPFXStore(Byte[] rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags)
    at Internal.Cryptography.Pal.CertificatePal.FromBlobOrFile(Byte[] rawData, String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
    at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(String fileName, String password, X509KeyStorageFlags keyStorageFlags)
    at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(String fileName, String password)
    at Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader.LoadCertificate(CertificateConfig certInfo, String endpointName)
    at Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader.LoadDefaultCert(ConfigurationReader configReader)
    at Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader.Load()
    at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.ValidateOptions()
    at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken)
    at Microsoft.AspNetCore.Hosting.WebHost.StartAsync(CancellationToken cancellationToken)
    at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token, String startupMessage)
    at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token, String startupMessage)
    at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token)
    at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host)
    at EmpyrionModWebHost.Program.Main(String[] args) in T:\EWA\EmpyrionModWebHost\Program.cs:line 6520200806 0103: Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException: Acesso negado.
    at Internal.Cryptography.Pal.CertificatePal.FilterPFXStore(Byte[] rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags)
    at Internal.Cryptography.Pal.CertificatePal.FromBlobOrFile(Byte[] rawData, String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
    at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(String fileName, String password, X509KeyStorageFlags keyStorageFlags)
    at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(String fileName, String password)
    at Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader.LoadCertificate(CertificateConfig certInfo, String endpointName)
    at Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader.LoadDefaultCert(ConfigurationReader configReader)
    at Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader.Load()
    at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.ValidateOptions()
    at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken)
    at Microsoft.AspNetCore.Hosting.WebHost.StartAsync(CancellationToken cancellationToken)
    at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token, String startupMessage)
    at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token, String startupMessage)
    at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token)
    at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host)
    at EmpyrionModWebHost.Program.Main(String[] args) in T:\EWA\EmpyrionModWebHost\Program.cs:line 65
     
    #37
  18. ASTIC

    ASTIC Rear Admiral

    Joined:
    Dec 11, 2016
    Messages:
    1,085
    Likes Received:
    731
    EWA (and therefore EGS) must run with a user profile and have access to
    Code:
    [INF] User profile is available. Using '"C: \Users\[windows user]\AppData\Local\ASP.NET\DataProtection-Keys"' as key repository and Windows DPAPI to encrypt keys at rest. (7ac5e29c)
     
    #38
    Deathstroke_BR® and Kassonnade like this.
  19. Patrick.Bronke

    Patrick.Bronke Ensign

    Joined:
    Sep 7, 2020
    Messages:
    1
    Likes Received:
    0
    I got the same problem!
    I have a Windows Server 2016.

    A answere in german was good. :D
     
    #39
  20. ASTIC

    ASTIC Rear Admiral

    Joined:
    Dec 11, 2016
    Messages:
    1,085
    Likes Received:
    731
    #40

Share This Page