On Tue, Apr 12, 2011 at 06:26, Léon Keijser keijser@stone-it.com wrote:
On Tue, 2011-04-12 at 02:25 +0000, Greg Swift wrote:
How not to screw up your installation base like I did:
1: checkout repository 2: in main directory of repository run "sudo make webtest"
Hi Greg,
I screwed up my installation :P
During the make webtest i got:
Starting cobbler daemon: Traceback (most recent call last): File "/usr/bin/cobblerd", line 76, in main api = cobbler_api.BootAPI(is_cobblerd=True) File "/usr/lib/python2.7/site-packages/cobbler/api.py", line 131, in __init__ self.deserialize() File "/usr/lib/python2.7/site-packages/cobbler/api.py", line 792, in deserialize return self._config.deserialize() File "/usr/lib/python2.7/site-packages/cobbler/config.py", line 257, in deserialize serializer.deserialize(self._distros) File "/usr/lib/python2.7/site-packages/cobbler/serializer.py", line 122, in deserialize rc = storage_module.deserialize(obj,topological) File "/usr/lib/python2.7/site-packages/cobbler/modules/serializer_catalog.py", line 226, in deserialize obj.from_datastruct(datastruct) File "/usr/lib/python2.7/site-packages/cobbler/collection.py", line 158, in from_datastruct self.add(item) File "/usr/lib/python2.7/site-packages/cobbler/collection.py", line 276, in add self.lite_sync = action_litesync.BootLiteSync(self.config, logger=logger) File "/usr/lib/python2.7/site-packages/cobbler/action_litesync.py", line 55, in __init__ "tftpd","module","in_tftpd" File "/usr/lib/python2.7/site-packages/cobbler/module_loader.py", line 96, in get_module_from_file raise CX(_("Failed to load module for %s/%s") % (category,field)) CX: 'Failed to load module for tftpd/module'
then when accessing the webpage i get:
ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.
I got that tftp error as well....and for the life of me i can't remember what the fix was. I originally assumed that it was a side affect of doing the "make install", but since your getting it now I guess not. When I get home (I keep saying when i get some place don't i?) I'll look at my cli history to find what i did to fix it. I remember looking into making sure i had the tftp server properly installed, but it had been running before I did the install.. but i think the 2.1+ cobbler actually has this as a config option in modules.conf. Where you on 2.0.x before this?
Jonathan is right... for everyone not doing ubteen updates in a row for single line fixes, rolling an RPM using 'make' and then installing the RPMs is a much better path.