gravitystorm / openstreetmap-carto

A general-purpose OpenStreetMap mapnik style, in CartoCSS
Other
1.55k stars 822 forks source link

Error generating MBTiles file #2838

Closed randyhbh closed 6 years ago

randyhbh commented 7 years ago

Hi, I dont know if this is the right place to ask this but i am Running OpenStreetMap Carto with Docker and when trying to export mbtiles give me this error, if anyone could help me with this.

/usr/lib/node_modules/kosmtik/src/Config.js:73
        if (err.code !== 'EEXIST') throw err;
                                   ^
Error: EACCES: permission denied, mkdir '/.config'
    at Error (native)
    at Object.fs.mkdirSync (fs.js:924:18)
    at Config.ensureDefaultUserConfigPath (/usr/lib/node_modules/kosmtik/src/Config.js:71:12)
    at new Config (/usr/lib/node_modules/kosmtik/src/Config.js:24:32)
    at Object.<anonymous> (/usr/lib/node_modules/kosmtik/index.js:8:14)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
matkoniecz commented 7 years ago

It looks like a https://github.com/kosmtik/kosmtik bug (or at least poor error reporting) have you tried reporting this problem there (after checking whatever issue is already reported)?

kocio-pl commented 7 years ago

It might be also permissions problem inside the container.

matkoniecz commented 7 years ago

How one may export MBTiles from docker container that we provide? https://github.com/kosmtik/kosmtik-mbtiles-export is command line only

kocio-pl commented 7 years ago

As this is osm-carto related image, not a general Kosmtik one, this plugin could be just removed IMO.

However it's also possible to mount a Docker volume and run the command inside running container if we want too.

matkoniecz commented 6 years ago

How one may export MBTiles from docker container that we provide?

Original report is not mentioning how it can be reproduced.

matkoniecz commented 6 years ago

Closing as I am unable to reproduce.