Longview Installation Error with nginx 1.1.19

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):

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:

-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:

:~$ 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?

2 Replies

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.

linode-longview1.1.0.3all.deb became accessible a few hours ago. I installed it and the "An update for the Longview agent is available" problem went away.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct