问题
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.
回答1:
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.
来源:https://stackoverflow.com/questions/24525795/overpass-api-dispatcher-fails-with-address-already-in-use-98