On Tue, Apr 26, 2011 at 17:01, Scott Henson shenson@redhat.com wrote:
On Tue, 26 Apr 2011 14:35:53 -0500, Greg Swift gregswift@gmail.com wrote:
I've got anamon enabled on my systems and I noticed that when I reload the system, if I'm watching the console, immediately after it boots for the first time and comes to the login prompt it gets a traceback to the console. Here is the traceback:
Traceback (most recent call last): File "/usr/local/sbin/anamon", line 275, in ? anamon_loop() File "/usr/local/sbin/anamon", line 224, in anamon_loop wf.update() File "/usr/local/sbin/anamon", line 121, in update self.uploadWrapper() File "/usr/local/sbin/anamon", line 106, in uploadWrapper if session.upload_log_data(name, self.alias, sz, offset, data): File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__ return self.__send(self.__name, args) File "/usr/lib64/python2.4/xmlrpclib.py", line 1383, in __request verbose=self.__verbose File "/usr/lib64/python2.4/xmlrpclib.py", line 1147, in request return self._parse_response(h.getfile(), sock) File "/usr/lib64/python2.4/xmlrpclib.py", line 1286, in _parse_response return u.close() File "/usr/lib64/python2.4/xmlrpclib.py", line 744, in close raise Fault(**self._stack[0]) xmlrpclib.Fault: <Fault 1: "exceptions.OSError:[Errno 2] No such file or directory: '/var/log/cobbler/anamon/systemname'">
And its right... there is no /var/log/cobbler/anamon/systemname... but there isn't even a /var/log/cobbler.
I do have both {pre,post}_anamon in my kickstart template.
tried googling a bit, didn't find anything useful, but could have just had the wrong search phases. any suggestions?
Did you install from rpm or from tarball? I see the following in the RPM that would have ensured that /var/log/cobbler and its subdirectories where present.
/var/log/cobbler /var/log/cobbler/anamon /var/log/cobbler/kicklog /var/log/cobbler/syslog /var/log/cobbler/tasks
I was trying to figure it out from the clients perspective! d'oh. I accidentally did a bad rm -rf the other day and got a few directories in /var/log. (its a bad habit of mine, but the only time its ever got me). I re-created /var/log/cobbler, but didn't think about /var/log/cobbler/anamon. Its fixed now.. and no more errors. thanks!