kusion icon indicating copy to clipboard operation
kusion copied to clipboard

Bug: Kusion server should exit gracefully when the port is occupied

Open ruquanzhao opened this issue 9 months ago • 7 comments

What happened?

When I start two Kusion servers locally using the same port, the second started Kusion server does not exit. Upon checking the logs, I found the second Kusion server's logs:

Image

What did you expect to happen?

Kusion server should exit gracefully.

How can we reproduce it (as minimally and precisely as possible)?

Start kusion server on port already in use.

Anything else we need to know?

No response

Kusion version

$ kusion version
# paste output here

OS version

# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here

Install tools

ruquanzhao avatar Apr 11 '25 03:04 ruquanzhao

i want

wolfcode111 avatar Apr 11 '25 03:04 wolfcode111

@ruquanzhao If no one working on it, can I take this issue?

d-cryptic avatar May 26 '25 06:05 d-cryptic

Hi, @d-cryptic, welcome and thanks for your interest in Kusion.

Please go ahead and take this issue. If you encounter any problems or have any questions that need discussion, please feel free to ping me.

ruquanzhao avatar May 26 '25 07:05 ruquanzhao

Hi, @d-cryptic Kusion milestone 0.15.0 is expected to be released around June 30th. Are you planning to complete this in 0.15.0, or move it to 0.16.0?

ruquanzhao avatar Jun 19 '25 03:06 ruquanzhao

Hey, I will raise a PR by this weekend

d-cryptic avatar Jun 19 '25 15:06 d-cryptic

@d-cryptic are you still working on this? Otherwise, I have the changes ready for review.

jemshad avatar Jun 25 '25 10:06 jemshad

yeah @jemshad please go ahead

d-cryptic avatar Jun 26 '25 15:06 d-cryptic