Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Overpass API dispatcher fails with Address already in use 98

I've followed the installation instructions on: http://wiki.openstreetmap.org/wiki/Overpass_API/install

Initially everything worked flawless, but I would like to try and use my own custom map, BUT when I killed the dispatcher process nothing works. This is with the original database and not my custom map.

I tried to clean everything and install from scratch, this also worked flawless, but a simple kill on the dispatcher make everything crash from there on.

I currently get the error message when I try to start the dispatcher: File_Error Address already in use 98 /srv/osm3s/db_dir//osm3s_v0.7.3_osm_base Dispatcher_Server::4

Looking at netstat there's no process using port 98. Restarting the entire server does not make it work. There is no lock file in /dev/shm.

What to do? I do not wish to clean and install everything every time I kill the dispatcher.

like image 587
user809829 Avatar asked Jul 02 '14 07:07

user809829


1 Answers

Seems to be a lock in both /dev/shm/ and the database directory. An empty file osm_... is stored in the database directory which locks the process. Removing just those two files (database dir and /dev/shm/) gets the dispatcher up and running again.

like image 162
user809829 Avatar answered Oct 18 '22 13:10

user809829