我正在尝试安装基于 OpenMapTiles 地图服务器的本地服务器。我执行网站https://openmaptiles.com/server/#install上的说明中给出的命令:
$: curl -sSL https://get.docker.com/ | sh
$: docker run --rm -it -v $(pwd):/data -p 8080:80 klokantech/openmaptiles-server
我在浏览器中打开:localhost:8080
,然后选择可用的默认项目后,地图文件下载 - 51 GB 开始。下载任意数量的数据后文件下载停止,没有将整个文件下载到最后。我已经根据随附的说明进行了几次配置尝试,并且每次下载在任意数量的数据后停止时。
问题:是否可以修复此 OpenMapTiles 地图服务器安装向导,使其下载文件更稳定?这是向导的日志:
{"log":"/usr/lib/python2.7/dist-packages/supervisor/options.py:298: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a \"-c\" argument specifying an absolute path to a configuration file for improved security.\r\n","stream":"stdout","time":"2020-06-07T17:21:05.138055299Z"}
{"log":" 'Supervisord is running as root and it is searching '\r\n","stream":"stdout","time":"2020-06-07T17:21:05.138174326Z"}
{"log":"2020-06-07 17:21:05,156 CRIT Supervisor running as root (no user in config file)\r\n","stream":"stdout","time":"2020-06-07T17:21:05.157198265Z"}
{"log":"2020-06-07 17:21:05,157 INFO Included extra file \"/etc/supervisor/conf.d/openmaptiles.conf\" during parsing\r\n","stream":"stdout","time":"2020-06-07T17:21:05.15725187Z"}
{"log":"2020-06-07 17:21:05,161 INFO Creating socket tcp://localhost:8081\r\n","stream":"stdout","time":"2020-06-07T17:21:05.161776495Z"}
{"log":"2020-06-07 17:21:05,163 INFO Closing socket tcp://localhost:8081\r\n","stream":"stdout","time":"2020-06-07T17:21:05.163767121Z"}
{"log":"2020-06-07 17:21:05,178 INFO RPC interface 'supervisor' initialized\r\n","stream":"stdout","time":"2020-06-07T17:21:05.178459055Z"}
{"log":"2020-06-07 17:21:05,178 CRIT Server 'unix_http_server' running without any HTTP authentication checking\r\n","stream":"stdout","time":"2020-06-07T17:21:05.178586936Z"}
{"log":"2020-06-07 17:21:05,178 INFO supervisord started with pid 1\r\n","stream":"stdout","time":"2020-06-07T17:21:05.178762696Z"}
{"log":"2020-06-07 17:21:06,182 INFO spawned: 'wizard' with pid 8\r\n","stream":"stdout","time":"2020-06-07T17:21:06.18303205Z"}
{"log":"2020-06-07 17:21:06,187 INFO spawned: 'xvfb' with pid 9\r\n","stream":"stdout","time":"2020-06-07T17:21:06.187948752Z"}
{"log":"2020-06-07 17:21:07,189 INFO success: wizard entered RUNNING state, process has stayed up for \u003e than 0 seconds (startsecs)\r\n","stream":"stdout","time":"2020-06-07T17:21:07.190241733Z"}
{"log":"2020-06-07 17:21:07,190 INFO success: xvfb entered RUNNING state, process has stayed up for \u003e than 0 seconds (startsecs)\r\n","stream":"stdout","time":"2020-06-07T17:21:07.19037577Z"}
{"log":"Starting OpenMapTiles Map Server (action: run)\r\n","stream":"stdout","time":"2020-06-07T17:21:07.336682414Z"}
{"log":"Config file not found!\r\n","stream":"stdout","time":"2020-06-07T17:21:07.340291022Z"}
{"log":"Starting installation...\r\n","stream":"stdout","time":"2020-06-07T17:21:07.34056988Z"}
{"log":"Installation wizard started at http://:::80/\r\n","stream":"stdout","time":"2020-06-07T17:21:07.384525986Z"}
{"log":"List of available downloads ready.\r\n","stream":"stdout","time":"2020-06-07T17:21:08.469846587Z"}
{"log":"Downloading osm-2020-06-01-v3.11-planet.mbtiles (planet)\r\n","stream":"stdout","time":"2020-06-07T17:24:11.466397428Z"}
{"log":"Downloading: 17856 of 54776152064 0.00%\r\n","stream":"stdout","time":"2020-06-07T17:24:12.047466146Z"}
{"log":"Downloading: 1178080 of 54776152064 0.00%\r\n","stream":"stdout","time":"2020-06-07T17:24:13.049781146Z"}
{"log":"Downloading: 2341344 of 54776152064 0.00%\r\n","stream":"stdout","time":"2020-06-07T17:24:14.049460924Z"}
{"log":"Downloading: 3520992 of 54776152064 0.01%\r\n","stream":"stdout","time":"2020-06-07T17:24:15.049874406Z"}
...
{"log":"Downloading: 11291785696 of 54776152064 20.61%\r\n","stream":"stdout","time":"2020-06-07T21:12:36.502910792Z"}
{"log":"Downloading: 11291802080 of 54776152064 20.61%\r\n","stream":"stdout","time":"2020-06-07T21:12:37.503800507Z"}
{"log":"Downloading: 11291818464 of 54776152064 20.61%\r\n","stream":"stdout","time":"2020-06-07T21:12:41.434972368Z"}
{"log":"Downloading: 11291834848 of 54776152064 20.61%\r\n","stream":"stdout","time":"2020-06-07T21:12:48.997341257Z"}
在日志中可以看到这次负载挂了20.61%。所以这种情况已经持续了 40 分钟,没有任何改变。