Bug 14938 - openvas-scanner conf not being created properly prevents the service from starting
Summary: openvas-scanner conf not being created properly prevents the service from sta...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: Guillaume Rousse
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-03 18:56 CET by claire robinson
Modified: 2016-11-08 19:56 CET (History)
0 users

See Also:
Source RPM: openvas-scanner
CVE:
Status comment:


Attachments

Description claire robinson 2015-01-03 18:56:47 CET
The spec uses @@ variables in the conf and some perl to replace them with true paths in the rpm. These are not being replaced with proper paths in the installed conf file. This causes the service to fail to start but it is then repetitively restarted and ends up being throttled by systemd and filling the journal.

Reproducible: 

Steps to Reproduce:
claire robinson 2015-01-03 18:56:57 CET

Hardware: i586 => All

claire robinson 2015-01-03 18:58:21 CET

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=14718

Comment 1 Samuel Verschelde 2015-09-21 13:19:52 CEST
Mageia 4 changed to end-of-life (EOL) status on 2015-09-19. It is is no longer 
maintained, which means that it will not receive any further security or bug 
fix updates.

Package Maintainer: If you wish for this bug to remain open because you plan to 
fix it in a currently maintained version, simply change the 'version' to a later 
Mageia version.

Bug Reporter: Thank you for reporting this issue and we are sorry that we weren't 
able to fix it before Mageia 4's end of life. If you are able to reproduce it 
against a later version of Mageia, you are encouraged to click on "Version" and 
change it against that version of Mageia. If it's valid in several versions, 
select the highest and add MGAxTOO in whiteboard for each other valid release.
Example: it's valid in cauldron and Mageia 5, set to cauldron and add MGA5TOO.

Although we aim to fix as many bugs as possible during every release's lifetime, 
sometimes those efforts are overtaken by events. Often a more recent Mageia 
release includes newer upstream software that fixes bugs or makes them obsolete.

If you would like to help fixing bugs in the future, don't hesitate to join the
packager team via our mentoring program [1] or join the teams that fit you 
most [2].

[1] https://wiki.mageia.org/en/Becoming_a_Mageia_Packager
[2] http://www.mageia.org/contribute/
Comment 2 claire robinson 2015-09-21 14:20:09 CEST
Valid in mga5. eg.

# systemctl start openvas-scanner.service 
Job for openvas-scanner.service failed. See "systemctl status openvas-scanner.service" and "journalctl -xe" for details.

# journalctl -xe
Sep 21 13:14:49 mega openvassd[27983]: fdopen : Bad file descriptor
Sep 21 13:14:49 mega openvassd[27983]: [Mon Sep 21 12:14:49 2015][27983] [27983] load_cert_and_key: Error loading cert file @@OPENVAS_CERT@@/CA/servercert.pem
Sep 21 13:14:49 mega openvassd[27983]: [Mon Sep 21 12:14:49 2015][27983] Could not create ovas_scanner_ctx
Sep 21 13:14:49 mega systemd[1]: openvas-scanner.service: control process exited, code=exited status=1
Sep 21 13:14:49 mega systemd[1]: Failed to start OpenVAS Scanner.

Status: NEW => RESOLVED
Version: 4 => 5
Resolution: (none) => OLD
Summary: openvas-server conf not being created properly prevents the service from starting => openvas-scanner conf not being created properly prevents the service from starting
Source RPM: openvas-server => openvas-scanner

Comment 3 Samuel Verschelde 2015-09-21 14:30:43 CEST
Reopening because I think claire has closed it mistakingly.

Status: RESOLVED => REOPENED
Resolution: OLD => (none)

Comment 4 claire robinson 2015-09-21 14:41:26 CEST
oops :)
Comment 5 Samuel Verschelde 2016-11-01 11:55:57 CET
Assigning to maintainer Guillaume Rousse. Sorry for the delay before properly triaging it.

Status: REOPENED => NEW
Assignee: bugsquad => guillomovitch

Comment 6 Guillaume Rousse 2016-11-08 19:56:12 CET
Should be fixed by 5.0.7-2.mga6.

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.