Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem accessing elasticsearch #26

Open
arnesetzer opened this issue Dec 9, 2022 · 0 comments
Open

Problem accessing elasticsearch #26

arnesetzer opened this issue Dec 9, 2022 · 0 comments
Labels

Comments

@arnesetzer
Copy link
Contributor

arnesetzer commented Dec 9, 2022

Describe the bug
The Docker image of the dashboard only shows a white screen. (seen below)
The docker logs mentions that the database connection has an issue. The log was taken after a fresh download and install of the docker container and 1 request

$ docker logs pelias_dashboard
{"error":"alias [pelias] missing","status":404}
404
Thin web server (v1.7.2 codename Bachmanity)
Maximum connections set to 1024
Listening on 0.0.0.0:3030, CTRL+C to stop
172.18.0.1 - - [09/Dec/2022:11:06:04 +0000] "GET /pelias HTTP/1.1" 200 1502 0.0254

Steps to Reproduce

  1. Install the pelias docker setup according to the manual
  2. Execute docker run -it --network pelias_default -e ES_ENDPOINT=http://elasticsearch:9200/ -p 3030:3030 -d --restart always --name pelias_dashboard pelias/dashboard

Expected behavior
Should work as described

Environment (please complete the following information):
OS: Ubuntu 20.04.5 LTS
Docker: Docker version 20.10.21, build baeda1f
Docker compose: docker-compose version 1.29.2, build 5becea4c
Pastebin/Screenshots
grafik

Additional context
The pelias.json is moddified due to some custom data sources (csv). But there was no modification to the elastic part.

{
  "logger": {
    "level": "debug",
    "timestamp": true,
    "colorize": true
  },
  "esclient": {
    "apiVersion": "7.5",
    "hosts": [
      {
        "host": "elasticsearch"

      }
    ]
  },
  "elasticsearch": {
    "settings": {
      "index": {
        "refresh_interval": "10s",
        "number_of_replicas": "0",
        "number_of_shards": "1"
      }
    }
  },
  "api": {
    "autocomplete.exclude_address_length": 5,
    "exposeInternalDebugTools": false,
    "targets": {
      "auto_discover": true,
      "source_aliases": {
        "wof": [
          "whosonfirst"
        ],
        "csv": [
          "csv_adress",
          "csv_poi",
          "oa"
        ]
      }
    },
    "services": {
      "pip": { "url": "http://pip:4200" },
      "libpostal": { "url": "http://libpostal:4400" },
      "placeholder": { "url": "http://placeholder:4100" },
      "interpolation": { "url": "http://interpolation:4300" }
    }
  },
  "defaultParameters": {
    "focus.point.lat": 48.946607,
    "focus.point.lon": 11.404568
  },
  "imports": {
    "adminLookup": {
      "enabled": true
    },
    "geonames": {
     "datapath": "/data/geonames",
     "countryCode": "all"
    },
    "csv": {
      "datapath": "/data/csv-imports",
      "files": [
        "poi_ready.csv",
        "adressen_ready.csv"
      ]
    },
    "openstreetmap": {
      "leveldbpath": "/tmp",
      "datapath": "/data/openstreetmap",
      "download": [
        {
          "sourceURL": "https://download.geofabrik.de/europe/germany/bayern-latest.osm.pbf"
        },
        {
          "sourceURL": "https://download.geofabrik.de/europe/austria-latest.osm.pbf"
        },
        {
          "sourceURL": "https://download.geofabrik.de/europe/czech-republic-latest.osm.pbf"
        }
      ],
      "import": [
        {
          "filename": "bayern_latest.osm.pbf"
        },
        {
          "filename": "austria-latest.osm.pbf"
        },
        {
          "filename": "czech-republic-latest.osm.pbf"
        }
      ]
    },
    "interpolation": {
      "datapath": "/data/interpolation"
    },
    "polyline": {
      "datapath": "/data/polylines",
      "files": [ "extract.0sv" ]
    },
    "whosonfirst": {
      "datapath": "/data/whosonfirst",
      "countryCode": ["DE", "CZ", "AT"],
      "importPostalcodes": true,

      "importPlace": [
        85682571,
        85632785,
        85633105
      ]
    }
  }
}

The result from the elastic search aliases is:

$ curl 'localhost:9200/_alias'
{"pelias":{"aliases":{}}}

References

nothing found

@arnesetzer arnesetzer added the bug label Dec 9, 2022
@arnesetzer arnesetzer changed the title Dashboard problem accessing EL Problem accessing EL Dec 9, 2022
@arnesetzer arnesetzer changed the title Problem accessing EL Problem accessing elasticsearch Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant