Bryan
2007-Aug-20 22:43 UTC
[Nut-upsuser] upsc "Error: ... Can't assign requested address"
Hello there. I've just install nut 2.2 from source on my FreeBSD box. I have an MGE AVR 600 UPS on a USB cable. Following the INSTALL instructions, everything works in term of the USB driver detecting the right UPS and upsd loads up and runs without error. However, upsc reports the following error: # upsc mge600 at localhost Error: Connection failure:Can't assign requested address I was having this trouble with the FBSD ports version of nut v2.0.4, hence the source build of 2.2. Whilst other things are working much better with 2.2 (like the upsd driver auto-driver load, which wasn't before), this "address assignment" problem remains. (I have no firewall activated, if that's of any relevance). Many thanks for any help! upsd.conf -------------- ACL all 0.0.0.0/0 ACL localhost 127.0.0.1/32 ACCEPT localhost REJECT all upsd.users ---------------- empty (have not proceeded to get upsmon running yet) ups.conf ------------ [mge600] driver = usbhid-ups port = auto desc = "MGE AVR 600 powering sweetie" - - - - # upsdrvctl start Network UPS Tools - UPS driver controller Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30 () Detected a UPS: MGE UPS SYSTEMS/NOVA AVR Using subdriver: MGE HID 1.0 - - - - # /usr/local/ups/sbin/upsd -DDDDD Network UPS Tools upsd listen_add: added 0.0.0.0:3493 listening on 0.0.0.0 port 3493 Connected to UPS [mge600]: usbhid-ups-mge600 UPS [mge600]: dump is done Pinging UPS [mge600] Got PONG from UPS [mge600] Note the absence of "Synchronising..." *shrug* - - - - # /usr/local/ups/bin/upsc mge600 at localhost Error: Connection failure: Can't assign requested address DOH! *grin* -- Bryan.
Charles Lepple
2007-Aug-20 23:19 UTC
[Nut-upsuser] upsc "Error: ... Can't assign requested address"
On 8/20/07, Bryan <gruvin at gmail.com> wrote:> Hello there. > > I've just install nut 2.2 from source on my FreeBSD box. I have an MGE > AVR 600 UPS on a USB cable. Following the INSTALL instructions, > everything works in term of the USB driver detecting the right UPS and > upsd loads up and runs without error. > > However, upsc reports the following error: > > # upsc mge600 at localhost > Error: Connection failure:Can't assign requested address > > I was having this trouble with the FBSD ports version of nut v2.0.4, > hence the source build of 2.2. Whilst other things are working much > better with 2.2 (like the upsd driver auto-driver load, which wasn't > before), this "address assignment" problem remains. > > (I have no firewall activated, if that's of any relevance).I am by no means a FreeBSD expert, but I do have a test machine that I can try this with. A couple of questions: What version of FreeBSD are you running? Is IPv6 enabled? -- - Charles Lepple
Charles Lepple
2007-Aug-20 23:31 UTC
[Nut-upsuser] upsc "Error: ... Can't assign requested address"
On 8/20/07, Bryan <gruvin at gmail.com> wrote:> Hi Charles. Thanks for your reply. :) > > On 21/08/07, Charles Lepple <clepple at gmail.com> wrote: > > What version of FreeBSD are you running? > > Version 6.1, I think. It was installed from 6.1 CD's but's it's had a > number of updates. > > > Is IPv6 enabled? > > Yes, apparently so. But only on the loopback device far as I can tell... > > # ifconfig > rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 > inet 192.168.1.11 netmask 0xffffff00 broadcast 192.168.1.255 > ether 00:0a:cd:12:f0:af > media: Ethernet autoselect (1000baseTX <full-duplex>) > status: active > plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 > lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 > inet6 ::1 prefixlen 128I think that's part of the problem - the loopback interface does not have an IPv4 address assigned. In a normal IPv4 setup, "localhost" resolves to 127.0.0.1, which should be bound to the loopback interface. -- - Charles Lepple
Bryan
2007-Aug-21 02:22 UTC
[Nut-upsuser] upsc "Error: ... Can't assign requested address"
I forgot to reply to the list with the answer. Thanks again Charles! On 21/08/07, Charles Lepple <clepple at gmail.com> wrote:> > lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 > > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 > > inet6 ::1 prefixlen 128 > > I think that's part of the problem - the loopback interface does not > have an IPv4 address assigned. In a normal IPv4 setup, "localhost" > resolves to 127.0.0.1, which should be bound to the loopback > interface.Thanks Charles! You're absolutely right my man. I never even noticed the missing IP4 address! How bizarre. I've now assigned an IPV4 address of 127.0.0.1 to lo0, restarted the nut ups driver and upsd daemon and now everything is working fine. :-D Thanks so much for helping out with my domestic blindness on this cool morning here in New Zealand :-) Bryan.