Archived community.zenoss.org | full text search
Skip navigation
10369 Views 4 Replies Latest reply: Jun 17, 2010 9:16 AM by ville RSS
ville Rank: White Belt 12 posts since
May 4, 2010
Currently Being Moderated

May 4, 2010 4:53 AM

Unable to determine the right user to run zenoss

Hi!

Im new with zenoss, but I got it up and running for a few days. Email alerts working like a charm for example.

I run it on Ubuntu 9.10, Zenoss Version 2.5.2

 

 

However, when I left work  at friday afternoon, everything was working just fine, but on mondaymorning something is wrong.

 

I get 3 Zenoss issues (from dashboard). It's zenaction, -hub and -eventlog.

 

zenhub and -eventlog works just fine if i restart the daemon from zenoss webinterface, allthough they seem to go down again after a little while.

 

Zenactions still reports an issue after I restart the daemon...

 

 

 

If I try to restart zenoss from the server terminal, i get this:

:~$ sudo service zenoss restart
ls: cannot access /etc/var/Data.fs: No such file or directory
Unable to determine the right user to run zenoss

 

So i googled the errormessages and it seems you should get this error message if you forgotten to put the following lines into .bashrc in your zenossuser homefolder:

 

export ZENHOME=/usr/local/zenoss
export PYTHONPATH=$ZENHOME/lib/python
export PATH=$ZENHOME/bin:$PATH

Obviously I do have these lines in .bashrc, and I did have everything up and running just a few days ago...

 

 

I am still able to access the zenoss webinterface, but Im unable to make any changes, such as adding devices, delete eventfiles and such. I am able to start, stop and restart daemons though.

 

 

 

Zenactionlogfile:

2010-05-04 10:46:04,071 INFO zen.ZenActions: Processed 0 commands in 0.000107 2010-05-04 10:46:04,201 ERROR zen.ZenActions: unexpected exception Traceback (most recent call last): File "/usr/local/zenoss/Products/ZenEvents/zenactions.py", line 583, in runCycle self.mainbody() File "/usr/local/zenoss/Products/ZenEvents/zenactions.py", line 574, in mainbody self.maintenance(zem) File "/usr/local/zenoss/Products/ZenEvents/zenactions.py", line 383, in maintenance self.execute(sql) File "/usr/local/zenoss/Products/ZenEvents/zenactions.py", line 188, in execute return self._getCursor(stmt, callback) File "/usr/local/zenoss/Products/ZenEvents/zenactions.py", line 174, in _getCursor rowsAffected = curs.execute(stmt) File "usr/local/zenoss/lib/python/MySQLdb/cursors.py", line 137, in execute self.errorhandler(self, exc, value) File "usr/local/zenoss/lib/python/MySQLdb/connections.py", line 33, in defaulterrorhandler raise errorclass, errorvalue OperationalError: (2013, 'Lost connection to MySQL server during query') 2010-05-04 10:47:04,239 INFO zen.ZenActions: Processed 0 commands in 0.000103 2010-05-04 10:47:04,364 ERROR zen.ZenActions: unexpected exception Traceback (most recent call last): File "/usr/local/zenoss/Products/ZenEvents/zenactions.py", line 583, in runCycle self.mainbody() File "/usr/local/zenoss/Products/ZenEvents/zenactions.py", line 574, in mainbody self.maintenance(zem) File "/usr/local/zenoss/Products/ZenEvents/zenactions.py", line 383, in maintenance self.execute(sql) File "/usr/local/zenoss/Products/ZenEvents/zenactions.py", line 188, in execute return self._getCursor(stmt, callback) File "/usr/local/zenoss/Products/ZenEvents/zenactions.py", line 174, in _getCursor rowsAffected = curs.execute(stmt) File "usr/local/zenoss/lib/python/MySQLdb/cursors.py", line 137, in execute self.errorhandler(self, exc, value) File "usr/local/zenoss/lib/python/MySQLdb/connections.py", line 33, in defaulterrorhandler raise errorclass, errorvalue OperationalError: (2013, 'Lost connection to MySQL server during query')

 

 

I have googled around a bit in order to find a solution to this mysqlserver problem, I am however quite useless at mysql and I didn't really get any answers. I did come across someting about changing the waiting time for mysql queries or something like that, but I never got it to work.. I figured that maybe it will all be easier and go much faster if I just post i thread about it here on the Zenoss forum.

 

 

Is there anyhing i missed? please just tell me and I'll provide you with the info you need. Thankful for any help given.

/Ville

  • Matt Ray Rank: Zen Master 2,484 posts since
    Apr 5, 2008
    Currently Being Moderated
    1. May 4, 2010 9:40 AM (in response to ville)
    Re: Unable to determine the right user to run zenoss

    Looks like your MySQL server is down: 'Lost connection to MySQL server during query'

     

    Try doing a /etc/init.d/zenoss-stack restart

More Like This

  • Retrieving data ...

Legend

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