On Wed, 2003-10-29 at 11:20, Anne Wilson wrote:
> On Wednesday 29 Oct 2003 5:46 pm, James Sparenberg wrote:
> > On Wed, 2003-10-29 at 07:48, Anne Wilson wrote:
> > > On Wednesday 29 Oct 2003 12:57 pm, Brian V Bonini wrote:
> > > > On Wed, 2003-10-29 at 05:34, Anne Wilson wrote:
> > > > > My ups is working well, but I would like to use the
> > > > > monitoring software.  Unfortunately I seem to have a config
> > > > > problem, which I don't understand.  These are the error
> > > > > messages:
> > > > >
> > > > > Wed Oct 29 09:53:14 GMT 2003  Cannot create
> > > > > /var/lock/subsys/apcupsd/LCK..ttyS0 serial port lock file:
> > > > > ERR=No such file or directory
> > > > > Wed Oct 29 09:53:14 GMT 2003  apcupsd FATAL ERROR in
> > > > > apcdevice.c at line 87
> > > > > Unable to create UPS lock file.
> > > > > Wed Oct 29 09:53:14 GMT 2003  apcupsd error shutdown
> > > > > completed
> > > > >
> > > > > The directory /var/lock/subsys/apcupsd exists.  Why can't it
> > > > > create the lock file?
> > > > >
> > > > > Anne
> > > >
> > > > I guess the first obvious question is does the dir have the
> > > > correct permissions for whatever apcupsd is running as? On my
> > > > system it runs as root. And, are you sure there is a
> > > > /var/lock/subsys/apcupsd directory? I have a apcupsd file in
> > > > /var/lock/subsys/ but no apcupsd directory...
> > >
> > > I think you pointed me at the solution <g>.  I created the
> > > /var/lock/subsys/apcupsd directory, because it seemed to want to
> > > use that to create the lock file.  However, I now think I was
> > > wrong.  I have deleted that directory.  There is a file
> > > /var/lock/subsys/apcupsd, which must be used in the lock file
> > > creation.  We'll see what happens at the next reboot, but I think
> > > that is right.
> > >
> > > Anne
> >
> > Note that they are files in this dir not directories.  From my
> > experience (as useless as it may be.) these are just 0 byte files
> > that get touched by a product to signal that it is running.  I've
> > seen the create error a number of times when a process dies
> > incorrectly and this file is left behind.  The next time it starts
> > it can't touch the file and fails to start because the program
> > doesn't know how to recover from this condition.  If you remove it
> > from this dir is the program then able to start correctly?
> >
> > James
> 
> Hi, James.  I had ended up with a directory and a file with the same 
> name.  Unfortunately, even after deleting the directory, all is not 
> well.  The upsmon program is not as well documented as apcupsd, imo, 
> so I accept that my config file is faulty, but I don't know how to 
> correct it.  Do the errors in the attached file tell you what I need 
> to do?
> 
> Anne 

I would pay attention here.

Oct 29 19:05:58 anne-linux upsmon: Fatal error: insufficient power
configured!
Oct 29 19:05:58 anne-linux upsmon:
Oct 29 19:05:58 anne-linux upsmon: Sum of power values........: 0
Oct 29 19:05:58 anne-linux upsmon: Minimum value (MINSUPPLIES): 2

I don't have a system I can look at/ test to see what it should be but
it seems that your config file power values add up to 0 which is what
it's really complaining about.  It would seem that the error about
writing the lock file is designed to through you off track *grin*.  

James



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to