TECHZEN Zenoss User Community ARCHIVE  

Service Unavailable?

Subject: Service Unavailable?
Author: [Not Specified]
Posted: 2014-05-28 17:00

Type:
Value: Service Unavailable
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 to step into published object. File "/opt/zenoss/lib/python/Products/Five/browser/metaconfigure.py", line 476, in __call__ return self.index(*args, **kw) 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 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 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 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 737, in do_insertStructure_tal structure = self.engine.evaluateStructure(expr) File "/opt/zenoss/lib/python/Products/PageTemplates/Expressions.py", line 218, in evaluateStructure text = super(ZopeContext, self).evaluateStructure(expr) File "/opt/zenoss/lib/python/zope/tales/tales.py", line 696, in evaluate return expression(self) File "/opt/zenoss/lib/python/zope/contentprovider/tales.py", line 80, in __call__ return provider.render() File "/opt/zenoss/Products/ZenUI3/utils/javascript.py", line 28, in render raw_js = '\n'.join(v.render() for v in self.viewlets) File "/opt/zenoss/Products/ZenUI3/utils/javascript.py", line 28, in raw_js = '\n'.join(v.render() for v in self.viewlets) File "/opt/zenoss/Products/ZenUI3/utils/javascript.py", line 40, in render return self.snippet() File "/opt/zenoss/Products/ZenUI3/browser/eventconsole/grid.py", line 159, in snippet defs = column_config(self.request, archive=archive) File "/opt/zenoss/Products/ZenUI3/browser/eventconsole/grid.py", line 115, in column_config columns = _find_column_definitions(archive) File "/opt/zenoss/Products/ZenUI3/browser/eventconsole/grid.py", line 71, in _find_column_definitions details = getFacade('zep').getUnmappedDetails() File "/opt/zenoss/Products/Zuul/facades/zepfacade.py", line 656, in getUnmappedDetails return getDetailsInfo().getUnmappedDetails() File "/opt/zenoss/Products/Zuul/facades/zepfacade.py", line 811, in getUnmappedDetails self._initDetails() File "/opt/zenoss/Products/Zuul/facades/zepfacade.py", line 769, in _initDetails response, content = self._configClient.getDetails() File "/opt/zenoss/lib/python/zenoss/protocols/services/zep.py", line 257, in getDetails return self.client.get('index_details') File "/opt/zenoss/lib/python/zenoss/protocols/services/__init__.py", line 181, in get return self._request(path, method='GET', params=params, headers=headers) File "/opt/zenoss/lib/python/zenoss/protocols/services/__init__.py", line 160, in _request response, content = self._executeRequest(request) File "/opt/zenoss/lib/python/zenoss/protocols/services/__init__.py", line 154, in _executeRequest raise ServiceResponseError(response.reason, response.status, request, response, content) ServiceResponseError: Service Unavailable

Any Ideas Our admin that build the server is no longer here, and I just don't know enough about Zenoss to do much troubleshooting on my own.

Thank you,
Chris



Subject: Try the following command as
Author: [Not Specified]
Posted: 2014-05-29 09:23

Try the following command as the zenoss user:

zeneventserver stop && cd $ZENHOME/var/zeneventserver/index && rm -rf summary && rm -rf archive && zeneventserver start

Hydruid



Subject: Nothing happens
Author: [Not Specified]
Posted: 2014-05-30 10:08

When I run the command:
[root@Zenoss01 ~]# zeneventserver stop && cd $ZENHOME/var/zeneventserver/index && rm -rf summary && rm -rf archive &&
>
> zeneventserver start
-bash: zeneventserver: command not found

I feel like I'm doing something wrong... like I said before I know very little about Zenoss- I was able to look into the services, and found a couple that were not getting to the "running" status.

Status | PID | Daemon
-------------------------------------------------------------------
Running 12730 zeneventserver
Running 12803 zopectl
Running 12853 zenhub
Running 12903 zenjobs
Running 12981 zeneventd
Running 13016 zenping
Running 13108 zensyslog
Running 13087 zenstatus
Running 13127 zenactiond
Running 13229 zentrap
Stopped zenmodeler
Running 13249 zenperfsnmp
Running 13280 zencommand
Running 13312 zenprocess
Running 13316 zenrrdcached
Running 13357 zenjmx
Stopped zenwinperf
Stopped zeneventlog
Running 13517 zenwin
Running 13552 zenpython

