BlueSquare23 / web-lgsm

A simple web interface for the Linux Game Server Manager (LGSM) written in Python3 using Flask.
MIT License
38 stars 4 forks source link

gunicorn problem #14

Closed oikaka1 closed 5 months ago

oikaka1 commented 6 months ago

I'm having a problem with Gunicorn where the server doesn't start but doesn't report any error, but by the debug script the server starts normally

BlueSquare23 commented 6 months ago

Sorry it took me so long to get back to you. What happens if you try to run the gunicorn server start command in your terminal?

For example,

# Cd to the web-lgsm install dir.
cd /path/to/your/web-lgsm/

# Then you have to source the venv.
source venv/bin/activate

# Then you can start the gunicorn server manually.
gunicorn --access-logfile "web-lgsm.log" --bind="127.0.0.1:12357" --daemon --worker-class gevent 'app:main()'

What happens if you try to run it manually? Any warnings / errors?

You can also remove the --daemon flag to run it in your term to give you more output.

wennic commented 6 months ago

When running install.sh I got the following error:

user@ubuntuserver:~/git/web-lgsm$ pip3 install virtualenv error: externally-managed-environment

After

sudo apt install python3-virtualenv

running install.sh again succeeded

BlueSquare23 commented 6 months ago

Okay interesting glad to hear you got it working. I think I see the issue. For Ubuntu the install script tries to install virtualenv via pip. But right yeah instead I'll have to experiment with having it just install it via apt. Thanks for reporting!

BlueSquare23 commented 6 months ago

This has been fixed in dev-beta-1.6. Will close this issue once that's merged aka v1.6 is out.

BlueSquare23 commented 5 months ago

This has been fix in the new v1.6 release!