[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openvas-discuss
Subject:    Re: [Openvas-discuss] "Client not present" error in OpenVAS 8
From:       Brian Thompson <bthompson () wyetechllc ! com>
Date:       2015-06-19 12:09:01
Message-ID: 1528916113.207853.1434715742117.JavaMail.open-xchange () oxuslxltgw10 ! lxa ! perfora ! net
[Download RAW message or body]

[Attachment #2 (text/html)]

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" \
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"><head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
 </head><body><p>I was able to solve the issue - thanks all those that helped.&#160; \
</p><p><br></p><p>Note, it turned out it had nothing to do with CentOS 6 - OpenVAS 8 \
should work just fine installed on CentOS 6 so long as you build the libraries in \
/usr/local/... and not /usr/...<br></p><p><br></p><p>Here&#39;s the problem / \
solution:<br></p><p><br></p><p>Problem: I was not getting reports from my scans - the \
scans were working (I knew this because of the length of time they were taking and \
the fact that I was seeing &#34;results&#34; - just not &#34;reports&#34; or \
&#34;hosts&#34; in the Asset Management).<br></p><p><br></p><p>Detail: It turns out \
that the report generation code is installed into /share/openvas/.&#160; The /share \
directory (and all sub-directories) are chmod 700.&#160; That seems OK since I&#39;m \
logged in as root and running the &#34;omp&#34; commands as root.&#160; However, the \
report generation process is kicked off as user &#34;99&#34; (AKA: &#34;nobody&#34;) \
and that user does not have permissions to access the /share directory tree.&#160; \
<br></p><p><br></p><p>Solution: My solution is low tech (perhaps a developer can \
adjust the build scripts...) all I did was chmod the directory so that others can \
access it:<br></p><p>find /share -type d -exec chmod 755 {} \;<br></p><p>find /share \
-type f -exec chmod og+rX {} \;</p><p>NOTE: once I did this I was able to access the \
reports via &#34;omp&#34; command AND vie the GSA GUI - I didn&#39;t even need to \
re-run the scans :)<br></p><p><br></p><p>Those commands open up the /share directory \
structure so that anyone can access the report generation code.&#160; \
<br></p><p><br></p><p>Possible development changes:<br></p><p>- move report code out \
of /share/openvas and into the /var/lib/openvas<br></p><p>- set a mask so that when \
/share is created and files are written into it they have the proper chmod so that \
&#34;nobody&#34; can access them<br></p><p><br></p><p>Brian<br></p><blockquote \
type="cite">On June 16, 2015 at 2:46 PM Eero Volotinen \
&#60;eero.volotinen@iki.fi&#62; wrote:<br><br><div dir="ltr">Redhat uses technique \
called backporting, so hand compling libraries from sources usually breaks system \
totally, if done without proper knowledge as it looks.<div><br></div><div>Please do \
as we told and use centos 7.1 or older version of \
openvas.</div><div><br></div><div>--</div><div>Eero</div></div><div \
class="gmail_extra"><br><div class="gmail_quote">2015-06-16 20:58 GMT+03:00 Brian \
Thompson &#60;<a href="mailto:bthompson@wyetechllc.com" \
target="_blank">bthompson@wyetechllc.com</a>&#62;:<br><blockquote><span \
style="text-decoration: underline;"></span><div><p>That will be my last resort.&#160; \
Our entire shop is CentOS 6, I&#39;d rather not introduce an exception to the \
environment unless I have no other choice.&#160; \
<br></p><p><br></p><p>Brian<br></p><div><div class="h5"><blockquote type="cite">On \
June 16, 2015 at 9:53 AM Eero Volotinen &#60;<a href="mailto:eero.volotinen@iki.fi" \
target="_blank">eero.volotinen@iki.fi</a>&#62; wrote:<br><br><div dir="ltr">How about \
using centos 7 instead of blindy compiling libraries by \
hand.<div><br></div><div>Openvas8 works fine on centos \
7.1<br><div><br></div><div>--</div><div>Eero</div></div></div><div \
class="gmail_extra"><br><div class="gmail_quote">2015-06-16 16:27 GMT+03:00 Brian \
Thompson &#60;<a href="mailto:bthompson@wyetechllc.com" \
target="_blank">bthompson@wyetechllc.com</a>&#62;:<br><blockquote><div><p>When I try \
and attach to an old report I see the following in the \
*md.log<br></p><p><br></p><p>report_severity: max(severity)=0.0<br></p><p>command: \
/bin/sh /share/openvas/openvasmd/global_report_formats/a994b278-1f62-11e1-96ac-406186ea4fc5/generate \
/tmp/openvasmd_T3aKoY/report.xml &#62; /tmp/openvasmd_T3sKoY/report.out 2&#62; \
/dev/null<br></p><p><br></p><p>If I start a new scan I \
see:<br></p><p><br></p><p>Connected to server on socket 15.<br></p><p>Status of task \
Immediate scan of IP openv (&#60;uuid&#62;) has changed to Requested<br></p><p>Task \
&#60;uuid&#62; has been requested to start by admin<br></p><p>Status of task \
Immediate scan of IP openv (UUID) has changed to Running<br></p><p>Failed to shake \
hands with peer: The TLS connection was non-properly \
terminated.&#160;</p><p>serve_client: failed to attach client session to socket \
9<br></p><p>Failed to gnutls_bye: GnuTLS internal error.<br></p><p>(Then a bunch of \
&#34;Shook hands with peer.&#34; until the job finishes)<br></p><p>Failed to shake \
hands with peer: The TLS connection was non-properly \
terminated.<br></p><p>server_client: failed to attach client session to socket \
9<br></p><p>Failed to gnutls_bye: GnuTLS internal error.<br></p><p>Status of task \
Immediate scan of IP openv (UUID) has changed to Done<br></p><p><br></p><p>I think \
were on to something.&#160; I&#39;m using gnutls-3.2.14 which I compiled myself since \
the CentOS 6 supplied version was too old (2.8.5), but based on the errors above it \
looks like there is something wrong with either the build or the version...Any \
ideas?&#160; Perhaps it&#39;s just a linking/path problem (perhaps it&#39;s finding \
the older version when it should be finding the compiled files)?<span style="color: \
#888888;"><br></span></p><p><br></p><p>Brian<br></p><div><div><blockquote \
type="cite"><p>On June 16, 2015 at 3:14 AM Michael Meyer &#60;<a \
href="mailto:michael.meyer@greenbone.net" \
target="_blank">michael.meyer@greenbone.net</a>&#62; wrote:<br><br><br>*** Brian \
Thompson wrote:<br><br>&#62; But still no reports generated.<br><br>Set all \
&#34;level&#34; to 128 in &#34;/etc/openvas/openvasmd_log.conf&#34; and \
start<br>manager with &#34;-v&#34;. Watch &#34;/var/log/openvas/openvasmd.log&#34; \
when<br>accessing a report. Maybe you&#39;ll see something that \
helps.<br><br>Micha<br><br><br>-- <br>Michael Meyer OpenPGP Key: 0xAF069E9152A6EFA6 \
<br><a href="http://www.greenbone.net/" \
target="_blank">http://www.greenbone.net/</a><br>Greenbone Networks GmbH, Neuer \
Graben 17, 49074 Osnabr&#252;ck | AG<br>Osnabr&#252;ck, HR B \
202460<br>Gesch&#228;ftsf&#252;hrer: Lukas Grunwald, Dr. Jan-Oliver \
Wagner<br>_______________________________________________<br>Openvas-discuss mailing \
list<br><a href="mailto:Openvas-discuss@wald.intevation.org" \
target="_blank">Openvas-discuss@wald.intevation.org</a><br><a \
href="https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss" \
target="_blank">https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-dis \
cuss</a><br></p></blockquote></div></div></div><br>_______________________________________________<br> \
Openvas-discuss mailing list<br> <a href="mailto:Openvas-discuss@wald.intevation.org" \
target="_blank">Openvas-discuss@wald.intevation.org</a><br> <a \
href="https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss" \
target="_blank">https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-dis \
cuss</a><br></blockquote></div><br></div></blockquote><p><br>&#160;</p></div></div></div></blockquote></div><br></div></blockquote><p><br>&#160;</p></body></html>




_______________________________________________
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic