Missing dependency against libjs-jquery

Bug #1384256 reported by Avio
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
ntop (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I've installed ntop on two machines at the same time, my old laptop and a new server, both running Ubuntu 14.04. My laptop showed the pie charts correctly through the web interface, the fresh installation on the server showed no pie charts at all. Switching from Firefox to Chrome didn't solve the issue. I've also restarted the service many times, I've tried to diff the two access.log files to see if something was missing, to no avail.

Finally, going through Firefox dev tools, I've found that all the <div> containing the pie charts were totally empty. Given that the "jquery.jqplot.min.js" (and co.) scripts could be successfully GET, I started to skim through "/usr/share/ntop/html" and I found that on the server the "jquery-1.7.2.min.js" symlink was broken.

Morale of the story, ntop should have a dependency against "libjs-jquery", otherwise no pie charts are displayed through the web interface (a real shame). Surprisingly enough, none of the packages for Ubuntu and Debian seem to have "libjs-jquery" as dependency.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ntop (Ubuntu):
status: New → Confirmed
Revision history for this message
Dirk T (miriup) wrote :

I can also confirm that installing libjs-jquery removes a lot of the error messages displayed. However, now I'm running into http://ubuntu.tech.answers.ninja/post/509492, so I suspect there's still something wrong.

Revision history for this message
sense (opaperjam) wrote :

It's miss libjs-jquery-ui depend too

Revision history for this message
Ryan Solomon (phizes) wrote :

The missing dependencies I have found so far are:
- libjs-jquery
- libjs-jquery-ui
- libjs-jquery-ui-theme-smoothness
- graphviz (Required for certain maps as it contains the binary /usr/bin/dot)
- libjs-jquery-reflection (I'm not completely sure that this is required.)
These can be installed with:
# apt-get install libjs-jquery libjs-jquery-ui libjs-jquery-ui-theme-smoothness graphviz libjs-jquery-reflection

Additionally, a symlink is needed to the images for the smoothness theme:
# ln -s -t /usr/share/ntop/html/ /usr/share/javascript/jquery-ui-themes/smoothness/images

This should fix most, if not all of the errors.

Revision history for this message
Ryan Solomon (phizes) wrote :

Just as a note, my previous comment was in regards to ntop on Ubuntu 14.04.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.