Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Apr 30, 2013 12:00 am 
Offline
Newbie

Joined: Mon Apr 29, 2013 11:36 pm
Posts: 3
Recently Longview stopped working. I can not find anything that would explain the issue. It installed ok and was running until a reboot this morning (scheduled maintenance). I tried to uninstall and generate a new key then reinstalled, but it still does not start up. Longview was installed after all the repos were added and a "yum upgrade" was performed. There were some updates this morning, but those did not seem to have anything that should have broken longview...

OS: CentOS 6.4 x64
output of lsb_release -a
Code:
LSB Version:    :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description:    CentOS release 6.4 (Final)
Release:        6.4
Codename:       Final



Error output

Code:
[root@likeaboss Linode]# service longview start
Starting longview: Can't locate JSON/PP.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /opt/linode/longview /opt/linode/longview/lib/perl5 /opt/linode/longview/lib/perl5/x86_64-linux-thread-multi/ /opt/linode/longview/usr/include) at /opt/linode/longview/Linode/Longview.pl line 44.
BEGIN failed--compilation aborted at /opt/linode/longview/Linode/Longview.pl line 44.


I do use some third party repos:
Code:
Loaded plugins: aliases, auto-update-debuginfo, changelog, dellsysid,
              : downloadonly, fastestmirror, filter-data, fs-snapshot, keys,
              : list-data, local, merge-conf, post-transaction-actions, presto,
              : priorities, protectbase, ps, remove-with-leaves, rpm-warm-cache,
              : security, show-leaves, tmprepo, tsflags, upgrade-helper, verify,
              : versionlock
Loading mirror speeds from cached hostfile
 * Webmin: download.webmin.com
 * base: linux.mirrors.es.net
 * centosplus: linux.mirrors.es.net
 * contrib: linux.mirrors.es.net
 * epel: linux.mirrors.es.net
 * extras: linux.mirrors.es.net
 * remi: mirrors.mediatemple.net
 * rpmforge: mirror.webnx.com
 * rpmforge-extras: mirror.webnx.com
 * updates: linux.mirrors.es.net
0 packages excluded due to repository protections


repo id         repo name                                                 status
Webmin          Webmin Distribution Neutral                                  144
_local          Automatic local repo. (manged by the "local" yum plugin).    174
base            CentOS-6 - Base                                             6381
centosplus      CentOS-6 - Plus                                               28
contrib         CentOS-6 - Contrib                                             0
epel            Extra Packages for Enterprise Linux 6 - x86_64              8629
extras          CentOS-6 - Extras                                             12
longview        Longview Repo                                                 20
remi            Les RPM de remi pour Enterprise Linux 6 - x86_64             996
rpmforge        RHEL 6 - RPMforge.net - dag                               4593+1
rpmforge-extras RHEL 6 - RPMforge.net - extras                             678+7
updates         CentOS-6 - Updates                                           599
repolist: 22254




Items updated this morning:
Code:
Apr 30 02:15:40 Updated: libuuid-2.17.2-12.9.el6_4.3.x86_64
Apr 30 02:15:40 Updated: libblkid-2.17.2-12.9.el6_4.3.x86_64
Apr 30 02:15:41 Updated: util-linux-ng-2.17.2-12.9.el6_4.3.x86_64
Apr 30 02:15:42 Updated: openldap-2.4.23-32.el6_4.1.x86_64


Top
   
PostPosted: Tue Apr 30, 2013 4:13 am 
Offline
Senior Member

Joined: Sat Nov 27, 2010 8:21 pm
Posts: 63
Check that you have the perl-JSON package installed.


Top
   
PostPosted: Tue Apr 30, 2013 11:49 am 
Offline
Newbie

Joined: Mon Apr 29, 2013 11:36 pm
Posts: 3
perl-JSON is already installed.
Code:
Installed Packages
perl-JSON.noarch                       2.50-1.el6.rfx                    @_local
perl-JSON-Any.x86_64                   1.22-1.el6.rf                     @_local
perl-JSON-XS.x86_64                    1:2.27-2.el6                      @_local


Top
   
PostPosted: Tue Apr 30, 2013 3:57 pm 
Offline
Senior Member

Joined: Sat Nov 27, 2010 8:21 pm
Posts: 63
You're using the rpmforge version instead of the standard CentOS version. That might be the problem. Try using the stock package.


Top
   
PostPosted: Wed May 01, 2013 2:17 am 
Offline
Junior Member

Joined: Mon Jan 30, 2012 3:21 am
Posts: 29
Location: Glendale, CA
I also had this issue recently and it was resolved with the help of Stan_The_Man on IRC. This is a temp fix while they evaluate if the change should go into the next version or not.

edit the Longview.pl located in

/opt/linode/longview/Linode

find line 44, which has "use JSON::PP;"

and change it to "use JSON;"

then restart the service.



BTW: It is definitely something caused by one of the additional repos. I tested a new/different node with the base repos and did not have an issue. The machine that had the problem had all the same repos as you except for Remi and Webmin.


Top
   
PostPosted: Thu May 02, 2013 12:14 am 
Offline
Newbie

Joined: Mon Apr 29, 2013 11:36 pm
Posts: 3
Followed the post by TeddyR42 and it worked... So thanks Stan_The_Man and TeddyR42.

As for the rpmforge repo, there are MANY that use it since it contains several popular packages that are not available elsewhere... So the choice is either build them myself (thus breaking things worse) or use rpmforge (or even another repo that may be a much bigger risk).

I hope that the change makes it to the next Longview update, but at least for now its working... :-)


Top
   
PostPosted: Fri Jun 14, 2013 1:33 pm 
Offline
Linode Staff
User avatar

Joined: Fri Jan 29, 2010 8:44 am
Posts: 65
Location: New Jersey
We'll be pushing this fix in the next version of Longview and will announce it in #linode-beta. The Linode Manager will also let you know that an update is available.

You're welcome likeaboss and TeddyR42!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group