-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to stop server from gui #249
Comments
Yeah I'm having the same issue with the latest version, I'm unable to stop servers from the web interface, or actually, they stop running but the button remains red still saying "Stop", and I'm unable to modify the settings of the server. It's best to revert to older versions I'm afraid. |
Finally spotted the issue. So, no big news here in terms of a solve, outside of a realization that this started happening after I moved to a new server running Debian 12.2 from my old server running Debian 11.8. It just took a while before I needed to make changes to a config and then found that I couldn't stop ports as before, coinciding with the upgrade to 1.22.0.... Derp. If I manually kill the accServer.exe process through CLI, accweb more or less immediately picks up on it and the red stop button turns into a green start button as one would expect, so the PID is sort of correct, however; the issue is that the PID listed in accweb on the Debian 12.2 server, is incorrect for the following reason. The PID 436 listed in accweb on a running port, looks as follows in the process list:
While the actual accServer.exe binary running the port has PID:
On the Debian 11.8 server, there's no reference to start.exe /exec at all. :S So, the solution for now is to use a ports config directory ID to identify the actual PID, then killing it off manually. Example as per the output above:
I wish was a GO programmer and could provide you with a patch, but alas - I hope this will be of help. I gladly offer my time to assist in testing and could also be persuaded to give you access to the machine if firing up a Debian 12.8 install isn't trivial. |
Greetings again. Had another poke at this to see if I could launch cmd via Wine in a console without start.exe doing the fork thing - and here's my findings. Simply running the command:
Results in:
However, trying to run the binary transparently, meaning that bash yeets itself and the connection to the console becomes cmd.exe with the following command (If I were to overly explain it for good measure, resulting in the connection to the server getting closed when you type "exit" in favor of being returned to bash):
Results in:
Looking at the source, it does seem that exec is called to execute wine. Once again, hope this is of use in resolving this issue. :) |
Made a tiny update to the stop.sh script to eliminate the tedious and unproductive output when running it without specifying a config dir ID. |
Just wanted to take the opportunity to inform that the issue has been resolved by the lead dev. New version is on its way. :) |
Hello,
I have setup accweb like following:
running as its own non sudo user, running under winehq-devel (version 8.14).
Currently I seem unable to stop a server correctly from the web interface.
When clicking the stop button I get the message that the server is stopped but the button stays red. My log is showing:
I am getting the same result running the command myself as the acc user compared to running it normally through systemd:
I downloaded the accServer binary through steamcmd with:
/usr/games/steamcmd +@sSteamCmdForcePlatformType windows +force_install_dir /accserver +login <login> +app_update 1430110 validate +quit
I tried both wine from the debian repos (8.0) and winehq-devel with the same result. This is running on debian12
settings.json: , (notice:
"ignorePrematureDisconnects":0
)The text was updated successfully, but these errors were encountered: