Overv / openstreetmap-tile-server

Docker file for a minimal effort OpenStreetMap tile server
Apache License 2.0
1.2k stars 482 forks source link

import: unable to open X server #373

Closed Lynxiayel closed 1 year ago

Lynxiayel commented 1 year ago

Followed the instructions on the docker hub page . When I try to do the import, it gives the following error:

import: unable to open X server `' @ error/import.c/ImportImageCommand/347.

I'm using the image v2.3.0 on a remote server, and accessing the server through ssh if that matters. Any kind help about how to fix this?

Lynxiayel commented 1 year ago

Ok, I found the reason, it's pretty silly on my part: A missing "\" at the end of the line before "import", making the long docker run command ends early, and misses the argument "import" at the last line, thus triggers the run.sh to print out help message. And the "import" on the last line is treated as a separate command on the host shell, hence the error "import: unable to open X server".