SoftbearStudios / kiomet

Kiomet.com real-time strategy game
https://kiomet.com
GNU Affero General Public License v3.0
67 stars 11 forks source link

The server isnt starting #10

Closed 410-ghost closed 3 months ago

410-ghost commented 3 months ago

[ERROR game_server::entry_point] https server stopped: Err(Os { code: 98, kind: AddrInUse, message: "Address already in use" }) [ERROR game_server::infrastructure] infrastructure stopped

Totzmaster commented 3 months ago

The server wants to listen at the standard https port 443 but another process already opened the server socket. Maybe you have already a webserver running?

finnbear commented 3 months ago

Totzmaster is correct; As a workaround, you can use --http-port 40000 --https-port 40001 when running the server to use ports other than 80/8080 and 443/8443.

410-ghost commented 3 months ago

oww yes 443 and 80 is used for nginx where do i modify thath tho

finnbear commented 3 months ago

You can try cargo run -- --http-port 40000 --https-port 40001 or use those arguments on whatever other command you are using to run the game e.g. ./kiomet --http-port 40000 --https-port 40001. If you want to expose the server via NGINX, you can use NGINX reverse proxy aka proxy_pass.

410-ghost commented 3 months ago

now i have that error

[INFO game_server::plasma] executing plasma request: Heartbeat { game_id: Kiomet, server_id: Local/25, player_count: 0, client_hash: 55335, unhealthy: false, cpu: 0.025064353, ram: 0.37880683 } [WARN game_server::plasma] <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

404 - Not Found

404 - Not Found

 (code 404 Not Found)
finnbear commented 3 months ago

That's a WARNing and an INFOrmation, not an ERROR. The 404 is not from kiomet. Try navigating to the port you specified (<server IP>:40000).

410-ghost commented 3 months ago

yeah i tried that maybe its the firewall because i cant acces the game

410-ghost commented 3 months ago

all fine and working ty <3