Administration #964

Fix healthcheck of erpserver service

Added by Alexander Blum over 4 years ago. Updated about 3 years ago.

Status:ErledigtStart date:
Priority:NiedrigDue date:
Assignee:Alexander Blum% Done:

100%

Category:-
Target version:Repertoire 3) Testing phase III

Description

The healthcheck for the erpserver service results in an 500 error, which produces no log output at least. Nevertheless the request should resemble a valid one.

The current healthcheck request/response:

root@c73ea7cc9e95:/shared# if curl -v -k -X POST -H 'Content-Type: text/html' -d '<xml></xml>' --silent https://localhost:8069
> ^C
root@c73ea7cc9e95:/shared# curl -v -k -X POST -H 'Content-Type: text/html' -d '<xml></xml>' --silent https://localhost:8069
* Rebuilt URL to: https://localhost:8069/
* Hostname was NOT found in DNS cache
*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8069 (#0)
* successfully set certificate verify locations:
*   CAfile: none
  CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server key exchange (12):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* Server certificate:
*    subject: CN=fb056b542856
*    start date: 2019-12-04 20:01:47 GMT
*    expire date: 2029-12-01 20:01:47 GMT
*    issuer: CN=fb056b542856
*    SSL certificate verify result: self signed certificate (18), continuing anyway.
> POST / HTTP/1.1
> User-Agent: curl/7.38.0
> Host: localhost:8069
> Accept: */*
> Content-Type: text/html
> Content-Length: 11
> 
* upload completely sent off: 11 out of 11 bytes
< HTTP/1.1 200 OK
* Server BaseHTTP/0.3 Python/2.7.9 is not blacklisted
< Server: BaseHTTP/0.3 Python/2.7.9
< Date: Wed, 15 Jan 2020 15:59:45 GMT
< Content-type: text/xml
< Content-length: 310
< 
<?xml version='1.0'?>
<methodResponse>
<fault>
<value><struct>
<member>
<name>faultCode</name>
<value><int>1</int></value>
</member>
<member>
<name>faultString</name>
<value><string>&lt;class 'xmlrpclib.ResponseError'&gt;:ResponseError()</string></value>
</member>
</struct></value>
</fault>
</methodResponse>
* Connection #0 to host localhost left intact

History

#1 Updated by Alexander Blum about 3 years ago

  • Status changed from Neu to Erledigt
  • % Done changed from 0 to 100

The healthcheck now just checks for open ports.

#2 Updated by Alexander Blum about 3 years ago

  • Assignee set to Alexander Blum

Also available in: Atom PDF