April 2, 201016 yr Hi all, I bought an APC UPS SC401. This model has a serial cable, no usb. I've tried to install apcupsd through unmenu which seemed to have installed but with the following statement : "Installed, but version is different. Current version='' expected '3.14.3'" When i try to get UPS STATUS in the System info of unmenu i get the following info: "UPS Status (from /sbin/apcaccess status) Error contacting host localhost port 3551: Connection refused" When i look in the Syslog i can find the following error : "Apr 2 16:55:17 tower apcupsd[2446]: 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 . Apr 2 16:55:17 tower apcupsd[2446]: apcupsd error shutdown completed" Could this be related to the fact that i don't actually have a USB connection on the APC UPS? Can this be changed in the config file and if so how would i be able to do that with the unmenu package installer? Thanks for any help as i've not been able to find the solution in other topics on the forum.
April 2, 201016 yr Hi all, I bought an APC UPS SC401. This model has a serial cable, no usb. I've tried to install apcupsd through unmenu which seemed to have installed but with the following statement : "Installed, but version is different. Current version='' expected '3.14.3'" When i try to get UPS STATUS in the System info of unmenu i get the following info: "UPS Status (from /sbin/apcaccess status) Error contacting host localhost port 3551: Connection refused" When i look in the Syslog i can find the following error : "Apr 2 16:55:17 tower apcupsd[2446]: 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 . Apr 2 16:55:17 tower apcupsd[2446]: apcupsd error shutdown completed" Could this be related to the fact that i don't actually have a USB connection on the APC UPS? Can this be changed in the config file and if so how would i be able to do that with the unmenu package installer? Thanks for any help as i've not been able to find the solution in other topics on the forum. Install the newest version of unMENU and its package manager .conf file allows you to set the cable type. The errors you saw are just because it is looking for a usb connection right now... but easily configurable. You can download the newest unmenu installer from here. don't worry about the error message from unmenu, you will be fine, it had a bug in displaying the existing version. For your Serial port UPS, the new package-manager files make it a snap to install. Create a /boot/unmenu directory mkdir /boot/unmenu un-zip the downloaded file. Movie it to the /boot/unmenu folder on your flash drive, then type cd /boot/unmenu unmenu_install -i or, to update an existing installation copy the file to your existing unmenu folder and then type: unmenu_install -u Once installed, you need to kill and re-start unmenu to see the new version. killall awk will usually do it followed by /boot/unmenu/uu The unMENU apcupsd package looks like this now (a field to set it for serial port use, another to determine if to shut down the UPS as well): There are three configuration variables that determine when shutdown will occur. The first that is reached will initiate a shutdown, regardless of which it is. If you set the TIMEOUT to 60, then any outage lasting 60 seconds or more will initiate a shutdown regardless of the run-time left, or the battery charge level. If the UPS is so heavily loaded it does not have the minimum run-time left, it will start a shutdown, regardless of the battery charge or timeout configured. If you wish to only use the run-time and battery-charge level, set TIMEOUT = 0. That is a special value that disables the timeout timer completely. The shutdown will then only be based on run-time remaining and battery charge remaining. Edit: I was forced to make a change to the unmenu_install program. I found it incorrectly identified package-config files you had edited as being out of date and needing to be replaced with an un-edited version. Obviously, this would not work too well, un-doing the variables you had just configured.. This also gave me the opportunity to replace the download file name with something I can change over time as I replace new versions. So far, 5 or 6 people downloaded the initial version I posted. The current version says "Revision 20" on the top line. If yours says "Revision 19" please download a new copy from the link above. Joe L.
April 3, 201016 yr Worked like a charm. Thanks for the great explanation. Makes it a lot easier, doesn't it? Glad it worked for you. Joe L.
April 3, 201016 yr Hi, A updated conf file for latest APC UPS version 3.14.8, it was a problem to check installed version , so I removed this :-) apcupsd-unmenu-package.conf
April 3, 201016 yr Hi, A updated conf file for latest APC UPS version 3.14.8, it was a problem to check installed version , so I removed this :-) I see... If you just named your 3.14.8 version file a slightly different name then the one I have in the release list, both would co-exist in the package-manager. But, your experience does make me want to try to think of the best way to handle locally edited files, for whatever reason. I think we need a method in which the auto-update and check for updates can work best with locally modified packages. The best method I can think of so far is for you to just change the xxxxxxx-ummenu-package.conf file name for example: from apcupsd-unmenu-package.conf to apcupsd1-unmenu-package.conf Then, with the name changed, the local file would not be involved in the umenu_install processing since it would not be in the release_list unmenu_install is downloading from google.code. Other thoughts and ideas? I can sure use the feedback. In the mean-time, I'll check out the newer release given in the file you provided. Joe L.
April 3, 201016 yr Looks OK, but Joe, why is not the version check works in my conf file? I have now removed it from the conf file. //Peter
April 4, 201016 yr Looks OK, but Joe, why is not the version check works in my conf file? I have now removed it from the conf file. //Peter If you check the output of the strings command you used to extract the version, you'll see why. strings /sbin/apcupsd | grep VERSION VERSION VERSION : 3.14.8 (16 January 2010) slackware There are two lines matching "VERSION" and unRAID uses only the first. You can use "grep -v" to eliminate the line that has "VERSION" on a line all by itself (using the ^ and $ to signify the beginning of the line, and the end of the line respectively). The -v option causes grep to print the lines that do not match the pattern given to it, in other words, the line that has more than just "VERSION". Then you get this: strings /sbin/apcupsd | grep VERSION | grep -v "^VERSION$" VERSION : 3.14.8 (16 January 2010) slackware Finally, we can use awk to print the third field of the output: strings /sbin/apcupsd | grep VERSION | grep -v "^VERSION$" | awk '{ print $3 }' 3.14.8 Joe L.
Archived
This topic is now archived and is closed to further replies.