Version 1.2.2 issues...

Addons for Cacti and discussion about those addons

Moderators: Moderators, Developers

Post Reply
Author
Message
User avatar
camerabob
Cacti User
Posts: 275
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Version 1.2.2 issues...

#1 Post by camerabob » Thu Mar 21, 2019 1:30 pm

OK, so I installed Spine and some of my graphs stopped working. I tried to rebuild the poller cache but receive a 500 error. OK, then reinstall. Can't do that... 1.1.36 is no longer available??? I'm on 1.2.2|

Code: Select all

Installed Packages
Name        : cacti
Arch        : noarch
Version     : 1.1.36
Release     : 1.el7
Size        : 24 M
Repo        : installed
From repo   : epel
Summary     : An rrd based graphing tool
URL         : http://www.cacti.net/
License     : GPLv2+
Description : Cacti is a complete frontend to RRDTool. It stores all of the
            : necessary information to create graphs and populate them with
            : data in a MySQL database. The frontend is completely PHP
            : driven.

Available Packages
Name        : cacti
Arch        : noarch
Version     : 1.2.2
Release     : 1.el7
Size        : 19 M
Repo        : epel/x86_64
Summary     : An rrd based graphing tool
URL         : https://www.cacti.net/
License     : GPLv2+
Description : Cacti is a complete frontend to RRDTool. It stores all of the
            : necessary information to create graphs and populate them with
            : data in a MySQL database. The frontend is completely PHP
            : driven.
I'm open to any ideas here.
See the Cacti 1.x templates I use at: http://www.camerabob.com/cacti

Live: Cacti 1.2.3 @ CentOS 7-6.1810.2.el7 & PHP 5.4.16-46.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Test: Cacti 1.2.4 @ CentOS 7-6.1810.2.el7 & PHP 5.4.16-46.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

netniV
Cacti Guru User
Posts: 2656
Joined: Sun Aug 27, 2017 12:05 am

Re: Version 1.2.2 issues...

#2 Post by netniV » Thu Mar 21, 2019 2:15 pm

Is this on the box I have access to? If so, I'll dive in and take a look.

User avatar
camerabob
Cacti User
Posts: 275
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: Version 1.2.2 issues...

#3 Post by camerabob » Thu Mar 21, 2019 2:30 pm

Yes it is. I'm flummoxed...
See the Cacti 1.x templates I use at: http://www.camerabob.com/cacti

Live: Cacti 1.2.3 @ CentOS 7-6.1810.2.el7 & PHP 5.4.16-46.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Test: Cacti 1.2.4 @ CentOS 7-6.1810.2.el7 & PHP 5.4.16-46.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

netniV
Cacti Guru User
Posts: 2656
Joined: Sun Aug 27, 2017 12:05 am

Re: Version 1.2.2 issues...

#4 Post by netniV » Thu Mar 21, 2019 2:41 pm

Code: Select all

yum install cacti
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.es.its.nyu.edu
 * epel: fedora-epel.mirrors.tds.net
 * extras: mirror.es.its.nyu.edu
 * updates: mirror.es.its.nyu.edu
Resolving Dependencies
--> Running transaction check
---> Package cacti.noarch 0:1.1.36-1.el7 will be updated
---> Package cacti.noarch 0:1.2.2-1.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================================
 Package                      Arch                          Version                             Repository                   Size
==================================================================================================================================
Updating:
 cacti                        noarch                        1.2.2-1.el7                         epel                         19 M

Transaction Summary
==================================================================================================================================
Upgrade  1 Package

Total download size: 19 M
Is this ok [y/d/N]: y     
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
For some reason, the cacti update is using a delta package update and as you don't have the appropriate utils, it won't apply it. Probably because you had 1.2.2 plain installed and this is trying to patch it.

netniV
Cacti Guru User
Posts: 2656
Joined: Sun Aug 27, 2017 12:05 am

Re: Version 1.2.2 issues...

#5 Post by netniV » Thu Mar 21, 2019 2:55 pm

So I did a yum install deltarpm and then attempted the cacti update again, but got:

