What I'm missing now?

I try to make my own pelias instance, but I got this when starting up:

 During handling of the above exception, another exception occurred:
helmi 07 12:23:00 serveri pelias[809474]: Traceback (most recent call last):
helmi 07 12:23:00 serveri pelias[809474]:   File "/usr/bin/docker-compose", line 33, in <module>
helmi 07 12:23:00 serveri pelias[809474]:     sys.exit(load_entry_point('docker-compose==1.29.2', 'console_scripts', 'docker-compose')())
helmi 07 12:23:00 serveri pelias[809474]:   File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 81, in main
helmi 07 12:23:00 serveri pelias[809474]:     command_func()
helmi 07 12:23:00 serveri pelias[809474]:   File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 200, in perform_command
helmi 07 12:23:00 serveri pelias[809474]:     project = project_from_options('.', options)
helmi 07 12:23:00 serveri pelias[809474]:   File "/usr/lib/python3/dist-packages/compose/cli/command.py", line 60, in project_from_options
helmi 07 12:23:00 serveri pelias[809474]:     return get_project(
helmi 07 12:23:00 serveri pelias[809474]:   File "/usr/lib/python3/dist-packages/compose/cli/command.py", line 152, in get_project
helmi 07 12:23:00 serveri pelias[809474]:     client = get_client(
helmi 07 12:23:00 serveri pelias[809474]:   File "/usr/lib/python3/dist-packages/compose/cli/docker_client.py", line 41, in get_client
helmi 07 12:23:00 serveri pelias[809474]:     client = docker_client(
helmi 07 12:23:00 serveri pelias[809474]:   File "/usr/lib/python3/dist-packages/compose/cli/docker_client.py", line 170, in docker_client
helmi 07 12:23:00 serveri pelias[809474]:     client = APIClient(use_ssh_client=not use_paramiko_ssh, **kwargs)
helmi 07 12:23:00 serveri pelias[809474]:   File "/usr/lib/python3/dist-packages/docker/api/client.py", line 197, in __init__
helmi 07 12:23:00 serveri pelias[809474]:     self._version = self._retrieve_server_version()
helmi 07 12:23:00 serveri pelias[809474]:   File "/usr/lib/python3/dist-packages/docker/api/client.py", line 221, in _retrieve_server_version
helmi 07 12:23:00 serveri pelias[809474]:     raise DockerException(
helmi 07 12:23:00 serveri pelias[809474]: docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
helmi 07 12:23:00 serveri systemd[1]: openpoiservice.service: Control process exited, code=exited, status=1/FAILURE
helmi 07 12:23:00 serveri systemd[1]: openpoiservice.service: Failed with result 'exit-code'.

My systemd service is such:

[Unit]
Description=Open Pelias Service docker
After=network-online.target time-sync.target time-set.target systemd-journald.service

[Service]
Type=simple
CapabilityBoundingSet=CAP_FOWNER CAP_NET_ADMIN CAP_NET_RAW CAP_SYS_ADMIN CAP_SYS_RESOURCE CAP_SYS_TIME 
Environment=DATA_DIR=/home/docker/openpoiservice/theData ORS_UID=1001 ORS_GID=1002
WorkingDirectory=/home/docker/openpoiservice
User=docker
Group=docker
ExecStartPre=/home/docker/bin/pelias compose down
ExecStart=/home/docker/bin/pelias compose up
ExecStop=/home/docker/bin/pelias compose down
Restart=always

[Install]
WantedBy=default.target

when I run it as root in console, it works ok… but does complain about it.

Is the problem that the pelias needs some capabilitiest, that are not on my list ? or what… the Open Route Service instance I got is running nicely :slight_smile:

Hey,

this is a forum related to the openrouteservice, not to docker or pelias.

If you’re trying to set up a dockerized pelias, the usual way would be to let docker handle any starts/stops/restarts and the like, and not use systemd for this.

Apart from that, I’m a bit confused that stuff is happening in some openpoiservice directory that seems to be related to pelias - are you sure that you didn’t mix anything up?

Best regards

Hi, uh… ok, I’m totally new to docker …but I’ll search right forums for docker and pelias …

I installed the pelias under the openpoiservice and got ORS instance at
openrouteservice …

forgot to mention @jschnell :slight_smile:

I just realized: The POI service and Pelias are two different services ? I tought that the POI service is provided with Pelias …

No, they are separate services.
Once we finished our docs overhaul, we can link to the correct page for this.

Way nice ! …

I got systems up and running via systemd… the pelias & poi service & route service …

Problem was that I thought the POI service would have been the Pelias service and ran the pelias commands in side wrong directory.

… now i got other errors :smiley: … but the services got ran ok and did not die afterwards.

1 Like

Hi @amandus,

I’m continuing this good thread: I got all up and running, and
my application rocks when with against your API. But when I
change the base url from file ${HOME}/.pub-cache/hosted/pub.dev/open_route_service-1.2.3/lib/src/open_route_service_base.dart
like (I guess there is some neat way to do that without custom tinkering the sources) :smiley:

The Change to get own stuff work:

  //static const String _baseURL = 'https://api.openrouteservice.org';
  static const String _baseURL = 'http://TheAPIhostname:8080/ors';

Then stuff does not work, I’m able to route ok, but I’m missing the street names etc. information. I’ve let the pelias run with default config (as docker image).

Got any tips what/where to lookat ? I’ll check that link you posted above… :slight_smile:

I could not setup correctly (?) os something else I’m missing … but yeah. I’m bit lost where to look for the tip that resolves this …

Now i got pois server runnnig ok, tested with:

curl -X POST \
  http://localhost:5000/pois \
  -H 'Content-Type: application/json' \
  -d '{
  "request": "pois",
  "geometry": {
    "bbox": [
      [8.8034, 53.0756],
      [8.7834, 53.0456]
    ],
    "geojson": {
      "type": "Point",
      "coordinates": [8.8034, 53.0756]
    },
    "buffer": 250
  }
}'

is there documentation how to create custom endpoint for openrouteservice (port 8080) to redirect the requests to port 5000 (poi-requests) ? Or how to integrate the openpoiservice ?

with curl it works ok:

Hey,

no, that is not part of the openrouteservice. Have a look here where your question was answered.

Best regards