Skip navigation
2761 Views 6 Replies Latest reply: Sep 15, 2011 3:11 AM by James Stewart RSS
James Stewart Rank: Green Belt 91 posts since
Dec 1, 2010
Currently Being Moderated

Sep 6, 2011 2:42 AM

Error loading Linux device pages

Hello all,

 

I'm having a strange problem every time I attempt to look at a Linux device in Zenoss. On loading the device page, I get the infamous:

 

The server reported the following error:

Unable to connect to the server.

The system has encountered an error. Please reload the page.

 

I am still able to access the page by clicking 'Dismiss', but I notice that nothing is appearing under "Monitoring Templates" so I assume that's where the problem is occuring.

 

Looking in event.log I see this:

 

2011-09-06T16:20:49 ERROR Zope.SiteErrorLog 1315290049.350.998860592142 http://zenoss.mydomain.com:8080/zport/dmd/Devices/Server/Linux/devices/myserver.mydomain.com/device_router

Traceback (innermost last):

  Module ZPublisher.Publish, line 127, in publish

  Module ZPublisher.mapply, line 77, in mapply

  Module ZPublisher.Publish, line 47, in call_object

  Module Products.ZenUtils.extdirect.zope.router, line 24, in __call__

  Module Products.ZenUtils.extdirect.router, line 88, in __call__

  Module Products.ZenUtils.jsonutils, line 152, in json

  Module json, line 230, in dumps

  Module json.encoder, line 367, in encode

  Module json.encoder, line 306, in _iterencode

  Module json.encoder, line 204, in _iterencode_list

  Module json.encoder, line 309, in _iterencode

  Module json.encoder, line 275, in _iterencode_dict

  Module json.encoder, line 309, in _iterencode

  Module json.encoder, line 275, in _iterencode_dict

  Module json.encoder, line 309, in _iterencode

  Module json.encoder, line 275, in _iterencode_dict

  Module json.encoder, line 306, in _iterencode

  Module json.encoder, line 204, in _iterencode_list

  Module json.encoder, line 309, in _iterencode

  Module json.encoder, line 275, in _iterencode_dict

  Module json.encoder, line 317, in _iterencode

  Module json.encoder, line 323, in _iterencode_default

  Module json.encoder, line 344, in default

TypeError: <type 'str'> is not JSON serializable

------

 

Does anybody know what might be causing this? It's proving difficult to track down...

 

Thanks,

 

James

  • dhopp Rank: Green Belt 184 posts since
    Jul 17, 2007
    Currently Being Moderated
    1. Sep 6, 2011 7:14 AM (in response to James Stewart)
    Re: Error loading Linux device pages

    What version of Zenoss?

     

    --Dennis

  • jcurry ZenossMaster 1,021 posts since
    Apr 15, 2008
    Currently Being Moderated
    3. Sep 7, 2011 12:17 PM (in response to James Stewart)
    Re: Error loading Linux device pages

    Do you get this for all devices or just for myserver.mydomain.com??

     

    Have you tried using zendmd to reindex and commit and/or zenfixit.  There's a good thread her http://community.zenoss.org/message/47121#47121 including a copy of zenfixit if you don't have that.

     

    Cheers,

    Jane

  • jcurry ZenossMaster 1,021 posts since
    Apr 15, 2008
    Currently Being Moderated
    5. Sep 8, 2011 1:36 PM (in response to James Stewart)
    Re: Error loading Linux device pages

    The other technique I use when I have "a bit of a doosey" is to use the ZMI (Zope Management Interface) - have you tried this?  Typically you add /manage to a url.  I would point your browser at <your zenoss>:8080/zport/dmd/manage to see the whoe Zenoss object hierarchy.  See if you can check the rrdTemplates for /Server/Linux . Sometimes you can delete broken stuff using the ZMI; sometimes not.  Even if you can't it may give you extra clues.

     

    Cheers,

    Jane

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points