Code: Select all

==================================================================================================================================
 Package                      Arch                          Version                             Repository                   Size
==================================================================================================================================
Updating:
 cacti                        noarch                        1.2.2-1.el7                         epel                         19 M

Transaction Summary
==================================================================================================================================
Upgrade  1 Package

Total download size: 19 M
Is this ok [y/d/N]: y
Downloading packages:
epel/x86_64/prestodelta                                                                                    |  718 B  00:00:00     
cacti-1.2.2-1.el7.noarch.rpm                                                                               |  19 MB  00:00:06     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : cacti-1.2.2-1.el7.noarch                                                                                       1/2 
Error unpacking rpm package cacti-1.2.2-1.el7.noarch
warning: /etc/cacti/db.php created as /etc/cacti/db.php.rpmnew
warning: /etc/cron.d/cacti created as /etc/cron.d/cacti.rpmnew
error: unpacking of archive failed on file /usr/share/cacti/rra: cpio: rename
cacti-1.1.36-1.el7.noarch was supposed to be removed but is not!
  Verifying  : cacti-1.1.36-1.el7.noarch                                                                                      1/2 
  Verifying  : cacti-1.2.2-1.el7.noarch                                                                                       2/2 

Failed:
  cacti.noarch 0:1.1.36-1.el7                                      cacti.noarch 0:1.2.2-1.el7                                     

Complete!
It is like the update is attempting to rename a folder but fails to do so or something like that . I've put a shout out to Morten Stevens who handles the CentOS packaging to see if he has any ideas.

netniV
Cacti Guru User
Posts: 2656
Joined: Sun Aug 27, 2017 12:05 am

Re: Version 1.2.2 issues...

#6 Post by netniV » Thu Mar 21, 2019 4:03 pm

Looking further into this, you appear to have had a history of failed updates.

A year ago, an update from 1.1.36 to 1.1.37 had the first issue with the rra directory:

Code: Select all

yum history info 16
Loaded plugins: fastestmirror, langpacks
Transaction ID : 16
Begin time     : Mon Apr 16 22:16:41 2018
Begin rpmdb    : 609:4aa3cc744ae0fb929a185efc006d3072c60bbc85
End time       :            22:16:43 2018 (2 seconds)
End rpmdb      : 609:4aa3cc744ae0fb929a185efc006d3072c60bbc85
User           : root <root>
Return-Code    : Failure: 1
Command Line   : upgrade cacti
Transaction performed with:
    Updated       rpm-4.11.3-25.el7.x86_64                      @anaconda
    Updated       yum-3.4.3-154.el7.centos.1.noarch             @updates
    Updated       yum-plugin-fastestmirror-1.1.31-42.el7.noarch @anaconda
Packages Altered:
 ** Updated cacti-1.1.36-1.el7.noarch @epel
Loading mirror speeds from cached hostfile
 * base: mirror.es.its.nyu.edu
 * epel: fedora-epel.mirrors.tds.net
 * extras: mirror.jaleco.com
 * updates: mirror.es.its.nyu.edu
 ** Update        1.1.37-1.el7.noarch ?
Scriptlet output:
   1 error: unpacking of archive failed on file /usr/share/cacti/rra: cpio: rename
history info
Then next update to 1.1.38 also failed:

Code: Select all

Transaction ID : 17
Begin time     : Thu Nov 29 16:37:07 2018
Begin rpmdb    : 609:4aa3cc744ae0fb929a185efc006d3072c60bbc85
End time       :            16:46:25 2018 (9 minutes)
End rpmdb      : 613:25e1ab3fcd38ab23e902aa0d59382f69175b801e
User           : root <root>
Return-Code    : Failure: 1
Command Line   : update

...

 ** Updated     cacti-1.1.36-1.el7.noarch                                  @epel
Loading mirror speeds from cached hostfile
 * base: mirror.es.its.nyu.edu
 * epel: fedora-epel.mirrors.tds.net
 * extras: mirror.jaleco.com
 * updates: mirror.es.its.nyu.edu
 ** Update            1.1.38-2.el7.noarch                                  ?

