Zeus Branigan
2013-11-12 17:49:18 UTC
Zeus Branigan [http://community.zenoss.org/people/zbranigan] created the discussion
"MySQL Disk Space Issue Broke 'Devices' Tab"
To view the discussion, visit: http://community.zenoss.org/message/75224#75224
--------------------------------------------------------------
Running Zenoss Core 4.2.4 on
CentOS release 5.4 Kernel 2.6.18-164.el5 x86_64
VMware VM
I have been running Zenoss successfully since 4.2.3 until I ran out of disk space on the vg_root-lv_root filesystem. I solved that issue using Lauren Malhoit's very helpful guide over at TechRepublic, and Zenoss began functioning normally again.Â
A few months later I was faced with the same low disk space problem on the vg_root-lv_var_lib_mysql filesystem. I used a guide found here to expand the volume.
http://www.linuxquestions.org/questions/fedora-35/lvm-partition-resizing-666683/ http://www.linuxquestions.org/questions/fedora-35/lvm-partition-resizing-666683/
After completing the expansion, everything seemed to work well until I went to "Infrastructure" "Devices". There I am met with the following error:
*Type: <type 'exceptions.TypeError'>*
*Value: <Products.ZenUtils.extdirect.router.DirectResponse object at 0xb874c90> is not JSON serializable*
Traceback (most recent call last):
File "/opt/zenoss/lib/python/ZPublisher/Publish.py", line 126, in publish request, bind=1)
File "/opt/zenoss/lib/python/ZPublisher/mapply.py", line 77, in mapply if debug is not None: return debug(object,args,context)
File "/opt/zenoss/lib/python/ZPublisher/Publish.py", line 46, in call_object result=apply(object,args) # Type s<cr> to step into published object.
File "/opt/zenoss/lib/python/Products/Five/browser/pagetemplatefile.py", line 125, in __call__ return self.im_func(im_self, *args, **kw)
File "/opt/zenoss/Products/ZenWidgets/FileGzipper.py", line 82, in __call__ return original(self, __instance, *args, **keywords)
File "/opt/zenoss/lib/python/Products/Five/browser/pagetemplatefile.py", line 59, in __call__ sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
File "/opt/zenoss/lib/python/zope/pagetemplate/pagetemplate.py", line 132, in pt_render strictinsert=0, sourceAnnotations=sourceAnnotations
File "/opt/zenoss/lib/python/zope/pagetemplate/pagetemplate.py", line 240, in __call__ interpreter()
File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 266, in __call__ self.interpret(self.program)
File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 338, in interpret handlers[opcode](self, args)
File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 883, in do_useMacro self.interpret(macro)
File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 338, in interpret handlers[opcode](self, args)
File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 941, in do_defineSlot self.interpret(slot)
File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 338, in interpret handlers[opcode](self, args)
File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 528, in do_optTag_tal self.do_optTag(stuff)
File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 513, in do_optTag return self.no_tag(start, program)
File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 508, in no_tag self.interpret(program)
File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 338, in interpret handlers[opcode](self, args)
File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 615, in do_insertText_tal text = self.engine.evaluateText(stuff[0])
File "/opt/zenoss/lib/python/Products/PageTemplates/Expressions.py", line 225, in evaluateText text = self.evaluate(expr)
File "/opt/zenoss/lib/python/zope/tales/tales.py", line 696, in evaluate return expression(self)
File "/opt/zenoss/lib/python/zope/tales/expressions.py", line 217, in __call__ return self._eval(econtext)
File "/opt/zenoss/lib/python/Products/PageTemplates/Expressions.py", line 155, in _eval return render(ob, econtext.vars)
File "/opt/zenoss/lib/python/Products/PageTemplates/Expressions.py", line 117, in render ob = ob()
File "/opt/zenoss/Products/ZenUI3/browser/pages.py", line 39, in getTrees """ % (json.dumps(deviceTree),
File "/opt/zenoss/lib/python2.7/json/__init__.py", line 231, in dumps return _default_encoder.encode(obj)
File "/opt/zenoss/lib/python2.7/json/encoder.py", line 201, in encode chunks = self.iterencode(o, _one_shot=True)
File "/opt/zenoss/lib/python2.7/json/encoder.py", line 264, in iterencode return _iterencode(o, 0)
File "/opt/zenoss/lib/python2.7/json/encoder.py", line 178, in default raise
TypeError(repr(o) + " is not JSON serializable")
TypeError: <Products.ZenUtils.extdirect.router.DirectResponse object at 0xb874c90> is not JSON serializable
All other tabs work well. Even under the Infrastructure tab, the other tabs show accurate data and events are logged. Any help with this issue is greatly appreciated. Happy to provide any additional information that may help with the issue.
Thank You
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/75224#75224]
Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"MySQL Disk Space Issue Broke 'Devices' Tab"
To view the discussion, visit: http://community.zenoss.org/message/75224#75224
--------------------------------------------------------------
Running Zenoss Core 4.2.4 on
CentOS release 5.4 Kernel 2.6.18-164.el5 x86_64
VMware VM
I have been running Zenoss successfully since 4.2.3 until I ran out of disk space on the vg_root-lv_root filesystem. I solved that issue using Lauren Malhoit's very helpful guide over at TechRepublic, and Zenoss began functioning normally again.Â
A few months later I was faced with the same low disk space problem on the vg_root-lv_var_lib_mysql filesystem. I used a guide found here to expand the volume.
http://www.linuxquestions.org/questions/fedora-35/lvm-partition-resizing-666683/ http://www.linuxquestions.org/questions/fedora-35/lvm-partition-resizing-666683/
After completing the expansion, everything seemed to work well until I went to "Infrastructure" "Devices". There I am met with the following error:
*Type: <type 'exceptions.TypeError'>*
*Value: <Products.ZenUtils.extdirect.router.DirectResponse object at 0xb874c90> is not JSON serializable*
Traceback (most recent call last):
File "/opt/zenoss/lib/python/ZPublisher/Publish.py", line 126, in publish request, bind=1)
File "/opt/zenoss/lib/python/ZPublisher/mapply.py", line 77, in mapply if debug is not None: return debug(object,args,context)
File "/opt/zenoss/lib/python/ZPublisher/Publish.py", line 46, in call_object result=apply(object,args) # Type s<cr> to step into published object.
File "/opt/zenoss/lib/python/Products/Five/browser/pagetemplatefile.py", line 125, in __call__ return self.im_func(im_self, *args, **kw)
File "/opt/zenoss/Products/ZenWidgets/FileGzipper.py", line 82, in __call__ return original(self, __instance, *args, **keywords)
File "/opt/zenoss/lib/python/Products/Five/browser/pagetemplatefile.py", line 59, in __call__ sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
File "/opt/zenoss/lib/python/zope/pagetemplate/pagetemplate.py", line 132, in pt_render strictinsert=0, sourceAnnotations=sourceAnnotations
File "/opt/zenoss/lib/python/zope/pagetemplate/pagetemplate.py", line 240, in __call__ interpreter()
File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 266, in __call__ self.interpret(self.program)
File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 338, in interpret handlers[opcode](self, args)
File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 883, in do_useMacro self.interpret(macro)
File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 338, in interpret handlers[opcode](self, args)
File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 941, in do_defineSlot self.interpret(slot)
File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 338, in interpret handlers[opcode](self, args)
File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 528, in do_optTag_tal self.do_optTag(stuff)
File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 513, in do_optTag return self.no_tag(start, program)
File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 508, in no_tag self.interpret(program)
File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 338, in interpret handlers[opcode](self, args)
File "/opt/zenoss/lib/python/zope/tal/talinterpreter.py", line 615, in do_insertText_tal text = self.engine.evaluateText(stuff[0])
File "/opt/zenoss/lib/python/Products/PageTemplates/Expressions.py", line 225, in evaluateText text = self.evaluate(expr)
File "/opt/zenoss/lib/python/zope/tales/tales.py", line 696, in evaluate return expression(self)
File "/opt/zenoss/lib/python/zope/tales/expressions.py", line 217, in __call__ return self._eval(econtext)
File "/opt/zenoss/lib/python/Products/PageTemplates/Expressions.py", line 155, in _eval return render(ob, econtext.vars)
File "/opt/zenoss/lib/python/Products/PageTemplates/Expressions.py", line 117, in render ob = ob()
File "/opt/zenoss/Products/ZenUI3/browser/pages.py", line 39, in getTrees """ % (json.dumps(deviceTree),
File "/opt/zenoss/lib/python2.7/json/__init__.py", line 231, in dumps return _default_encoder.encode(obj)
File "/opt/zenoss/lib/python2.7/json/encoder.py", line 201, in encode chunks = self.iterencode(o, _one_shot=True)
File "/opt/zenoss/lib/python2.7/json/encoder.py", line 264, in iterencode return _iterencode(o, 0)
File "/opt/zenoss/lib/python2.7/json/encoder.py", line 178, in default raise
TypeError(repr(o) + " is not JSON serializable")
TypeError: <Products.ZenUtils.extdirect.router.DirectResponse object at 0xb874c90> is not JSON serializable
All other tabs work well. Even under the Infrastructure tab, the other tabs show accurate data and events are logged. Any help with this issue is greatly appreciated. Happy to provide any additional information that may help with the issue.
Thank You
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/75224#75224]
Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]