Gazebo | Ignition | Community
Ask Your Question

Not able to run 'gzserver' from ubuntu terminal

asked 2016-08-27 14:48:59 -0500

TR gravatar image

Hi, I am not able to run the command 'gzserver'. Whenever I run 'gzserver --verbose' i get the following display: [Err] [] EXCEPTION: Unable to start server[bind: Address already in use]. There is probably another Gazebo process running. Please Help.

edit retag flag offensive close merge delete


Are you sure you don't have another Gazebo process running? Have you tried `killall gzserver`?

chapulina gravatar imagechapulina ( 2016-08-27 16:05:29 -0500 )edit

Yes,i tried that but there is still no change in the condition

TR gravatar imageTR ( 2016-08-28 02:06:44 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-08-28 20:50:30 -0500

chapulina gravatar image

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

edit flag offensive delete link more


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.

TR gravatar imageTR ( 2016-09-08 13:05:26 -0500 )edit

Maybe do `killall gzserver`? (note the gz)

chapulina gravatar imagechapulina ( 2016-09-08 13:12:32 -0500 )edit

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 <pid>' to kill it Is there an alternate solution?

TR gravatar imageTR ( 2016-09-08 13:30:06 -0500 )edit

Sorry, I have no clue as to why the killall command is not working.

chapulina gravatar imagechapulina ( 2016-09-09 11:22:51 -0500 )edit

Thanks for your help! : )

TR gravatar imageTR ( 2016-09-09 11:39:45 -0500 )edit

I have this issue as well. I will post once I found the solution

kakcalu13 gravatar imagekakcalu13 ( 2021-08-27 16:24:45 -0500 )edit

Question Tools

1 follower


Asked: 2016-08-27 14:48:59 -0500

Seen: 7,680 times

Last updated: Aug 28 '16