[GH-ISSUE #168] health and disk I/O error #67

Open
opened 2026-03-13 15:38:54 +03:00 by kerem · 6 comments
Owner

Originally created by @vm86 on GitHub (May 21, 2019).
Original GitHub issue: https://github.com/acme-dns/acme-dns/issues/168

The acme-dns has a unexpected behavior. When I call https://github.com/joohoi/acme-dns#health-check-endpoint we see a report it works correct, but it doesn't correct, we can't do any operations with sqlite.

➜  curl -v http://acme.exapmle.com/health
*   Trying 192.168.10.250...
* TCP_NODELAY set
* Connected to acme.exapmle.com (192.168.10.250) port 80 (#0)
> GET /health HTTP/1.1
> Host: acme.exapmle.com
> User-Agent: curl/7.58.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: nginx/1.15.10
< Date: Tue, 21 May 2019 22:40:57 GMT
< Content-Length: 0
< Connection: keep-alive
< Vary: Origin
<
* Connection #0 to host acme.exapmle.com left intact

➜  curl -X POST http://acme.exapmle.com/register  
{"error": "disk I/O error"} 

acme-dns version: 0.7.2

Originally created by @vm86 on GitHub (May 21, 2019). Original GitHub issue: https://github.com/acme-dns/acme-dns/issues/168 The acme-dns has a unexpected behavior. When I call https://github.com/joohoi/acme-dns#health-check-endpoint we see a report it works correct, but it doesn't correct, we can't do any operations with sqlite. ``` ➜ curl -v http://acme.exapmle.com/health * Trying 192.168.10.250... * TCP_NODELAY set * Connected to acme.exapmle.com (192.168.10.250) port 80 (#0) > GET /health HTTP/1.1 > Host: acme.exapmle.com > User-Agent: curl/7.58.0 > Accept: */* > < HTTP/1.1 200 OK < Server: nginx/1.15.10 < Date: Tue, 21 May 2019 22:40:57 GMT < Content-Length: 0 < Connection: keep-alive < Vary: Origin < * Connection #0 to host acme.exapmle.com left intact ➜ curl -X POST http://acme.exapmle.com/register {"error": "disk I/O error"} ``` acme-dns version: 0.7.2
Author
Owner

@Kugelschieber commented on GitHub (Jun 13, 2019):

The health check endpoint can be used to ensure the server is reachable. But it does not validate the server is functioning properly.

<!-- gh-comment-id:501689570 --> @Kugelschieber commented on GitHub (Jun 13, 2019): The health check endpoint can be used to ensure the server is reachable. But it does not validate the server is functioning properly.
Author
Owner

@vm86 commented on GitHub (Sep 3, 2019):

@Kugelschieber
So why is health check here if it doesn't check anything?

<!-- gh-comment-id:527615311 --> @vm86 commented on GitHub (Sep 3, 2019): @Kugelschieber So why is health check here if it doesn't check anything?
Author
Owner

@Kugelschieber commented on GitHub (Sep 3, 2019):

It's just an endpoint to check wether the service is reachable or not. It does not make sure it's working correctly. My first guess is that you have misconfigured the server somehow.

<!-- gh-comment-id:527618139 --> @Kugelschieber commented on GitHub (Sep 3, 2019): It's just an endpoint to check wether the service is reachable or not. It does not make sure it's working correctly. My first guess is that you have misconfigured the server somehow.
Author
Owner

@vm86 commented on GitHub (Sep 3, 2019):

Acme-dns is working in kubernetes. SQLite located in cephfs. SQLite is becoming unreachable when cephfs doesn't availiable or restarted. Your health check doesn't check it, so kubernetes can't restart acme-dns. I receive I/O error after this situation.

<!-- gh-comment-id:527624543 --> @vm86 commented on GitHub (Sep 3, 2019): Acme-dns is working in kubernetes. SQLite located in cephfs. SQLite is becoming unreachable when cephfs doesn't availiable or restarted. Your health check doesn't check it, so kubernetes can't restart acme-dns. I receive I/O error after this situation.
Author
Owner

@Kugelschieber commented on GitHub (Sep 3, 2019):

Running acme-dns inside Kubernetes isn't a good idea. Kubernetes uses port 53 (DNS) for service discovery that collides with acme-dns.

<!-- gh-comment-id:527625600 --> @Kugelschieber commented on GitHub (Sep 3, 2019): Running acme-dns inside Kubernetes isn't a good idea. Kubernetes uses port 53 (DNS) for service discovery that collides with acme-dns.
Author
Owner

@vm86 commented on GitHub (Sep 5, 2019):

@socketpair

<!-- gh-comment-id:528620443 --> @vm86 commented on GitHub (Sep 5, 2019): @socketpair
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/acme-dns#67
No description provided.