LooseLab / Icarust

A fully featured MinKNOW simulator for testing read until experiments.
Mozilla Public License 2.0
17 stars 7 forks source link

"Address already in use" error while running on a remote server #14

Closed daanishmahajan closed 6 months ago

daanishmahajan commented 6 months ago

Hi @Adoni5, I am getting the following error (image attached) while running on the remote server (having CentOS 8.3):

Command Run: cargo run --release -- -s Profile_tomls/test.toml -v

Error:

tonic::transport::Error(Transport, hyper::Error(Listen, Os { code: 98, kind: AddrInUse, message: "Address already in use" }))

When I run the same on my local MacOS, it works fine.

Screenshot 2024-05-07 at 22 13 10
Adoni5 commented 6 months ago

HI @daanishmahajan, Thanks for giving Icarust a try! I won't have time to look too deeply today, but is there a chance that some over service is listening on port 10000 or 10001?

If you try changing the ports in the config.ini file to something else. like 11000 and 11001, does that fix it?

Alternatively you can check if the port is in use with the following command:

netstat -tuln | grep LISTEN | grep -E '10000|10001'

It should list if a service is already listening on that port

Thanks, Rory

daanishmahajan commented 6 months ago

Thanks, @Adoni5, changing the port worked!