pelias / docker

Run the Pelias geocoder in docker containers, including example projects.
MIT License
314 stars 217 forks source link

Unable to install Pelias #308

Open hznor opened 1 year ago

hznor commented 1 year ago

Unable to install Pelias docker with instructions given in README.md for portland-metro.

Installation is failing at stage : "pelias download all", because two URLs are broken in the file: "pelias.json".

These two URLs are:

To continue the installation I have replaced these URLs by these ones :

Even though I have then be able to complete the stage : "pelias download all", I have been stuck at the stage : "pelias prepare all"

hznor@local:~/pelias/docker/projects/portland-metro$ pelias prepare all
/home/hznor/pelias/docker
/home/hznor/pelias/docker/lib/cli.sh
/home/hznor/pelias/docker/lib/env.sh
/home/hznor/pelias/docker/cmd/docker.sh
/home/hznor/pelias/docker/cmd/download.sh
/home/hznor/pelias/docker/cmd/elastic.sh
/home/hznor/pelias/docker/cmd/import.sh
/home/hznor/pelias/docker/cmd/prepare.sh
/home/hznor/pelias/docker/cmd/system.sh
/home/hznor/pelias/docker/cmd/test.sh
/usr/lib/python3/dist-packages/paramiko/transport.py:219: CryptographyDeprecationWarning: Blowfish has been deprecated
  "class": algorithms.Blowfish,
/usr/lib/python3/dist-packages/paramiko/transport.py:219: CryptographyDeprecationWarning: Blowfish has been deprecated
  "class": algorithms.Blowfish,
Creating extract at /data/placeholder/wof.extract
no *.pbf files found in /data/openstreetmap directory
/usr/lib/python3/dist-packages/paramiko/transport.py:219: CryptographyDeprecationWarning: Blowfish has been deprecated
  "class": algorithms.Blowfish,
import...
populate fts...
optimize...
close...
Done!
/usr/lib/python3/dist-packages/paramiko/transport.py:219: CryptographyDeprecationWarning: Blowfish has been deprecated
  "class": algorithms.Blowfish,
error: no .pbf files found in /data/openstreetmap
missinglink commented 1 year ago

Duplicate of https://github.com/pelias/docker/issues/293#issuecomment-1386773103

hznor commented 1 year ago

@missinglink The issue is different here: After having updated the broken links in pelias.json, I still can't complete the installation since no .pbf files are found.

missinglink commented 1 year ago

Agh I've never seen these CryptographyDeprecationWarning: Blowfish warnings before 🤔

hznor commented 1 year ago
"error: no .pbf files found in /data/openstreetmap

Maybe the input files I have found to fix the broken links are incorrect? Do you know which ones I should use instead to test it in the same conditions as you do?

missinglink commented 1 year ago

I'm not 100% clear on where this error is coming from since it's a python script and Pelias itself doesn't use python.

Maybe it's coming from docker-compose?

see: https://github.com/paramiko/paramiko/issues/2038#issuecomment-1111532543

missinglink commented 1 year ago

It might also be that this message is only a warning and not the cause of the missing PBF files.

Are you able to download those files manually?

hznor commented 1 year ago

I could download them manually yes, but it seems that the installation scripts do not support http redirections.

I have been able to execute the stage: "pelias prepare all" after having changed the previous link by: https://raw.githubusercontent.com/rafapereirabr/otp-travel-time-matrix/master/portland_oregon.osm.pbf

missinglink commented 1 year ago

FYI @hznor https://github.com/pelias/docker/pull/309

note: the C-TAN data you found is from 2016.