Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25379 - apcupsd ignores config file
Summary: apcupsd ignores config file
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-27 11:57 UTC by Sylvain Demers
Modified: 2009-04-02 13:09 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sylvain Demers 2003-07-27 11:57:25 UTC
I have the "NETSERVER=off" line in the /etc/apcupsd/apcupsd.conf file.  However, 
when I use the "/usr/sbin/apcaccess status" command, I get: 
 
FATAL ERROR in apcaccess.c at line 278 
tcp_open: cannot connect to server localhost on port 3551. 
ERR=Connection refused 
 
 
I also tried setting "NETSERVER=on", and I get the same problem.  Apcupsd's 
documentation states that it should start the listening service by itself.  Also, 
sometimes the documentation refers to "NETSTATUS" instead of "NETSERVER", so I 
tried with both: same result. 

Reproducible: Always
Steps to Reproduce:
 



apcupsd-3.10.5-r3
Comment 1 Michael Imhof (RETIRED) gentoo-dev 2003-11-01 03:56:40 UTC
I can reproduce this bug over here.
It's really annoying.
Comment 2 Jason Wever (RETIRED) gentoo-dev 2003-11-01 04:08:46 UTC
I can replicate the "NETSERVER off" error with sys-apps/apcupsd-3.10.5-r3
and sys-apps/apcupsd-3.10.5-r4.  "NETSERVER on" works just fine however.
Comment 3 Michael Imhof (RETIRED) gentoo-dev 2003-11-01 04:51:09 UTC
Okies, i look into this:

You have to use
NETSERVER on
in your apcupsd.conf. With NETSERVER OFF this problem still occurs.

The ebuild installs a new apcupsd.conf which has NETSERVER on into it.
So i guess you just didn't update your apcupsd.conf as recommended.

I'll also bump the ebuild to 3.10.6 as it runs great over here.


Please report back if this solves your problem.
Comment 4 Sylvain Demers 2003-11-01 08:55:05 UTC
3.10.6 does solves the problem on my end. I did update my apcupsd.conf file
back with 3.10.5, but I always set NETSERVER off since I didn't see the point.

BTW, for others, apcupsd takes a couple of seconds to open it's port, so
checking right after restarting it will yeild the same result. Give it about
10 seconds. After realising that, I thought maybe 3.10.5 was ok after all,
as it didn't work right away so I emerged 3.10.6. Also, I put "NISIP 127.0.0.1"
in my apcupsd.conf file since I'm the only one who will be using that.

However, 3.10.6 now uses the -s switch for sendmail, which Postfix doesn't
like.  I created a new bug report (32471, with a patch) which includes this
"-s" problem as well as bad headers when apcupsd is sending mail.
Comment 5 Michael Imhof (RETIRED) gentoo-dev 2003-11-01 11:19:58 UTC
Good. Thanks for your help.

I edited the 3.10.6 ebuild several time to make sure cgi's etc. get installed
into the right location. (apache/apache2).

Closing this bug now.