cgi problem

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

cgi problem

Szabó Balázs
Hi List!

I installed tilecache on ubuntu with apache web server (sudo apt-get install tilecache) , but when I hit this link  http://localhost/cgi-bin/tilecache.cgi/1.0.0/basic/0/0/0.png

I got the following error: 
An error occurred: HTTP Error 403: Forbidden
  File "/usr/lib/pymodules/python2.7/TileCache/Service.py", line 343, in cgiHandler
    format, image = service.dispatchRequest( params, path_info, req_method, host )
  File "/usr/lib/pymodules/python2.7/TileCache/Service.py", line 208, in dispatchRequest
    return self.renderTile(tile, params.has_key('FORCE'))
  File "/usr/lib/pymodules/python2.7/TileCache/Service.py", line 138, in renderTile
    data = layer.render(tile, force=force)
  File "/usr/lib/pymodules/python2.7/TileCache/Layer.py", line 444, in render
    return self.renderTile(tile)
  File "/usr/lib/pymodules/python2.7/TileCache/Layers/WMS.py", line 29, in renderTile
    tile.data, response = wms.fetch()
  File "/usr/lib/pymodules/python2.7/TileCache/Client.py", line 59, in fetch
    response = self.client.open(urlrequest)
  File "/usr/lib/python2.7/urllib2.py", line 397, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 510, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 435, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 369, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 518, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)


I think, it can't create folder/files base=/var/tmp , but I dont know why. If I change the base path in tilecache.cfg like this:  base=/home/inf-mapserver/terkepszerver/tilecache
and give all permission to all user (chmod -R 777  /home/inf-mapserver/terkepszerver/) is still dont work...

The http://localhost/cgi-bin/tilecache.cgi link give back  the good xml.

I keep on digging, but maybe someone just knows whats missing.

thanks in advance!


Balazs

_______________________________________________
Tilecache mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/tilecache
Reply | Threaded
Open this post in threaded view
|

RE: cgi problem

manel.clos
It looks (403: Forbidden) Tilecache does not have permissions to access the url you wrote in the configuration. Can you access that url?
 


De: [hidden email] [mailto:[hidden email]] En nombre de Balazs Szabó
Enviado el: miércoles, 15 de junio de 2011 11:13
Para: [hidden email]
Asunto: [Tilecache] cgi problem

Hi List!

I installed tilecache on ubuntu with apache web server (sudo apt-get install tilecache) , but when I hit this link  http://localhost/cgi-bin/tilecache.cgi/1.0.0/basic/0/0/0.png

I got the following error: 
An error occurred: HTTP Error 403: Forbidden
  File "/usr/lib/pymodules/python2.7/TileCache/Service.py", line 343, in cgiHandler
    format, image = service.dispatchRequest( params, path_info, req_method, host )
  File "/usr/lib/pymodules/python2.7/TileCache/Service.py", line 208, in dispatchRequest
    return self.renderTile(tile, params.has_key('FORCE'))
  File "/usr/lib/pymodules/python2.7/TileCache/Service.py", line 138, in renderTile
    data = layer.render(tile, force=force)
  File "/usr/lib/pymodules/python2.7/TileCache/Layer.py", line 444, in render
    return self.renderTile(tile)
  File "/usr/lib/pymodules/python2.7/TileCache/Layers/WMS.py", line 29, in renderTile
    tile.data, response = wms.fetch()
  File "/usr/lib/pymodules/python2.7/TileCache/Client.py", line 59, in fetch
    response = self.client.open(urlrequest)
  File "/usr/lib/python2.7/urllib2.py", line 397, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 510, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 435, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 369, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 518, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)


I think, it can't create folder/files base=/var/tmp , but I dont know why. If I change the base path in tilecache.cfg like this:  base=/home/inf-mapserver/terkepszerver/tilecache
and give all permission to all user (chmod -R 777  /home/inf-mapserver/terkepszerver/) is still dont work...

The http://localhost/cgi-bin/tilecache.cgi link give back  the good xml.

I keep on digging, but maybe someone just knows whats missing.

thanks in advance!


Balazs

_______________________________________________
Tilecache mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/tilecache
Reply | Threaded
Open this post in threaded view
|

Re: cgi problem

Szabó Balázs
Yes I can, in browser  http://localhost/tilecache/ (it is empty) and I can create files manually in this folder (with nautilus). :/ 

2011/6/15 <[hidden email]>
It looks (403: Forbidden) Tilecache does not have permissions to access the url you wrote in the configuration. Can you access that url?
 


De: [hidden email] [mailto:[hidden email]] En nombre de Balazs Szabó
Enviado el: miércoles, 15 de junio de 2011 11:13
Para: [hidden email]
Asunto: [Tilecache] cgi problem

