[Nut-upsuser] nut problem on boot/restart

Arnaud Quette aquette.dev at gmail.com
Thu May 12 20:27:54 UTC 2011


Hi,

2011/5/8 pepe jose <dynamix66 at hotmail.com>

>  hi!
>
> When I turn on my pc everything works fine, but if I restart fails (I'm not
> sure if this is true at 100%)(then, i can do 'sudo /etc/init.d/nut restart'
> and it works)
>
> But what is certain is that sometimes when start up the pc it works and
> sometimes fails. It seems like attempting to use the USB bus before it has
> initialized.
>
> how I can fix this? thanks so much!
>
> my setup:
> core i5, SSD corsair, 8GB ram, msi p67a-gd65
> Ubuntu 11.04 64bit
> NUT v2.6 deb from ubuntu
> UPS Soyntec Sekury C 800 USB
>
> syslog:
> Apr 30 21:58:16 tron upsd[1251]: listening on 127.0.0.1 port 3493
> Apr 30 21:58:16 tron upsd[1251]: Can't connect to UPS [soyntec]
> (blazer_usb-soyntec): No such file or directory
> Apr 30 21:58:16 tron upsd[1253]: Startup successful
> Apr 30 21:58:16 tron upsmon[1256]: Startup successful
> Apr 30 21:58:16 tron upsd[1253]: User monuser 127.0.0.1 logged into UPS
> [soyntec]
> Apr 30 21:58:16 tron upsmon[1259]: Poll UPS [soyntec localhost] failed -
> Driver not connected
> Apr 30 21:58:16 tron upsmon[1259]: Communications with UPS soyntec
> localhost lost
>
> output (sudo /lib/nut/blazer_usb -DDDDD -a soyntec) attached<http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser>
>

as per your provided info, this indeed resemble to a udev related issue.
this is quite probably due to the upstart + sysV mix that is in use in
natty, with udev being an upstart job, while nut is still a sysV
(compatibility) one.
I've sadly not had time to install an actual natty, and pbuilder disable
udev.

the final solution will come with NUT conversion to upstart (I had a session
at the UDS today on that).
for the time being, you can try to up a bit more NUT's ranking by doing:
$ sudo mv /etc/rc2.d/S50nut /etc/rc2.d/s99nut

and check if the situation has improved.
I'll give a word tomorrow to upstart developers on this.

cheers,
Arnaud (from UDS Budapest)
-- 
Linux / Unix Expert R&D - Eaton - http://powerquality.eaton.com
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.free.fr/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20110512/20663aca/attachment.htm>


More information about the Nut-upsuser mailing list