Koozali.org: home of the SME Server

NUT: can not connect to SME-Server (Master) from Slave

Offline ImogaHoibe

  • 1
  • +0/-0
NUT: can not connect to SME-Server (Master) from Slave
« on: January 10, 2015, 11:25:13 PM »
Hi all,

I configured my SME-Server according to the HowTo-WIKI http://wiki.contribs.org/Uninterruptable_Power_Supply, and it is working perfectly (since Version 7, and now Verion 9).

Now I wanted to configure another computer to be working as a UPS-Slave listening to my SME-Server (Master), as mentioned in the same WIKI later on.
But I did not got any connection from remote.

Now I tested as root on my SME-Server:
[root@smeserver /]# upsc [NameOfUPS]@localhost   --> working (I get a long list with all the Parameters from my ups :-))
now I tried as root on my SME-Server with the IP-Adress:
[root@smeserver /]#  upsc [NameOfUPS]@[IP-AddressOfSME-Server]   --> "Error: Connection failure: Connection refused"

so I looked into my messages:
...
ACL in upsd.conf is no longer supported - switch to LISTEN
ACCEPT in upsd.conf is no longer supported - switch to LISTEN
REJECT in upsd.conf is no longer supported - switch to LISTEN
...

Now I understand, that this Version of NUT is only accepting a LISTEN in the upsd.conf!

--> So my suggestion (I hope, this will be working after Upgrade...):
add another File (I called it 60LISTEN):

nano /etc/e-smith/templates/etc/ups/upsd.conf/60LISTEN
+++++++++++++++++++++++++++++++++++++++
LISTEN 127.0.0.1
LISTEN {"$LocalIP"}
-----------------------------------------------------------------

... and VoilĂ ! After a Restart of the NUT everything is working:
/etc/rc7.d/S38nut stop
/etc/rc7.d/S38nut start

and I can connect from other Computer :-)!

maybe this idea is helpful for someone else...

Best regards
Rainer


guest22

Re: NUT: can not connect to SME-Server (Master) from Slave
« Reply #1 on: January 11, 2015, 07:10:58 AM »
Hi all,

Hi Rainer, and welcome!

Quote
--> So my suggestion (I hope, this will be working after Upgrade...):
add another File (I called it 60LISTEN):

Sounds like a real candidate to be discussed and maybe implemented via Bugzilla.

Would you please raise a bug here? http://bugs.contribs.org/enter_bug.cgi?product=SME%20Server%209.X
and attach your solution as a patch?

TIA
guest

guest22

Re: NUT: can not connect to SME-Server (Master) from Slave
« Reply #2 on: January 12, 2015, 11:11:14 AM »
Raised in Bugzilla here http://bugs.contribs.org/show_bug.cgi?id=8793

Thanks for entering it in Bugzilla Rainer.