Skip to content
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

Tilebundler needs access to write to disk on /generate #4

Open
smesdaghi opened this issue Dec 18, 2015 · 0 comments
Open

Tilebundler needs access to write to disk on /generate #4

smesdaghi opened this issue Dec 18, 2015 · 0 comments
Labels

Comments

@smesdaghi
Copy link
Member

to reproduce:

  • through the django admin console, create a tileset that has the following settings:
{"created_at": "2015-12-17T21:46:41.132673", "created_by": {"first_name": "GeoSHAPE", "last_name": "Administrator", "resource_uri": "", "username": "admin"}, "geom": "[-70.1141, -18.6528, -69.6780, -18.3272]", "id": 1, "layer_name": "osm", "layer_zoom_start": 0, "layer_zoom_stop": 10, "name": "dr-santo-domingo", "resource_uri": "/api/tileset/1/", "server_service_type": "tile", "server_url": "http://a.tile.openstreetmap.org/%(z)s/%(x)s/%(y)s.png", "server_username": ""}
{"error_message": "[Errno 13] Permission denied: '/var/lib/geoserver_data/tilebundler-store/generate_tileset_1.lck'", "traceback": "Traceback (most recent call last):\n\n  File \"/var/lib/geonode/lib/python2.7/site-packages/tastypie/resources.py\", line 195, in wrapper\n    response = callback(request, *args, **kwargs)\n\n  File \"/var/lib/geonode/lib/python2.7/site-packages/tilebundler/api.py\", line 74, in generate\n    return self.create_response(request, tileset.generate())\n\n  File \"/var/lib/geonode/lib/python2.7/site-packages/tilebundler/models.py\", line 61, in generate\n    lock_file = helpers.get_lock_file(self.id)\n\n  File \"/var/lib/geonode/lib/python2.7/site-packages/tilebundler/helpers.py\", line 383, in get_lock_file\n    file_handle = os.open(get_lock_filename(tileset_id), flags)\n\nOSError: [Errno 13] Permission denied: '/var/lib/geoserver_data/tilebundler-store/generate_tileset_1.lck'\n"}

the directory to which tilebundler writes to is specified in settings.py

TILEBUNDLER_CONFIG = {
    'tileset_dir': '/var/lib/geoserver_data/tilebundler-store'
}

but even access to the specified folder under geoserver data would suffice.

@smesdaghi smesdaghi added the bug label Dec 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant