[Hub.start] - Port 4444 is busy, please choose a free port for the hub and specify it using -port option

966 views
Skip to first unread message

Anda Cristea

unread,
Mar 2, 2020, 10:16:01 PM3/2/20
to Selenium Users
Helo,

I have a issue with my command:

java -Djava.net.preferIPv4Stack=true -jar C:\selenium-server-standalone-3.141.59.jar -role hub -host x.x.x.x -port 4444 

and I got the result:

18:45:09.006 INFO [GridLauncherV3.parse] - Selenium server version: 3.141.59, revision: e82be7d358
18:45:09.076 INFO [GridLauncherV3.lambda$buildLaunchers$5] - Launching Selenium Grid hub on port 4444
2020-03-02 18:45:09.429:INFO::main: Logging initialized @584ms to org.seleniumhq.jetty9.util.log.StdErrLog
18:45:09.529 INFO [DefaultGridRegistry.assignRequestToProxy] - Shutting down registry.
18:45:09.534 ERROR [Hub.start] - Port 4444 is busy, please choose a free port for the hub and specify it using -port option

I tried any port and the message is the same.

Can someone give me a hint?

I disable the antivirus, but the same problem.

thanks,


Anda Cristea

unread,
Mar 3, 2020, 8:15:43 AM3/3/20
to seleniu...@googlegroups.com
I solved.



--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/9c895f1e-5ae7-4290-a004-49b05ff5f2f2%40googlegroups.com.

⇜Krishnan Mahadevan⇝

unread,
Mar 3, 2020, 9:25:25 AM3/3/20
to Selenium Users
Just curious. What was the problem ? It would be great if you could please elaborate on how it was solved so that, it can help other users as well.


Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribblings @ https://rationaleemotions.com/


Anda Cristea

unread,
Mar 4, 2020, 4:07:13 AM3/4/20
to seleniu...@googlegroups.com
I don't know, but i repeated the steps and bingo....

Thanks

viet le

unread,
Mar 20, 2020, 2:43:40 AM3/20/20
to Selenium Users
This is driving me nuts too. I were successfully run it on 1 Windows 2012 server, using config file with -hubConfig my-hub.json
Unfortunately, I need to move it to another server and when start it from command line with command : java.exe -jar e:\selenium\jar\selenium-server-standalone-3.141.59.jar -role hub -hubConfig my-hub.json and got same error messsage, retried several times but not work

Then tried with command :  java.exe -jar e:\selenium\jar\selenium-server-standalone-3.141.59.jar -role hub -port 4444
It's working.
I did netstat to check and pretty sure I had no process occupying port 4444
Log doesn't say anything can get to a clue.


Please let me know if you had any clue to figure it out what's wrong here

Thanks and regards,
v

viet le

unread,
Apr 1, 2020, 10:36:01 AM4/1/20
to Selenium Users
I managed to solve it, in my case, it's all about the PATH, make sure all things related to PATH are pointed to correct folder, path of java / path of .jar (make sure to call it from folder that saving .jar is safer option like c:\selenium\java -jar c:\selenium\selenium-stand-alone.jar ..)
all path in config.json....
I solved.



To unsubscribe from this group and stop receiving emails from it, send an email to seleniu...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seleniu...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages