digidigital / quakejs-installer

The goal of this project is to make installing your own quakejs-server easy :)
Other
8 stars 8 forks source link

Getting error in javascript console about websocket #4

Open Locustv2 opened 3 years ago

Locustv2 commented 3 years ago

I tried to follow the instruction on the readme. (a basic one without maps/mod etc). I did everything in a docker container and exposing the ports 80 and 27960.

After the docker container execute the startscript.sh and the server is running ( can see bots fighting), i try to connect. However it is stuck on Awaiting challenge and my js console keeps outputting the message:

ioquake3.js:16602 WebSocket connection to 'ws://127.0.0.1:27960/' failed: 

Any idea how to fix this @digidigital ?

mrtheyann commented 3 years ago

kinda same issue with all-padman-edition branch, but it seems like server.cfg is not correct causing Awaiting challenge image

digidigital commented 3 years ago

Hi guys, as far as I remember there is some issue with the ws: protocol (at least when using Firefox)

Since I have no experience with docker I am not sure what might cause the issue if you use e. g. Chromium.

Do you have the same issue if you use https://github.com/treyyoder/quakejs-docker ?

mrtheyann commented 3 years ago

I’m only using Chrome for quakejs

quakejs-docker is working seamlessly but lacks maps and customization (either my knowledges of docker are poor at the time tbh)

however I don’t use docker with all-padman-edition and face same awaiting challenge issue (quite different tho, because all I have is an infinite await of connection with no errors in console). I’m pretty sure it’s something about applying server.cfg, because it looks like server itself is not starting.

I would probably investigate that more deeply this week, but actually yet have no idea how it should work especially extended with maps and extra features.

mrtheyann commented 3 years ago

If you have an ability to do a clean install from readme steps for the all-padman-edition and report that it is working, that would be a huge favor, because I’m not sure if I did it wrong or my vps configuration requires clean install either.

Anyway if that takes any of your time or requires some energy of you – nevermind, I’m just messing around quakejs repositories for a deploy-ready solution because I’m kinda lazy to figure it out myself 🤷‍♂️🤦‍♂️

digidigital commented 3 years ago

I did a clean install of the padman branch on a Ubuntu 21.04 vm in my local network.

I just have adjusted serverAddress and contentServer in installerconfig.cfg to the network adapter's IP address

Result:

Isty001 commented 2 years ago

Any solution on this? I tried to run this inside Docker, but ran into the same issue.