barbarbar338 / terraria-server

Run dedicated game servers on NodeJS
Mozilla Public License 2.0
18 stars 6 forks source link

Can't start on Heroku or Glitch #4

Closed BjornGrylls closed 3 years ago

BjornGrylls commented 3 years ago

I was so happy Sunday morning when I saw you had comitted a fix for the previous issues. Unfortunately it still doesn't work on Heroku nor Glitch. I have made some changes in my fork so it can be run on Linux too, like the chmod -R 777 server/ (should probably be changed to chmod -R -x server/ or something). After spending the last couple days both now get stuck at this error:

image

I've tried using the Heroku container (https://github.com/BjornGrylls/docker.terraria-server-vanilla) and had the same problem then. The fix at that time was to change the line endings in the script file from CRLF (Windows) to LF (Linux). This is hovever not possible with the TerrariaServer.exe since I don't have access to the source code. The strange part is that the same TerrariaServer.exe worked in the Heroku container. The container only supports http, which means I can't connect to the server, so I'm back at trying to get the NodeJS working.

I've run out of ideas and hope you can help with this.

barbarbar338 commented 3 years ago

First of all thanks for your PR I've merged your PR and I'm looking for a solution to the error.

barbarbar338 commented 3 years ago

It works when I open the server with a ".bin.x86_64" extension instead of ".exe" file but I seem to do a few edits about the server config file because it doesn't detect the configs :D I'll commit a bug fix in a few seconds