Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 905411

Summary: =net-analyzer/gsad-21.4.4 fails to start on systemd using forking and has an issue with PCRE2 that does not allow to login
Product: Gentoo Linux Reporter: Giuseppe Foti <foti.giuseppe>
Component: Current packagesAssignee: jonas.licht
Status: UNCONFIRMED ---    
Severity: normal CC: flow, gentoobugs, proxy-maint
Priority: Normal Keywords: PATCH, PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/31106
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch for login issue
patch for startup issue
Proposed r1 ebuild

Description Giuseppe Foti 2023-05-01 10:15:25 UTC
Created attachment 861006 [details, diff]
patch for login issue

In gsad ebuild we need to patch files to address those issues:
https://forum.greenbone.net/t/gsad-problems/13121
https://forum.greenbone.net/t/kali-cant-create-gvm-user-throws-an-error-failed-to-create-user-invalid-characters-in-user-name/13062/51?page=3

The problem on starting gsad service via systemd arise allways and the service fails with lines like

gsad main:CRITICAL:2023-05-01 08h35.50 utc:856890: main: Could not write PID file.

reported in log file.

The problem arising on user creation (reported in linked post) has to be addressed in gvmd (I sent a patch on a related bug), but the same problem needs to be addressed in gsad.

In the attached patch I introduced these github commits:

# systemd start
https://github.com/greenbone/gsad/pull/84/files

# login issue
https://github.com/greenbone/gsad/commit/62c4c9180e8f94e0b148dbba15cca9d886079f57
Comment 1 Giuseppe Foti 2023-05-01 10:15:56 UTC
Created attachment 861007 [details, diff]
patch for startup issue
Comment 2 Giuseppe Foti 2023-05-01 10:17:13 UTC
Created attachment 861008 [details]
Proposed r1 ebuild