Hi List!

I installed tilecache on ubuntu with apache web server (sudo apt-get install tilecache) , but when I hit this link  http://localhost/cgi-bin/tilecache.cgi/1.0.0/basic/0/0/0.png

I got the following error: 
An error occurred: HTTP Error 403: Forbidden
  File "/usr/lib/pymodules/python2.7/TileCache/Service.py", line 343, in cgiHandler
    format, image = service.dispatchRequest( params, path_info, req_method, host )
  File "/usr/lib/pymodules/python2.7/TileCache/Service.py", line 208, in dispatchRequest
    return self.renderTile(tile, params.has_key('FORCE'))
  File "/usr/lib/pymodules/python2.7/TileCache/Service.py", line 138, in renderTile
    data = layer.render(tile, force=force)
  File "/usr/lib/pymodules/python2.7/TileCache/Layer.py", line 444, in render
    return self.renderTile(tile)
  File "/usr/lib/pymodules/python2.7/TileCache/Layers/WMS.py", line 29, in renderTile
    tile.data, response = wms.fetch()
  File "/usr/lib/pymodules/python2.7/TileCache/Client.py", line 59, in fetch
    response = self.client.open(urlrequest)
  File "/usr/lib/python2.7/urllib2.py", line 397, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 510, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 435, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 369, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 518, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)


I think, it can't create folder/files base=/var/tmp , but I dont know why. If I change the base path in tilecache.cfg like this:  base=/home/inf-mapserver/terkepszerver/tilecache
and give all permission to all user (chmod -R 777  /home/inf-mapserver/terkepszerver/) is still dont work...

The http://localhost/cgi-bin/tilecache.cgi link give back  the good xml.

I keep on digging, but maybe someone just knows whats missing.

thanks in advance!


Balazs


_______________________________________________
Tilecache mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/tilecache
Reply | Threaded
Open this post in threaded view
|

Re: cgi problem

Szabó Balázs
In reply to this post by Szabó Balázs
Hi List!


it wasn't permission error, just the proxy refuse the connection to the default wms provider.
I changed the appropriate rows to our own wms provider, and now the tilecache is working.

Lot of thx to Manel Clos!

This is my wms layer settings in tilecache.cfg file:

[irc_2010]
type=WMS
layers=IRC_2010
mapfile=/home/inf-mapserver/terkepszerver/terkepszerver.map
url=http://localhost/cgi-bin/mapserv?map=/home/inf-mapserver/terkepszerver/terkepszerver.map&
srs=EPSG:23700
levels=10
metaBuffer=10
metaTile=true
mime_type=image/png
size=256,256
bbox=725063,289435,836070,367541
resolutions=488.28125,244.140625,122.0703125,61.03515625,30.517578125,15.258789063,7.629394532,3.814697266,1.907348633,0.953674316

Best regards: Balazs




2011/6/15 Balazs Szabó <[hidden email]>
Hi List!

I installed tilecache on ubuntu with apache web server (sudo apt-get install tilecache) , but when I hit this link  http://localhost/cgi-bin/tilecache.cgi/1.0.0/basic/0/0/0.png

I got the following error: 
An error occurred: HTTP Error 403: Forbidden
  File "/usr/lib/pymodules/python2.7/TileCache/Service.py", line 343, in cgiHandler
    format, image = service.dispatchRequest( params, path_info, req_method, host )
  File "/usr/lib/pymodules/python2.7/TileCache/Service.py", line 208, in dispatchRequest
    return self.renderTile(tile, params.has_key('FORCE'))
  File "/usr/lib/pymodules/python2.7/TileCache/Service.py", line 138, in renderTile
    data = layer.render(tile, force=force)
  File "/usr/lib/pymodules/python2.7/TileCache/Layer.py", line 444, in render
    return self.renderTile(tile)
  File "/usr/lib/pymodules/python2.7/TileCache/Layers/WMS.py", line 29, in renderTile
    tile.data, response = wms.fetch()
  File "/usr/lib/pymodules/python2.7/TileCache/Client.py", line 59, in fetch
    response = self.client.open(urlrequest)
  File "/usr/lib/python2.7/urllib2.py", line 397, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 510, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 435, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 369, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 518, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)


I think, it can't create folder/files base=/var/tmp , but I dont know why. If I change the base path in tilecache.cfg like this:  base=/home/inf-mapserver/terkepszerver/tilecache
and give all permission to all user (chmod -R 777  /home/inf-mapserver/terkepszerver/) is still dont work...

The http://localhost/cgi-bin/tilecache.cgi link give back  the good xml.

I keep on digging, but maybe someone just knows whats missing.

thanks in advance!


Balazs


_______________________________________________
Tilecache mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/tilecache