Cannot Stop Server

Description

This is the status message after running stop and then trying stop --force

Last status message:
[ERROR] runwar.context: java.net.ConnectException: Connection refused (Connection refused)
[ERROR] runwar.context: at java.net.PlainSocketImpl.socketConnect(Native Method)
[ERROR] runwar.context: at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
[ERROR] runwar.context: at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
[ERROR] runwar.context: at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
[ERROR] runwar.context: at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
[ERROR] runwar.context: at java.net.Socket.connect(Socket.java:607)
[ERROR] runwar.context: at java.net.Socket.connect(Socket.java:556)
[ERROR] runwar.context: at java.net.Socket.<init>(Socket.java:452)
[ERROR] runwar.context: at java.net.Socket.<init>(Socket.java:262)
[ERROR] runwar.context: at runwar.Stop.stopServer(Stop.java:26)
[ERROR] runwar.context: at runwar.Server.startServer(Server.java:211)
[ERROR] runwar.context: at runwar.Start.main(Start.java:123)
[INFO ] runwar.context: Could not stop server. Are you sure it is running, and listing for stop requests on port 34923?

Activity

Show:
Brad Wood
February 18, 2021, 3:10 PM
Edited

There is no --force parameter to the stop command. This ticket is not a bug so far as I can tell. The error message you pasted above is true and you should debug what’s happening on your machine.

Could not stop server. Are you sure it is running, and listing for stop requests on port 34923

Did you confirm if the server’s stop port is open an listening for connections. Chances are, you started two servers with the same name and it overwrote the configuration for the first server with the configuration for the second server. I would recommend killing all java.exe processes and starting a fresh server. If you do a start --verbose you can see what the stop port is when it starts.

For support questions, I’d recommend posting to the CFML or box team slack.

https://boxteam.herokuapp.com/

Derek Damko
February 18, 2021, 4:58 PM

Thanks I will look at this.

Derek Damko
February 18, 2021, 5:45 PM

Ah yes I do have two running under the same name, and thanks for the Slack link.

Declined

Assignee

Brad Wood

Reporter

Derek Damko

Labels

None

Affects versions

None

Fix versions

None

Priority

Minor