Icebox layers creation doesn't work in dev

Bug #1321216 reported by Daniele Viganò
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake Platform
Fix Committed
Medium
Daniele Viganò

Bug Description

The error is

Internal Server Error: /icebox/calculation/2
Traceback (most recent call last):
  File "/home/openquake/oq-platform/platform-env/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/home/openquake/oq-platform/platform-env/local/lib/python2.7/site-packages/django/views/generic/base.py", line 68, in view
    return self.dispatch(request, *args, **kwargs)
  File "/home/openquake/oq-platform/platform-env/local/lib/python2.7/site-packages/django/views/generic/base.py", line 86, in dispatch
    return handler(request, *args, **kwargs)
  File "/home/openquake/oq-platform/openquakeplatform/openquakeplatform/icebox/views.py", line 169, in post
    calculation.process_layers()
  File "/home/openquake/oq-platform/openquakeplatform/openquakeplatform/icebox/models.py", line 78, in process_layers
    olayer.create_view())))
  File "/home/openquake/oq-platform/openquakeplatform/openquakeplatform/icebox/models.py", line 258, in geoserver_publish_view
    self.update_layer(self.create_featuretype(view_name))
  File "/home/openquake/oq-platform/openquakeplatform/openquakeplatform/icebox/models.py", line 302, in create_featuretype
    fe_dict=dict(ws=geoserver.WS_NAME, ds=DS_NAME))
  File "/home/openquake/oq-platform/openquakeplatform/openquakeplatform/geoserver_api.py", line 92, in load_features
    substitutions=substitutions)
  File "/home/openquake/oq-platform/openquakeplatform/openquakeplatform/geoserver_api.py", line 45, in geoserver_rest
    content = file(file_path).read()
IOError: [Errno 2] No such file or directory: '/home/openquake/oq-platform/openquakeplatform/openquakeplatform/build-gs-tree/tmpl/icebox/featuretype.xml.tmpl'
[20/May/2014 10:02:49] "POST /icebox/calculation/2 HTTP/1.0" 500 152667

Probably it's related to the changes made for the production setup

Revision history for this message
Daniele Viganò (daniele-vigano) wrote :
Changed in oq-platform:
status: Confirmed → In Progress
Revision history for this message
Daniele Viganò (daniele-vigano) wrote :

Done, pushed to master

Changed in oq-platform:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.