TileMill's MapBox directory in the wrong place?
I'm tying to use TileMill on a headless Ubuntu instance. I used the command line to install TileMill via apt-get. Should this intall create a ~/Documents/MapBox directory and store projects there?
It seems it's sticking the MapBox directory at /usr/share/mapbox and I'm having issues creating maps.
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Dane on 10 Feb, 2012 07:16 PM
Yes, this is intended behavior: http://mapbox.com/tilemill/docs/guides/ubuntu-service/
The idea behind the headless/service mode is that the app is run by sudo or some admin that can give access to /usr/share/mapbox.
I realize this switch is confusing coming from using/starting as desktop.
3 Posted by jasonsanford on 10 Feb, 2012 07:31 PM
Yeah, I'd visited that page to help me change the port to a web port and to change the listenHost.
So what else would I need to do to be able to be able to run tilemill like this (as far as permissions go)?
4 Posted by Ian Ward on 10 Feb, 2012 07:43 PM
It may be easiest to setup a samba share and then in the tilemill config file point the files dir at the samba share and then use samba to determine who has what permissions. Otherwise, upstart will run the tilemill process as the mapbox user and you'll want your files dir and files to be read/write by mapbox. Samba may just make this easier to deal with.
5 Posted by jasonsanford on 10 Feb, 2012 08:25 PM
Hmmm, I created a mapbox folder in my home directory (
/home/ubuntu/mapbox) and granted wide open permissions (for now).No map tiles show up and when I try to make a simple Carto change and save just to debug, the log has the following error:
Support Staff 6 Posted by Will White on 13 Feb, 2012 03:50 PM
Not sure why it would be trying to load from your user's home directory. The upstart service should be using
/usr/share/mapbox. Did you change that path?7 Posted by jasonsanford on 23 Feb, 2012 04:10 PM
For whatever reason this AMI hasn't been able to start, so I can't debug any more (or check to see if I changed that path, who knows what I was doing?). I'll close this for now hoping it was something dumb I was doing.
jasonsanford closed this discussion on 23 Feb, 2012 04:10 PM.