Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 739178 - net-analyzer/nessus-bin: updates of existing installations are not complete
Summary: net-analyzer/nessus-bin: updates of existing installations are not complete
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Marek Szuba (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-27 02:38 UTC by Anton Bolshakov
Modified: 2020-08-29 01:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
working upgrade instructions (nessus.patch,591 bytes, patch)
2020-08-27 02:38 UTC, Anton Bolshakov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Bolshakov 2020-08-27 02:38:30 UTC
Created attachment 656982 [details, diff]
working upgrade instructions

hello,

I was struggling with nessus update until I found this solution.

The current instructions suggest to restart nessus in order to complete the upgrade. However, it is not enough. After the restart, it will be still a previous version and it forces rebuilding plugins which takes long time. Moreover, users will see the "upgrade" notification via web interface. It will download nessus again and rebuild all plugins again.

The workaround for this confusing upgrade is to run the following:
/etc/init.d/nessusd-bin stop
/opt/nessus/sbin/nessuscli update --all
/etc/init.d/nessusd-bin start
Comment 1 Rick Farina (Zero_Chaos) gentoo-dev 2020-08-27 21:03:59 UTC
fixed in-place in 8.11.1
Comment 2 Marek Szuba (RETIRED) archtester gentoo-dev 2020-08-28 11:53:36 UTC
Unfortunately 'update --all' is not the proper solution because it always operates on-line, and if there is a newer version of Nessus available on Tenable servers it will install that one regardless of what Portage has downloaded. I am testing an alternative solution now.
Comment 3 Marek Szuba (RETIRED) archtester gentoo-dev 2020-08-28 12:07:54 UTC
Oh, and those instructions are OpenRC-specific.
Comment 4 Larry the Git Cow gentoo-dev 2020-08-28 12:42:28 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4dd259e91aa64316e138c4cd1c5bd38823bfc374

commit 4dd259e91aa64316e138c4cd1c5bd38823bfc374
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2020-08-28 12:17:36 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2020-08-28 12:17:36 +0000

    net-analyzer/nessus-bin: handle version updates properly
    
    Nessus must be made aware of a new version of its core components having
    been installed. Do it the same way as upstream distro packages, i.e. use
    the undocumented nessuscli command 'install'.
    
    This is safe to do while nessusd-bin is running but it WILL be necessary
    to restart the service so that the dashboard is updated as well. In
    fact, Nessus UI will complain about the version discrepancy between the
    core and the dashboard until the service has been restarted.
    
    Closes: https://bugs.gentoo.org/739178
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 ...nessus-bin-8.11.1.ebuild => nessus-bin-8.11.1-r1.ebuild} | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
Comment 5 Anton Bolshakov 2020-08-29 01:07:34 UTC
Indeed, that works better, thanks a lot!