Hi Everyone, I'm trying to use cubes under apache after followed this instructions
SECTION: Apache mod_wsgi deployment
I tried to test the connection to the cube and i got this error on the browser
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/2.2.22 (Ubuntu) Server at 127.0.0.1 Port 8080
The olap.error.log file shows these lines
[Sun Apr 07 20:01:42 2013] [error] [client 10.0.2.2] mod_wsgi (pid=3429): Target WSGI script '/var/www/wsgi/olap/ventas.wsgi' cannot be loaded as Python module.
[Sun Apr 07 20:01:42 2013] [error] [client 10.0.2.2] mod_wsgi (pid=3429): Exception occurred processing WSGI script '/var/www/wsgi/olap/ventas.wsgi'.
[Sun Apr 07 20:01:42 2013] [error] [client 10.0.2.2] Traceback (most recent call last):
[Sun Apr 07 20:01:42 2013] [error] [client 10.0.2.2] File "/var/www/wsgi/olap/ventas.wsgi", line 8, in <module>
[Sun Apr 07 20:01:42 2013] [error] [client 10.0.2.2] application = cubes.server.create_server(CONFIG_PATH)
[Sun Apr 07 20:01:42 2013] [error] [client 10.0.2.2] File "/usr/local/lib/python2.7/dist-packages/cubes-0.10.2-py2.7.egg/cubes/server/slicer.py", line 197, in create_server
[Sun Apr 07 20:01:42 2013] [error] [client 10.0.2.2] return Slicer(config)
[Sun Apr 07 20:01:42 2013] [error] [client 10.0.2.2] File "/usr/local/lib/python2.7/dist-packages/cubes-0.10.2-py2.7.egg/cubes/server/slicer.py", line 118, in __init__
[Sun Apr 07 20:01:42 2013] [error] [client 10.0.2.2] self.context = create_slicer_context(config)
[Sun Apr 07 20:01:42 2013] [error] [client 10.0.2.2] File "/usr/local/lib/python2.7/dist-packages/cubes-0.10.2-py2.7.egg/cubes/workspace.py", line 76, in create_slicer_context
[Sun Apr 07 20:01:42 2013] [error] [client 10.0.2.2] model_path = config.get("model", "path")
[Sun Apr 07 20:01:42 2013] [error] [client 10.0.2.2] File "/usr/lib/python2.7/ConfigParser.py", line 607, in get
[Sun Apr 07 20:01:42 2013] [error] [client 10.0.2.2] raise NoSectionError(section)
[Sun Apr 07 20:01:42 2013] [error] [client 10.0.2.2] NoSectionError: No section: 'model'
[Sun Apr 07 20:01:42 2013] [error] [client 10.0.2.2] File does not exist: /etc/apache2/htdocs
WSGI File:
import os.path
import cubes
CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
CONFIG_PATH = os.path.join(CURRENT_DIR,"slicer.ini")
application = cubes.server.create_server(CONFIG_PATH)
SITE Definition:
NameVirtualHost *:80
<VirtualHost *:80>
WSGIScriptAlias /vvo /var/www/wsgi/olap/ventas.wsgi
WSGIDaemonProcess olap
<Directory /var/www/wsgi/olap>
WSGIProcessGroup olap
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
ErrorLog /var/log/apache2/olap.error.log
CustomLog /var/log/apache2/olap.log combined
</VirtualHost>
Thanks in Advance,