Hello,
I'm trying to install cobbler from git (master branch) onto a freshly installed debian server. I just did
git checkout .... cd cobbler make install
but cobblerd refuses to start.
~/cobbler# cobblerd Traceback (most recent call last): File "/usr/local/bin/cobblerd", line 76, in main api = cobbler_api.BootAPI(is_cobblerd=True) File "/usr/local/lib/python2.6/dist-packages/cobbler/api.py", line 130, in __init__ self.deserialize() File "/usr/local/lib/python2.6/dist-packages/cobbler/api.py", line 891, in deserialize return self._config.deserialize() File "/usr/local/lib/python2.6/dist-packages/cobbler/config.py", line 266, in deserialize raise CX("serializer: error loading collection %s. Check /etc/cobbler/modules.conf" % item.collection_type()) CX: 'serializer: error loading collection settings. Check /etc/cobbler/modules.conf'
If I edit config.py and raise the exeption captured there to see the real error, i get:
root@lhcb19:~/cobbler# cobblerd Traceback (most recent call last): File "/usr/local/bin/cobblerd", line 76, in main api = cobbler_api.BootAPI(is_cobblerd=True) File "/usr/local/lib/python2.6/dist-packages/cobbler/api.py", line 130, in __init__ self.deserialize() File "/usr/local/lib/python2.6/dist-packages/cobbler/api.py", line 891, in deserialize return self._config.deserialize() File "/usr/local/lib/python2.6/dist-packages/cobbler/config.py", line 264, in deserialize if not serializer.deserialize(item): raise "" File "/usr/local/lib/python2.6/dist-packages/cobbler/serializer.py", line 121, in deserialize storage_module = __get_storage_module(obj.collection_type()) File "/usr/local/lib/python2.6/dist-packages/cobbler/serializer.py", line 160, in __get_storage_module return capi.get_module_from_file("serializers",collection_type,"serializer_catalog") File "/usr/local/lib/python2.6/dist-packages/cobbler/api.py", line 924, in get_module_from_file return module_loader.get_module_from_file(section,name,fallback) File "/usr/local/lib/python2.6/dist-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 serializers/settings'
the /etc/cobbler/modules.conf is the one generated when doing "make install" (no serializers section there). Even if I add it with the serializer_catalog value the error persists. There's nothing in /var/log/cobbler.log
# ls -la /var/log/cobbler/cobbler.log -rw-r--r-- 1 root root 0 Mar 12 12:38 /var/log/cobbler/cobbler.log
If I run python -c "import cobbler.modules.serializer_catalog" I get:
# python -c "import cobbler.modules.serializer_catalog" Traceback (most recent call last): File "<string>", line 1, in <module> File "cobbler/modules/serializer_catalog.py", line 41, in <module> from utils import _ ImportError: No module named utils
but If I go to the cobbler dir inside the python modules it works:
# cd /usr/local/lib/python2.6/dist-packages/cobbler /usr/local/lib/python2.6/dist-packages/cobbler# python -c "import cobbler.modules.serializer_catalog" /usr/local/lib/python2.6/dist-packages/cobbler#
Can somebody give me any hint on what might be wrong?
Thanks, Adri
P.D. Thanks to jimi_c for his help to get this further via #cobbler
On Thu, Mar 15, 2012 at 4:03 PM, Adrian Casajús adria@ecm.ub.es wrote:
Hello,
I'm trying to install cobbler from git (master branch) onto a freshly installed debian server. I just did
git checkout .... cd cobbler make install
but cobblerd refuses to start.
~/cobbler# cobblerd Traceback (most recent call last): File "/usr/local/bin/cobblerd", line 76, in main api = cobbler_api.BootAPI(is_cobblerd=True) File "/usr/local/lib/python2.6/dist-packages/cobbler/api.py", line 130, in __init__ self.deserialize() File "/usr/local/lib/python2.6/dist-packages/cobbler/api.py", line 891, in deserialize return self._config.deserialize() File "/usr/local/lib/python2.6/dist-packages/cobbler/config.py", line 266, in deserialize raise CX("serializer: error loading collection %s. Check /etc/cobbler/modules.conf" % item.collection_type()) CX: 'serializer: error loading collection settings. Check /etc/cobbler/modules.conf'
If I edit config.py and raise the exeption captured there to see the real error, i get:
root@lhcb19:~/cobbler# cobblerd Traceback (most recent call last): File "/usr/local/bin/cobblerd", line 76, in main api = cobbler_api.BootAPI(is_cobblerd=True) File "/usr/local/lib/python2.6/dist-packages/cobbler/api.py", line 130, in __init__ self.deserialize() File "/usr/local/lib/python2.6/dist-packages/cobbler/api.py", line 891, in deserialize return self._config.deserialize() File "/usr/local/lib/python2.6/dist-packages/cobbler/config.py", line 264, in deserialize if not serializer.deserialize(item): raise "" File "/usr/local/lib/python2.6/dist-packages/cobbler/serializer.py", line 121, in deserialize storage_module = __get_storage_module(obj.collection_type()) File "/usr/local/lib/python2.6/dist-packages/cobbler/serializer.py", line 160, in __get_storage_module return capi.get_module_from_file("serializers",collection_type,"serializer_catalog") File "/usr/local/lib/python2.6/dist-packages/cobbler/api.py", line 924, in get_module_from_file return module_loader.get_module_from_file(section,name,fallback) File "/usr/local/lib/python2.6/dist-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 serializers/settings'
the /etc/cobbler/modules.conf is the one generated when doing "make install" (no serializers section there). Even if I add it with the serializer_catalog value the error persists. There's nothing in /var/log/cobbler.log
# ls -la /var/log/cobbler/cobbler.log -rw-r--r-- 1 root root 0 Mar 12 12:38 /var/log/cobbler/cobbler.log
If I run python -c "import cobbler.modules.serializer_catalog" I get:
# python -c "import cobbler.modules.serializer_catalog" Traceback (most recent call last): File "<string>", line 1, in <module> File "cobbler/modules/serializer_catalog.py", line 41, in <module> from utils import _ ImportError: No module named utils
but If I go to the cobbler dir inside the python modules it works:
# cd /usr/local/lib/python2.6/dist-packages/cobbler /usr/local/lib/python2.6/dist-packages/cobbler# python -c "import cobbler.modules.serializer_catalog" /usr/local/lib/python2.6/dist-packages/cobbler#
Can somebody give me any hint on what might be wrong?
Thanks, Adri
whats your $PYTHONPATH ??
i guess it does work when you use 'make rpms' and install those?
It's a debian server so I can't make rpms. There's no PYTHONPATH predefined when executing cobblerd. Shouldn't it set the proper one?
Cheers, Adri
On 20 March 2012 14:04, Jörgen Maas jorgen.maas@gmail.com wrote:
On Thu, Mar 15, 2012 at 4:03 PM, Adrian Casajús adria@ecm.ub.es wrote:
Hello,
I'm trying to install cobbler from git (master branch) onto a freshly installed debian server. I just did
git checkout .... cd cobbler make install
but cobblerd refuses to start.
~/cobbler# cobblerd Traceback (most recent call last): File "/usr/local/bin/cobblerd", line 76, in main api = cobbler_api.BootAPI(is_cobblerd=True) File "/usr/local/lib/python2.6/dist-packages/cobbler/api.py", line 130, in __init__ self.deserialize() File "/usr/local/lib/python2.6/dist-packages/cobbler/api.py", line 891, in deserialize return self._config.deserialize() File "/usr/local/lib/python2.6/dist-packages/cobbler/config.py", line 266, in deserialize raise CX("serializer: error loading collection %s. Check /etc/cobbler/modules.conf" % item.collection_type()) CX: 'serializer: error loading collection settings. Check /etc/cobbler/modules.conf'
If I edit config.py and raise the exeption captured there to see the real error, i get:
root@lhcb19:~/cobbler# cobblerd Traceback (most recent call last): File "/usr/local/bin/cobblerd", line 76, in main api = cobbler_api.BootAPI(is_cobblerd=True) File "/usr/local/lib/python2.6/dist-packages/cobbler/api.py", line 130, in __init__ self.deserialize() File "/usr/local/lib/python2.6/dist-packages/cobbler/api.py", line 891, in deserialize return self._config.deserialize() File "/usr/local/lib/python2.6/dist-packages/cobbler/config.py", line 264, in deserialize if not serializer.deserialize(item): raise "" File "/usr/local/lib/python2.6/dist-packages/cobbler/serializer.py", line 121, in deserialize storage_module = __get_storage_module(obj.collection_type()) File "/usr/local/lib/python2.6/dist-packages/cobbler/serializer.py", line 160, in __get_storage_module return capi.get_module_from_file("serializers",collection_type,"serializer_catalog") File "/usr/local/lib/python2.6/dist-packages/cobbler/api.py", line 924, in get_module_from_file return module_loader.get_module_from_file(section,name,fallback) File "/usr/local/lib/python2.6/dist-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 serializers/settings'
the /etc/cobbler/modules.conf is the one generated when doing "make install" (no serializers section there). Even if I add it with the serializer_catalog value the error persists. There's nothing in /var/log/cobbler.log
# ls -la /var/log/cobbler/cobbler.log -rw-r--r-- 1 root root 0 Mar 12 12:38 /var/log/cobbler/cobbler.log
If I run python -c "import cobbler.modules.serializer_catalog" I get:
# python -c "import cobbler.modules.serializer_catalog" Traceback (most recent call last): File "<string>", line 1, in <module> File "cobbler/modules/serializer_catalog.py", line 41, in <module> from utils import _ ImportError: No module named utils
but If I go to the cobbler dir inside the python modules it works:
# cd /usr/local/lib/python2.6/dist-packages/cobbler /usr/local/lib/python2.6/dist-packages/cobbler# python -c "import cobbler.modules.serializer_catalog" /usr/local/lib/python2.6/dist-packages/cobbler#
Can somebody give me any hint on what might be wrong?
Thanks, Adri
whats your $PYTHONPATH ??
i guess it does work when you use 'make rpms' and install those?
-- Grtz, Jörgen Maas
cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
cobbler@lists.fedorahosted.org