-
Notifications
You must be signed in to change notification settings - Fork 491
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
Running out of space when downloading the planet #418
Comments
NOT an explanation for the error, but (Unless you created the Interestingly it says:
So the issue seems to be related to the root partition Note: the ~75 GB Note: you don't execute An improvement to this image to prevent this error would be to add the following code to the # clean up downloaded files
if [ -n "${DOWNLOAD_PBF:-}" ]; then
rm /data/region.osm.pbf
if [ -n "${DOWNLOAD_POLY:-}" ]; then
rm /data/region.poly
fi
fi |
Is there anyway that I can mount it to a volume or the temporary remove commands on top will be a better solution ..? |
This commit fixes Overv#418
You could download the file before and then mount it as described in the readme.
Otherwise you'd need to modify the I created PR #420 to fix this, but I don't believe it will be merged anytime soon. The last update to this project was 10 months ago. |
I'm using this docker to download the planet
My system configuration is 10 core cpu and 128gb ram and 2.2TB storage
I'm running into the issue of no space in disk when I check it it shows 57% used
The error
INFO:root:Starting load of external data into database
Traceback (most recent call last):
File "/data/style/scripts/get-external-data.py", line 311, in
main()
File "/data/style/scripts/get-external-data.py", line 182, in main
os.makedirs(data_dir, exist_ok=True)
File "/usr/lib/python3.10/os.py", line 225, in makedirs
mkdir(name, mode)
OSError: [Errno 28] No space left on device: '/data/style/data'
The docker command used to run the container
docker run -d --shm-size="10G" -e DOWNLOAD_PBF=https://planet.openstreetmap.org/pbf/planet-latest.osm.pbf -e PGPASSWORD=${PGPASSWORD} -e "OSM2PGSQL_EXTRA_ARGS=-C 40096" -e "FLAT_NODES=enabled" -v /osm-data:/data/database/ -v osm-tiles:/data/tiles/ tileserver import
The disk space
sda 8:0 0 100G 0 disk
├─sda1 8:1 0 1G 0 part /boot
└─sda2 8:2 0 99G 0 part
├─oar_ubuntu-swap 253:1 0 3.9G 0 lvm [SWAP]
├─oar_ubuntu-home 253:2 0 9.8G 0 lvm /home
└─oar_ubuntu-root 253:4 0 85.3G 0 lvm /
sdb 8:16 0 2.7T 0 disk
└─sdb1 8:17 0 2.7T 0 part
├─data-osm--data 253:0 0 2.1T 0 lvm /osm-data
└─data-osm--tiles 253:3 0 500G 0 lvm /osm-tiles
What am I doing wrong could someone help me out
The text was updated successfully, but these errors were encountered: