Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Nov 04, 2013 8:15 pm 
Offline
Newbie

Joined: Tue Oct 22, 2013 7:20 pm
Posts: 3
I'm trying to install Longview on a server running nginx 1.1.19. The client seems to install without error. When I tried to install the Longview Agent I ran into a problem with missing files (note the errors that describe /etc/linode/longview.d/Nginx.conf and /etc/init.d/longview):

Code:
The following NEW packages will be installed:
  linode-longview
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/23.6 kB of archives.
After this operation, 233 kB of additional disk space will be used.
Preconfiguring packages ...
Checking Nginx configuration...
Checking MySQL configuration...
Successfully connected to MySQL
Selecting previously unselected package linode-longview.
(Reading database ... 60673 files and directories currently installed.)
Unpacking linode-longview (from .../linode-longview_1.1.0.2_all.deb) ...
Processing triggers for ureadahead ...
Setting up linode-longview (1.1.0.2) ...
Checking Nginx configuration...
Checking MySQL configuration...
Successfully connected to MySQL
Restarting nginx: nginx.
Finished configuring nginx, writing new configuration to /etc/linode/longview.d/Nginx.conf
egrep: /etc/linode/longview.d/Nginx.conf: No such file or directory
tail: cannot open `/etc/linode/longview.d/Nginx.conf' for reading: No such file or directory
invoke-rc.d: unknown initscript, /etc/init.d/longview not found.
update-rc.d: /etc/init.d/longview: file does not exist
dpkg: error processing linode-longview (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 linode-longview
E: Sub-process /usr/bin/dpkg returned an error code (1)
:~$


...but /etc/linode/longview.d/Nginx.conf exists:

Code:
-rw-r--r-- 1 root root 40 Nov  4 18:49 /etc/linode/longview.d/Nginx.conf


If I now run "sudo apt-get install -y linode-longview" I get past the missing Nginx.conf error, but the install still fails because /etc/init.d/longview is missing:

Code:
:~$ sudo apt-get install -y linode-longview
Reading package lists... Done
Building dependency tree
Reading state information... Done
linode-longview is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linode-longview (1.1.0.2) ...
Checking Nginx configuration...
Found nginx status page at http://127.0.0.2/nginx_status specified in /etc/linode/longview.d/Nginx.conf
Checking MySQL configuration...
Successfully connected to MySQL
invoke-rc.d: unknown initscript, /etc/init.d/longview not found.
update-rc.d: /etc/init.d/longview: file does not exist
dpkg: error processing linode-longview (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 linode-longview
E: Sub-process /usr/bin/dpkg returned an error code (1)
:~$


Shouldn't /etc/init.d/longview be installed as part of the package? How can I get Longview installed?


Top
   
PostPosted: Tue Nov 05, 2013 12:54 pm 
Offline
Newbie

Joined: Tue Oct 22, 2013 7:20 pm
Posts: 3
I'm still not sure why the package manager failed to install linode-longview properly, but I managed to get past the problem by extracting the package to /tmp and then copying the needed file to /etc/init.d/longview. It seems to be working properly except for a "An update for the Longview agent is available. Please update your installation of Longview." message that appears when I look at the charts. I've run both "apt-get update" and "apt-get upgrade" and a new version of linode-longview isn't listed.


Top
   
PostPosted: Tue Nov 05, 2013 6:34 pm 
Offline
Newbie

Joined: Tue Oct 22, 2013 7:20 pm
Posts: 3
linode-longview_1.1.0.3_all.deb became accessible a few hours ago. I installed it and the "An update for the Longview agent is available" problem went away.


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


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group