ERROR - Using CUBES with APACHE

42 views
Skip to first unread message

Ninoska Acosta

unread,
Apr 7, 2013, 8:56:23 PM4/7/13
to cubes-...@googlegroups.com
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,

Ovnicraft

unread,
Apr 7, 2013, 9:21:23 PM4/7/13
to cubes-...@googlegroups.com
Hello, please check if htdocs exists, your apaches is refering to.

Regards,


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,

--
You received this message because you are subscribed to the Google Groups "Cubes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cubes-discus...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Cristian Salamea
@ovnicraft

Ninoska Acosta

unread,
Apr 25, 2013, 11:03:22 PM4/25/13
to cubes-...@googlegroups.com
Hi I fixed the error for documment root but I still have the same error, have any one has tested cubes on apaache?
[Sat Apr 13 20:08:52 2013] [error] [client 10.0.2.2] File does not exist: /var/www/favicon.ico
[Sat Apr 13 20:08:56 2013] [error] Directorio actual: /var/www/wsgi/olap 
[Sat Apr 13 20:08:56 2013] [error] Archivo de Configuracion: /var/www/wsgi/olap/slicer.ini
[Sat Apr 13 20:08:56 2013] [error] [client 10.0.2.2] mod_wsgi (pid=5377): Target WSGI script '/var/www/wsgi/olap/ventas.wsgi' cannot be loaded as Python module.
[Sat Apr 13 20:08:56 2013] [error] [client 10.0.2.2] mod_wsgi (pid=5377): Exception occurred processing WSGI script '/var/www/wsgi/olap/ventas.wsgi'.
[Sat Apr 13 20:08:56 2013] [error] [client 10.0.2.2] Traceback (most recent call last):
[Sat Apr 13 20:08:56 2013] [error] [client 10.0.2.2]   File "/var/www/wsgi/olap/ventas.wsgi", line 14, in <module>
[Sat Apr 13 20:08:56 2013] [error] [client 10.0.2.2]     application = cubes.server.create_server(CONFIG_PATH)
[Sat Apr 13 20:08:56 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
[Sat Apr 13 20:08:56 2013] [error] [client 10.0.2.2]     return Slicer(config)
[Sat Apr 13 20:08:56 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__
[Sat Apr 13 20:08:56 2013] [error] [client 10.0.2.2]     self.context = create_slicer_context(config)
[Sat Apr 13 20:08:56 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
[Sat Apr 13 20:08:56 2013] [error] [client 10.0.2.2]     model_path = config.get("model", "path")
[Sat Apr 13 20:08:56 2013] [error] [client 10.0.2.2]   File "/usr/lib/python2.7/ConfigParser.py", line 607, in get
[Sat Apr 13 20:08:56 2013] [error] [client 10.0.2.2]     raise NoSectionError(section)
[Sat Apr 13 20:08:56 2013] [error] [client 10.0.2.2] NoSectionError: No section: 'model'

Cubes doesnt find the slicer.ini file .(

Any suggestions
Reply all
Reply to author
Forward
0 new messages