I don't know if this has anything to do with it.
Thank you for your help!



Subject: Wrong User
Author: [Not Specified]
Posted: 2014-05-30 10:22

You ran the command as root, which is the wrong user, have to run them as the 'zenoss' user. See below

su zenoss
zeneventserver stop && cd $ZENHOME/var/zeneventserver/index && rm -rf summary && rm -rf archive && zeneventserver start

The # at the end of the bash prompts tells you that you are "root". You can also do a 'whoami' to tell who you are. While you are the zenoss user, also run the following command to ensure all the daemons are running

zenoss status

Hydruid



Subject: Thank you!
Author: [Not Specified]
Posted: 2014-05-30 10:49

Thank you for the User information- I hate when I'm working with systems I've never used before, and have to ask the most simple of questions.

I did the commands and they worked, but I'm still getting the same errors.

[zenoss@Zenoss01 index]$ zenoss status
Daemon: zeneventserver program running; pid=20769
Daemon: zopectl program running; pid=12803
Daemon: zenhub program running; pid=12853
Daemon: zenjobs program running; pid=12903
Daemon: zeneventd program running; pid=12981
Daemon: zenping program running; pid=13016
Daemon: zensyslog program running; pid=13108
Daemon: zenstatus program running; pid=13087
Daemon: zenactiond program running; pid=13127
Daemon: zentrap program running; pid=13229
Daemon: zenmodeler not running
Daemon: zenperfsnmp program running; pid=13249
Daemon: zencommand program running; pid=13280
Daemon: zenprocess program running; pid=13312
Daemon: zenrrdcached program running; pid=13316
Daemon: zenjmx program running; pid=13357
Daemon: zenwinperf not running
Daemon: zeneventlog not running
Daemon: zenwin program running; pid=13517
Daemon: zenpython program running; pid=13552
[zenoss@Zenoss01 index]$

We had this server working for a year or so, and I came in Monday about a 3-4 weeks ago and I was getting this error.
I've tried restarting the server, and then the steps that you've given me- but no luck.

Any other ideas
Thank you again!



Subject: If you do a 'zenoss restart'
Author: [Not Specified]
Posted: 2014-05-30 11:06

If you do a 'zenoss restart' do you get any errors

Hydruid



Subject: I don't know.
Author: [Not Specified]
Posted: 2014-05-30 14:43

[zenoss@Zenoss01 index]$ zenoss restart
Daemon: zenpython stopping...
Daemon: zenwin stopping...
Daemon: zeneventlog stopping...
already stopped
Daemon: zenwinperf stopping...
already stopped
Daemon: zenjmx stopping...
Daemon: zenrrdcached stopping...
Daemon: zenprocess stopping...
Daemon: zencommand stopping...
Daemon: zenperfsnmp stopping...
Daemon: zenmodeler stopping...
already stopped
Daemon: zentrap stopping...
Daemon: zenactiond stopping...
Daemon: zenstatus stopping...
Daemon: zensyslog stopping...
Daemon: zenping stopping...
Daemon: zeneventd stopping...
Daemon: zenjobs stopping...
Daemon: zenhub stopping...
Daemon: zopectl .
daemon process stopped
Daemon: zeneventserver stopping...
Daemon: zeneventserver starting...
Waiting for zeneventserver to start........
Daemon: zopectl .
daemon process started, pid=25725
Daemon: zenhub starting...
Daemon: zenjobs starting...
Daemon: zeneventd starting...
Daemon: zenping starting...
Daemon: zensyslog starting...
Daemon: zenstatus starting...
Daemon: zenactiond starting...
Daemon: zentrap starting...
Daemon: zenmodeler starting...
Daemon: zenperfsnmp starting...
Daemon: zencommand starting...
Daemon: zenprocess starting...
Daemon: zenrrdcached starting...
Daemon: zenjmx starting...
Daemon: zenwinperf starting...
Daemon: zeneventlog starting...
Daemon: zenwin starting...
Daemon: zenpython starting...
[zenoss@Zenoss01 index]$

I don't get any errors per se... but I don't really get anything that says that they started.

Thank you



< Previous
extending event to have a ticket number field
  Next
Maps not working - Sorry, we have no imagery here
>