February 14, 200917 yr Feb 14 03:04:59 tvixhd4 kernel: usbcore: registered new interface driver hiddev Feb 14 03:04:59 tvixhd4 kernel: usbcore: registered new interface driver usbhid Feb 14 03:04:59 tvixhd4 kernel: drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver Feb 14 03:05:36 tvixhd4 apcupsd[2340]: apcupsd FATAL ERROR in linux-usb.c at line 609 Cannot find UPS device -- For a link to detailed USB trouble shooting information, please see <http://www.apcupsd.com/support.html>. Feb 14 03:05:36 tvixhd4 apcupsd[2340]: apcupsd error shutdown completed Feb 14 06:34:22 tvixhd4 apcupsd[3510]: apcupsd FATAL ERROR in linux-usb.c at line 786 Cannot find UPS device -- For a link to detailed USB trouble shooting information, please see <http://www.apcupsd.com/support.html>. Feb 14 06:34:22 tvixhd4 apcupsd[3510]: apcupsd error shutdown completed Feb 14 06:51:38 tvixhd4 apcupsd[3541]: apcupsd FATAL ERROR in linux-usb.c at line 786 Cannot find UPS device -- For a link to detailed USB trouble shooting information, please see <http://www.apcupsd.com/support.html>. Feb 14 06:51:38 tvixhd4 apcupsd[3541]: apcupsd error shutdown completed I'm not an expert in this, but I don't think it is a problem with HID. The HID driver is available, but the apcupsd module has been shutdown, 3 times above. I would check the support link it indicates, and perhaps the source code at the indicated lines. This may or may not be helpful. Those erros usually indicate errors in the editing of the configuration file... in particular the cable type and possibly others. Please take a look at the config file and make sure it is set for the type of ups you are using and the type of data cable you have connected between the server adn the ups. Cheers, Matt
February 14, 200917 yr After reading and reading again. And testing and testing again, I think i figured out where was my problem : Ok, here's what I added: Device Drivers ->HID Devices ->/dev/hidraw raw HID device support Device Drivers ->HID Devices ->/dev/hiddev raw HID device support root@Tower:~# cat /proc/bus/usb/devices ... T: Bus=06 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0 D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=051d ProdID=0002 Rev= 1.06 S: Manufacturer=APC S: Product=Back-UPS ES 550 FW:840.B2.D USB FW:B2 S: SerialNumber=3B0707X03554 C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 2mA I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid E: Ad=81(I) Atr=03(Int.) MxPS= 6 Ivl=10ms ... Once you've got those drivers installed, everything should just work. Can somebody tell me how to install those drivers ? Witch file do i have to modify ? Witch line ? What to write ? Tanks for your help.
February 14, 200917 yr After reading and reading again. And testing and testing again, I think i figured out where was my problem : Ok, here's what I added: Device Drivers ->HID Devices ->/dev/hidraw raw HID device support Device Drivers ->HID Devices ->/dev/hiddev raw HID device support root@Tower:~# cat /proc/bus/usb/devices ... T: Bus=06 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0 D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=051d ProdID=0002 Rev= 1.06 S: Manufacturer=APC S: Product=Back-UPS ES 550 FW:840.B2.D USB FW:B2 S: SerialNumber=3B0707X03554 C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 2mA I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid E: Ad=81(I) Atr=03(Int.) MxPS= 6 Ivl=10ms ... Once you've got those drivers installed, everything should just work. Can somebody tell me how to install those drivers ? Witch file do i have to modify ? Witch line ? What to write ? Tanks for your help. I may be wrong but as RobJ said previously, they look to already be there... Feb 14 03:04:59 tvixhd4 kernel: usbcore: registered new interface driver hiddev Feb 14 03:04:59 tvixhd4 kernel: usbcore: registered new interface driver usbhid Feb 14 03:04:59 tvixhd4 kernel: drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver it seems that you are not using a APC brand ups... S: Manufacturer=MGE OPS SYSTEMS S: Product=ELLIPSE S: SerialNumber=BD8J3300L are you sure it is supported by the apcupsd software? Cheers, Matt
February 14, 200917 yr After reading and reading again. And testing and testing again, I think i figured out where was my problem : Ok, here's what I added: Device Drivers ->HID Devices ->/dev/hidraw raw HID device support Device Drivers ->HID Devices ->/dev/hiddev raw HID device support root@Tower:~# cat /proc/bus/usb/devices ... T: Bus=06 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0 D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=051d ProdID=0002 Rev= 1.06 S: Manufacturer=APC S: Product=Back-UPS ES 550 FW:840.B2.D USB FW:B2 S: SerialNumber=3B0707X03554 C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 2mA I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid E: Ad=81(I) Atr=03(Int.) MxPS= 6 Ivl=10ms ... Once you've got those drivers installed, everything should just work. Can somebody tell me how to install those drivers ? Witch file do i have to modify ? Witch line ? What to write ? Tanks for your help. What version of unRAID are you running? The HID drivers have been in place for a few versions (Since 4.3.2). Are you might be running an older version of unRAID. An upgrade to 4.4.2 is in order if you are... You should not have to modify anything to enable the HID devices. (unless there is a BIOS option on your motherboard to disable the them?) There should be two lines in your syslog similar to these: usbcore: registered new interface driver hiddev usbcore: registered new interface driver usbhid Joe L.
February 15, 200917 yr I'm using version 4.4.2. Yes, those lines appears on the syslog usbcore: registered new interface driver hiddev usbcore: registered new interface driver usbhid No, it is not a APC, it's a MGE (www.mgeops.com) : ellipse 600 usbs It worked in serial mode (but not fully) : UPSCABLE smart UPSTYPE dumb DEVICE /dev/ttyS0 but it only gives informations about the ups, no way to control the powershutdown or anyting else. I'm sure that that line is the clue: I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=(none) It shoud not says (none) but Driver=usbhid But it doesn't. All usb ports are enable in the bios. Since the unraid recognize the ups, i don't think it is MB related. The unraid can't talk to the UPS because the driver is not (fully) loaded or it can't recognise the ups. T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 3 Spd=1.5 MxCh= 0 D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=0463 ProdID=ffff Rev=42.41 S: Manufacturer=MGE OPS SYSTEMS S: Product=ELLIPSE S: SerialNumber=BD8J3300L C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 20mA I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=(none) E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=20ms
February 15, 200917 yr I think I've got it: apcupsd is only for APC brand. I thought it was just the sofware name and was suppose to wok with almost any UPS. This must explain why it is not working for my MGE. Damed ! Next time, i'll bye an APC.
February 16, 200917 yr Apcupsd or NUT? Nut supports more then one piece of hardware and can chain to another "server" who is the master of the UPS. APCUPSD can also do the chaining. FWIW, I can compile apcupsd on slacky (my slackware dev vmware enviroment) (if you are willing to mess with your own scripts/configs etc, etc. I started compiling NUT and I'm in the process of setting my network up with that. Did you do the compile of NUT ? Did you install it on your unraid ? If yes, can you help me intalling it ? Because my UPS is not suported by acpupsd (it is not an APC but a MGE).
February 16, 200917 yr Apcupsd or NUT? Nut supports more then one piece of hardware and can chain to another "server" who is the master of the UPS. APCUPSD can also do the chaining. FWIW, I can compile apcupsd on slacky (my slackware dev vmware enviroment) (if you are willing to mess with your own scripts/configs etc, etc. I started compiling NUT and I'm in the process of setting my network up with that. Did you do the compile of NUT ? Did you install it on your unraid ? If yes, can you help me intalling it ? Because my UPS is not suported by acpupsd (it is not an APC but a MGE). Once/if you get NUT installed, here are some good instructions setting up NUT with your particular brand of UPS. http://opensource.mgeups.com/howto.htm Cheers, Matt
February 16, 200917 yr This looks like a pre-compiled package of nut for slackware 12.0. There is a possibility it could work. If not, a google search might turn up others. I did not download it, or attempt to install and run it, but it might work for you. http://sotirov-bg.net/slackpack/pack.cgi?id=402 Joe L.
February 16, 200917 yr Thank both of you for the links. I allready did watch those pages and I didn't find what I was looking for. But I did find this page en french http://www.franck-barbenoire.name/slackware/supervision.php Everything is going good except i'm still having a driver issue : Network UPS Tools - UPS driver controller 2.2.2-exporté Network UPS Tools: 0.29 USB communication driver - core 0.33 (2.2.2-exporté) No matching HID UPS found Driver failed to start (exit status=1) Network UPS Tools upsd 2.2.2-exporté not listening on 0.0.0.0 port 3493 Network UPS Tools upsmon 2.2.2-exporté UPS: myups@localhost (master) (power value 1) Using power down flag file /etc/nut/killpower I'm stuck where i was with acpupsd : the HID driver issue. "Driver failed to start"
February 16, 200917 yr I took another look at your syslog, and I don't find any USB devices detected, apart from the USB flash drive. If your UPS with USB interface is connected, you should have had a line similar to the following (somewhere near or between the usbhid and hiddev lines): kernel: hiddev96hidraw0: USB HID v1.10 Device [American Power Conversion Back-UPS XS 1300 LCD FW:836.H7 .D USB FW:H7 ] on usb-0000:00:1d.1-2 The Linux kernel is not seeing your device. I would check your connections, and then if they appear OK, try plugging into any Windows machine, to see if it is recognized.
February 17, 200917 yr it is recognize since acpupsd says S: Manufacturer=MGE OPS SYSTEMS S: Product=ELLIPSE S: SerialNumber=BD8J3300L And it works without any problem under windows xp. I will continue the search for a solution before bying an ACP unit.
February 18, 200917 yr FWIW, I was able to get apcupsd to work with a Cyberpowersystems UPS. All I had to set was CABLETYPE usb I left everything else blank including UPSTYPE and DEVICE
February 27, 200917 yr Author I have now installed apcupsd in network mode on all my PCs. They are all on UPS but they are the dumb kind and I have not built cables for them. So I just have them attach to the UnRaid machine and power down on a 5 minute timer. I figure this way if the power goes out, they can all power down as well. This only works if your switches, routers, etc are all on UPSs as well, which in my case they are. I'm pretty stoked about this. dave
March 10, 200917 yr I just update to the 4.5 beta2 version witch is kernel 2.6.28.4. based and now, my ellipse UPS is recognize and everything works fine.
April 18, 200917 yr Too bad we don't have a simple mail command to email the messages out. I did install the nc package for the smtp_check_unraid.sh and have considered modifying it to act as a mail command, but that will have to wait for later. Attached is a simple "mail" command substitute using "nc" to send the mail to the smtp server. (install as /usr/bin/mail) you will need to set the three variables at the top of the script. I had to hand-code a crude getopt replacement, since getopt could not deal with multi-word subject string. This version will not work if your smtp server uses a login/password. Joe L. I am trying to configure mail notification, but it seems mail smtp server does require user authentication. Is there a solution for this, which I missed? As always, thank you Joe L. for your contribution and addons. I asked too early. I got it working with "unraid notify" together with "Email script : A complement to unraid_notify".
April 20, 200917 yr So is this built in or not, went through about 5 of the pages and it looked like you had to know linux commands to somehow hack ups support in? I have an APC UPS which I would need to use if I go with unRaid, no UPS support, no unRaid for me.
April 20, 200917 yr So is this built in or not, went through about 5 of the pages and it looked like you had to know linux commands to somehow hack ups support in? I have an APC UPS which I would need to use if I go with unRaid, no UPS support, no unRaid for me. You do need to know a very minimal amount of command line stuff. But if you can handle windows, odds are you can handle downloading and installing the APC UPS package. To make it much easier, download and unzip the unMENU package to your flash drive to a "unmenu" folder. http://lime-technology.com/wiki/index.php/UnRAID_Add_Ons#UnMENU Log in via telnet yo your unRAID server and invoke it with /boot/unmenu/uu unMENU has a package manager plug-in that will allow you to download and install the APC UPS package (apcupsd) It is specifically designed for the APC brand of UPS and will work with the USB connectivity to the UPS. Install the "powerdown" package and the APC UPS package will be able to cleanly shut the server down on an extended power failure. If you do not want to use unMENU, you can edit the config/go file (using a windows editor) to add about 4 or 5 lines to it to run the installpkg command for the APC UPS package. Those same lines then configure it to see your USB connected UPS. (by default it looks for a serial port connected UPS, but newer ones use USB connectivity) It is described here: http://lime-technology.com/forum/index.php?topic=1528.msg18315#msg18315 Some time in the future, this will be even easier... as Lime-Technology is working towards even better support of add-in packages. You can see how the APC status looks from in unMENU too as seen below: SO... of you can type one "linux" command, you can get the APC UPS working. If not, then perhaps unRAID is not for you (nor any other Lniux based RAID server) Joe L.
April 20, 200917 yr So is this built in or not, went through about 5 of the pages and it looked like you had to know linux commands to somehow hack ups support in? I have an APC UPS which I would need to use if I go with unRaid, no UPS support, no unRaid for me. You do need to know a very minimal amount of command line stuff. But if you can handle windows, odds are you can handle downloading and installing the APC UPS package. To make it much easier, download and unzip the unMENU package to your flash drive to a "unmenu" folder. http://lime-technology.com/wiki/index.php/UnRAID_Add_Ons#UnMENU Log in via telnet yo your unRAID server and invoke it with /boot/unmenu/uu unMENU has a package manager plug-in that will allow you to download and install the APC UPS package (apcupsd) It is specifically designed for the APC brand of UPS and will work with the USB connectivity to the UPS. Install the "powerdown" package and the APC UPS package will be able to cleanly shut the server down on an extended power failure. If you do not want to use unMENU, you can edit the config/go file (using a windows editor) to add about 4 or 5 lines to it to run the installpkg command for the APC UPS package. Those same lines then configure it to see your USB connected UPS. (by default it looks for a serial port connected UPS, but newer ones use USB connectivity) It is described here: http://lime-technology.com/forum/index.php?topic=1528.msg18315#msg18315 Some time in the future, this will be even easier... as Lime-Technology is working towards even better support of add-in packages. You can see how the APC status looks from in unMENU too as seen below: SO... of you can type one "linux" command, you can get the APC UPS working. If not, then perhaps unRAID is not for you (nor any other Lniux based RAID server) Joe L. Thanks for the info. Of course I can type in commands, long time windows user and .net developer by trade, never dis-liked linux, just every time I have tried it it wound up being more than I wanted to do for the task, perhaps just to lazy or just do not feel like devoting the time to learn it's ins and out, did run mandrake for a bit, but ran into can't do this issue's and what would take me 2 minutes in windows wound up being 3 hours of reading and I just gave up on it, would imagine older users of linux would feel the same way about any other O.S., if you already know how to acomplish a task with a particuar tool why waste time learning a new one unless you want to make it a hobby which I don't at this point in time, I even ran Astaro firewall for a time, but no commands there to learn and I tried linux mce before commiting to vitsa, choice was not a win vs linux issue there...linuxmce just is not polished enough for me right now. Anyways, I am putting together a test box in a day or so and will most likely be joining your community as an unraid user, my only needs were... 1. Redundant Data Storage and Protection 2. UPS Support and ability to add tons of drives as my storage needs increase... as I stated in another post, this is to replace a drobo unit I have because of it's cost and 4 drive limit and all I am looking to do is back-up a Windows Home Server unit, so depending on speed, unRaid only needs to back-up my WHS, unless it can outperform my WHS, provide my media securely to the internet like WHS does via Web Guide add-on, but that is another topic and is not required of unRaid, so hopefully in couple days I will be an unRaid user as well... 16 drive version of course. Seems like in this case unRaid just might be the right tool for the job. Thanks, Tom
October 11, 200916 yr Even though this thread hasn't been commented on in 4 months, my questions relate to it ( if the mods feel I should open a new thread, I will ). I am still a newbie. I've got an APC UPS that I have hooked my UnRaid Server into and I have the APC cable plugged into the server. I installed the APC Package, then realized the part that says: Dependencies:/usr/bin/mail, /sbin/powerdown I then returned to UnMenu Packages and downloaded, installed and then enabled the "re-install on reboot" option for Clean Powerdown I believe that is the necessary parts ( if I have to edit any config files for this part to work, please let me know, but it seems like UnMenu has taken care of the critical parts and has set both items to install automatically each time I reboot ). The optional component appears to be the /usr/bin/mail . I found a file called mail.zip by Joe L. and I have downloaded it ( it contains "nc" and "mail.sh" Here is where I am un-certain what the next step is. Obviously i need to copy the files somewhere manually. I also would think I need to edit a file somewhere so the mail application knows where to send the email notification to. Assuming I get that part figured out, I have two tests to do: 1. Un-plug the USB cable and see if I get the email notification 2. Test that if power is drained, the server shuts down gracefully
October 11, 200916 yr Even though this thread hasn't been commented on in 4 months, my questions relate to it ( if the mods feel I should open a new thread, I will ). I am still a newbie. I've got an APC UPS that I have hooked my UnRaid Server into and I have the APC cable plugged into the server. I installed the APC Package, then realized the part that says: Dependencies:/usr/bin/mail, /sbin/powerdown I then returned to UnMenu Packages and downloaded, installed and then enabled the "re-install on reboot" option for Clean Powerdown I believe that is the necessary parts ( if I have to edit any config files for this part to work, please let me know, but it seems like UnMenu has taken care of the critical parts and has set both items to install automatically each time I reboot ). The optional component appears to be the /usr/bin/mail . I found a file called mail.zip by Joe L. and I have downloaded it ( it contains "nc" and "mail.sh" Here is where I am un-certain what the next step is. Obviously i need to copy the files somewhere manually. I also would think I need to edit a file somewhere so the mail application knows where to send the email notification to. Assuming I get that part figured out, I have two tests to do: 1. Un-plug the USB cable and see if I get the email notification 2. Test that if power is drained, the server shuts down gracefully , however to do this its best to "Stop Array" through the //tower page , then if it doesn't shut down gracefully, risk of data corruption is minimal. I've put my nc and mail.sh in a /boot/custom/bin folder. You can create it by typing: mkdir -p /boot/custom/bin Then, you can execute these 4 commands. They will create a file in your /boot/packages folder that will be invoked every time you re-start your server along with all the other packages you have elected to "Auto-Install on Re-Boot" echo "cp /boot/custom/bin/mail.sh /usr/bin/mail" >>/boot/packages/mail.auto_install echo "cp /boot/custom/bin/nc /usr/bin/nc" >>/boot/packages/mail.auto_install echo "chmod 755 /usr/bin/nc /usr/bin/mail" >>/boot/packages/mail.auto_install echo "echo '[email protected]' >/root/.forward" >>/boot/packages/mail.auto_install The last of those 4 lines must be edited to hold your e-mail address you want the alerts sent to. You will also need to edit the mail.sh file to include your mail service provider and any id/password it needs. Be aware though, it will not work if your e-mail provider needs an encrypted session. There is a different mail script that has been posted that will work for it. Once you have run the 4 lines above, you can then run the script it created by typing /boot/packages/mail.auto_install Joe L.
October 11, 200916 yr Thanks Joe. I'm don't use linux (I should say, not until I started with UnRaid) , so to be sure of syntax, on line 4: echo "echo '[email protected]' >/root/.forward" >>/boot/packages/mail.auto_install should it be like this: echo "echo [email protected] >/root/.forward" >>/boot/packages/mail.auto_install or this (keeping the quotes around the email address) echo "echo '[email protected]' >/root/.forward" >>/boot/packages/mail.auto_install
October 11, 200916 yr Thanks Joe. I'm don't use linux (I should say, not until I started with UnRaid) , so to be sure of syntax, on line 4: echo "echo '[email protected]' >/root/.forward" >>/boot/packages/mail.auto_install should it be like this: echo "echo [email protected] >/root/.forward" >>/boot/packages/mail.auto_install or this (keeping the quotes around the email address) echo "echo '[email protected]' >/root/.forward" >>/boot/packages/mail.auto_install I think either will work. The first version. echo "echo [email protected] >/root/.forward" >>/boot/packages/mail.auto_install [/s] Joe L.
October 11, 200916 yr Is there a way to test the mail script is functioning without actually taking the server down?
October 11, 200916 yr I thought I read somewhere you should receive an alert if your USB cable, running from the UPS to the Server was disconnected. This wouldn't cause a shutdown, just an alert, so I would say no harm in trying. Just don't "pull a spinbot" and lean into your flash drive and bust it, while reaching for the cable
Archived
This topic is now archived and is closed to further replies.