...

Scriptlet output:
   1 warning: /etc/group created as /etc/group.rpmnew
   2 warning: /etc/shadow created as /etc/shadow.rpmnew
   3 Created symlink from /etc/systemd/system/network-online.target.wants/NetworkManager-wait-online.service to /usr/lib/systemd/system/NetworkManager-wait-online.service.
   4 error: unpacking of archive failed on file /usr/share/cacti/rra: cpio: rename
   5 error: cacti-1.1.38-2.el7.noarch: install failed
   6 error: cacti-1.1.36-1.el7.noarch: erase skipped
   7 
Then today, it tried to update to 1.2.2 and again failed:

Code: Select all

yum history info 19 | less
Loaded plugins: fastestmirror, langpacks
Transaction ID : 19
Begin time     : Tue Mar 19 08:01:10 2019
Begin rpmdb    : 613:40f6c7cc74dd8a65fb15d9c3239841e8947c958c
End time       :            08:01:12 2019 (2 seconds)
End rpmdb      : 613:40f6c7cc74dd8a65fb15d9c3239841e8947c958c
User           : root <root>
Return-Code    : Failure: 1
Command Line   : update cacti
Transaction performed with:
    Updated       rpm-4.11.3-32.el7.x86_64                        @base
    Updated       yum-3.4.3-158.el7.centos.noarch                 @base
    Updated       yum-plugin-fastestmirror-1.1.31-46.el7_5.noarch @updates
Packages Altered:
 ** Updated cacti-1.1.36-1.el7.noarch @epel
Loading mirror speeds from cached hostfile
 * base: mirror.es.its.nyu.edu
 * epel: fedora-epel.mirrors.tds.net
 * extras: mirror.es.its.nyu.edu
 * updates: mirror.es.its.nyu.edu
 ** Update        1.2.2-1.el7.noarch  @?epel
Scriptlet output:
   1 warning: /etc/cacti/db.php created as /etc/cacti/db.php.rpmnew
   2 warning: /etc/cron.d/cacti created as /etc/cron.d/cacti.rpmnew
   3 error: unpacking of archive failed on file /usr/share/cacti/rra: cpio: rename
history info

User avatar
camerabob
Cacti User
Posts: 275
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: Version 1.2.2 issues...

#7 Post by camerabob » Fri Mar 22, 2019 8:05 am

That is very strange. There is no indication of that from the GUI. It tells me the version I believed to have installed...
See the Cacti 1.x templates I use at: http://www.camerabob.com/cacti

Live: Cacti 1.2.3 @ CentOS 7-6.1810.2.el7 & PHP 5.4.16-46.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Test: Cacti 1.2.4 @ CentOS 7-6.1810.2.el7 & PHP 5.4.16-46.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

netniV
Cacti Guru User
Posts: 2656
Joined: Sun Aug 27, 2017 12:05 am

Re: Version 1.2.2 issues...

#8 Post by netniV » Fri Mar 22, 2019 9:48 am

Yes, you do in fact have 1.2.2 installed, but the packages are somewhat confuddled by having a real valid RRA directory instead of a symlink to /var/lib/cacti/ (I think it's that folder).

User avatar
camerabob
Cacti User
Posts: 275
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: Version 1.2.2 issues...

#9 Post by camerabob » Fri Mar 22, 2019 10:22 am

This was a fresh install from 1.0.2 using Yellowdog Update Manager (YUM).
See the Cacti 1.x templates I use at: http://www.camerabob.com/cacti

Live: Cacti 1.2.3 @ CentOS 7-6.1810.2.el7 & PHP 5.4.16-46.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Test: Cacti 1.2.4 @ CentOS 7-6.1810.2.el7 & PHP 5.4.16-46.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

netniV
Cacti Guru User
Posts: 2656
Joined: Sun Aug 27, 2017 12:05 am

Re: Version 1.2.2 issues...

#10 Post by netniV » Fri Mar 22, 2019 10:30 am

Not according to your package logs if you look up.

Post Reply