Core 167 apcupsd no more graph - steps to repair it

Hello ,
APCUPSD also suffers from a missing lib file that was cleaned in Core 167: libgd.so.2

As reference somebody solved it first, I just detail his steps in my case which was a bit different:

My case: I have no apcupsd- file in /var/cache/pakfire
In fact, in there is a lonely world out there

 ls -lth
total 31M
-rw-r--r-- 1 root root  19K Jun  5 16:21 speedtest-cli-2.1.3-5.ipfire
-rw-r--r-- 1 root root  25K Jun  5 16:21 cifs-utils-6.14-4.ipfire
-rw-r--r-- 1 root root 7.9M Jun  5 16:21 cups-2.4.1-24.ipfire
-rw-r--r-- 1 root root 4.4M Jun  5 16:21 nmap-7.92-14.ipfire
-rw-r--r-- 1 root root 249K Jun  5 16:21 nfs-2.5.3-16.ipfire
-rw-r--r-- 1 root root  17M Jun  5 16:21 ghostscript-9.56.1-10.ipfire
-rw-r--r-- 1 root root 342K Jun  5 16:20 hostapd-2_10-59.ipfire
-rw-r--r-- 1 root root 733K Jun  5 16:20 cups-filters-1.28.14-8.ipfire

So here are the steps I did

  1. Uninstall APCUPSD
pakfire remove apcupsd


PAKFIRE INFO: Packages to remove:
PAKFIRE INFO: apcupsd    - 180.00 KB
PAKFIRE INFO: Is this okay? [y/N]
y
PAKFIRE REMV: apcupsd: Decrypting...
apcupsd-3.14.14-8... 100.00% |=============================>|  166.27 KB
PAKFIRE REMV: apcupsd: Removing files and running post-removing scripts...
PAKFIRE REMV: apcupsd: Finished.

This steps also adds a apcupsd-3.14.14-8.ipfire in /var/cache/pakfire

ls -l
total 31316
-rw-r--r-- 1 root root   170262 Jun 17 09:25 apcupsd-3.14.14-8.ipfire
-rw-r--r-- 1 root root    24786 Jun  5 16:21 cifs-utils-6.14-4.ipfire
-rw-r--r-- 1 root root  8270937 Jun  5 16:21 cups-2.4.1-24.ipfire
-rw-r--r-- 1 root root   749675 Jun  5 16:20 cups-filters-1.28.14-8.ipfire
-rw-r--r-- 1 root root 17630098 Jun  5 16:21 ghostscript-9.56.1-10.ipfire
-rw-r--r-- 1 root root   349898 Jun  5 16:20 hostapd-2_10-59.ipfire
-rw-r--r-- 1 root root   254957 Jun  5 16:21 nfs-2.5.3-16.ipfire
-rw-r--r-- 1 root root  4572784 Jun  5 16:21 nmap-7.92-14.ipfire
-rw-r--r-- 1 root root    18434 Jun  5 16:21 speedtest-cli-2.1.3-5.ipfire
  1. Install it back
 pakfire install apcupsd
PAKFIRE RESV: apcupsd: Resolving dependencies...


PAKFIRE INFO: Packages to install:
PAKFIRE INFO: apcupsd    - 180.00 KB

PAKFIRE INFO: Total size:        ~ 180.00 KB

PAKFIRE INFO: Is this okay? [y/N]
y

PAKFIRE INST: apcupsd: Decrypting...
PAKFIRE INST: apcupsd: Copying files and running post-installation scripts...
PAKFIRE INST: apcupsd: Finished.

Start daemon

/etc/init.d/apcupsd start
Starting apcupsd daemon...                   [  OK  ]

Graphs are back

1 Like

Or you can upgrade to CU168 which ships apcupsd to make it update the library links.

Thanks, but looking at list of problems in CU168, I would not consider it a good solution: many elements are reported in this forum with different sort of problems in CU168

Okay.

CU168 is working fine for me on my production machine and on my vm’s. The issues I discovered during Testing were fixed before release.

Hi,

if I may comment on this one: That lies in the nature of a (support) forum, I am afraid. People are unlikely to post “hey, I just installed Core Update X, and everything continues to be peachy and vanilla” here, instead, they will ask for help or report anything broken in conjunction with an update.

So, the view of such and IPFire in general is kind of biased if you only look at the posts here. :slight_smile:

That being said, we strongly encourage everybody to participate in testing Core Updates, especially if you run add-ons such as apcupsd, which - to the best of my knowledge - none of the core developers uses. The more testing feedback we can get, the better.

Thanks, and best regards,
Peter MĂĽller

4 Likes