Not able to run 'gzserver' from ubuntu terminal
Hi, I am not able to run the command 'gzserver'. Whenever I run 'gzserver --verbose' i get the following display: [Err] [Master.cc:96] EXCEPTION: Unable to start server[bind: Address already in use]. There is probably another Gazebo process running. Please Help.
Asked by TR on 2016-08-27 14:48:59 UTC
Answers
Maybe another process is already using the port Gazebo is trying to use? Maybe try a different GAZEBO_MASTER_URI
? For example:
export GAZEBO_MASTER_URI=http://localhost:11348
Asked by chapulina on 2016-08-28 20:50:30 UTC
Comments
I tried changing the GAZEBO_MASTER_URI, it works fine only once.(I stopped the gzserver using 'ctrl+C' and then typing 'killall server'). Again if I try to run gzserver it shows the exact same error as before.
Asked by TR on 2016-09-08 13:05:26 UTC
Maybe do killall gzserver
? (note the gz)
Asked by chapulina on 2016-09-08 13:12:32 UTC
Sorry..that was a typo. I meant 'killall gzserver'. I found a solution. It is to manually kill the process using the kill command giving the process's PID as a parameter before restarting gzserver. The commands I used is:
'ps aux' to find the process's PID and
'kill -9
Is there an alternate solution?
Asked by TR on 2016-09-08 13:30:06 UTC
Sorry, I have no clue as to why the killall command is not working.
Asked by chapulina on 2016-09-09 11:22:51 UTC
Thanks for your help! : )
Asked by TR on 2016-09-09 11:39:45 UTC
I have this issue as well. I will post once I found the solution
Asked by kakcalu13 on 2021-08-27 16:24:45 UTC
Comments
Are you sure you don't have another Gazebo process running? Have you tried
killall gzserver
?Asked by chapulina on 2016-08-27 16:05:29 UTC
Yes,i tried that but there is still no change in the condition
Asked by TR on 2016-08-28 02:06:44 UTC