Hi List, I just got myself a new everpower-1000va. according to the compatibility list, the 'safenet' driver supposed to support it, however, when I try, I get this in syslog: Jul 24 15:05:22 tv upsd[26458]: Can't connect to UPS [everpower1000] (safenet-ttyS1): No such file or directory this is my ups.conf: [everpower1000] driver = safenet port = /dev/ttyS1 desc = "firefang.net" I am using nut installed via apt on debian-etch. any suggestions? Omry.
m?n 2006-07-24 klockan 15:06 +0300 skrev Omry Yadan:> Hi List, >Hi Omry,> I just got myself a new everpower-1000va. > > according to the compatibility list, the 'safenet' driver supposed to > support it, > > however, when I try, I get this in syslog: > > > Jul 24 15:05:22 tv upsd[26458]: Can't connect to UPS [everpower1000] > (safenet-ttyS1): No such file or directory >As you can see, it is the upsd that need to connect. Check that you have the /var/state/ups dirrectory, and that it is writable by the user you run nut as. What upsd is looking for is the socket named safenet-ttyS1. This should be created in /var/state/ups. This is how it looks on my computer running bcmxcp-usb driver. ls -al /var/state/ups/ totalt 8 drwxrwx--- 2 nut nut 144 24 jul 08.39 . drwxr-xr-x 3 root root 96 23 feb 15.52 .. srw-rw---- 1 nut nut 0 24 jul 08.39 bcmxcp_usb-auto -rw-r--r-- 1 nut nut 5 24 jul 08.39 bcmxcp_usb-auto.pid -rw-r--r-- 1 nut nut 5 24 jul 08.39 upsd.pid> > this is my ups.conf: > > > [everpower1000] > driver = safenet > port = /dev/ttyS1 > desc = "firefang.net" >Ok. Regards Kjell
> I just got myself a new everpower-1000va. > > according to the compatibility list, the 'safenet' driver supposed tosupport it, That depends. The hardware this driver is written for is usually OEM equipment and vendors tend to shop for the lowest bidder. So quite often they change the internals of the UPS, without changing the typenumber or even the box it is packaged in. If your UPS came with 'SafeNet v1.0' software for Windows (either in the box or via download) it should be supported by this driver. If something else is bundled, you'll have to continue your search as it probably won't be supported by this driver.> however, when I try, I get this in syslog: > > Jul 24 15:05:22 tv upsd[26458]: Can't connect to UPS [everpower1000](safenet-ttyS1): No such file or directory This usually means the safenet driver isn't running. You may want to run the driver from the commandline with '-DDDDD' added to make it more verbose. Chances are that it will be telling you why it can't be started. This can be as trivial as a serial port without the proper permissions. [...]> I am using nut installed via apt on debian-etch.This isn't very helpful for people not running Debian. Please list version number of kernel and NUT. Regards, Arjen -- Eindhoven - The Netherlands Key fingerprint - 66 4E 03 2C 9D B5 CB 9B 7A FE 7E C1 EE 88 BC 57 -- Eindhoven - The Netherlands Key fingerprint - 66 4E 03 2C 9D B5 CB 9B 7A FE 7E C1 EE 88 BC 57
> I just got myself a new everpower-1000va. > > according to the compatibility list, the 'safenet' driver supposed to > support it,That depends. The hardware this driver is written for is usually OEM equipment and vendors tend to shop for the lowest bidder. So quite often they change the internals of the UPS, without changing the typenumber or even the box it is packaged in. If your UPS came with 'SafeNet v1.0' software for Windows (either in the box or via download) it should be supported by this driver. If something else is bundled, you'll have to continue your search as it probably won't be supported by this driver.> however, when I try, I get this in syslog: > > Jul 24 15:05:22 tv upsd[26458]: Can't connect to UPS [everpower1000] > (safenet-ttyS1): No such file or directoryThis usually means the safenet driver isn't running. You may want to run the driver from the commandline with '-DDDDD' added to make it more verbose. Chances are that it will be telling you why it can't be started. This can be as trivial as a serial port without the proper permissions. [...]> I am using nut installed via apt on debian-etch.This isn't very helpful for people not running Debian. Please list version number of kernel and NUT. Regards, Arjen -- Eindhoven - The Netherlands Key fingerprint - 66 4E 03 2C 9D B5 CB 9B 7A FE 7E C1 EE 88 BC 57
>> Run the driver in debug mode, I already suggested this in the previous >> message. The driver will be more verbose about what the cause is that it >> won't run. > how do I run it in debug mode?Run (as root) <path to driver>/safenet -a everpower1000 -DDDDD> I think that the problem is that the device does not support the safenet > protocol.Maybe, maybe not.> when I cat /dev/ttyS1, I get no output at all. > is that normal for safenet?Yes. The device will only answer when a query or a command is sent. Regards, Arjen PS Keep the mailinglist CC-ed. I will not reply to private messages.