Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun Apr 21, 2019 3:24 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Version 1.2.2 issues...
PostPosted: Thu Mar 21, 2019 1:30 pm 
Offline
Cacti User
User avatar

Joined: Fri Feb 10, 2017 2:45 pm
Posts: 226
Location: Long Island, New York, USA
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:
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.2 @ CentOS 7-6.1810.2.el7
Test: Cacti 1.2.2 @ CentOS 7-6.1810.2.el7


Top
 Profile  
 
 Post subject: Re: Version 1.2.2 issues...
PostPosted: Thu Mar 21, 2019 2:15 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2391
Is this on the box I have access to? If so, I'll dive in and take a look.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Version 1.2.2 issues...
PostPosted: Thu Mar 21, 2019 2:30 pm 
Offline
Cacti User
User avatar

Joined: Fri Feb 10, 2017 2:45 pm
Posts: 226
Location: Long Island, New York, USA
Yes it is. I'm flummoxed...

_________________
See the Cacti 1.x templates I use at: http://www.camerabob.com/cacti

Live: Cacti 1.2.2 @ CentOS 7-6.1810.2.el7
Test: Cacti 1.2.2 @ CentOS 7-6.1810.2.el7


Top
 Profile  
 
 Post subject: Re: Version 1.2.2 issues...
PostPosted: Thu Mar 21, 2019 2:41 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2391
Code:
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.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Version 1.2.2 issues...
PostPosted: Thu Mar 21, 2019 2:55 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2391
So I did a yum install deltarpm and then attempted the cacti update again, but got:
Code:
==================================================================================================================================
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.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Version 1.2.2 issues...
PostPosted: Thu Mar 21, 2019 4:03 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2391
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:
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:
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:
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

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Version 1.2.2 issues...
PostPosted: Fri Mar 22, 2019 8:05 am 
Offline
Cacti User
User avatar

Joined: Fri Feb 10, 2017 2:45 pm
Posts: 226
Location: Long Island, New York, USA
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.2 @ CentOS 7-6.1810.2.el7
Test: Cacti 1.2.2 @ CentOS 7-6.1810.2.el7


Top
 Profile  
 
 Post subject: Re: Version 1.2.2 issues...
PostPosted: Fri Mar 22, 2019 9:48 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2391
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).

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Version 1.2.2 issues...
PostPosted: Fri Mar 22, 2019 10:22 am 
Offline
Cacti User
User avatar

Joined: Fri Feb 10, 2017 2:45 pm
Posts: 226
Location: Long Island, New York, USA
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.2 @ CentOS 7-6.1810.2.el7
Test: Cacti 1.2.2 @ CentOS 7-6.1810.2.el7


Top
 Profile  
 
 Post subject: Re: Version 1.2.2 issues...
PostPosted: Fri Mar 22, 2019 10:30 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2391
Not according to your package logs if you look up.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group