tebowy / openipam

Automatically exported from code.google.com/p/openipam
0 stars 0 forks source link

r460 breaks install procedure #19

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. fresh install on Debian 6
2. run the application

What is the expected output? What do you see instead?

Exptected GUI and get 500 internal server error

What version of the product are you using? On what operating system?

svn trunk.

Please provide any additional information below.

[Tue Mar 12 20:41:07 2013] [error] [client 192.168.56.1] mod_wsgi (pid=13476): 
Target WSGI script '/usr/local/openipam/openIPAM/scripts/wsgi/openipam.wsgi' 
cannot be loaded as Python module.
[Tue Mar 12 20:41:07 2013] [error] [client 192.168.56.1] mod_wsgi (pid=13476): 
Exception occurred processing WSGI script 
'/usr/local/openipam/openIPAM/scripts/wsgi/openipam.wsgi'.
[Tue Mar 12 20:41:07 2013] [error] [client 192.168.56.1] Traceback (most recent 
call last):
[Tue Mar 12 20:41:07 2013] [error] [client 192.168.56.1]   File 
"/usr/local/openipam/openIPAM/scripts/wsgi/openipam.wsgi", line 96, in <module>
[Tue Mar 12 20:41:07 2013] [error] [client 192.168.56.1]     application = 
cherrypy.Application(webroot.get_web_root(), config=config)
[Tue Mar 12 20:41:07 2013] [error] [client 192.168.56.1]   File 
"/usr/local/openipam/openIPAM/openipam/web/resource/webroot.py", line 5, in 
get_web_root
[Tue Mar 12 20:41:07 2013] [error] [client 192.168.56.1]     from 
openipam.web.hosts import Hosts
[Tue Mar 12 20:41:07 2013] [error] [client 192.168.56.1]   File 
"/usr/local/openipam/openIPAM/openipam/web/hosts.py", line 17, in <module>
[Tue Mar 12 20:41:07 2013] [error] [client 192.168.56.1]     class 
Hosts(BasePage):
[Tue Mar 12 20:41:07 2013] [error] [client 192.168.56.1]   File 
"/usr/local/openipam/openIPAM/openipam/web/hosts.py", line 19, in Hosts
[Tue Mar 12 20:41:07 2013] [error] [client 192.168.56.1]     address_types = 
frontend.address_types
[Tue Mar 12 20:41:07 2013] [error] [client 192.168.56.1] AttributeError: 
'module' object has no attribute 'address_types'

the frontend.address_types was introduced in the r460 of the hosts.py file.

Original issue reported on code.google.com by youssef....@gmail.com on 13 Mar 2013 at 12:42

GoogleCodeExporter commented 8 years ago
There must be a new frontend config option that isn't documented or checked 
into SVN.

If I add the following line to my 
/usr/local/openipam/openIPAM/openipam_config/frontend.py 

address_types = {
                        'dynamic': { 'name': 'dynamic', 'description': 'Dynamic, routable address (preferred)', 'ranges': [], 'pool': 1 },
                }

The code can move past the above error, but that's not really a solution.

Original comment by asch...@archive.safaribooksonline.com on 3 Jun 2013 at 11:57