如何解决我的身份验证问题(osm服务器创建)

时间:2014-04-23 14:01:54

标签: openstreetmap ubuntu-server

我试图在我的ubuntu服务器上设置一个Openstreetmap服务器,该服务器位于虚拟机上。

根据这个:http://tuts.syrinxoon.net/tuts/installer-un-serveur-cartographique-avec-openstreetmap,我做了一切。它仍然没有用。

我检查了渲染的日志。 以下是来自renderd -f

的输出的内容
renderd[13129]: Rendering daemon started
renderd[13129]: Parsing section renderd
renderd[13129]: Parsing render section 0
renderd[13129]: Parsing section mapnik
renderd[13129]: Parsing section default
renderd[13129]: config renderd: unix socketname=/var/run/renderd/renderd.sock
renderd[13129]: config renderd: num_threads=4
renderd[13129]: config renderd: num_slaves=0
renderd[13129]: config renderd: tile_dir=/var/lib/mod_tile
renderd[13129]: config renderd: stats_file=/var/run/renderd/renderd.stats
renderd[13129]: config mapnik:  plugins_dir=/usr/lib/mapnik/2.0/input
renderd[13129]: config mapnik:  font_dir=/usr/share/fonts/truetype/ttf-dejavu
renderd[13129]: config mapnik:  font_dir_recurse=0
renderd[13129]: config renderd(0): Active
renderd[13129]: config renderd(0): unix socketname=/var/run/renderd/renderd.sock
renderd[13129]: config renderd(0): num_threads=4
renderd[13129]: config renderd(0): tile_dir=/var/lib/mod_tile
renderd[13129]: config renderd(0): stats_file=/var/run/renderd/renderd.stats
renderd[13129]: config map 0:   name(default) file(/etc/mapnik-osm-data/osm.xml) uri(/osm/) htcp() host()
renderd[13129]: Initialising unix server socket on /var/run/renderd/renderd.sock
renderd[13129]: Created server socket 4
renderd[13129]: Renderd is using mapnik version 2.0.0
renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-BoldOblique.ttf
renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Oblique.ttf
renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-Oblique.ttf
renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerifCondensed-Bold.ttf
renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerifCondensed-BoldItalic.ttf
renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed.ttf
renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf
renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf
renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-BoldOblique.ttf
renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-ExtraLight.ttf
renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerifCondensed-Italic.ttf
renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Bold.ttf
renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Bold.ttf
renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf
renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-BoldItalic.ttf
renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-Bold.ttf
renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerifCondensed.ttf
renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-BoldOblique.ttf
renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Oblique.ttf
renderd[13129]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Italic.ttf
Running in foreground mode...
renderd[13129]: Starting stats thread
renderd[13129]: An error occurred while loading the map layer 'default': :
FATAL:  password authentication failed for user "osm"
FATAL:  password authentication failed for user "osm" (encountered during parsing of layer 'landcover' in map '/etc/mapnik-osm-data/osm.xml')
renderd[13129]: An error occurred while loading the map layer 'default': :
FATAL:  password authentication failed for user "osm"
FATAL:  password authentication failed for user "osm" (encountered during parsing of layer 'landcover' in map '/etc/mapnik-osm-data/osm.xml')
renderd[13129]: An error occurred while loading the map layer 'default': :
FATAL:  password authentication failed for user "osm"
FATAL:  password authentication failed for user "osm" (encountered during parsing of layer 'landcover' in map '/etc/mapnik-osm-data/osm.xml')
renderd[13129]: An error occurred while loading the map layer 'default': :
FATAL:  password authentication failed for user "osm"
FATAL:  password authentication failed for user "osm" (encountered during parsing of layer 'landcover' in map '/etc/mapnik-osm-data/osm.xml')

我认为问题出在此日志的末尾。 用户osm的身份验证失败,但我真的不知道这意味着什么。 用户osm有一个密码,也是" osm"

那么有人知道可能出现什么问题吗? 谢谢你们的帮助。

2 个答案:

答案 0 :(得分:1)

得到了;)

我只需要修改该文件/etc/mapnik-osm-data/inc/datasource-settings.xml.inc以填充有关数据库的正确信息;)

答案 1 :(得分:1)

无法连接到您的数据库 - 您需要确保mapnik样式表中的数据库用户名和密码正确无误。