May 4, 2010 4:53 AM
Unable to determine the right user to run zenoss
-
Like (0)
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
Looks like your MySQL server is down: 'Lost connection to MySQL server during query'
Try doing a /etc/init.d/zenoss-stack restart
Nope, that didnt work.
:~$ sudo /etc/init.d/zenoss-stack restart
sudo: /etc/init.d/zenoss-stack: command not found
:~$ sudo find / -name zenoss-stack
:~$ sudo find / -name '*zenoss-stack*'
I can't seem to find zenoss-stack
I do however have /etc/init.d/zenoss
:~$ sudo /etc/init.d/zenoss restart
/etc/init.d/zenoss: line 52: /etc/bin/zenfunctions: No such file or directory
/etc/init.d/zenoss: line 77: /etc/bin/zenpackdaemons: No such file or directory
There are files with these names, but in other places.
:~$ sudo find / -name zenfunctions
/usr/local/zenoss/bin/zenfunctions
/home/zenoss/zenoss-2.5.2/libzenoss/bin/zenfunctions
/root/.local/share/Trash/files/zenoss-2.5.2/libzenoss/bin/zenfunctions
:~$ sudo find / -name zenpackdaemons
/usr/local/zenoss/bin/zenpackdaemons
/home/zenoss/zenoss-2.5.2/libzenoss/bin/zenpackdaemons
/root/.local/share/Trash/files/zenoss-2.5.2/libzenoss/bin/zenpackdaemons
When searching the /etc/init.d/zenoss file, i find the line:
. $ZENHOME/bin/zenfunctions
This is the only line that refers to zenfunctions and it is line 55, line 52 consist of:
exec su - $USERNAME $0 $@
I also found:
ZPD=`$ZENHOME/bin/zenpackdaemons --list`
In the /etc/init.d/zenoss file. This is the only part that refers to zenpackdaemons.
Allright, so it seems zenhome refers to "/etc", right?
Is this the way it's supposed to be?
Any more ideas based on the new information?
/Ville
I have tried to restart the server but it didnt change anything.
All daemons är up and running, I do however still get errormessages from zenoss dashboard about zenactions (and sometimes from zenhub).
I can now add devices, I can't delete events though. I get an errormessage that says "Error, lost connection to server".
Any ideas?
/Ville
This problem was solved by changing the server... My old server had broken ram, thats why I had so many problems in the beginning...
/Ville
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||