Genie Discord forum

Author Avatarkrishnab
1/19/2023, 9:10:56 PM

Hey folks, hopefully this is an easy one.

Sometimes when I stop a Genie application and then start it again, I get this error message below. Seems like the problem is that the web port is not being released when the application is shutdown. Then when I restart vscode and start the server again, the server tries to use that same port, and seems to trigger this error message. I am not sure what the real mechanism is, but that is what it seems like is happening.

Is the a way to manually shutdown a port or manually force a new unused port to be activated? I think I have to restart the computer or log out to reset this right now. So I imagine there must be an easier way :).


โ”Œ Info: 2023-01-19 16:00:31 
โ”” Web Server starting at http://0.0.0.0:52532 - press Ctrl/Cmd+C to stop the server. 
ERROR: IOError: listen: address already in use (EADDRINUSE)
Stacktrace:
  [1] uv_error

Author AvatarPere
1/19/2023, 9:23:08 PM

I think the problem here was that the Julia process is not properly killed even when closing VSCode. Try to kill it in the task manager or with killall -9 julia

Author AvatarPere
1/19/2023, 9:24:37 PM

Also, which version of GB are you on? I think this was fixed in the Insider version of the plugin, you can find it in the VSCode markeptlace as Genie Builder insider

Author Avatarkrishnab
1/19/2023, 9:46:19 PM

@Pere thanks again for you help here. I am on the regular VScode I belive 1.74.3, so I must be using the regular GB. Sounds like the change has not propagated to the regular GB. I can install VScode insiders edition in parallel with regular vscode, so that should hopefully take care of it. I will try to kill the Julia process in the future too, that is good to know.